From 8e72fafb2c11d6fc8532f0de8d9d5d26200376fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Zaprza=C5=82a?= Date: Thu, 19 Feb 2015 17:46:30 +0100 Subject: [PATCH 01/97] FS-7307: When recording a call in native format, buffering does not work --- src/switch_ivr_async.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 0b58c11433..22d4d67dfd 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -2251,7 +2251,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t in_file = switch_core_session_sprintf(session, "%s-in.%s", file, ext); out_file = switch_core_session_sprintf(session, "%s-out.%s", file, ext); - + rh->in_fh.pre_buffer_datalen = rh->out_fh.pre_buffer_datalen = fh->pre_buffer_datalen; + channels = 1; + switch_set_flag(&rh->in_fh, SWITCH_FILE_NATIVE); + switch_set_flag(&rh->out_fh, SWITCH_FILE_NATIVE); if (switch_core_file_open(&rh->in_fh, in_file, channels, read_impl.actual_samples_per_second, file_flags, NULL) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error opening %s\n", in_file); From 1f5e5abbed5649d6f2f38db236c3246bfc540340 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 12 Mar 2015 17:51:41 -0500 Subject: [PATCH 02/97] fix frame size for encoder --- src/mod/codecs/mod_opus/mod_opus.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 18d900a702..346f254a50 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -72,7 +72,8 @@ static opus_codec_settings_t default_codec_settings = { struct opus_context { OpusEncoder *encoder_object; OpusDecoder *decoder_object; - int frame_size; + uint32_t enc_frame_size; + uint32_t dec_frame_size; }; struct { @@ -237,7 +238,8 @@ static switch_status_t switch_opus_init(switch_codec_t *codec, switch_codec_flag return SWITCH_STATUS_FALSE; } - context->frame_size = codec->implementation->samples_per_packet; + context->enc_frame_size = codec->implementation->actual_samples_per_second * (codec->implementation->microseconds_per_packet / 1000) / 1000; + memset(&codec_fmtp, '\0', sizeof(struct switch_codec_fmtp)); codec_fmtp.private_info = &opus_codec_settings; @@ -373,16 +375,13 @@ static switch_status_t switch_opus_encode(switch_codec_t *codec, struct opus_context *context = codec->private_info; int bytes = 0; int len = (int) *encoded_data_len; - + if (!context) { return SWITCH_STATUS_FALSE; } - - if (len > 2880) len = 2880; - - bytes = opus_encode(context->encoder_object, (void *) decoded_data, - decoded_data_len / 2 / codec->implementation->number_of_channels, (unsigned char *) encoded_data, len); - + + bytes = opus_encode(context->encoder_object, (void *) decoded_data, context->enc_frame_size, (unsigned char *) encoded_data, len); + if (bytes > 0) { *encoded_data_len = (uint32_t) bytes; return SWITCH_STATUS_SUCCESS; From 9872c52c5753ab4ec4317f434b144620f603f369 Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 13 Mar 2015 16:50:13 -0500 Subject: [PATCH 03/97] FS-7368 --resolve --- conf/vanilla/vars.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/vanilla/vars.xml b/conf/vanilla/vars.xml index a6ff2a3d5d..ecee73329d 100644 --- a/conf/vanilla/vars.xml +++ b/conf/vanilla/vars.xml @@ -335,6 +335,7 @@ if true, the destination number is not included --> + From 4738da1325f408665f6111f4c72b644c4fb95cfe Mon Sep 17 00:00:00 2001 From: William King Date: Mon, 16 Mar 2015 08:59:37 -0700 Subject: [PATCH 04/97] When using the debian/utils.sh script to build FreeSWITCH packages, add the ability to pass -T[path to custom sources path] and -K[custom keyfile path] options to build the FS packages with a custom sources and keyring path. FS-7373 --- debian/util.sh | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/debian/util.sh b/debian/util.sh index a30e5bf260..ad5253f2c7 100755 --- a/debian/util.sh +++ b/debian/util.sh @@ -274,26 +274,30 @@ get_sources () { while read type path distro components; do test "$type" = deb || continue printf "$type $path $tgt_distro $components\n" - done < /etc/apt/sources.list + done < "$2" } get_mirrors () { - get_sources "$1" | tr '\n' '|' | head -c-1; echo + file=${2-/etc/apt/sources.list} + announce "Using apt sources file: $file" + get_sources "$1" "$file" | tr '\n' '|' | head -c-1; echo } build_debs () { { set -e local OPTIND OPTARG debug_hook=false hookdir="" cow_build_opts="" - local keep_pbuilder_config=false + local keep_pbuilder_config=false keyring="" custom_keyring="" local use_system_sources=false - while getopts 'Bbdkt' o "$@"; do + while getopts 'BbdK:kT:t' o "$@"; do case "$o" in B) cow_build_opts="--debbuildopts '-B'";; b) cow_build_opts="--debbuildopts '-b'";; d) debug_hook=true;; k) keep_pbuilder_config=true;; - t) use_system_sources=true;; + K) custom_keyring="$OPTARG";; + t) use_system_sources=true; custom_sources_file="/etc/apt/sources.list";; + T) use_custom_sources=true; custom_sources_file="$OPTARG";; esac done shift $(($OPTIND-1)) @@ -309,6 +313,12 @@ build_debs () { [ -x "$(which cowbuilder)" ] \ || err "package cowbuilder isn't installed" local cow_img=/var/cache/pbuilder/base-$distro-$arch.cow + if [ -e "$custom_keyring" ]; then + keyring="$custom_keyring" + else + keyring="$(mktemp /tmp/keyringXXXXXXXX.asc)" + apt-key exportall > "$keyring" + fi cow () { if ! $use_system_sources; then cowbuilder "$@" \ @@ -316,17 +326,18 @@ build_debs () { --architecture $arch \ --basepath $cow_img else - local keyring="$(mktemp /tmp/keyringXXXXXXXX.asc)" - apt-key exportall > "$keyring" cowbuilder "$@" \ --distribution $distro \ --architecture $arch \ --basepath $cow_img \ --keyring "$keyring" \ - --othermirror "$(get_mirrors $distro)" - rm -f $keyring + --othermirror "$(get_mirrors $distro $custom_sources_file)" fi } + if [ ! -e "$custom_keyring" ]; then + # Cleanup script created temporary file + rm -f $keyring + fi if ! [ -d $cow_img ]; then announce "Creating base $distro-$arch image..." local x=30 @@ -466,6 +477,9 @@ commands: -i Auto install build deps on host system -j Build debs in parallel -k Don't override pbuilder image configurations + -K [/path/to/keyring.asc] + Use custom keyring file for sources.list in build environment + in the format of: apt-key exportall > /path/to/file.asc -l -m [ quicktest | non-dfsg ] Choose custom list of modules to build @@ -477,6 +491,8 @@ commands: -s [ paranoid | reckless ] Set FS bootstrap/build -j flags -t Use system /etc/apt/sources.list in build environment + -T [/path/to/sources.list] + Use custom /etc/apt/sources.list in build environment -u Specify a custom suite postfix -v Set version @@ -490,7 +506,12 @@ commands: -b Binary-only build -d Enable cowbuilder debug hook -k Don't override pbuilder image configurations + -K [/path/to/keyring.asc] + Use custom keyring file for sources.list in build environment + in the format of: apt-key exportall > /path/to/file.asc -t Use system /etc/apt/sources.list in build environment + -T [/path/to/sources.list] + Use custom /etc/apt/sources.list in build environment create-dbg-pkgs From 42961b7f2e89de7a5aa08e2c289adf6a8fe6f5d6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 17 Mar 2015 12:27:25 -0500 Subject: [PATCH 05/97] remove debug --- src/mod/endpoints/mod_verto/mod_verto.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index de942f14f5..410f5ce1d4 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -953,9 +953,6 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char * switch_event_add_header_string(req_params, SWITCH_STACK_BOTTOM, i->string, i->valuestring); } } - - DUMP_EVENT(req_params); - } switch_event_add_header_string(req_params, SWITCH_STACK_BOTTOM, "action", "jsonrpc-authenticate"); From 44118fa8e6255f109780fd21c05cb1edbda7f777 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 18 Mar 2015 13:51:12 -0500 Subject: [PATCH 06/97] FS-7297 fix incomplete patch for previous issue --- src/mod/codecs/mod_com_g729/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/codecs/mod_com_g729/Makefile.am b/src/mod/codecs/mod_com_g729/Makefile.am index b311a7c641..f557c78f76 100644 --- a/src/mod/codecs/mod_com_g729/Makefile.am +++ b/src/mod/codecs/mod_com_g729/Makefile.am @@ -5,7 +5,7 @@ VERSION=201501231218 if ISLINUX -G729INSTALLER = $(top_srcdir)/libs/fsg729-$(VERSION)-installer +G729INSTALLER = $(top_srcdir)/libs/fs-$(VERSION)-installer LICSERVER=/usr/sbin/freeswitch_licence_server VALIDATOR=$(bindir)/validator MOD=$(moddir)/mod_com_g729.so From ab3d96711502500207fcb238b6d17fbcd91276c3 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Wed, 18 Mar 2015 15:05:29 -0400 Subject: [PATCH 07/97] FS-7378 #resolve #comment play_and_detect_speech can now detect DTMF if you set the playback_terminators channel variable to any or specific DTMF. The result will be stored in speech_detect_result and in playback_terminator_used. Also added channel variable play_and_detect_speech_close_asr which will release the speech recognition port when the detection is completed. This will prevent speech licenses from being held the entire call. --- src/switch_ivr_async.c | 83 ++++++++++++++++++++++++++++-------------- 1 file changed, 56 insertions(+), 27 deletions(-) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 2755d90a4b..c7fb1e3c0e 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -3854,6 +3854,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_bind_dtmf_meta_session(switch_core_se return SWITCH_STATUS_SUCCESS; } +#define PLAY_AND_DETECT_DONE 1 +#define PLAY_AND_DETECT_DONE_RECOGNIZING 2 typedef struct { int done; char *result; @@ -3862,29 +3864,54 @@ typedef struct { static switch_status_t play_and_detect_input_callback(switch_core_session_t *session, void *input, switch_input_type_t input_type, void *data, unsigned int len) { play_and_detect_speech_state_t *state = (play_and_detect_speech_state_t *)data; - switch_event_t *event; - switch_channel_t *channel = switch_core_session_get_channel(session); - if (input_type == SWITCH_INPUT_TYPE_EVENT) { - event = (switch_event_t *)input; - if (event->event_id == SWITCH_EVENT_DETECTED_SPEECH && !state->done) { - const char *speech_type = switch_event_get_header(event, "Speech-Type"); - if (!zstr(speech_type)) { - if (!strcasecmp(speech_type, "detected-speech")) { - const char *result; - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) DETECTED SPEECH\n", switch_channel_get_name(channel)); - result = switch_event_get_body(event); - if (!zstr(result)) { - state->result = switch_core_session_strdup(session, result); - } else { + if (!state->done) { + switch_channel_t *channel = switch_core_session_get_channel(session); + if (input_type == SWITCH_INPUT_TYPE_EVENT) { + switch_event_t *event; + event = (switch_event_t *)input; + if (event->event_id == SWITCH_EVENT_DETECTED_SPEECH) { + const char *speech_type = switch_event_get_header(event, "Speech-Type"); + if (!zstr(speech_type)) { + if (!strcasecmp(speech_type, "detected-speech")) { + const char *result; + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) DETECTED SPEECH\n", switch_channel_get_name(channel)); + result = switch_event_get_body(event); + if (!zstr(result)) { + state->result = switch_core_session_strdup(session, result); + } else { + state->result = ""; + } + state->done = PLAY_AND_DETECT_DONE_RECOGNIZING; + return SWITCH_STATUS_BREAK; + } else if (!strcasecmp(speech_type, "begin-speaking")) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) START OF SPEECH\n", switch_channel_get_name(channel)); + return SWITCH_STATUS_BREAK; + } else if (!strcasecmp("closed", speech_type)) { + state->done = PLAY_AND_DETECT_DONE_RECOGNIZING; state->result = ""; + return SWITCH_STATUS_BREAK; } - state->done = 1; - return SWITCH_STATUS_BREAK; - } else if (!strcasecmp(speech_type, "begin-speaking")) { - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) START OF SPEECH\n", switch_channel_get_name(channel)); - return SWITCH_STATUS_BREAK; } } + } else if (input_type == SWITCH_INPUT_TYPE_DTMF) { + switch_dtmf_t *dtmf = (switch_dtmf_t *) input; + const char *terminators = switch_channel_get_variable(channel, SWITCH_PLAYBACK_TERMINATORS_VARIABLE); + if (terminators) { + if (!strcasecmp(terminators, "any")) { + terminators = "1234567890*#"; + } else if (!strcasecmp(terminators, "none")) { + terminators = NULL; + } + } + if (terminators && strchr(terminators, dtmf->digit)) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "(%s) ACCEPT TERMINATOR %c\n", switch_channel_get_name(channel), dtmf->digit); + switch_channel_set_variable_printf(channel, SWITCH_PLAYBACK_TERMINATOR_USED, "%c", dtmf->digit); + state->result = switch_core_session_sprintf(session, "DIGIT: %c", dtmf->digit); + state->done = PLAY_AND_DETECT_DONE; + return SWITCH_STATUS_BREAK; + } else { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "(%s) IGNORE NON-TERMINATOR DIGIT %c\n", switch_channel_get_name(channel), dtmf->digit); + } } } return SWITCH_STATUS_SUCCESS; @@ -3901,7 +3928,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_and_detect_speech(switch_core_se switch_status_t status = SWITCH_STATUS_SUCCESS; int recognizing = 0; switch_input_args_t myargs = { 0 }; - play_and_detect_speech_state_t state = { 0, "" }; + play_and_detect_speech_state_t state = { 0 }; switch_channel_t *channel = switch_core_session_get_channel(session); arg_recursion_check_start(args); @@ -3929,7 +3956,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_and_detect_speech(switch_core_se status = switch_ivr_play_file(session, NULL, file, args); if (args->dmachine && switch_ivr_dmachine_last_ping(args->dmachine) != SWITCH_STATUS_SUCCESS) { - state.done = 1; + state.done |= PLAY_AND_DETECT_DONE; goto done; } @@ -3943,23 +3970,25 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_and_detect_speech(switch_core_se switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) WAITING FOR RESULT\n", switch_channel_get_name(channel)); while (!state.done && switch_channel_ready(channel)) { status = switch_ivr_sleep(session, input_timeout, SWITCH_FALSE, args); - + if (args->dmachine && switch_ivr_dmachine_last_ping(args->dmachine) != SWITCH_STATUS_SUCCESS) { - state.done = 1; + state.done |= PLAY_AND_DETECT_DONE; goto done; - } + } if (status != SWITCH_STATUS_BREAK && status != SWITCH_STATUS_SUCCESS) { goto done; } } } - recognizing = !state.done; done: - if (recognizing) { + if (recognizing && !(state.done & PLAY_AND_DETECT_DONE_RECOGNIZING)) { switch_ivr_pause_detect_speech(session); } + if (recognizing && switch_true(switch_channel_get_variable(channel, "play_and_detect_speech_close_asr"))) { + switch_ivr_stop_detect_speech(session); + } *result = state.result; @@ -3969,7 +3998,7 @@ done: arg_recursion_check_stop(args); - return status;; + return status; } struct speech_thread_handle { From 21d1e6fc4b77473fc77cf50d2ff0dcbfd2e53d95 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Wed, 18 Mar 2015 15:30:12 -0400 Subject: [PATCH 08/97] FS-7378 play_and_detect_speech: protect against NULL result --- src/mod/applications/mod_dptools/mod_dptools.c | 4 +++- src/switch_ivr_async.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index d7eb90b417..c3b96daf24 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -515,7 +515,9 @@ SWITCH_STANDARD_APP(play_and_detect_speech_function) char *grammar = argv[1]; char *result = NULL; switch_ivr_play_and_detect_speech(session, file, engine, grammar, &result, 0, NULL); - switch_channel_set_variable(channel, "detect_speech_result", result); + if (!zstr(result)) { + switch_channel_set_variable(channel, "detect_speech_result", result); + } } else { /* bad input */ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Usage: %s\n", PLAY_AND_DETECT_SPEECH_SYNTAX); diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index c7fb1e3c0e..e7f05ac9ff 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -3928,7 +3928,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_and_detect_speech(switch_core_se switch_status_t status = SWITCH_STATUS_SUCCESS; int recognizing = 0; switch_input_args_t myargs = { 0 }; - play_and_detect_speech_state_t state = { 0 }; + play_and_detect_speech_state_t state = { 0, "" }; switch_channel_t *channel = switch_core_session_get_channel(session); arg_recursion_check_start(args); From 3d644029b075616ba8c8558f986acc39e7731f41 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sat, 21 Mar 2015 14:55:21 -0500 Subject: [PATCH 09/97] FS-7149 #comment mod_flite for windows fix --- src/mod/asr_tts/mod_flite/mod_flite.2010.vcxproj | 16 ++++++++-------- src/mod/asr_tts/mod_flite/mod_flite.2012.vcxproj | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/mod/asr_tts/mod_flite/mod_flite.2010.vcxproj b/src/mod/asr_tts/mod_flite/mod_flite.2010.vcxproj index 83125c88ae..59b2f93a13 100644 --- a/src/mod/asr_tts/mod_flite/mod_flite.2010.vcxproj +++ b/src/mod/asr_tts/mod_flite/mod_flite.2010.vcxproj @@ -120,7 +120,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -137,7 +137,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -152,7 +152,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -170,7 +170,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -186,7 +186,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) @@ -203,7 +203,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) @@ -218,7 +218,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) @@ -235,7 +235,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) diff --git a/src/mod/asr_tts/mod_flite/mod_flite.2012.vcxproj b/src/mod/asr_tts/mod_flite/mod_flite.2012.vcxproj index a52892f055..842eb69629 100644 --- a/src/mod/asr_tts/mod_flite/mod_flite.2012.vcxproj +++ b/src/mod/asr_tts/mod_flite/mod_flite.2012.vcxproj @@ -128,7 +128,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -145,7 +145,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -160,7 +160,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -178,7 +178,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) APT_LIB_EXPORT;%(PreprocessorDefinitions) @@ -194,7 +194,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) @@ -211,7 +211,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) @@ -226,7 +226,7 @@ - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) @@ -243,7 +243,7 @@ X64 - ../../../../libs/flite-1.5.4/include;%(AdditionalIncludeDirectories) + ../../../../libs/flite-2.0.0/include;%(AdditionalIncludeDirectories) From cbd94aac29d9cf73ab354b5b0a7ab6df627c5056 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Sun, 22 Mar 2015 14:40:25 -0400 Subject: [PATCH 10/97] FS-7300 [mod_rayo] set iq type to error when prompt component forwards input/output error back to rayo client. --- src/mod/event_handlers/mod_rayo/rayo_prompt_component.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c index 33042ed19d..8936618e92 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c @@ -1,6 +1,6 @@ /* * mod_rayo for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application - * Copyright (C) 2013-2014, Grasshopper + * Copyright (C) 2013-2015, Grasshopper * * Version: MPL 1.1 * @@ -283,6 +283,7 @@ static iks *prompt_component_handle_input_error(struct rayo_actor *prompt, struc iq = PROMPT_COMPONENT(prompt)->iq; iks_insert_attrib(iq, "from", RAYO_JID(prompt->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); + iks_insert_attrib(iq, "type", "error"); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); RAYO_SEND_REPLY(prompt, RAYO_COMPONENT(prompt)->client_jid, iq); @@ -311,6 +312,7 @@ static iks *prompt_component_handle_input_error(struct rayo_actor *prompt, struc iq = PROMPT_COMPONENT(prompt)->iq; iks_insert_attrib(iq, "from", RAYO_JID(prompt->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); + iks_insert_attrib(iq, "type", "error"); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); PROMPT_COMPONENT(prompt)->complete = iks_copy(iq); @@ -352,6 +354,7 @@ static iks *prompt_component_handle_output_error(struct rayo_actor *prompt, stru iq = PROMPT_COMPONENT(prompt)->iq; iks_insert_attrib(iq, "from", RAYO_JID(prompt->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); + iks_insert_attrib(iq, "type", "error"); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); RAYO_SEND_REPLY(prompt, RAYO_COMPONENT(prompt)->client_jid, iq); From dee980d2ddf2afde01ab044b1285b05b6a085dba Mon Sep 17 00:00:00 2001 From: Jun Wang Date: Mon, 23 Mar 2015 02:27:08 +0000 Subject: [PATCH 11/97] FS-7383 #resolve --- libs/spandsp/src/make_at_dictionary.c | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/libs/spandsp/src/make_at_dictionary.c b/libs/spandsp/src/make_at_dictionary.c index 6259207368..a34dd6f3a3 100644 --- a/libs/spandsp/src/make_at_dictionary.c +++ b/libs/spandsp/src/make_at_dictionary.c @@ -605,6 +605,33 @@ static void dump_trie(void) } /*- End of function --------------------------------------------------------*/ + +static void trie_recursive_free(trie_node_t *t) +{ + int i; + if (t) + { + if (t->first <= t->last) + { + for (i = t->first; i <= t->last; i++) + trie_recursive_free(t->child_list[i]); + } + free(t); + } +} +/*- End of function --------------------------------------------------------*/ + +static void trie_free(trie_t *s) +{ + if(s) + { + if(s->root) + trie_recursive_free(s->root); + free(s); + } +} +/*- End of function --------------------------------------------------------*/ + int main(int argc, char *argv[]) { trie_t *s; @@ -627,6 +654,8 @@ int main(int argc, char *argv[]) trie_recursive_build_packed_trie(s->root); dump_trie(); + + trie_free(s); return 0; } From a8bb1ca2f9962e4a9c8aac5b4f106c6ce6421373 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 24 Mar 2015 12:49:06 -0500 Subject: [PATCH 12/97] fail call on stream error --- html5/verto/demo/js/verto-min.js | 8 ++++---- html5/verto/js/src/jquery.FSRTC.js | 4 ++-- html5/verto/js/src/jquery.verto.js | 11 ++++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/html5/verto/demo/js/verto-min.js b/html5/verto/demo/js/verto-min.js index dd539a92f5..45c9a0771a 100644 --- a/html5/verto/demo/js/verto-min.js +++ b/html5/verto/demo/js/verto-min.js @@ -14,7 +14,7 @@ var sdpLines=sdp.split('\r\n');var opusIndex=findLine(sdpLines,'a=rtpmap','opus/ var fmtpLineIndex=findLine(sdpLines,'a=fmtp:'+opusPayload.toString());if(fmtpLineIndex===null)return sdp;sdpLines[fmtpLineIndex]=sdpLines[fmtpLineIndex].concat('; stereo=1');sdp=sdpLines.join('\r\n');return sdp;};function setCompat(){$.FSRTC.moz=!!navigator.mozGetUserMedia;if(!navigator.getUserMedia){navigator.getUserMedia=navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia;}} function checkCompat(){if(!navigator.getUserMedia){alert('This application cannot function in this browser.');return false;} return true;} -function onStreamError(self,e){console.log('There has been a problem retrieving the streams - did you allow access?',e);} +function onStreamError(self,e){console.log('There has been a problem retrieving the streams - did you allow access? Check Device Resolution',e);doCallback(self,"onError",e);} function onStreamSuccess(self){console.log("Stream Success");} function onICE(self,candidate){self.mediaData.candidate=candidate;self.mediaData.candidateList.push(self.mediaData.candidate);doCallback(self,"onICE");} function doCallback(self,func,arg){if(func in self.options.callbacks){self.options.callbacks[func](self,arg);}} @@ -179,7 +179,7 @@ dialog.verto.dialogs[dialog.callID]=dialog;var RTCcallbacks={};if(dialog.directi if(!dialog.params.remote_caller_id_name){dialog.params.remote_caller_id_name="Nobody";} if(!dialog.params.remote_caller_id_number){dialog.params.remote_caller_id_number="UNKNOWN";} RTCcallbacks.onMessage=function(rtc,msg){console.debug(msg);};RTCcallbacks.onAnswerSDP=function(rtc,sdp){console.error("answer sdp",sdp);};}else{dialog.params.remote_caller_id_name="Outbound Call";dialog.params.remote_caller_id_number=dialog.params.destination_number;} -RTCcallbacks.onICESDP=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.SDP);dialog.setState($.verto.enum.state.requesting);dialog.sendMethod("verto.invite",{sdp:rtc.mediaData.SDP});}else{dialog.setState($.verto.enum.state.answering);dialog.sendMethod(dialog.attach?"verto.attach":"verto.answer",{sdp:dialog.rtc.mediaData.SDP});}};RTCcallbacks.onICE=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.candidate);return;}};RTCcallbacks.onError=function(e){console.error("ERROR:",e);dialog.hangup();};dialog.rtc=new $.FSRTC({callbacks:RTCcallbacks,useVideo:dialog.videoStream,useAudio:dialog.audioStream,useStereo:dialog.params.useStereo,videoParams:verto.options.videoParams,audioParams:verto.options.audioParams,iceServers:verto.options.iceServers});dialog.rtc.verto=dialog.verto;if(dialog.direction==$.verto.enum.direction.inbound){if(dialog.attach){dialog.answer();}else{dialog.ring();}}};$.verto.dialog.prototype.invite=function(){var dialog=this;dialog.rtc.call();};$.verto.dialog.prototype.sendMethod=function(method,obj){var dialog=this;obj.dialogParams={};for(var i in dialog.params){if(i=="sdp"&&method!="verto.invite"&&method!="verto.attach"){continue;} +RTCcallbacks.onICESDP=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.SDP);dialog.setState($.verto.enum.state.requesting);dialog.sendMethod("verto.invite",{sdp:rtc.mediaData.SDP});}else{dialog.setState($.verto.enum.state.answering);dialog.sendMethod(dialog.attach?"verto.attach":"verto.answer",{sdp:dialog.rtc.mediaData.SDP});}};RTCcallbacks.onICE=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.candidate);return;}};RTCcallbacks.onError=function(e){console.error("ERROR:",e);dialog.hangup({cause:"Device or Permission Error"});};dialog.rtc=new $.FSRTC({callbacks:RTCcallbacks,useVideo:dialog.videoStream,useAudio:dialog.audioStream,useStereo:dialog.params.useStereo,videoParams:verto.options.videoParams,audioParams:verto.options.audioParams,iceServers:verto.options.iceServers});dialog.rtc.verto=dialog.verto;if(dialog.direction==$.verto.enum.direction.inbound){if(dialog.attach){dialog.answer();}else{dialog.ring();}}};$.verto.dialog.prototype.invite=function(){var dialog=this;dialog.rtc.call();};$.verto.dialog.prototype.sendMethod=function(method,obj){var dialog=this;obj.dialogParams={};for(var i in dialog.params){if(i=="sdp"&&method!="verto.invite"&&method!="verto.attach"){continue;} obj.dialogParams[i]=dialog.params[i];} dialog.verto.rpcClient.call(method,obj,function(e){dialog.processReply(method,true,e);},function(e){dialog.processReply(method,false,e);});};function checkStateChange(oldS,newS){if(newS==$.verto.enum.state.purge||$.verto.enum.states[oldS.name][newS.name]){return true;} return false;} @@ -196,7 +196,7 @@ break;case"verto.bye":dialog.hangup();break;case"verto.modify":if(e.holdState){i if(success){} break;default:break;}};$.verto.dialog.prototype.hangup=function(params){var dialog=this;if(params){if(params.causeCode){dialog.causeCode=params.causeCode;} if(params.cause){dialog.cause=params.cause;}} -if(dialog.state.val>$.verto.enum.state.new.val&&dialog.state.val<$.verto.enum.state.hangup.val){dialog.setState($.verto.enum.state.hangup);}else if(dialog.state.val<$.verto.enum.state.destroy){dialog.setState($.verto.enum.state.destroy);}};$.verto.dialog.prototype.stopRinging=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.stop();}};$.verto.dialog.prototype.indicateRing=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.attr("src",dialog.verto.options.ringFile)[0].play();setTimeout(function(){dialog.stopRinging();if(dialog.state==$.verto.enum.state.ringing){dialog.indicateRing();}},dialog.verto.options.ringSleep);}};$.verto.dialog.prototype.ring=function(){var dialog=this;dialog.setState($.verto.enum.state.ringing);dialog.indicateRing();};$.verto.dialog.prototype.useVideo=function(on){var dialog=this;dialog.params.useVideo=on;if(on){dialog.videoStream=dialog.audioStream;}else{dialog.videoStream=null;} +if(dialog.state.val>=$.verto.enum.state.new.val&&dialog.state.val<$.verto.enum.state.hangup.val){dialog.setState($.verto.enum.state.hangup);}else if(dialog.state.val<$.verto.enum.state.destroy){dialog.setState($.verto.enum.state.destroy);}};$.verto.dialog.prototype.stopRinging=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.stop();}};$.verto.dialog.prototype.indicateRing=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.attr("src",dialog.verto.options.ringFile)[0].play();setTimeout(function(){dialog.stopRinging();if(dialog.state==$.verto.enum.state.ringing){dialog.indicateRing();}},dialog.verto.options.ringSleep);}};$.verto.dialog.prototype.ring=function(){var dialog=this;dialog.setState($.verto.enum.state.ringing);dialog.indicateRing();};$.verto.dialog.prototype.useVideo=function(on){var dialog=this;dialog.params.useVideo=on;if(on){dialog.videoStream=dialog.audioStream;}else{dialog.videoStream=null;} dialog.rtc.useVideo(dialog.videoStream);};$.verto.dialog.prototype.useStereo=function(on){var dialog=this;dialog.params.useStereo=on;dialog.rtc.useStereo(on);};$.verto.dialog.prototype.dtmf=function(digits){var dialog=this;if(digits){dialog.sendMethod("verto.info",{dtmf:digits});}};$.verto.dialog.prototype.transfer=function(dest,params){var dialog=this;if(dest){dialog.sendMethod("verto.modify",{action:"transfer",destination:dest,params:params});}};$.verto.dialog.prototype.hold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"hold",params:params});};$.verto.dialog.prototype.unhold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"unhold",params:params});};$.verto.dialog.prototype.toggleHold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"toggleHold",params:params});};$.verto.dialog.prototype.message=function(msg){var dialog=this;var err=0;msg.from=dialog.params.login;if(!msg.to){console.error("Missing To");err++;} if(!msg.body){console.error("Missing Body");err++;} if(err){return false;} @@ -206,5 +206,5 @@ dialog.rtc.createAnswer(dialog.params.sdp);dialog.answered=true;}};$.verto.dialo if(dialog.state.val>=$.verto.enum.state.early.val){dialog.setState($.verto.enum.state.active);}else{if(dialog.gotEarly){console.log("Dialog "+dialog.callID+"Got answer while still establishing early media, delaying...");}else{console.log("Dialog "+dialog.callID+"Answering Channel");dialog.rtc.answer(params.sdp,function(){dialog.setState($.verto.enum.state.active);},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"ANSWER SDP",params.sdp);}}};$.verto.dialog.prototype.cidString=function(enc){var dialog=this;var party=dialog.params.remote_caller_id_name+(enc?" <":" <")+dialog.params.remote_caller_id_number+(enc?">":">");return party;};$.verto.dialog.prototype.sendMessage=function(msg,params){var dialog=this;if(dialog.callbacks.onMessage){dialog.callbacks.onMessage(dialog.verto,dialog,msg,params);}};$.verto.dialog.prototype.handleInfo=function(params){var dialog=this;dialog.sendMessage($.verto.enum.message.info,params.msg);};$.verto.dialog.prototype.handleDisplay=function(params){var dialog=this;if(params.display_name){dialog.params.remote_caller_id_name=params.display_name;} if(params.display_number){dialog.params.remote_caller_id_number=params.display_number;} dialog.sendMessage($.verto.enum.message.display,{});};$.verto.dialog.prototype.handleMedia=function(params){var dialog=this;if(dialog.state.val>=$.verto.enum.state.early.val){return;} -dialog.gotEarly=true;dialog.rtc.answer(params.sdp,function(){console.log("Dialog "+dialog.callID+"Establishing early media");dialog.setState($.verto.enum.state.early);if(dialog.gotAnswer){console.log("Dialog "+dialog.callID+"Answering Channel");dialog.setState($.verto.enum.state.active);}},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"EARLY SDP",params.sdp);};$.verto.ENUM=function(s){var i=0,o={};s.split(" ").map(function(x){o[x]={name:x,val:i++};});return Object.freeze(o);};$.verto.enum={};$.verto.enum.states=Object.freeze({new:{requesting:1,recovering:1,ringing:1,destroy:1,answering:1},requesting:{trying:1,hangup:1},recovering:{answering:1,hangup:1},trying:{active:1,early:1,hangup:1},ringing:{answering:1,hangup:1},answering:{active:1,hangup:1},active:{answering:1,requesting:1,hangup:1,held:1},held:{hangup:1,active:1},early:{hangup:1,active:1},hangup:{destroy:1},destroy:{},purge:{destroy:1}});$.verto.enum.state=$.verto.ENUM("new requesting trying recovering ringing answering early active held hangup destroy purge");$.verto.enum.direction=$.verto.ENUM("inbound outbound");$.verto.enum.message=$.verto.ENUM("display info pvtEvent");$.verto.enum=Object.freeze($.verto.enum);$.verto.saved=[];$(window).bind('beforeunload',function(){for(var i in $.verto.saved){var verto=$.verto.saved[i];if(verto){verto.logout();verto.purge();}} +dialog.gotEarly=true;dialog.rtc.answer(params.sdp,function(){console.log("Dialog "+dialog.callID+"Establishing early media");dialog.setState($.verto.enum.state.early);if(dialog.gotAnswer){console.log("Dialog "+dialog.callID+"Answering Channel");dialog.setState($.verto.enum.state.active);}},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"EARLY SDP",params.sdp);};$.verto.ENUM=function(s){var i=0,o={};s.split(" ").map(function(x){o[x]={name:x,val:i++};});return Object.freeze(o);};$.verto.enum={};$.verto.enum.states=Object.freeze({new:{requesting:1,recovering:1,ringing:1,destroy:1,answering:1,hangup:1},requesting:{trying:1,hangup:1},recovering:{answering:1,hangup:1},trying:{active:1,early:1,hangup:1},ringing:{answering:1,hangup:1},answering:{active:1,hangup:1},active:{answering:1,requesting:1,hangup:1,held:1},held:{hangup:1,active:1},early:{hangup:1,active:1},hangup:{destroy:1},destroy:{},purge:{destroy:1}});$.verto.enum.state=$.verto.ENUM("new requesting trying recovering ringing answering early active held hangup destroy purge");$.verto.enum.direction=$.verto.ENUM("inbound outbound");$.verto.enum.message=$.verto.ENUM("display info pvtEvent");$.verto.enum=Object.freeze($.verto.enum);$.verto.saved=[];$(window).bind('beforeunload',function(){for(var i in $.verto.saved){var verto=$.verto.saved[i];if(verto){verto.logout();verto.purge();}} return $.verto.warnOnUnload;});})(jQuery); \ No newline at end of file diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index 70f515cbd4..82348fe140 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -192,8 +192,8 @@ } function onStreamError(self, e) { - console.log('There has been a problem retrieving the streams - did you allow access?', e); - + console.log('There has been a problem retrieving the streams - did you allow access? Check Device Resolution', e); + doCallback(self, "onError", e); } function onStreamSuccess(self) { diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js index 750b05a8e5..12b1409db9 100644 --- a/html5/verto/js/src/jquery.verto.js +++ b/html5/verto/js/src/jquery.verto.js @@ -1490,7 +1490,7 @@ RTCcallbacks.onError = function(e) { console.error("ERROR:", e); - dialog.hangup(); + dialog.hangup({cause: "Device or Permission Error"}); }; dialog.rtc = new $.FSRTC({ @@ -1666,15 +1666,15 @@ if (params) { if (params.causeCode) { - dialog.causeCode = params.causeCode; + dialog.causeCode = params.causeCode; } if (params.cause) { - dialog.cause = params.cause; + dialog.cause = params.cause; } } - if (dialog.state.val > $.verto.enum.state.new.val && dialog.state.val < $.verto.enum.state.hangup.val) { + if (dialog.state.val >= $.verto.enum.state.new.val && dialog.state.val < $.verto.enum.state.hangup.val) { dialog.setState($.verto.enum.state.hangup); } else if (dialog.state.val < $.verto.enum.state.destroy) { dialog.setState($.verto.enum.state.destroy); @@ -1927,7 +1927,8 @@ recovering: 1, ringing: 1, destroy: 1, - answering: 1 + answering: 1, + hangup: 1 }, requesting: { trying: 1, From 0322da0795abd6b89b95a0fd539f3a2d2030d9fe Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 24 Mar 2015 13:39:51 -0500 Subject: [PATCH 13/97] add local mute to verto --- html5/verto/demo/js/verto-min.js | 33 +++-- html5/verto/js/src/jquery.FSRTC.js | 230 +++++++++++++++++++++-------- html5/verto/js/src/jquery.verto.js | 10 ++ 3 files changed, 199 insertions(+), 74 deletions(-) diff --git a/html5/verto/demo/js/verto-min.js b/html5/verto/demo/js/verto-min.js index 45c9a0771a..35bb6d96be 100644 --- a/html5/verto/demo/js/verto-min.js +++ b/html5/verto/demo/js/verto-min.js @@ -6,16 +6,16 @@ function getCodecPayloadType(sdpLine){var pattern=new RegExp('a=rtpmap:(\\d+) \\ function setDefaultCodec(mLine,payload){var elements=mLine.split(' ');var newLine=[];var index=0;for(var i=0;i=28)TURN={url:'turn:turn.bistri.com:80',credential:'homeo',username:'homeo'};iceServers.iceServers=[STUN];}} var optional={optional:[]};if(!moz){optional.optional=[{DtlsSrtpKeyAgreement:true},{RtpDataChannels:options.onChannelMessage?true:false}];} @@ -57,7 +68,7 @@ function onSdpSuccess(){} function onSdpError(e){if(options.onChannelError){options.onChannelError(e);} console.error('sdp error:',e);} return{addAnswerSDP:function(sdp,cbSuccess,cbError){peer.setRemoteDescription(new SessionDescription(sdp),cbSuccess?cbSuccess:onSdpSuccess,cbError?cbError:onSdpError);},addICE:function(candidate){peer.addIceCandidate(new IceCandidate({sdpMLineIndex:candidate.sdpMLineIndex,candidate:candidate.candidate}));},peer:peer,channel:channel,sendData:function(message){if(channel){channel.send(message);}},stop:function(){peer.close();if(options.attachStream){options.attachStream.stop();}}};} -var video_constraints={mandatory:{},optional:[]};function getUserMedia(options){var n=navigator,media;n.getMedia=n.webkitGetUserMedia||n.mozGetUserMedia;n.getMedia(options.constraints||{audio:true,video:video_constraints},streaming,options.onerror||function(e){console.error(e);});function streaming(stream){var video=options.video;if(video){video[moz?'mozSrcObject':'src']=moz?stream:window.webkitURL.createObjectURL(stream);} +var video_constraints={mandatory:{},optional:[]};function getUserMedia(options){var n=navigator,media;n.getMedia=n.webkitGetUserMedia||n.mozGetUserMedia;n.getMedia(options.constraints||{audio:true,video:video_constraints},streaming,options.onerror||function(e){console.error(e);});function streaming(stream){if(options.localVideo){options.localVideo[moz?'mozSrcObject':'src']=moz?stream:window.webkitURL.createObjectURL(stream);options.localVideo.style.display='block';} if(options.onsuccess){options.onsuccess(stream);} media=stream;} return media;}})(jQuery);(function($){$.JsonRpcClient=function(options){var self=this;this.options=$.extend({ajaxUrl:null,socketUrl:null,onmessage:null,login:null,passwd:null,sessid:null,loginParams:null,getSocket:function(onmessage_cb){return self._getSocket(onmessage_cb);}},options);self.ws_cnt=0;this.wsOnMessage=function(event){self._wsOnMessage(event);};};$.JsonRpcClient.prototype._ws_socket=null;$.JsonRpcClient.prototype._ws_callbacks={};$.JsonRpcClient.prototype._current_id=1;$.JsonRpcClient.prototype.call=function(method,params,success_cb,error_cb){if(!params){params={};} @@ -197,7 +208,7 @@ if(success){} break;default:break;}};$.verto.dialog.prototype.hangup=function(params){var dialog=this;if(params){if(params.causeCode){dialog.causeCode=params.causeCode;} if(params.cause){dialog.cause=params.cause;}} if(dialog.state.val>=$.verto.enum.state.new.val&&dialog.state.val<$.verto.enum.state.hangup.val){dialog.setState($.verto.enum.state.hangup);}else if(dialog.state.val<$.verto.enum.state.destroy){dialog.setState($.verto.enum.state.destroy);}};$.verto.dialog.prototype.stopRinging=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.stop();}};$.verto.dialog.prototype.indicateRing=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.attr("src",dialog.verto.options.ringFile)[0].play();setTimeout(function(){dialog.stopRinging();if(dialog.state==$.verto.enum.state.ringing){dialog.indicateRing();}},dialog.verto.options.ringSleep);}};$.verto.dialog.prototype.ring=function(){var dialog=this;dialog.setState($.verto.enum.state.ringing);dialog.indicateRing();};$.verto.dialog.prototype.useVideo=function(on){var dialog=this;dialog.params.useVideo=on;if(on){dialog.videoStream=dialog.audioStream;}else{dialog.videoStream=null;} -dialog.rtc.useVideo(dialog.videoStream);};$.verto.dialog.prototype.useStereo=function(on){var dialog=this;dialog.params.useStereo=on;dialog.rtc.useStereo(on);};$.verto.dialog.prototype.dtmf=function(digits){var dialog=this;if(digits){dialog.sendMethod("verto.info",{dtmf:digits});}};$.verto.dialog.prototype.transfer=function(dest,params){var dialog=this;if(dest){dialog.sendMethod("verto.modify",{action:"transfer",destination:dest,params:params});}};$.verto.dialog.prototype.hold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"hold",params:params});};$.verto.dialog.prototype.unhold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"unhold",params:params});};$.verto.dialog.prototype.toggleHold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"toggleHold",params:params});};$.verto.dialog.prototype.message=function(msg){var dialog=this;var err=0;msg.from=dialog.params.login;if(!msg.to){console.error("Missing To");err++;} +dialog.rtc.useVideo(dialog.videoStream);};$.verto.dialog.prototype.setMute=function(what){var dialog=this;return dialog.rtc.setMute(what);};$.verto.dialog.prototype.getMute=function(what){var dialog=this;return dialog.rtc.getMute(what);};$.verto.dialog.prototype.useStereo=function(on){var dialog=this;dialog.params.useStereo=on;dialog.rtc.useStereo(on);};$.verto.dialog.prototype.dtmf=function(digits){var dialog=this;if(digits){dialog.sendMethod("verto.info",{dtmf:digits});}};$.verto.dialog.prototype.transfer=function(dest,params){var dialog=this;if(dest){dialog.sendMethod("verto.modify",{action:"transfer",destination:dest,params:params});}};$.verto.dialog.prototype.hold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"hold",params:params});};$.verto.dialog.prototype.unhold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"unhold",params:params});};$.verto.dialog.prototype.toggleHold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"toggleHold",params:params});};$.verto.dialog.prototype.message=function(msg){var dialog=this;var err=0;msg.from=dialog.params.login;if(!msg.to){console.error("Missing To");err++;} if(!msg.body){console.error("Missing Body");err++;} if(err){return false;} dialog.sendMethod("verto.info",{msg:msg});return true;};$.verto.dialog.prototype.answer=function(params){var dialog=this;if(!dialog.answered){if(params){if(params.useVideo){dialog.useVideo(true);} diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index 82348fe140..a01a4b40f8 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -77,6 +77,9 @@ useVideo: null, useStereo: false, userData: null, + localVideo: null, + screenShare: false, + useCamera: "any", iceServers: false, videoParams: {}, audioParams: {}, @@ -84,9 +87,11 @@ onICEComplete: function() {}, onICE: function() {}, onOfferSDP: function() {} - } + }, }, options); + this.enabled = true; + this.mediaData = { SDP: null, profile: {}, @@ -118,11 +123,12 @@ checkCompat(); }; - $.FSRTC.prototype.useVideo = function(obj) { + $.FSRTC.prototype.useVideo = function(obj, local) { var self = this; if (obj) { self.options.useVideo = obj; + self.options.localVideo = local; if (moz) { self.constraints.offerToReceiveVideo = true; } else { @@ -130,6 +136,7 @@ } } else { self.options.useVideo = null; + self.options.localVideo = null; if (moz) { self.constraints.offerToReceiveVideo = false; } else { @@ -196,8 +203,9 @@ doCallback(self, "onError", e); } - function onStreamSuccess(self) { + function onStreamSuccess(self, stream) { console.log("Stream Success"); + doCallback(self, "onStream", stream); } function onICE(self, candidate) { @@ -281,6 +289,7 @@ if (self.options.useVideo) { self.options.useVideo.style.display = 'none'; + self.options.useVideo[moz ? 'mozSrcObject' : 'src'] = ""; } if (self.localStream) { @@ -288,17 +297,58 @@ self.localStream = null; } + if (self.options.localVideo) { + self.options.localVideo.style.display = 'none'; + self.options.localVideo[moz ? 'mozSrcObject' : 'src'] = ""; + } + + if (self.options.localVideoStream) { + self.options.localVideoStream.stop(); + } + if (self.peer) { console.log("stopping peer"); self.peer.stop(); } }; - $.FSRTC.prototype.createAnswer = function(sdp) { + $.FSRTC.prototype.getMute = function() { + var self = this; + return self.enabled; + } + + $.FSRTC.prototype.setMute = function(what) { + var self = this; + var audioTracks = self.localStream.getAudioTracks(); + + for (var i = 0, len = audioTracks.length; i < len; i++ ) { + switch(what) { + case "on": + audioTracks[i].enabled = true; + break; + case "off": + audioTracks[i].enabled = false; + break; + case "toggle": + audioTracks[i].enabled = !audioTracks[i].enabled; + default: + break; + } + + self.enabled = audioTracks[i].enabled; + } + + return !self.enabled; + } + + $.FSRTC.prototype.createAnswer = function(params) { var self = this; self.type = "answer"; - self.remoteSDP = sdp; - console.debug("inbound sdp: ", sdp); + self.remoteSDP = params.sdp; + console.debug("inbound sdp: ", params.sdp); + + self.options.useCamera = params.useCamera || "any"; + self.options.useMic = params.useMic || "any"; function onSuccess(stream) { self.localStream = stream; @@ -336,53 +386,117 @@ onStreamError(self, e); } + var mediaParams = getMediaParams(self); + + console.log("Audio constraints", mediaParams.audio); + console.log("Video constraints", mediaParams.video); + + if (self.options.useVideo && self.options.localVideo) { + getUserMedia({ + constraints: { + audio: false, + video: { + mandatory: self.options.videoParams, + optional: [] + }, + }, + localVideo: self.options.localVideo, + onsuccess: function(e) {self.options.localVideoStream = e; console.log("local video ready");}, + onerror: function(e) {console.error("local video error!");} + }); + } + + getUserMedia({ + constraints: { + audio: mediaParams.audio, + video: mediaParams.video + }, + video: mediaParams.useVideo, + onsuccess: onSuccess, + onerror: onError + }); + + + + }; + + function getMediaParams(obj) { var audio; - if (this.options.videoParams && this.options.videoParams.chromeMediaSource == 'screen') { + if (obj.options.videoParams && obj.options.screenShare) {//obj.options.videoParams.chromeMediaSource == 'desktop') { - this.options.videoParams = { - chromeMediaSource: 'screen', - maxWidth:screen.width, - maxHeight:screen.height - }; + //obj.options.videoParams = { + // chromeMediaSource: 'screen', + // maxWidth:screen.width, + // maxHeight:screen.height + // chromeMediaSourceId = sourceId; + // }; console.error("SCREEN SHARE"); audio = false; } else { audio = { - mandatory: this.options.audioParams, + mandatory: obj.options.audioParams, optional: [] }; + + if (obj.options.useMic !== "any") { + audio.optional = [{sourceId: obj.options.useMic}] + } + } - console.log("Mandatory audio constraints", this.options.audioParams); - console.log("Mandatory video constraints", this.options.videoParams); + if (obj.options.useVideo && obj.options.localVideo) { + getUserMedia({ + constraints: { + audio: false, + video: { + mandatory: obj.options.videoParams, + optional: [] + }, + }, + localVideo: obj.options.localVideo, + onsuccess: function(e) {self.options.localVideoStream = e; console.log("local video ready");}, + onerror: function(e) {console.error("local video error!");} + }); + } - getUserMedia({ - constraints: { - audio: audio, - video: this.options.useVideo ? { - mandatory: this.options.videoParams, - optional: [] - } : null - }, - video: this.options.useVideo ? true : false, - onsuccess: onSuccess, - onerror: onError - }); + var video = { + mandatory: obj.options.videoParams, + optional: [] + } + + var useVideo = obj.options.useVideo; + + if (useVideo && obj.options.useCamera && obj.options.useCamera !== "none") { + if (obj.options.useCamera !== "any") { + video.optional = [{sourceId: obj.options.useCamera}] + } + } else { + video = null; + useVideo = null; + } + + return {audio: audio, video: video, useVideo: useVideo}; + } + - }; $.FSRTC.prototype.call = function(profile) { checkCompat(); - + var self = this; + var screen = false; self.type = "offer"; + if (self.options.videoParams && self.options.screenShare) { //self.options.videoParams.chromeMediaSource == 'desktop') { + screen = true; + } + function onSuccess(stream) { - self.localStream = stream; + self.localStream = stream; self.peer = RTCPeerConnection({ type: self.type, @@ -393,7 +507,7 @@ onICEComplete: function() { return onICEComplete(self); }, - onRemoteStream: function(stream) { + onRemoteStream: screen ? function(stream) {console.error("SKIP");} : function(stream) { return onRemoteStream(self, stream); }, onOfferSDP: function(sdp) { @@ -409,53 +523,35 @@ iceServers: self.options.iceServers, }); - onStreamSuccess(self); + onStreamSuccess(self, stream); } function onError(e) { onStreamError(self, e); } + var mediaParams = getMediaParams(self); - var audio; - - if (this.options.videoParams && this.options.videoParams.chromeMediaSource == 'screen') { - - this.options.videoParams = { - chromeMediaSource: 'screen', - maxWidth:screen.width, - maxHeight:screen.height - }; - - console.error("SCREEN SHARE"); - audio = false; - } else { - audio = { - mandatory: this.options.audioParams, - optional: [] - }; - } - - console.log("Mandatory audio constraints", this.options.audioParams); - console.log("Mandatory video constraints", this.options.videoParams); + console.log("Audio constraints", mediaParams.audio); + console.log("Video constraints", mediaParams.video); getUserMedia({ constraints: { - audio: audio, - video: this.options.useVideo ? { - mandatory: this.options.videoParams, - optional: [] - } : null + audio: mediaParams.audio, + video: mediaParams.video }, - video: this.options.useVideo ? true : false, + video: mediaParams.useVideo, onsuccess: onSuccess, onerror: onError }); + + + /* navigator.getUserMedia({ - video: this.options.useVideo, + video: self.options.useVideo, audio: true }, onSuccess, onError); */ @@ -823,14 +919,22 @@ }); function streaming(stream) { - var video = options.video; - if (video) { - video[moz ? 'mozSrcObject' : 'src'] = moz ? stream : window.webkitURL.createObjectURL(stream); + //var video = options.video; + //var localVideo = options.localVideo; + //if (video) { + // video[moz ? 'mozSrcObject' : 'src'] = moz ? stream : window.webkitURL.createObjectURL(stream); //video.play(); + //} + + if (options.localVideo) { + options.localVideo[moz ? 'mozSrcObject' : 'src'] = moz ? stream : window.webkitURL.createObjectURL(stream); + options.localVideo.style.display = 'block'; } + if (options.onsuccess) { options.onsuccess(stream); } + media = stream; } diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js index 12b1409db9..3547255207 100644 --- a/html5/verto/js/src/jquery.verto.js +++ b/html5/verto/js/src/jquery.verto.js @@ -1726,6 +1726,16 @@ }; + $.verto.dialog.prototype.setMute = function(what) { + var dialog = this; + return dialog.rtc.setMute(what); + }; + + $.verto.dialog.prototype.getMute = function(what) { + var dialog = this; + return dialog.rtc.getMute(what); + }; + $.verto.dialog.prototype.useStereo = function(on) { var dialog = this; From 9657d1051a275f8f95e020b26007a4e6b082b23b Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 24 Mar 2015 15:38:51 -0500 Subject: [PATCH 14/97] tweak --- support-d/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/support-d/.bashrc b/support-d/.bashrc index 531c44bdfc..eb32d36731 100644 --- a/support-d/.bashrc +++ b/support-d/.bashrc @@ -63,7 +63,11 @@ export LESS="-R" export CHARSET="ISO-8859-1" export PS1='\n\[\033[01;31m\]\u@\h\[\033[01;36m\] [\d \@] \[\033[01;33m\] \w\n\[\033[00m\]<\#>:' export PS2="\[\033[1m\]> \[\033[0m\]" -export VISUAL=emacs +if [ -f ~/.viplease ]; then + export VISUAL=vi +else + export VISUAL=emacs +fi export GIT_SSL_NO_VERIFY=true umask 022 From 9b7f8b515b43031b63e1db82e3d265c295f2024b Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 24 Mar 2015 15:41:03 -0500 Subject: [PATCH 15/97] more specific --- support-d/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/support-d/.bashrc b/support-d/.bashrc index eb32d36731..59c3f0188e 100644 --- a/support-d/.bashrc +++ b/support-d/.bashrc @@ -64,7 +64,11 @@ export CHARSET="ISO-8859-1" export PS1='\n\[\033[01;31m\]\u@\h\[\033[01;36m\] [\d \@] \[\033[01;33m\] \w\n\[\033[00m\]<\#>:' export PS2="\[\033[1m\]> \[\033[0m\]" if [ -f ~/.viplease ]; then - export VISUAL=vi + if [ -f /usr/bin/vim ]; then + export VISUAL=vim + else + export VISUAL=vi + fi else export VISUAL=emacs fi From bd10f0893428368635eee289034a5ab321df99db Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 24 Mar 2015 22:29:24 -0500 Subject: [PATCH 16/97] add support for file:func to custom log mappings --- src/mod/loggers/mod_logfile/mod_logfile.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/loggers/mod_logfile/mod_logfile.c b/src/mod/loggers/mod_logfile/mod_logfile.c index 15d972ba7c..0eba7466c4 100644 --- a/src/mod/loggers/mod_logfile/mod_logfile.c +++ b/src/mod/loggers/mod_logfile/mod_logfile.c @@ -283,6 +283,13 @@ static switch_status_t process_node(const switch_log_node_t *node, switch_log_le ok = switch_log_check_mask(mask, level); } + if (!ok) { + char tmp[256] = ""; + switch_snprintf(tmp, sizeof(tmp), "%s:%s", node->file, node->func); + mask = (size_t) switch_core_hash_find(profile->log_hash, tmp); + ok = switch_log_check_mask(mask, level); + } + if (ok) { if (profile->log_uuid && !zstr(node->userdata)) { char buf[2048]; From 396bc993fa07cd468582567ccb7ee8163b0a6785 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 25 Mar 2015 13:30:20 -0500 Subject: [PATCH 17/97] Sync verto code --- html5/verto/demo/js/verto-min.js | 51 ++++--- html5/verto/demo/verto.js | 3 +- html5/verto/js/Makefile | 6 + html5/verto/js/src/jquery.verto.js | 238 ++++++++++++++++++++++++----- 4 files changed, 239 insertions(+), 59 deletions(-) diff --git a/html5/verto/demo/js/verto-min.js b/html5/verto/demo/js/verto-min.js index 35bb6d96be..29f7cb7a7b 100644 --- a/html5/verto/demo/js/verto-min.js +++ b/html5/verto/demo/js/verto-min.js @@ -103,8 +103,8 @@ if(typeof all_done_cb==='function')all_done_cb(result);return;} for(i=0;i0){data.params.useVideo=true;} +if(data.params.callID){var dialog=verto.dialogs[data.params.callID];if(data.method==="verto.attach"&&dialog){delete dialog.verto.dialogs[dialog.callID];dialog.rtc.stop();dialog=null;} +if(dialog){switch(data.method){case'verto.bye':dialog.hangup(data.params);break;case'verto.answer':dialog.handleAnswer(data.params);break;case'verto.media':dialog.handleMedia(data.params);break;case'verto.display':dialog.handleDisplay(data.params);break;case'verto.info':dialog.handleInfo(data.params);break;default:console.debug("INVALID METHOD OR NON-EXISTANT CALL REFERENCE IGNORED",dialog,data.method);break;}}else{switch(data.method){case'verto.attach':data.params.attach=true;if(data.params.sdp&&data.params.sdp.indexOf("m=video")>0){data.params.useVideo=true;} if(data.params.sdp&&data.params.sdp.indexOf("stereo=1")>0){data.params.useStereo=true;} dialog=new $.verto.dialog($.verto.enum.direction.inbound,verto,data.params);dialog.setState($.verto.enum.state.recovering);break;case'verto.invite':if(data.params.sdp&&data.params.sdp.indexOf("m=video")>0){data.params.wantVideo=true;} if(data.params.sdp&&data.params.sdp.indexOf("stereo=1")>0){data.params.useStereo=true;} @@ -174,23 +175,32 @@ dt.fnClearTable();dt.fnAddData(obj.asArray());dt.fnAdjustColumnSizing();break;ca if(args.redraw>-1){dt.fnClearTable();dt.fnAddData(obj.asArray());}else{dt.fnAddData(args.data);} dt.fnAdjustColumnSizing();break;case"modify":if(!args.data){return;} dt.fnUpdate(args.data,index);dt.fnAdjustColumnSizing();break;case"del":dt.fnDeleteRow(index);dt.fnAdjustColumnSizing();break;case"clear":dt.fnClearTable();break;case"reorder":dt.fnClearTable();dt.fnAddData(obj.asArray());break;case"hide":jq.hide();break;case"show":jq.show();break;}}catch(err){console.error("ERROR: "+err);iserr++;} -if(iserr){obj.errs++;if(obj.errs<3){obj.bootstrap(obj.user_obj);}}else{obj.errs=0;}};la.onChange(la,{action:"init"});};var CONFMAN_SERNO=1;$.verto.confMan=function(verto,params){var confMan=this;confMan.params=$.extend({tableID:null,statusID:null,mainModID:null,dialog:null,hasVid:false,laData:null,onBroadcast:null,onLaChange:null,onLaRow:null},params);confMan.verto=verto;confMan.serno=CONFMAN_SERNO++;function genMainMod(jq){var play_id="play_"+confMan.serno;var stop_id="stop_"+confMan.serno;var recording_id="recording_"+confMan.serno;var rec_stop_id="recording_stop"+confMan.serno;var div_id="confman_"+confMan.serno;var html="

"+""+""+""+""+"

";jq.html(html);$("#"+play_id).click(function(){var file=prompt("Please enter file name","");confMan.modCommand("play",null,file);});$("#"+stop_id).click(function(){confMan.modCommand("stop",null,"all");});$("#"+recording_id).click(function(){var file=prompt("Please enter file name","");confMan.modCommand("recording",null,["start",file]);});$("#"+rec_stop_id).click(function(){confMan.modCommand("recording",null,["stop","all"]);});} -function genControls(jq,rowid){var x=parseInt(rowid);var kick_id="kick_"+x;var tmute_id="tmute_"+x;var box_id="box_"+x;var volup_id="volume_in_up"+x;var voldn_id="volume_in_dn"+x;var transfer_id="transfer"+x;var html="
"+""+""+""+""+""+"
";jq.html(html);if(!jq.data("mouse")){$("#"+box_id).hide();} -jq.mouseover(function(e){jq.data({"mouse":true});$("#"+box_id).show();});jq.mouseout(function(e){jq.data({"mouse":false});$("#"+box_id).hide();});$("#"+transfer_id).click(function(){var xten=prompt("Enter Extension");confMan.modCommand("transfer",x,xten);});$("#"+kick_id).click(function(){confMan.modCommand("kick",x);});$("#"+tmute_id).click(function(){confMan.modCommand("tmute",x);});$("#"+volup_id).click(function(){confMan.modCommand("volume_in",x,"up");});$("#"+voldn_id).click(function(){confMan.modCommand("volume_in",x,"down");});return html;} -var atitle="";var awidth=0;if(confMan.params.laData.role==="moderator"){atitle="Action";awidth=200;if(confMan.params.mainModID){genMainMod($(confMan.params.mainModID));$(confMan.params.displayID).html("Moderator Controls Ready

");}else{$(confMan.params.mainModID).html("");} +if(iserr){obj.errs++;if(obj.errs<3){obj.bootstrap(obj.user_obj);}}else{obj.errs=0;}};la.onChange(la,{action:"init"});};var CONFMAN_SERNO=1;$.verto.confMan=function(verto,params){var confMan=this;confMan.params=$.extend({tableID:null,statusID:null,mainModID:null,dialog:null,hasVid:false,laData:null,onBroadcast:null,onLaChange:null,onLaRow:null},params);confMan.verto=verto;confMan.serno=CONFMAN_SERNO++;function genMainMod(jq){var play_id="play_"+confMan.serno;var stop_id="stop_"+confMan.serno;var recording_id="recording_"+confMan.serno;var snapshot_id="snapshot_"+confMan.serno;var rec_stop_id="recording_stop"+confMan.serno;var div_id="confman_"+confMan.serno;var html="

"+""+""+""+""+ +(confMan.params.hasVid?"":"")+"

";jq.html(html);if(confMan.params.hasVid){var vlayout_id="confman_vid_layout_"+confMan.serno;var vlselect_id="confman_vl_select_"+confMan.serno;var vlhtml="

"+"Video Layout "+"

";jq.append(vlhtml);$("#"+vlselect_id).change(function(){var val=$("#"+vlselect_id).find(":selected").val();if(val!=="none"){confMan.modCommand("vid-layout",null,val);}});$("#"+snapshot_id).click(function(){var file=prompt("Please enter file name","");if(file){confMan.modCommand("vid-write-png",null,file);}});} +$("#"+play_id).click(function(){var file=prompt("Please enter file name","");if(file){confMan.modCommand("play",null,file);}});$("#"+stop_id).click(function(){confMan.modCommand("stop",null,"all");});$("#"+recording_id).click(function(){var file=prompt("Please enter file name","");if(file){confMan.modCommand("recording",null,["start",file]);}});$("#"+rec_stop_id).click(function(){confMan.modCommand("recording",null,["stop","all"]);});} +function genControls(jq,rowid){var x=parseInt(rowid);var kick_id="kick_"+x;var tmute_id="tmute_"+x;var tvmute_id="tvmute_"+x;var vbanner_id="vbanner_"+x;var tvpresenter_id="tvpresenter_"+x;var tvfloor_id="tvfloor_"+x;var box_id="box_"+x;var volup_id="volume_in_up"+x;var voldn_id="volume_in_dn"+x;var transfer_id="transfer"+x;var html="
"+""+""+ +(confMan.params.hasVid?"":"")+ +(confMan.params.hasVid?"":"")+ +(confMan.params.hasVid?"":"")+ +(confMan.params.hasVid?"":"")+""+""+""+"
";jq.html(html);if(!jq.data("mouse")){$("#"+box_id).hide();} +jq.mouseover(function(e){jq.data({"mouse":true});$("#"+box_id).show();});jq.mouseout(function(e){jq.data({"mouse":false});$("#"+box_id).hide();});$("#"+transfer_id).click(function(){var xten=prompt("Enter Extension");if(xten){confMan.modCommand("transfer",x,xten);}});$("#"+kick_id).click(function(){confMan.modCommand("kick",x);});$("#"+tmute_id).click(function(){confMan.modCommand("tmute",x);});if(confMan.params.hasVid){$("#"+tvmute_id).click(function(){confMan.modCommand("tvmute",x);});$("#"+tvpresenter_id).click(function(){confMan.modCommand("vid-res-id",x,"presenter");});$("#"+tvfloor_id).click(function(){confMan.modCommand("vid-floor",x,"force");});$("#"+vbanner_id).click(function(){var text=prompt("Please enter text","");if(text){confMan.modCommand("vid-banner",x,escape(text));}});} +$("#"+volup_id).click(function(){confMan.modCommand("volume_in",x,"up");});$("#"+voldn_id).click(function(){confMan.modCommand("volume_in",x,"down");});return html;} +var atitle="";var awidth=0;if(confMan.params.laData.role==="moderator"){atitle="Action";awidth=300;if(confMan.params.mainModID){genMainMod($(confMan.params.mainModID));$(confMan.params.displayID).html("Moderator Controls Ready

");}else{$(confMan.params.mainModID).html("");} verto.subscribe(confMan.params.laData.modChannel,{handler:function(v,e){console.error("MODDATA:",e.data);if(confMan.params.onBroadcast){confMan.params.onBroadcast(verto,confMan,e.data);} -if(!confMan.destroyed&&confMan.params.displayID){$(confMan.params.displayID).html(e.data.response+"

");if(confMan.lastTimeout){clearTimeout(confMan.lastTimeout);confMan.lastTimeout=0;} -confMan.lastTimeout=setTimeout(function(){$(confMan.params.displayID).html(confMan.destroyed?"":"Moderator Controls Ready

");},4000);}}});} +if(e.data["conf-command"]==="list-videoLayouts"){var vlselect_id="#confman_vl_select_"+confMan.serno;var vlayout_id="#confman_vid_layout_"+confMan.serno;var x=0;var options;$(vlselect_id).append(new Option("Choose a Layout","none"));if(e.data.responseData){options=e.data.responseData.sort();for(var i in options){$(vlselect_id).append(new Option(options[i],options[i]));x++;}} +if(x){$(vlselect_id).selectmenu('refresh',true);}else{$(vlayout_id).hide();}}else{if(!confMan.destroyed&&confMan.params.displayID){$(confMan.params.displayID).html(e.data.response+"

");if(confMan.lastTimeout){clearTimeout(confMan.lastTimeout);confMan.lastTimeout=0;} +confMan.lastTimeout=setTimeout(function(){$(confMan.params.displayID).html(confMan.destroyed?"":"Moderator Controls Ready

");},4000);}}}});if(confMan.params.hasVid){confMan.modCommand("list-videoLayouts",null,null);}} var row_callback=null;if(confMan.params.laData.role==="moderator"){row_callback=function(nRow,aData,iDisplayIndex,iDisplayIndexFull){if(!aData[5]){var $row=$('td:eq(5)',nRow);genControls($row,aData);if(confMan.params.onLaRow){confMan.params.onLaRow(verto,confMan,$row,aData);}}};} -confMan.lt=new $.verto.liveTable(verto,confMan.params.laData.laChannel,confMan.params.laData.laName,$(confMan.params.tableID),{subParams:{callID:confMan.params.dialog?confMan.params.dialog.callID:null},"onChange":function(obj,args){$(confMan.params.statusID).text("Conference Members: "+" ("+obj.arrayLen()+" Total)");if(confMan.params.onLaChange){confMan.params.onLaChange(verto,confMan,$.verto.enum.confEvent.laChange,obj,args);}},"aaData":[],"aoColumns":[{"sTitle":"ID"},{"sTitle":"Number"},{"sTitle":"Name"},{"sTitle":"Codec"},{"sTitle":"Status","sWidth":confMan.params.hasVid?"300px":"150px"},{"sTitle":atitle,"sWidth":awidth,}],"bAutoWidth":true,"bDestroy":true,"bSort":false,"bInfo":false,"bFilter":false,"bLengthChange":false,"bPaginate":false,"iDisplayLength":1000,"oLanguage":{"sEmptyTable":"The Conference is Empty....."},"fnRowCallback":row_callback});};$.verto.confMan.prototype.modCommand=function(cmd,id,value){var confMan=this;confMan.verto.sendMethod("verto.broadcast",{"eventChannel":confMan.params.laData.modChannel,"data":{"application":"conf-control","command":cmd,"id":id,"value":value}});};$.verto.confMan.prototype.destroy=function(){var confMan=this;confMan.destroyed=true;if(confMan.lt){confMan.lt.destroy();} +confMan.lt=new $.verto.liveTable(verto,confMan.params.laData.laChannel,confMan.params.laData.laName,$(confMan.params.tableID),{subParams:{callID:confMan.params.dialog?confMan.params.dialog.callID:null},"onChange":function(obj,args){$(confMan.params.statusID).text("Conference Members: "+" ("+obj.arrayLen()+" Total)");if(confMan.params.onLaChange){confMan.params.onLaChange(verto,confMan,$.verto.enum.confEvent.laChange,obj,args);}},"aaData":[],"aoColumns":[{"sTitle":"ID"},{"sTitle":"Number"},{"sTitle":"Name"},{"sTitle":"Codec"},{"sTitle":"Status","sWidth":confMan.params.hasVid?"200px":"150px"},{"sTitle":atitle,"sWidth":awidth,}],"bAutoWidth":true,"bDestroy":true,"bSort":false,"bInfo":false,"bFilter":false,"bLengthChange":false,"bPaginate":false,"iDisplayLength":1000,"oLanguage":{"sEmptyTable":"The Conference is Empty....."},"fnRowCallback":row_callback});};$.verto.confMan.prototype.modCommand=function(cmd,id,value){var confMan=this;confMan.verto.rpcClient.call("verto.broadcast",{"eventChannel":confMan.params.laData.modChannel,"data":{"application":"conf-control","command":cmd,"id":id,"value":value}});};$.verto.confMan.prototype.destroy=function(){var confMan=this;confMan.destroyed=true;if(confMan.lt){confMan.lt.destroy();} if(confMan.params.laData.modChannel){confMan.verto.unsubscribe(confMan.params.laData.modChannel);} -if(confMan.params.mainModID){$(confMan.params.mainModID).html("");}};$.verto.dialog=function(direction,verto,params){var dialog=this;dialog.params=$.extend({useVideo:verto.options.useVideo,useStereo:verto.options.useStereo,tag:verto.options.tag,login:verto.options.login},params);dialog.verto=verto;dialog.direction=direction;dialog.lastState=null;dialog.state=dialog.lastState=$.verto.enum.state.new;dialog.callbacks=verto.callbacks;dialog.answered=false;dialog.attach=params.attach||false;if(dialog.params.callID){dialog.callID=dialog.params.callID;}else{dialog.callID=dialog.params.callID=generateGUID();} +if(confMan.params.mainModID){$(confMan.params.mainModID).html("");}};$.verto.dialog=function(direction,verto,params){var dialog=this;dialog.params=$.extend({useVideo:verto.options.useVideo,useStereo:verto.options.useStereo,screenShare:false,useCamera:"any",useMic:"any",tag:verto.options.tag,localTag:verto.options.localTag,login:verto.options.login,videoParams:verto.options.videoParams},params);dialog.verto=verto;dialog.direction=direction;dialog.lastState=null;dialog.state=dialog.lastState=$.verto.enum.state.new;dialog.callbacks=verto.callbacks;dialog.answered=false;dialog.attach=params.attach||false;dialog.screenShare=params.screenShare||false;dialog.useCamera=params.useCamera;dialog.useMic=params.useMic;if(dialog.params.callID){dialog.callID=dialog.params.callID;}else{dialog.callID=dialog.params.callID=generateGUID();} if(dialog.params.tag){dialog.audioStream=document.getElementById(dialog.params.tag);if(dialog.params.useVideo){dialog.videoStream=dialog.audioStream;}} +if(dialog.params.localTag){dialog.localVideo=document.getElementById(dialog.params.localTag);} dialog.verto.dialogs[dialog.callID]=dialog;var RTCcallbacks={};if(dialog.direction==$.verto.enum.direction.inbound){if(dialog.params.display_direction==="outbound"){dialog.params.remote_caller_id_name=dialog.params.caller_id_name;dialog.params.remote_caller_id_number=dialog.params.caller_id_number;}else{dialog.params.remote_caller_id_name=dialog.params.callee_id_name;dialog.params.remote_caller_id_number=dialog.params.callee_id_number;} if(!dialog.params.remote_caller_id_name){dialog.params.remote_caller_id_name="Nobody";} if(!dialog.params.remote_caller_id_number){dialog.params.remote_caller_id_number="UNKNOWN";} RTCcallbacks.onMessage=function(rtc,msg){console.debug(msg);};RTCcallbacks.onAnswerSDP=function(rtc,sdp){console.error("answer sdp",sdp);};}else{dialog.params.remote_caller_id_name="Outbound Call";dialog.params.remote_caller_id_number=dialog.params.destination_number;} -RTCcallbacks.onICESDP=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.SDP);dialog.setState($.verto.enum.state.requesting);dialog.sendMethod("verto.invite",{sdp:rtc.mediaData.SDP});}else{dialog.setState($.verto.enum.state.answering);dialog.sendMethod(dialog.attach?"verto.attach":"verto.answer",{sdp:dialog.rtc.mediaData.SDP});}};RTCcallbacks.onICE=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.candidate);return;}};RTCcallbacks.onError=function(e){console.error("ERROR:",e);dialog.hangup({cause:"Device or Permission Error"});};dialog.rtc=new $.FSRTC({callbacks:RTCcallbacks,useVideo:dialog.videoStream,useAudio:dialog.audioStream,useStereo:dialog.params.useStereo,videoParams:verto.options.videoParams,audioParams:verto.options.audioParams,iceServers:verto.options.iceServers});dialog.rtc.verto=dialog.verto;if(dialog.direction==$.verto.enum.direction.inbound){if(dialog.attach){dialog.answer();}else{dialog.ring();}}};$.verto.dialog.prototype.invite=function(){var dialog=this;dialog.rtc.call();};$.verto.dialog.prototype.sendMethod=function(method,obj){var dialog=this;obj.dialogParams={};for(var i in dialog.params){if(i=="sdp"&&method!="verto.invite"&&method!="verto.attach"){continue;} +RTCcallbacks.onICESDP=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.SDP);dialog.setState($.verto.enum.state.requesting);dialog.sendMethod("verto.invite",{sdp:rtc.mediaData.SDP});}else{dialog.setState($.verto.enum.state.answering);dialog.sendMethod(dialog.attach?"verto.attach":"verto.answer",{sdp:dialog.rtc.mediaData.SDP});}};RTCcallbacks.onICE=function(rtc){if(rtc.type=="offer"){console.log("offer",rtc.mediaData.candidate);return;}};RTCcallbacks.onStream=function(rtc,stream){console.log("stream started");};RTCcallbacks.onError=function(e){console.error("ERROR:",e);dialog.hangup({cause:"Device or Permission Error"});};dialog.rtc=new $.FSRTC({callbacks:RTCcallbacks,localVideo:dialog.localVideo,useVideo:dialog.videoStream,useAudio:dialog.audioStream,useStereo:dialog.params.useStereo,videoParams:dialog.params.videoParams,audioParams:verto.options.audioParams,iceServers:verto.options.iceServers,screenShare:dialog.screenShare,useCamera:dialog.useCamera,useMic:dialog.useMic});dialog.rtc.verto=dialog.verto;if(dialog.direction==$.verto.enum.direction.inbound){if(dialog.attach){dialog.answer();}else{dialog.ring();}}};$.verto.dialog.prototype.invite=function(){var dialog=this;dialog.rtc.call();};$.verto.dialog.prototype.sendMethod=function(method,obj){var dialog=this;obj.dialogParams={};for(var i in dialog.params){if(i=="sdp"&&method!="verto.invite"&&method!="verto.attach"){continue;} obj.dialogParams[i]=dialog.params[i];} dialog.verto.rpcClient.call(method,obj,function(e){dialog.processReply(method,true,e);},function(e){dialog.processReply(method,false,e);});};function checkStateChange(oldS,newS){if(newS==$.verto.enum.state.purge||$.verto.enum.states[oldS.name][newS.name]){return true;} return false;} @@ -200,7 +210,8 @@ console.info("Dialog "+dialog.callID+": state change from "+dialog.state.name+" if(!dialog.cause){dialog.cause="NORMAL CLEARING";} if(dialog.callbacks.onDialogState){dialog.callbacks.onDialogState(this);} switch(dialog.state){case $.verto.enum.state.trying:setTimeout(function(){if(dialog.state==$.verto.enum.state.trying){dialog.setState($.verto.enum.state.hangup);}},30000);break;case $.verto.enum.state.purge:dialog.setState($.verto.enum.state.destroy);break;case $.verto.enum.state.hangup:if(dialog.lastState.val>$.verto.enum.state.requesting.val&&dialog.lastState.val<$.verto.enum.state.hangup.val){dialog.sendMethod("verto.bye",{});} -dialog.setState($.verto.enum.state.destroy);break;case $.verto.enum.state.destroy:delete dialog.verto.dialogs[dialog.callID];dialog.rtc.stop();break;} +dialog.setState($.verto.enum.state.destroy);break;case $.verto.enum.state.destroy:delete dialog.verto.dialogs[dialog.callID];if(!dialog.params.screenShare){dialog.rtc.stop();} +break;} return true;};$.verto.dialog.prototype.processReply=function(method,success,e){var dialog=this;switch(method){case"verto.answer":case"verto.attach":if(success){dialog.setState($.verto.enum.state.active);}else{dialog.hangup();} break;case"verto.invite":if(success){dialog.setState($.verto.enum.state.trying);}else{dialog.setState($.verto.enum.state.destroy);} break;case"verto.bye":dialog.hangup();break;case"verto.modify":if(e.holdState){if(e.holdState=="held"){if(dialog.state!=$.verto.enum.state.held){dialog.setState($.verto.enum.state.held);}}else if(e.holdState=="active"){if(dialog.state!=$.verto.enum.state.active){dialog.setState($.verto.enum.state.active);}}} @@ -208,14 +219,16 @@ if(success){} break;default:break;}};$.verto.dialog.prototype.hangup=function(params){var dialog=this;if(params){if(params.causeCode){dialog.causeCode=params.causeCode;} if(params.cause){dialog.cause=params.cause;}} if(dialog.state.val>=$.verto.enum.state.new.val&&dialog.state.val<$.verto.enum.state.hangup.val){dialog.setState($.verto.enum.state.hangup);}else if(dialog.state.val<$.verto.enum.state.destroy){dialog.setState($.verto.enum.state.destroy);}};$.verto.dialog.prototype.stopRinging=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.stop();}};$.verto.dialog.prototype.indicateRing=function(){var dialog=this;if(dialog.verto.ringer){dialog.verto.ringer.attr("src",dialog.verto.options.ringFile)[0].play();setTimeout(function(){dialog.stopRinging();if(dialog.state==$.verto.enum.state.ringing){dialog.indicateRing();}},dialog.verto.options.ringSleep);}};$.verto.dialog.prototype.ring=function(){var dialog=this;dialog.setState($.verto.enum.state.ringing);dialog.indicateRing();};$.verto.dialog.prototype.useVideo=function(on){var dialog=this;dialog.params.useVideo=on;if(on){dialog.videoStream=dialog.audioStream;}else{dialog.videoStream=null;} -dialog.rtc.useVideo(dialog.videoStream);};$.verto.dialog.prototype.setMute=function(what){var dialog=this;return dialog.rtc.setMute(what);};$.verto.dialog.prototype.getMute=function(what){var dialog=this;return dialog.rtc.getMute(what);};$.verto.dialog.prototype.useStereo=function(on){var dialog=this;dialog.params.useStereo=on;dialog.rtc.useStereo(on);};$.verto.dialog.prototype.dtmf=function(digits){var dialog=this;if(digits){dialog.sendMethod("verto.info",{dtmf:digits});}};$.verto.dialog.prototype.transfer=function(dest,params){var dialog=this;if(dest){dialog.sendMethod("verto.modify",{action:"transfer",destination:dest,params:params});}};$.verto.dialog.prototype.hold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"hold",params:params});};$.verto.dialog.prototype.unhold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"unhold",params:params});};$.verto.dialog.prototype.toggleHold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"toggleHold",params:params});};$.verto.dialog.prototype.message=function(msg){var dialog=this;var err=0;msg.from=dialog.params.login;if(!msg.to){console.error("Missing To");err++;} +dialog.rtc.useVideo(dialog.videoStream,dialog.localVideo);};$.verto.dialog.prototype.setMute=function(what){var dialog=this;return dialog.rtc.setMute(what);};$.verto.dialog.prototype.getMute=function(what){var dialog=this;return dialog.rtc.getMute(what);};$.verto.dialog.prototype.useStereo=function(on){var dialog=this;dialog.params.useStereo=on;dialog.rtc.useStereo(on);};$.verto.dialog.prototype.dtmf=function(digits){var dialog=this;if(digits){dialog.sendMethod("verto.info",{dtmf:digits});}};$.verto.dialog.prototype.transfer=function(dest,params){var dialog=this;if(dest){dialog.sendMethod("verto.modify",{action:"transfer",destination:dest,params:params});}};$.verto.dialog.prototype.hold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"hold",params:params});};$.verto.dialog.prototype.unhold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"unhold",params:params});};$.verto.dialog.prototype.toggleHold=function(params){var dialog=this;dialog.sendMethod("verto.modify",{action:"toggleHold",params:params});};$.verto.dialog.prototype.message=function(msg){var dialog=this;var err=0;msg.from=dialog.params.login;if(!msg.to){console.error("Missing To");err++;} if(!msg.body){console.error("Missing Body");err++;} if(err){return false;} -dialog.sendMethod("verto.info",{msg:msg});return true;};$.verto.dialog.prototype.answer=function(params){var dialog=this;if(!dialog.answered){if(params){if(params.useVideo){dialog.useVideo(true);} +dialog.sendMethod("verto.info",{msg:msg});return true;};$.verto.dialog.prototype.answer=function(params){var dialog=this;if(!dialog.answered){if(!params){params={};} +params.sdp=dialog.params.sdp;if(params){if(params.useVideo){dialog.useVideo(true);} dialog.params.callee_id_name=params.callee_id_name;dialog.params.callee_id_number=params.callee_id_number;} -dialog.rtc.createAnswer(dialog.params.sdp);dialog.answered=true;}};$.verto.dialog.prototype.handleAnswer=function(params){var dialog=this;dialog.gotAnswer=true;if(dialog.state.val>=$.verto.enum.state.active.val){return;} -if(dialog.state.val>=$.verto.enum.state.early.val){dialog.setState($.verto.enum.state.active);}else{if(dialog.gotEarly){console.log("Dialog "+dialog.callID+"Got answer while still establishing early media, delaying...");}else{console.log("Dialog "+dialog.callID+"Answering Channel");dialog.rtc.answer(params.sdp,function(){dialog.setState($.verto.enum.state.active);},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"ANSWER SDP",params.sdp);}}};$.verto.dialog.prototype.cidString=function(enc){var dialog=this;var party=dialog.params.remote_caller_id_name+(enc?" <":" <")+dialog.params.remote_caller_id_number+(enc?">":">");return party;};$.verto.dialog.prototype.sendMessage=function(msg,params){var dialog=this;if(dialog.callbacks.onMessage){dialog.callbacks.onMessage(dialog.verto,dialog,msg,params);}};$.verto.dialog.prototype.handleInfo=function(params){var dialog=this;dialog.sendMessage($.verto.enum.message.info,params.msg);};$.verto.dialog.prototype.handleDisplay=function(params){var dialog=this;if(params.display_name){dialog.params.remote_caller_id_name=params.display_name;} +dialog.rtc.createAnswer(params);dialog.answered=true;}};$.verto.dialog.prototype.handleAnswer=function(params){var dialog=this;dialog.gotAnswer=true;if(dialog.state.val>=$.verto.enum.state.active.val){return;} +if(dialog.state.val>=$.verto.enum.state.early.val){dialog.setState($.verto.enum.state.active);}else{if(dialog.gotEarly){console.log("Dialog "+dialog.callID+" Got answer while still establishing early media, delaying...");}else{console.log("Dialog "+dialog.callID+" Answering Channel");dialog.rtc.answer(params.sdp,function(){dialog.setState($.verto.enum.state.active);},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"ANSWER SDP",params.sdp);}}};$.verto.dialog.prototype.cidString=function(enc){var dialog=this;var party=dialog.params.remote_caller_id_name+(enc?" <":" <")+dialog.params.remote_caller_id_number+(enc?">":">");return party;};$.verto.dialog.prototype.sendMessage=function(msg,params){var dialog=this;if(dialog.callbacks.onMessage){dialog.callbacks.onMessage(dialog.verto,dialog,msg,params);}};$.verto.dialog.prototype.handleInfo=function(params){var dialog=this;dialog.sendMessage($.verto.enum.message.info,params.msg);};$.verto.dialog.prototype.handleDisplay=function(params){var dialog=this;if(params.display_name){dialog.params.remote_caller_id_name=params.display_name;} if(params.display_number){dialog.params.remote_caller_id_number=params.display_number;} dialog.sendMessage($.verto.enum.message.display,{});};$.verto.dialog.prototype.handleMedia=function(params){var dialog=this;if(dialog.state.val>=$.verto.enum.state.early.val){return;} -dialog.gotEarly=true;dialog.rtc.answer(params.sdp,function(){console.log("Dialog "+dialog.callID+"Establishing early media");dialog.setState($.verto.enum.state.early);if(dialog.gotAnswer){console.log("Dialog "+dialog.callID+"Answering Channel");dialog.setState($.verto.enum.state.active);}},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"EARLY SDP",params.sdp);};$.verto.ENUM=function(s){var i=0,o={};s.split(" ").map(function(x){o[x]={name:x,val:i++};});return Object.freeze(o);};$.verto.enum={};$.verto.enum.states=Object.freeze({new:{requesting:1,recovering:1,ringing:1,destroy:1,answering:1,hangup:1},requesting:{trying:1,hangup:1},recovering:{answering:1,hangup:1},trying:{active:1,early:1,hangup:1},ringing:{answering:1,hangup:1},answering:{active:1,hangup:1},active:{answering:1,requesting:1,hangup:1,held:1},held:{hangup:1,active:1},early:{hangup:1,active:1},hangup:{destroy:1},destroy:{},purge:{destroy:1}});$.verto.enum.state=$.verto.ENUM("new requesting trying recovering ringing answering early active held hangup destroy purge");$.verto.enum.direction=$.verto.ENUM("inbound outbound");$.verto.enum.message=$.verto.ENUM("display info pvtEvent");$.verto.enum=Object.freeze($.verto.enum);$.verto.saved=[];$(window).bind('beforeunload',function(){for(var i in $.verto.saved){var verto=$.verto.saved[i];if(verto){verto.logout();verto.purge();}} -return $.verto.warnOnUnload;});})(jQuery); \ No newline at end of file +dialog.gotEarly=true;dialog.rtc.answer(params.sdp,function(){console.log("Dialog "+dialog.callID+"Establishing early media");dialog.setState($.verto.enum.state.early);if(dialog.gotAnswer){console.log("Dialog "+dialog.callID+"Answering Channel");dialog.setState($.verto.enum.state.active);}},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"EARLY SDP",params.sdp);};$.verto.ENUM=function(s){var i=0,o={};s.split(" ").map(function(x){o[x]={name:x,val:i++};});return Object.freeze(o);};$.verto.enum={};$.verto.enum.states=Object.freeze({new:{requesting:1,recovering:1,ringing:1,destroy:1,answering:1,hangup:1},requesting:{trying:1,hangup:1},recovering:{answering:1,hangup:1},trying:{active:1,early:1,hangup:1},ringing:{answering:1,hangup:1},answering:{active:1,hangup:1},active:{answering:1,requesting:1,hangup:1,held:1},held:{hangup:1,active:1},early:{hangup:1,active:1},hangup:{destroy:1},destroy:{},purge:{destroy:1}});$.verto.enum.state=$.verto.ENUM("new requesting trying recovering ringing answering early active held hangup destroy purge");$.verto.enum.direction=$.verto.ENUM("inbound outbound");$.verto.enum.message=$.verto.ENUM("display info pvtEvent");$.verto.enum=Object.freeze($.verto.enum);$.verto.saved=[];$(window).bind('beforeunload',function(){for(var i in $.verto.saved){var verto=$.verto.saved[i];if(verto){verto.purge();verto.logout();}} +return $.verto.warnOnUnload;});$.verto.videoDevices=[];$.verto.audioDevices=[];$.verto.findDevices=function(runtime){var aud=[],vid=[];MediaStreamTrack.getSources(function(media_sources){for(var i=0;i
" + - "" + - "" + - "" + - "" + - "

"; + "" + + "" + + "" + + "" + + (confMan.params.hasVid ? "" : "") + + "

"; jq.html(html); + if (confMan.params.hasVid) { + var vlayout_id = "confman_vid_layout_" + confMan.serno; + var vlselect_id = "confman_vl_select_" + confMan.serno; + + var vlhtml = "

" + + "Video Layout " + + "

"; + jq.append(vlhtml); + + $("#" + vlselect_id).change(function() { + var val = $("#" + vlselect_id).find(":selected").val(); + if (val !== "none") { + confMan.modCommand("vid-layout", null, val); + } + }); + + $("#" + snapshot_id).click(function() { + var file = prompt("Please enter file name", ""); + if (file) { + confMan.modCommand("vid-write-png", null, file); + } + }); + } + $("#" + play_id).click(function() { var file = prompt("Please enter file name", ""); - confMan.modCommand("play", null, file); + if (file) { + confMan.modCommand("play", null, file); + } }); $("#" + stop_id).click(function() { @@ -1194,7 +1232,9 @@ $("#" + recording_id).click(function() { var file = prompt("Please enter file name", ""); - confMan.modCommand("recording", null, ["start", file]); + if (file) { + confMan.modCommand("recording", null, ["start", file]); + } }); $("#" + rec_stop_id).click(function() { @@ -1207,15 +1247,23 @@ var x = parseInt(rowid); var kick_id = "kick_" + x; var tmute_id = "tmute_" + x; + var tvmute_id = "tvmute_" + x; + var vbanner_id = "vbanner_" + x; + var tvpresenter_id = "tvpresenter_" + x; + var tvfloor_id = "tvfloor_" + x; var box_id = "box_" + x; var volup_id = "volume_in_up" + x; var voldn_id = "volume_in_dn" + x; var transfer_id = "transfer" + x; - + var html = "
" + "" + "" + + (confMan.params.hasVid ? "" : "") + + (confMan.params.hasVid ? "" : "") + + (confMan.params.hasVid ? "" : "") + + (confMan.params.hasVid ? "" : "") + "" + "" + "" + @@ -1240,7 +1288,9 @@ $("#" + transfer_id).click(function() { var xten = prompt("Enter Extension"); - confMan.modCommand("transfer", x, xten); + if (xten) { + confMan.modCommand("transfer", x, xten); + } }); $("#" + kick_id).click(function() { @@ -1251,6 +1301,24 @@ confMan.modCommand("tmute", x); }); + if (confMan.params.hasVid) { + $("#" + tvmute_id).click(function() { + confMan.modCommand("tvmute", x); + }); + $("#" + tvpresenter_id).click(function() { + confMan.modCommand("vid-res-id", x, "presenter"); + }); + $("#" + tvfloor_id).click(function() { + confMan.modCommand("vid-floor", x, "force"); + }); + $("#" + vbanner_id).click(function() { + var text = prompt("Please enter text", ""); + if (text) { + confMan.modCommand("vid-banner", x, escape(text)); + } + }); + } + $("#" + volup_id).click(function() { confMan.modCommand("volume_in", x, "up"); }); @@ -1269,7 +1337,7 @@ if (confMan.params.laData.role === "moderator") { atitle = "Action"; - awidth = 200; + awidth = 300; if (confMan.params.mainModID) { genMainMod($(confMan.params.mainModID)); @@ -1284,16 +1352,47 @@ if (confMan.params.onBroadcast) { confMan.params.onBroadcast(verto, confMan, e.data); } - if (!confMan.destroyed && confMan.params.displayID) { - $(confMan.params.displayID).html(e.data.response + "

"); - if (confMan.lastTimeout) { - clearTimeout(confMan.lastTimeout); - confMan.lastTimeout = 0; - } - confMan.lastTimeout = setTimeout(function() { $(confMan.params.displayID).html(confMan.destroyed ? "" : "Moderator Controls Ready

");}, 4000); - } + + if (e.data["conf-command"] === "list-videoLayouts") { + var vlselect_id = "#confman_vl_select_" + confMan.serno; + var vlayout_id = "#confman_vid_layout_" + confMan.serno; + var x = 0; + var options; + + $(vlselect_id).append(new Option("Choose a Layout", "none")); + + if (e.data.responseData) { + options = e.data.responseData.sort(); + + for (var i in options) { + $(vlselect_id).append(new Option(options[i], options[i])); + x++; + } + } + + if (x) { + $(vlselect_id).selectmenu('refresh', true); + } else { + $(vlayout_id).hide(); + } + } else { + + if (!confMan.destroyed && confMan.params.displayID) { + $(confMan.params.displayID).html(e.data.response + "

"); + if (confMan.lastTimeout) { + clearTimeout(confMan.lastTimeout); + confMan.lastTimeout = 0; + } + confMan.lastTimeout = setTimeout(function() { $(confMan.params.displayID).html(confMan.destroyed ? "" : "Moderator Controls Ready

");}, 4000); + } + } } }); + + + if (confMan.params.hasVid) { + confMan.modCommand("list-videoLayouts", null, null); + } } var row_callback = null; @@ -1339,7 +1438,7 @@ }, { "sTitle": "Status", - "sWidth": confMan.params.hasVid ? "300px" : "150px" + "sWidth": confMan.params.hasVid ? "200px" : "150px" }, { "sTitle": atitle, @@ -1367,16 +1466,18 @@ $.verto.confMan.prototype.modCommand = function(cmd, id, value) { var confMan = this; - confMan.verto.sendMethod("verto.broadcast", { + confMan.verto.rpcClient.call("verto.broadcast", { "eventChannel": confMan.params.laData.modChannel, "data": { - "application": "conf-control", - "command": cmd, - "id": id, - "value": value + "application": "conf-control", + "command": cmd, + "id": id, + "value": value } - }); + }); }; + + $.verto.confMan.prototype.destroy = function() { var confMan = this; @@ -1402,10 +1503,15 @@ dialog.params = $.extend({ useVideo: verto.options.useVideo, useStereo: verto.options.useStereo, + screenShare: false, + useCamera: "any", + useMic: "any", tag: verto.options.tag, - login: verto.options.login + localTag: verto.options.localTag, + login: verto.options.login, + videoParams: verto.options.videoParams }, params); - + dialog.verto = verto; dialog.direction = direction; dialog.lastState = null; @@ -1413,13 +1519,16 @@ dialog.callbacks = verto.callbacks; dialog.answered = false; dialog.attach = params.attach || false; + dialog.screenShare = params.screenShare || false; + dialog.useCamera = params.useCamera; + dialog.useMic = params.useMic; if (dialog.params.callID) { dialog.callID = dialog.params.callID; } else { dialog.callID = dialog.params.callID = generateGUID(); } - + if (dialog.params.tag) { dialog.audioStream = document.getElementById(dialog.params.tag); @@ -1428,6 +1537,10 @@ } } //else conjure one TBD + if (dialog.params.localTag) { + dialog.localVideo = document.getElementById(dialog.params.localTag); + } + dialog.verto.dialogs[dialog.callID] = dialog; var RTCcallbacks = {}; @@ -1488,6 +1601,10 @@ } }; + RTCcallbacks.onStream = function(rtc, stream) { + console.log("stream started"); + }; + RTCcallbacks.onError = function(e) { console.error("ERROR:", e); dialog.hangup({cause: "Device or Permission Error"}); @@ -1495,12 +1612,16 @@ dialog.rtc = new $.FSRTC({ callbacks: RTCcallbacks, + localVideo: dialog.localVideo, useVideo: dialog.videoStream, useAudio: dialog.audioStream, useStereo: dialog.params.useStereo, - videoParams: verto.options.videoParams, + videoParams: dialog.params.videoParams, audioParams: verto.options.audioParams, - iceServers: verto.options.iceServers + iceServers: verto.options.iceServers, + screenShare: dialog.screenShare, + useCamera: dialog.useCamera, + useMic: dialog.useMic }); dialog.rtc.verto = dialog.verto; @@ -1604,7 +1725,9 @@ break; case $.verto.enum.state.destroy: delete dialog.verto.dialogs[dialog.callID]; - dialog.rtc.stop(); + if (!dialog.params.screenShare) { + dialog.rtc.stop(); + } break; } @@ -1722,7 +1845,7 @@ dialog.videoStream = null; } - dialog.rtc.useVideo(dialog.videoStream); + dialog.rtc.useVideo(dialog.videoStream, dialog.localVideo); }; @@ -1819,16 +1942,23 @@ $.verto.dialog.prototype.answer = function(params) { var dialog = this; - + if (!dialog.answered) { + if (!params) { + params = {}; + } + + params.sdp = dialog.params.sdp; + if (params) { if (params.useVideo) { dialog.useVideo(true); } - dialog.params.callee_id_name = params.callee_id_name; - dialog.params.callee_id_number = params.callee_id_number; + dialog.params.callee_id_name = params.callee_id_name; + dialog.params.callee_id_number = params.callee_id_number; } - dialog.rtc.createAnswer(dialog.params.sdp); + + dialog.rtc.createAnswer(params); dialog.answered = true; } }; @@ -1846,9 +1976,9 @@ dialog.setState($.verto.enum.state.active); } else { if (dialog.gotEarly) { - console.log("Dialog " + dialog.callID + "Got answer while still establishing early media, delaying..."); + console.log("Dialog " + dialog.callID + " Got answer while still establishing early media, delaying..."); } else { - console.log("Dialog " + dialog.callID + "Answering Channel"); + console.log("Dialog " + dialog.callID + " Answering Channel"); dialog.rtc.answer(params.sdp, function() { dialog.setState($.verto.enum.state.active); }, function(e) { @@ -1858,6 +1988,8 @@ console.log("Dialog " + dialog.callID + "ANSWER SDP", params.sdp); } } + + }; $.verto.dialog.prototype.cidString = function(enc) { @@ -1996,11 +2128,39 @@ for (var i in $.verto.saved) { var verto = $.verto.saved[i]; if (verto) { - verto.logout(); verto.purge(); + verto.logout(); } } return $.verto.warnOnUnload; }); + $.verto.videoDevices = []; + $.verto.audioDevices = []; + + $.verto.findDevices = function(runtime) { + var aud = [], vid = []; + + MediaStreamTrack.getSources(function (media_sources) { + for (var i = 0; i < media_sources.length; i++) { + + if (media_sources[i].kind == 'video') { + vid.push(media_sources[i]); + } else { + aud.push(media_sources[i]); + } + } + + $.verto.videoDevices = vid; + $.verto.audioDevices = aud; + + console.info("Audio Devices", $.verto.audioDevices); + console.info("Video Devices", $.verto.videoDevices); + runtime(); + }); + } + + + + })(jQuery); From ed0a434b95efc54dbc01017fd6ff33dab1582371 Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 25 Mar 2015 12:44:40 -0700 Subject: [PATCH 18/97] Fail the call with 502 bad gateway if the outbound leg returns a redirect with an invalid URI. FS-7385 #resolve --- src/mod/endpoints/mod_sofia/sofia.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 7428a2d242..f8ccbd6f67 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -6111,6 +6111,10 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status switch_ivr_session_transfer(a_session, p_contact->m_url->url_user, sip_redirect_dialplan, sip_redirect_context); } switch_channel_hangup(channel, SWITCH_CAUSE_REDIRECTION_TO_NEW_DESTINATION); + } else if( !p_contact->m_url->url_host ) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Received redirect with invalid URI\n"); + switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "REDIRECT_ERROR"); + switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER); } else if ((!strcmp(profile->sipip, p_contact->m_url->url_host)) || (profile->extsipip && !strcmp(profile->extsipip, p_contact->m_url->url_host)) || (switch_xml_locate_domain(p_contact->m_url->url_host, NULL, &root, &domain) == SWITCH_STATUS_SUCCESS)) { From ca2dd2f3ba80924567472c0516ee8bac2af34d6a Mon Sep 17 00:00:00 2001 From: Matteo Brancaleoni Date: Tue, 24 Feb 2015 16:43:24 +0100 Subject: [PATCH 19/97] FS-6954 Detect when we have T.38 in nomedia or proxy media mode and apply same fixups as in media mode. --- src/mod/endpoints/mod_sofia/sofia_glue.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 74d4395113..ece392334c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -696,6 +696,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) char *record_route = NULL; const char *recover_via = NULL; int require_timer = 1; + uint8_t is_t38 = 0; if (switch_channel_test_flag(tech_pvt->channel, CF_RECOVERING)) { const char *recover_contact = switch_channel_get_variable(tech_pvt->channel, "sip_recover_contact"); @@ -1235,9 +1236,12 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) - if (switch_channel_get_private(tech_pvt->channel, "t38_options")) { + if ((switch_channel_get_private(tech_pvt->channel, "t38_options")) || + ((sofia_test_flag(tech_pvt, TFLAG_INB_NOMEDIA) || sofia_test_flag(tech_pvt, TFLAG_PROXY_MEDIA)) + && switch_stristr("m=image", tech_pvt->mparams.local_sdp_str))) { sofia_clear_flag(tech_pvt, TFLAG_ENABLE_SOA); - } + is_t38 = 1; + } if (sofia_use_soa(tech_pvt)) { nua_invite(tech_pvt->nh, @@ -1272,7 +1276,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) TAG_IF(!zstr(tech_pvt->mparams.local_sdp_str), SOATAG_ADDRESS(tech_pvt->mparams.adv_sdp_audio_ip)), TAG_IF(!zstr(tech_pvt->mparams.local_sdp_str), SOATAG_USER_SDP_STR(tech_pvt->mparams.local_sdp_str)), TAG_IF(!zstr(tech_pvt->mparams.local_sdp_str), SOATAG_REUSE_REJECTED(1)), - TAG_IF(switch_channel_get_private(tech_pvt->channel, "t38_options"), SOATAG_ORDERED_USER(1)), + TAG_IF(is_t38, SOATAG_ORDERED_USER(1)), TAG_IF(!zstr(tech_pvt->mparams.local_sdp_str), SOATAG_RTP_SORT(SOA_RTP_SORT_REMOTE)), TAG_IF(!zstr(tech_pvt->mparams.local_sdp_str), SOATAG_RTP_SELECT(SOA_RTP_SELECT_ALL)), TAG_IF(rep, SIPTAG_REPLACES_STR(rep)), From c7fdcc2ad866540ddbf6cf7b21ea9a33ad857c49 Mon Sep 17 00:00:00 2001 From: Marcel Haldemann Date: Thu, 26 Mar 2015 00:52:09 +0100 Subject: [PATCH 20/97] FS-7391 #resolve corrected currency for mod_say_de it's now "Ein Euro und Ein Cent" rather than "Eins Euro und Eins Cent" --- src/mod/say/mod_say_de/mod_say_de.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/say/mod_say_de/mod_say_de.c b/src/mod/say/mod_say_de/mod_say_de.c index 00af9dd1fe..7b4aa75457 100644 --- a/src/mod/say/mod_say_de/mod_say_de.c +++ b/src/mod/say/mod_say_de/mod_say_de.c @@ -413,7 +413,7 @@ static switch_status_t de_say_money(switch_core_session_t *session, char *tosay, /* Say dollar amount */ if (atoi(dollars) == 1) { - say_file("digits/s-1.wav"); + say_file("digits/1.wav"); say_file("currency/dollar.wav"); } else { de_say_general_count(session, dollars, say_args, args); @@ -425,7 +425,7 @@ static switch_status_t de_say_money(switch_core_session_t *session, char *tosay, /* Say "and" */ say_file("currency/and.wav"); if (atoi(cents) == 1) { - say_file("digits/s-1.wav"); + say_file("digits/1.wav"); say_file("currency/cent.wav"); } else { de_say_general_count(session, cents, say_args, args); From 183570bd94a1ec1bfbcf7104b5e5c6dadd328afd Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 26 Mar 2015 17:37:07 -0500 Subject: [PATCH 21/97] FS-7396: #resolve update dtls socket when socket changes on auto-adjust that changes address families and also include link local v6 addresses in approrpiate auto acls --- src/switch_core.c | 2 ++ src/switch_rtp.c | 34 +++++++++++++++------------------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index 85947c25ca..956beb0946 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1322,6 +1322,7 @@ SWITCH_DECLARE(void) switch_load_network_lists(switch_bool_t reload) switch_network_list_add_cidr(rfc_list, "10.0.0.0/8", SWITCH_TRUE); switch_network_list_add_cidr(rfc_list, "172.16.0.0/12", SWITCH_TRUE); switch_network_list_add_cidr(rfc_list, "192.168.0.0/16", SWITCH_TRUE); + switch_network_list_add_cidr(rfc_list, "fe80::/10", SWITCH_TRUE); switch_core_hash_insert(IP_LIST.hash, tmp_name, rfc_list); tmp_name = "wan.auto"; @@ -1332,6 +1333,7 @@ SWITCH_DECLARE(void) switch_load_network_lists(switch_bool_t reload) switch_network_list_add_cidr(rfc_list, "172.16.0.0/12", SWITCH_FALSE); switch_network_list_add_cidr(rfc_list, "192.168.0.0/16", SWITCH_FALSE); switch_network_list_add_cidr(rfc_list, "169.254.0.0/16", SWITCH_FALSE); + switch_network_list_add_cidr(rfc_list, "fe80::/10", SWITCH_FALSE); switch_core_hash_insert(IP_LIST.hash, tmp_name, rfc_list); tmp_name = "nat.auto"; diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 85fd76f286..50206a91b8 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -488,25 +488,6 @@ static void switch_rtp_change_ice_dest(switch_rtp_t *rtp_session, switch_rtp_ice if (!is_rtcp || rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) { switch_rtp_set_remote_address(rtp_session, host, port, 0, SWITCH_FALSE, &err); } - - if (rtp_session->dtls) { - - if (!is_rtcp || rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) { - switch_sockaddr_info_get(&rtp_session->dtls->remote_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool); - } - - if (is_rtcp && !rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) { - - switch_sockaddr_info_get(&rtp_session->rtcp_remote_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool); - if (rtp_session->rtcp_dtls) { - //switch_sockaddr_info_get(&rtp_session->rtcp_dtls->remote_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool); - rtp_session->rtcp_dtls->remote_addr = rtp_session->rtcp_remote_addr; - rtp_session->rtcp_dtls->sock_output = rtp_session->rtcp_sock_output; - } - - } - } - } @@ -2769,10 +2750,19 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_remote_address(switch_rtp_t *rtp_ if ((status = switch_socket_create(&rtp_session->sock_output, switch_sockaddr_get_family(rtp_session->remote_addr), SOCK_DGRAM, 0, rtp_session->pool)) != SWITCH_STATUS_SUCCESS) { + *err = "Socket Error!"; } } + if (rtp_session->dtls) { + rtp_session->dtls->sock_output = rtp_session->sock_output; + + if (rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) { + switch_sockaddr_info_get(&rtp_session->dtls->remote_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool); + } + } + if (rtp_session->flags[SWITCH_RTP_FLAG_ENABLE_RTCP] && !rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) { if (remote_rtcp_port) { @@ -2781,6 +2771,12 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_remote_address(switch_rtp_t *rtp_ rtp_session->remote_rtcp_port = rtp_session->eff_remote_port + 1; } status = enable_remote_rtcp_socket(rtp_session, err); + + if (rtp_session->rtcp_dtls) { + //switch_sockaddr_info_get(&rtp_session->rtcp_dtls->remote_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool); + rtp_session->rtcp_dtls->remote_addr = rtp_session->rtcp_remote_addr; + rtp_session->rtcp_dtls->sock_output = rtp_session->rtcp_sock_output; + } } if (rtp_session->flags[SWITCH_RTP_FLAG_ENABLE_RTCP] && rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) { From 2c92ef31e3c130b24a8f7c2e8055e3476172d665 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 26 Mar 2015 17:48:39 -0500 Subject: [PATCH 22/97] FS-7386 Conflicts: src/switch_core_media.c --- src/include/switch_core_media.h | 2 +- src/switch_channel.c | 5 ++- src/switch_core_media.c | 54 +++++++++++++++++++++------------ 3 files changed, 40 insertions(+), 21 deletions(-) diff --git a/src/include/switch_core_media.h b/src/include/switch_core_media.h index 1915b742ae..808e22fc10 100644 --- a/src/include/switch_core_media.h +++ b/src/include/switch_core_media.h @@ -282,7 +282,7 @@ SWITCH_DECLARE(payload_map_t *) switch_core_media_add_payload_map(switch_core_se uint32_t channels, uint8_t negotiated); - +SWITCH_DECLARE(switch_status_t) switch_core_media_check_autoadj(switch_core_session_t *session); SWITCH_DECLARE(switch_rtp_crypto_key_type_t) switch_core_media_crypto_str2type(const char *str); SWITCH_DECLARE(const char *) switch_core_media_crypto_type2str(switch_rtp_crypto_key_type_t type); SWITCH_DECLARE(int) switch_core_media_crypto_keylen(switch_rtp_crypto_key_type_t type); diff --git a/src/switch_channel.c b/src/switch_channel.c index 3b96dcdc4d..64d42fb8d2 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -3400,6 +3400,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_pre_answered(switch_ send_ind(channel, SWITCH_MESSAGE_PROGRESS_EVENT, file, func, line); + switch_core_media_check_autoadj(channel->session); + return SWITCH_STATUS_SUCCESS; } @@ -3689,7 +3691,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_answered(switch_chan switch_channel_set_callstate(channel, CCS_ACTIVE); send_ind(channel, SWITCH_MESSAGE_ANSWER_EVENT, file, func, line); - + + switch_core_media_check_autoadj(channel->session); return SWITCH_STATUS_SUCCESS; } diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 7d6d443fbf..a5099058de 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -426,7 +426,41 @@ static switch_t38_options_t * switch_core_media_process_udptl(switch_core_sessio return t38_options; } +SWITCH_DECLARE(switch_status_t) switch_core_media_check_autoadj(switch_core_session_t *session) +{ + switch_rtp_engine_t *a_engine; + switch_rtp_engine_t *v_engine; + switch_media_handle_t *smh; + const char *val; + int x = 0; + switch_assert(session); + + if (!(smh = session->media_handle)) { + return SWITCH_STATUS_FALSE; + } + + a_engine = &smh->engines[SWITCH_MEDIA_TYPE_AUDIO]; + v_engine = &smh->engines[SWITCH_MEDIA_TYPE_VIDEO]; + + if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) && + !((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) && + !switch_channel_test_flag(session->channel, CF_AVPF)) { + /* Reactivate the NAT buster flag. */ + + if (a_engine->rtp_session) { + switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ); + x++; + } + + if (v_engine->rtp_session) { + switch_rtp_set_flag(v_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ); + x++; + } + } + + return x ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE; +} @@ -4119,11 +4153,6 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s done: - - - - - if (parser) { sdp_parser_free(parser); } @@ -4233,7 +4262,6 @@ SWITCH_DECLARE(int) switch_core_media_toggle_hold(switch_core_session_t *session switch_channel_clear_flag(session->channel, CF_HOLD_LOCK); if (switch_channel_test_flag(session->channel, CF_PROTO_HOLD)) { - const char *val; int media_on_hold_a = switch_true(switch_channel_get_variable_dup(session->channel, "bypass_media_resume_on_hold", SWITCH_FALSE, -1)); int media_on_hold_b = 0; int bypass_after_hold_a = 0; @@ -4273,19 +4301,7 @@ SWITCH_DECLARE(int) switch_core_media_toggle_hold(switch_core_session_t *session } } - if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) && - !((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) && - !switch_channel_test_flag(session->channel, CF_WEBRTC)) { - /* Reactivate the NAT buster flag. */ - - if (a_engine->rtp_session) { - switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ); - } - - if (v_engine->rtp_session) { - switch_rtp_set_flag(v_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ); - } - } + switch_core_media_check_autoadj(session); switch_channel_clear_flag(session->channel, CF_PROTO_HOLD); switch_channel_mark_hold(session->channel, SWITCH_FALSE); From f2a527100918fadb6d1aca2e2c6190d3ade3819f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 27 Mar 2015 00:01:05 -0500 Subject: [PATCH 23/97] doh --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index a5099058de..21eb2cefcc 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -445,7 +445,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_check_autoadj(switch_core_sess if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) && !((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) && - !switch_channel_test_flag(session->channel, CF_AVPF)) { + !switch_channel_test_flag(session->channel, CF_WEBRTC)) { /* Reactivate the NAT buster flag. */ if (a_engine->rtp_session) { From 7add4b25dbe685a57f55114913f174050ae3952d Mon Sep 17 00:00:00 2001 From: Ken Rice Date: Mon, 30 Mar 2015 14:35:55 -0500 Subject: [PATCH 24/97] Add ClueCon URL --- docs/GivingBack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GivingBack b/docs/GivingBack index 9ecd2a37c0..a52805dfa4 100644 --- a/docs/GivingBack +++ b/docs/GivingBack @@ -30,4 +30,4 @@ company receives priority support. Encourage your company to sponsor ClueCon; in addition to helping out the project, you'll be exposed to a great pool of people to partner -with, sell to, and recruit from. +with, sell to, and recruit from. ( https://ClueCon.com ) From 3c2afc6a2c952303bc0d72a00558c04a8fa144a3 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Wed, 1 Apr 2015 11:00:43 -0400 Subject: [PATCH 25/97] FS-7406 #resolve #comment Added DTMF-Source header to DTMF event. DTMF-Source may have the following values: APP : injected by application (send_dtmf, etc) ENDPOINT : detected by endpoint signaling (like SIP INFO) INBAND_AUDIO : detected by start_dtmf, spandsp_start_dtmf, etc RTP : detected as 2833/4733 telephone event UNKNOWN : unknown source One possible use of this header is to determine telephone events are being received, and if so, disable inband detection. --- src/switch_channel.c | 20 ++++++++++++++++++++ src/switch_ivr_async.c | 1 + 2 files changed, 21 insertions(+) diff --git a/src/switch_channel.c b/src/switch_channel.c index 64d42fb8d2..e15aa4cd00 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -631,9 +631,29 @@ SWITCH_DECLARE(switch_status_t) switch_channel_dequeue_dtmf(switch_channel_t *ch switch_mutex_unlock(channel->dtmf_mutex); if (!sensitive && status == SWITCH_STATUS_SUCCESS && switch_event_create(&event, SWITCH_EVENT_DTMF) == SWITCH_STATUS_SUCCESS) { + const char *dtmf_source_str = NULL; switch_channel_event_set_data(channel, event); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "DTMF-Digit", "%c", dtmf->digit); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "DTMF-Duration", "%u", dtmf->duration); + switch(dtmf->source) { + case SWITCH_DTMF_INBAND_AUDIO: /* From audio */ + dtmf_source_str = "INBAND_AUDIO"; + break; + case SWITCH_DTMF_RTP: /* From RTP as a telephone event */ + dtmf_source_str = "RTP"; + break; + case SWITCH_DTMF_ENDPOINT: /* From endpoint signaling */ + dtmf_source_str = "ENDPOINT"; + break; + case SWITCH_DTMF_APP: /* Injected by application */ + dtmf_source_str = "APP"; + break; + case SWITCH_DTMF_UNKNOWN: /* Unknown source */ + default: + dtmf_source_str = "UNKNOWN"; + break; + } + switch_event_add_header(event, SWITCH_STACK_BOTTOM, "DTMF-Source", "%s", dtmf_source_str); if (switch_channel_test_flag(channel, CF_DIVERT_EVENTS)) { switch_core_session_queue_event(channel->session, &event); } else { diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index e7f05ac9ff..dec8b4cb35 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -2988,6 +2988,7 @@ static switch_status_t generate_on_dtmf(switch_core_session_t *session, const sw switch_channel_event_set_data(channel, event); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "DTMF-Digit", "%c", dtmf->digit); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "DTMF-Duration", "%u", dtmf->duration); + switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "DTMF-Source", "APP"); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "DTMF-Conversion", "native:inband"); if (switch_channel_test_flag(channel, CF_DIVERT_EVENTS)) { switch_core_session_queue_event(session, &event); From c6ef0558ffe6bf70dcd223207da9dce030c7e378 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Wed, 1 Apr 2015 14:07:55 -0400 Subject: [PATCH 26/97] FS-7406 added deduplicate_dtmf application --- .../applications/mod_dptools/mod_dptools.c | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index c3b96daf24..7d5b1d5277 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -5669,7 +5669,112 @@ SWITCH_STANDARD_API(page_api_function) return SWITCH_STATUS_SUCCESS; } +/** + * Convert DTMF source to human readable string + */ +static const char *to_dtmf_source_string(switch_dtmf_source_t source) +{ + switch(source) { + case SWITCH_DTMF_ENDPOINT: return "SIP INFO"; + case SWITCH_DTMF_INBAND_AUDIO: return "INBAND"; + case SWITCH_DTMF_RTP: return "2833"; + case SWITCH_DTMF_UNKNOWN: return "UNKNOWN"; + case SWITCH_DTMF_APP: return "APP"; + } + return "UNKNOWN"; +} +struct deduplicate_dtmf_filter { + int only_rtp; + char last_dtmf; + switch_dtmf_source_t last_dtmf_source; +}; + +/** + * Filter incoming DTMF and ignore any duplicates + */ +static switch_status_t deduplicate_recv_dtmf_hook(switch_core_session_t *session, const switch_dtmf_t *dtmf, switch_dtmf_direction_t direction) +{ + switch_status_t status = SWITCH_STATUS_FALSE; + int only_rtp = 0; + struct deduplicate_dtmf_filter *filter = switch_channel_get_private(switch_core_session_get_channel(session), "deduplicate_dtmf_filter"); + + if (!filter) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Accept %s digit %c: deduplicate filter missing!\n", to_dtmf_source_string(dtmf->source), dtmf->digit); + return SWITCH_STATUS_SUCCESS; + } + + /* remember current state as it might change */ + only_rtp = filter->only_rtp; + + /* RTP DTMF is preferred over all others- and if it's demonstrated to be available, inband / info detection is disabled */ + if (only_rtp) { + switch (dtmf->source) { + case SWITCH_DTMF_ENDPOINT: + switch_channel_set_variable(switch_core_session_get_channel(session), "deduplicate_dtmf_seen_endpoint", "true"); + break; + case SWITCH_DTMF_INBAND_AUDIO: + switch_channel_set_variable(switch_core_session_get_channel(session), "deduplicate_dtmf_seen_inband", "true"); + break; + case SWITCH_DTMF_RTP: + switch_channel_set_variable(switch_core_session_get_channel(session), "deduplicate_dtmf_seen_rtp", "true"); + /* pass through */ + case SWITCH_DTMF_UNKNOWN: + case SWITCH_DTMF_APP: + /* always allow */ + status = SWITCH_STATUS_SUCCESS; + break; + } + } else { + /* accept everything except duplicates until RTP digit is detected */ + switch (dtmf->source) { + case SWITCH_DTMF_INBAND_AUDIO: + switch_channel_set_variable(switch_core_session_get_channel(session), "deduplicate_dtmf_seen_inband", "true"); + break; + case SWITCH_DTMF_RTP: + switch_channel_set_variable(switch_core_session_get_channel(session), "deduplicate_dtmf_seen_rtp", "true"); + /* change state to only allow RTP events */ + filter->only_rtp = 1; + + /* stop inband detector */ + switch_ivr_broadcast(switch_core_session_get_uuid(session), "spandsp_stop_dtmf::", SMF_ECHO_ALEG); + break; + case SWITCH_DTMF_ENDPOINT: + switch_channel_set_variable(switch_core_session_get_channel(session), "deduplicate_dtmf_seen_endpoint", "true"); + break; + case SWITCH_DTMF_UNKNOWN: + case SWITCH_DTMF_APP: + /* always allow */ + status = SWITCH_STATUS_SUCCESS; + break; + } + + /* make sure not a duplicate DTMF */ + if (filter->last_dtmf_source == dtmf->source || filter->last_dtmf != dtmf->digit) { + status = SWITCH_STATUS_SUCCESS; + } + filter->last_dtmf = dtmf->digit; + filter->last_dtmf_source = dtmf->source; + } + + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) %s %s digit %c\n", + (only_rtp) ? "ALLOW 2833" : "ALLOW ALL", + (status == SWITCH_STATUS_SUCCESS) ? "Accept" : "Ignore", to_dtmf_source_string(dtmf->source), dtmf->digit); + + return status; +} + +SWITCH_STANDARD_APP(deduplicate_dtmf_app_function) +{ + struct deduplicate_dtmf_filter *filter = switch_channel_get_private(switch_core_session_get_channel(session), "deduplicate_dtmf_filter"); + if (!filter) { + filter = switch_core_session_alloc(session, sizeof(*filter)); + filter->only_rtp = !zstr(data) && !strcmp("only_rtp", data); + filter->last_dtmf = 0; + switch_channel_set_private(switch_core_session_get_channel(session), "deduplicate_dtmf_filter", filter); + switch_core_event_hook_add_recv_dtmf(session, deduplicate_recv_dtmf_hook); + } +} #define SPEAK_DESC "Speak text to a channel via the tts interface" #define DISPLACE_DESC "Displace audio from a file to the channels input" @@ -5968,6 +6073,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load) SWITCH_ADD_APP(app_interface, "limit_hash_execute", "Limit", LIMITHASHEXECUTE_DESC, limit_hash_execute_function, LIMITHASHEXECUTE_USAGE, SAF_SUPPORT_NOMEDIA); SWITCH_ADD_APP(app_interface, "pickup", "Pickup", "Pickup a call", pickup_function, PICKUP_SYNTAX, SAF_SUPPORT_NOMEDIA); + SWITCH_ADD_APP(app_interface, "deduplicate_dtmf", "Prevent duplicate inband + 2833 dtmf", "", deduplicate_dtmf_app_function, "[only_rtp]", SAF_SUPPORT_NOMEDIA); SWITCH_ADD_DIALPLAN(dp_interface, "inline", inline_dialplan_hunt); From 1a96f23f279c17414530c50d7a9fcdbda156cc99 Mon Sep 17 00:00:00 2001 From: William King Date: Thu, 20 Nov 2014 14:02:40 -0800 Subject: [PATCH 27/97] Adding mod_amqp as an event_handler module AMQP(Advanced Message Queueing Protocol) is an event bus protocol with more info here http://www.amqp.org/about/what mod_amqp implements the client side of the amqp protocol. Currently the module supports two separate, but not mutually exclusive usages: 1. Sending a filtered whitelist of events to an AMQP server. The before the events are sent an amqp routing header is generated so that downstream subscriptions can subscribe using filters. If the connection to the remote server is interrupted, the module will attempt to reconnect. 2. Subscribing to a 'control' channel on the remote AMQP server. When events are received on this channel if they match a configured filter, the commands are run locally as api commands. If the filter for the events being sent to the remote AMQP server include SWITCH_EVENT_API then the results of the api commands will be sent back to the AMQP server. FS-7060 #resolve Thanks-to: Daniel Bryars and Tim Brown --- build/modules.conf.in | 1 + conf/vanilla/autoload_configs/amqp.conf.xml | 56 ++ configure.ac | 5 + src/mod/event_handlers/mod_amqp/Makefile.am | 17 + src/mod/event_handlers/mod_amqp/README | 121 +++++ src/mod/event_handlers/mod_amqp/mod_amqp.c | 115 +++++ src/mod/event_handlers/mod_amqp/mod_amqp.h | 173 +++++++ .../mod_amqp/mod_amqp_command.c | 323 ++++++++++++ .../mod_amqp/mod_amqp_connection.c | 246 +++++++++ .../mod_amqp/mod_amqp_producer.c | 484 ++++++++++++++++++ .../event_handlers/mod_amqp/mod_amqp_utils.c | 160 ++++++ 11 files changed, 1701 insertions(+) create mode 100644 conf/vanilla/autoload_configs/amqp.conf.xml create mode 100644 src/mod/event_handlers/mod_amqp/Makefile.am create mode 100644 src/mod/event_handlers/mod_amqp/README create mode 100644 src/mod/event_handlers/mod_amqp/mod_amqp.c create mode 100644 src/mod/event_handlers/mod_amqp/mod_amqp.h create mode 100644 src/mod/event_handlers/mod_amqp/mod_amqp_command.c create mode 100644 src/mod/event_handlers/mod_amqp/mod_amqp_connection.c create mode 100644 src/mod/event_handlers/mod_amqp/mod_amqp_producer.c create mode 100644 src/mod/event_handlers/mod_amqp/mod_amqp_utils.c diff --git a/build/modules.conf.in b/build/modules.conf.in index 1af56eef31..e772745139 100644 --- a/build/modules.conf.in +++ b/build/modules.conf.in @@ -94,6 +94,7 @@ endpoints/mod_skinny #endpoints/mod_skypopen endpoints/mod_sofia #endpoints/mod_unicall +#event_handlers/mod_amqp event_handlers/mod_cdr_csv #event_handlers/mod_cdr_mongodb #event_handlers/mod_cdr_pg_csv diff --git a/conf/vanilla/autoload_configs/amqp.conf.xml b/conf/vanilla/autoload_configs/amqp.conf.xml new file mode 100644 index 0000000000..5ae9dc944a --- /dev/null +++ b/conf/vanilla/autoload_configs/amqp.conf.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configure.ac b/configure.ac index f9c958455a..ad5d20cca8 100644 --- a/configure.ac +++ b/configure.ac @@ -1227,6 +1227,10 @@ PKG_CHECK_MODULES([MEMCACHED], [libmemcached >= 0.31],[ AM_CONDITIONAL([HAVE_MEMCACHED],[false]) ]) +PKG_CHECK_MODULES([AMQP], [librabbitmq >= 0.5.2],[ + AM_CONDITIONAL([HAVE_AMQP],[true])],[ + AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AMQP],[false])]) + AC_ARG_ENABLE(core-libedit-support, [AS_HELP_STRING([--disable-core-libedit-support], [Compile without libedit Support])]) @@ -1572,6 +1576,7 @@ AC_CONFIG_FILES([Makefile src/mod/endpoints/mod_unicall/Makefile src/mod/endpoints/mod_rtc/Makefile src/mod/endpoints/mod_verto/Makefile + src/mod/event_handlers/mod_amqp/Makefile src/mod/event_handlers/mod_cdr_csv/Makefile src/mod/event_handlers/mod_cdr_mongodb/Makefile src/mod/event_handlers/mod_cdr_pg_csv/Makefile diff --git a/src/mod/event_handlers/mod_amqp/Makefile.am b/src/mod/event_handlers/mod_amqp/Makefile.am new file mode 100644 index 0000000000..3a7ffd0f30 --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/Makefile.am @@ -0,0 +1,17 @@ +include $(top_srcdir)/build/modmake.rulesam +MODNAME=mod_amqp + +if HAVE_AMQP + +mod_LTLIBRARIES = mod_amqp.la +mod_amqp_la_SOURCES = mod_amqp_utils.c mod_amqp_connection.c mod_amqp_producer.c mod_amqp_command.c mod_amqp.c +mod_amqp_la_CFLAGS = $(AM_CFLAGS) $(AMQP_CFLAGS) +mod_amqp_la_LIBADD = $(switch_builddir)/libfreeswitch.la +mod_amqp_la_LDFLAGS = -avoid-version -module -no-undefined -shared $(AMQP_LIBS) $(SWITCH_AM_LDFLAGS) + +else +install: error +all: error +error: + $(error You must install librabbitmq1 and librabbitmq-dev to build this module) +endif diff --git a/src/mod/event_handlers/mod_amqp/README b/src/mod/event_handlers/mod_amqp/README new file mode 100644 index 0000000000..e80112d939 --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/README @@ -0,0 +1,121 @@ + _ + _ __ ___ ___ __| | __ _ _ __ ___ __ _ _ __ + | '_ ` _ \ / _ \ / _` | / _` | '_ ` _ \ / _` | '_ \ + | | | | | | (_) | (_| | | (_| | | | | | | (_| | |_) | + |_| |_| |_|\___/ \__,_|___\__,_|_| |_| |_|\__, | .__/ + |_____| |_|_| by Aeriandi + + +Contents +-------- + +1. Features +2. How to build and install +3. Configuration +4. Usage +5. Trouleshooting + +6. Notes + + + +1. Features +----------- + +* Authenticates with an AMQP broker such as RabbitMQ. +* If the broker disconnects, the connection is retried. +* Routing keys can include values from Freeswitch message headers. +* The rate of messages pulished can be limited by filtering event types. +* Messages are sent asynchronously so as not to block the Freeswitch core. +* Pulishing can be temporarily suspended on the event of "back pressure" from the AMQP broker. + + + +2. How to build and install +--------------------------- + +Requires librabbitmq1 to build. Debian Jessie comes with the correct version. + + +3. Configuration +---------------- + +All configuration is done within the amqp.conf.xml file located in the freeswitch/autoload_configs folder, which is usually in /etc/ for linux based machines. + +The file is of the format: + + + + + + ...etc. + + + + +Available parameters are as follows: + + +------------------------------+-----------------------------------+ + | name | default value (units) | + |------------------------------+-----------------------------------| + | amqpHostnames | localhost | + | amqpVirtualHost | / | + | amqpPort | 5672 | + | amqpUsername | guest | + | amqpPassword | guest | + | amqpHeartbeatSeconds | 0 (s) | + | eventExchange | TAP.Events | + | eventExchangetype | topic | + | eventRoutingKeyFormat | %s.%s.%s.%s | + | eventRoutingKeyFormatFields | FreeSWITCH-Hostname,Event-Name, | + | | Event-Subclass,Unique-ID | + | eventFilter | SWITCH_EVENT_CHANNEL_CREATE, | + | | SWITCH_EVENT_CHANNEL_DESTROY, | + | | SWITCH_EVENT_HEARTBEAT, | + | | SWITCH_EVENT_DTMF | + | commandExchange | TAP.Commands | + | commandExchangeType | topic | + | commandBindingKey | TapCommands | + | amqpSendQueueSize | 500 (events) | + | amqpCircuitBreakerTimeout | 10000 (ms) | + | amqpReconnectInterval | 1000 (ms) | + +------------------------------+-----------------------------------+ + +Set the amqpHostname and amqpPort to point to the AMQP broker, and set valid login credentials using amqpUsername and amqpPassword. + +The routing key is made from the eventRoutingKeyFormat format string using the freeswitch event header values specified in the eventRoutingKeyFormatFields. See the manpage printf(1) for more information about format strings. The numer of percent marks in the format string must match the number of comma-separated header names in the format fields string. + +mod_amqp has an internal buffer for events so that it can send them asynchronously and also cope with the connection going down for a short amount of time. The size of this buffer is set by amqpSendQueueSize. If this buffer ever becomes full, then mod_amqp will drop event messages for the period of time specified by amqpCircuitBreakerTimeout (in milliseconds). + +If the connection to the AMQP broker is severed, mod_amqp will attempt to reconnect regularly according to the amqpReconnectInterval (in milliseconds). It will cycle through the hostnames provided in amqpHostnames. + +The eventFilter parameter specifies which events will be sent to the AMQP broker, a full list of available options can be found in src/include/switch_types.h. The special event name SWITCH_EVENT_ALL causes all events to be sent, effectively disabling the filter. + + +4. Usage +-------- + +Usually, mod_amqp will be loaded automatically when Freeswitch starts. To establish whether the module has been loaded, you can execute "module_exists mod_amqp" in fs_cli. + +If the module is not set to load with Freeswitch, it can be loaded on he fly by executing "load mod_amqp" from fs_cli. You'll see a few lines of status messages as the module loads and tries to connect to the AMQP roker. Conversely, the module can be unloaded using "unload mod_amqp". + +To effect new settings having edited the config file, the module should be unloaded then loaded again. + + + +5. Trouleshooting +----------------- + +Any errors or warnings will be reported using Freeswitch logging, so check for errors using fs_cli with the loglevel is set to be sufficiently verbose, or with your selected logging module; for example, the syslog logger. + +Typically, messages not being received by the AMQP broker is due to network connectivity or failed authentication with the broker. + +If mod_amqp experiences back-pressure from the AMQP broker, its internal buffer of events to send fills up. When this buffer is half full, warning messages are logged, and when the queue is completely full the circuit breaker will be triggered, logging an error and dropping events for the predefined amount of time. + + + +6. Notes +-------- + +The SHA for the revision of librabbitmq-c1 that is included is 1c213703c9fdd747bc71ea4f64943c3b4269f8cf. + diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.c b/src/mod/event_handlers/mod_amqp/mod_amqp.c new file mode 100644 index 0000000000..dfb32f0a28 --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/mod_amqp.c @@ -0,0 +1,115 @@ +/* +* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* Copyright (C) 2005-2012, Anthony Minessale II +* +* Version: MPL 1.1 +* +* The contents of this file are subject to the Mozilla Public License Version +* 1.1 (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS IS" basis, +* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +* for the specific language governing rights and limitations under the +* License. +* +* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* +* The Initial Developer of the Original Code is +* Anthony Minessale II +* Portions created by the Initial Developer are Copyright (C) +* the Initial Developer. All Rights Reserved. +* +* Based on mod_skel by +* Anthony Minessale II +* +* Contributor(s): +* +* Daniel Bryars +* Tim Brown +* Anthony Minessale II +* William King +* Mike Jerris +* +* mod_amqp.c -- Sends FreeSWITCH events to an AMQP broker +* +*/ + +#include "mod_amqp.h" + +SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_amqp_shutdown); +SWITCH_MODULE_LOAD_FUNCTION(mod_amqp_load); +SWITCH_MODULE_DEFINITION(mod_amqp, mod_amqp_load, mod_amqp_shutdown, NULL); + +SWITCH_STANDARD_API(amqp_reload) +{ + return mod_amqp_do_config(SWITCH_TRUE); +} + + +/* ------------------------------ + Startup + ------------------------------ +*/ +SWITCH_MODULE_LOAD_FUNCTION(mod_amqp_load) +{ + switch_api_interface_t *api_interface; + + memset(&globals, 0, sizeof(globals)); + *module_interface = switch_loadable_module_create_module_interface(pool, modname); + + globals.pool = pool; + switch_core_hash_init(&(globals.producer_hash)); + switch_core_hash_init(&(globals.command_hash)); + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "mod_apqp loading: Version %s\n", switch_version_full()); + + /* Create producer profiles */ + if ( mod_amqp_do_config(SWITCH_FALSE) != SWITCH_STATUS_SUCCESS ){ + return SWITCH_STATUS_GENERR; + } + + SWITCH_ADD_API(api_interface, "amqp", "amqp API", amqp_reload, "syntax"); + + return SWITCH_STATUS_SUCCESS; +} + +/* ------------------------------ + Shutdown + ------------------------------ +*/ +SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_amqp_shutdown) +{ + switch_hash_index_t *hi; + mod_amqp_producer_profile_t *producer; + mod_amqp_command_profile_t *command; + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Mod starting shutting down\n"); + switch_event_unbind_callback(mod_amqp_producer_event_handler); + + for (hi = switch_core_hash_first(globals.producer_hash); hi; hi = switch_core_hash_next(&hi)) { + switch_core_hash_this(hi, NULL, NULL, (void **)&producer); + mod_amqp_producer_destroy(&producer); + } + + for (hi = switch_core_hash_first(globals.command_hash); hi; hi = switch_core_hash_next(&hi)) { + switch_core_hash_this(hi, NULL, NULL, (void **)&command); + mod_amqp_command_destroy(&command); + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Mod finished shutting down\n"); + return SWITCH_STATUS_SUCCESS; +} + + +/* For Emacs: + * Local Variables: + * mode:c + * indent-tabs-mode:t + * tab-width:4 + * c-basic-offset:4 + * End: + * For VIM: + * vim:set softtabstop=4 shiftwidth=4 tabstop=4 + */ diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.h b/src/mod/event_handlers/mod_amqp/mod_amqp.h new file mode 100644 index 0000000000..808415e7ad --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/mod_amqp.h @@ -0,0 +1,173 @@ +/* +* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* Copyright (C) 2005-2012, Anthony Minessale II +* +* Version: MPL 1.1 +* +* The contents of this file are subject to the Mozilla Public License Version +* 1.1 (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS IS" basis, +* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +* for the specific language governing rights and limitations under the +* License. +* +* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* +* The Initial Developer of the Original Code is +* Anthony Minessale II +* Portions created by the Initial Developer are Copyright (C) +* the Initial Developer. All Rights Reserved. +* +* Based on mod_skel by +* Anthony Minessale II +* +* Contributor(s): +* +* Daniel Bryars +* Tim Brown +* Anthony Minessale II +* William King +* Mike Jerris +* +* mod_amqp.c -- Sends FreeSWITCH events to an AMQP broker +* +*/ + +#ifndef MOD_AMQP_H +#define MOD_AMQP_H + +#include +#include +#include +#include +#include + +#define MAX_LOG_MESSAGE_SIZE 1024 +#define AMQP_MAX_HOSTS 4 + +/* If you change MAX_ROUTING_KEY_FORMAT_FIELDS then you must change the implementation of makeRoutingKey where it formats the routing key using sprintf */ +#define MAX_ROUTING_KEY_FORMAT_FIELDS 10 +#define MAX_AMQP_ROUTING_KEY_LENGTH 255 + +#define TIME_STATS_TO_AGGREGATE 1024 +#define MOD_AMQP_DEBUG_TIMING 0 + + +typedef struct { + char routing_key[MAX_AMQP_ROUTING_KEY_LENGTH]; + char *pjson; +} mod_amqp_message_t; + +typedef struct mod_amqp_connection_s { + char *name; + char *hostname; + char *virtualhost; + char *username; + char *password; + unsigned int port; + unsigned int heartbeat; /* in seconds */ + amqp_connection_state_t state; + + struct mod_amqp_connection_s *next; +} mod_amqp_connection_t; + +typedef struct { + char *name; + + char *exchange; + char *exchange_type; + char *format_fields[MAX_ROUTING_KEY_FORMAT_FIELDS+1]; + + /* Array to store the possible event subscriptions */ + int event_subscriptions; + switch_event_node_t *event_nodes[SWITCH_EVENT_ALL]; + switch_event_types_t event_ids[SWITCH_EVENT_ALL]; + switch_event_node_t *eventNode; + + + /* Because only the 'running' thread will be reading or writing to the two connection pointers + * this does not 'yet' need a read/write lock. Before these structures can be destroyed, + * the running thread must be joined first. + */ + mod_amqp_connection_t *conn_root; + mod_amqp_connection_t *conn_active; + + /* Rabbit connections are not thread safe so one connection per thread. + Communicate with sender thread using a queue */ + switch_thread_t *producer_thread; + switch_queue_t *send_queue; + unsigned int send_queue_size; + + int reconnect_interval_ms; + int circuit_breaker_ms; + switch_time_t circuit_breaker_reset_time; + + switch_bool_t running; + switch_memory_pool_t *pool; + char *custom_attr; +} mod_amqp_producer_profile_t; + +typedef struct { + char *name; + + char *exchange; + char *exchange_type; + char *binding_key; + + /* Array to store the possible event subscriptions */ + char *event_filter; + unsigned int number_of_event_filters; + switch_event_node_t *event_nodes[SWITCH_EVENT_ALL]; + switch_event_types_t event_ids[SWITCH_EVENT_ALL]; + + /* Note: The AMQP channel is not reentrant this MUTEX serializes sending events. */ + mod_amqp_connection_t *conn_root; + mod_amqp_connection_t *conn_active; + + int reconnect_interval_ms; + + /* Listener thread */ + switch_thread_t *command_thread; + + switch_mutex_t *mutex; + switch_bool_t running; + switch_memory_pool_t *pool; + char *custom_attr; +} mod_amqp_command_profile_t; + +struct { + switch_memory_pool_t *pool; + + switch_hash_t *producer_hash; + switch_hash_t *command_hash; +} globals; + +/* utils */ +switch_status_t mod_amqp_do_config(switch_bool_t reload); +int mod_amqp_log_if_amqp_error(amqp_rpc_reply_t x, char const *context); +int mod_amqp_count_chars(const char* string, char ch); + +/* connection */ +switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_xml_t cfg, switch_memory_pool_t *pool); +void mod_amqp_connection_destroy(mod_amqp_connection_t **conn); +void mod_amqp_connection_close(mod_amqp_connection_t *connection); +switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod_amqp_connection_t **active, char *profile_name, char *custom_attr); + +/* command */ +switch_status_t mod_amqp_command_destroy(mod_amqp_command_profile_t **profile); +switch_status_t mod_amqp_command_create(char *name, switch_xml_t cfg); +void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void *data); + +/* producer */ +void mod_amqp_producer_event_handler(switch_event_t* evt); +switch_status_t mod_amqp_producer_routing_key(char routingKey[MAX_AMQP_ROUTING_KEY_LENGTH],switch_event_t* evt, char* routingKeyEventHeaderNames[]); +switch_status_t mod_amqp_producer_destroy(mod_amqp_producer_profile_t **profile); +switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg); +void * SWITCH_THREAD_FUNC mod_amqp_producer_thread(switch_thread_t *thread, void *data); + + +#endif /* MOD_AMQP_H */ + diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_command.c b/src/mod/event_handlers/mod_amqp/mod_amqp_command.c new file mode 100644 index 0000000000..235983bae0 --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_command.c @@ -0,0 +1,323 @@ +/* +* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* Copyright (C) 2005-2012, Anthony Minessale II +* +* Version: MPL 1.1 +* +* The contents of this file are subject to the Mozilla Public License Version +* 1.1 (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS IS" basis, +* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +* for the specific language governing rights and limitations under the +* License. +* +* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* +* The Initial Developer of the Original Code is +* Anthony Minessale II +* Portions created by the Initial Developer are Copyright (C) +* the Initial Developer. All Rights Reserved. +* +* Based on mod_skel by +* Anthony Minessale II +* +* Contributor(s): +* +* Daniel Bryars +* Tim Brown +* Anthony Minessale II +* William King +* Mike Jerris +* +* mod_amqp.c -- Sends FreeSWITCH events to an AMQP broker +* +*/ + +#include "mod_amqp.h" + +switch_status_t mod_amqp_command_destroy(mod_amqp_command_profile_t **prof) +{ + switch_status_t ret; + mod_amqp_connection_t *conn = NULL, *conn_next = NULL; + switch_memory_pool_t *pool; + mod_amqp_command_profile_t *profile; + + if (!prof || !*prof) { + return SWITCH_STATUS_SUCCESS; + } + + profile = *prof; + pool = profile->pool; + + if (profile->name) { + switch_core_hash_delete(globals.command_hash, profile->name); + } + + profile->running = 0; + + if (profile->command_thread) { + switch_thread_join(&ret, profile->command_thread); + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Profile[%s] closing AMQP socket...\n", profile->name); + + for (conn = profile->conn_root; conn; conn = conn_next) { + mod_amqp_connection_destroy(&conn); + } + + profile->conn_active = NULL; + profile->conn_root = NULL; + + if (pool) { + switch_core_destroy_memory_pool(&pool); + } + + *prof = NULL; + + return SWITCH_STATUS_SUCCESS; +} + +switch_status_t mod_amqp_command_create(char *name, switch_xml_t cfg) +{ + mod_amqp_command_profile_t *profile = NULL; + switch_threadattr_t *thd_attr = NULL; + switch_memory_pool_t *pool; + + if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) { + goto err; + } + + profile = switch_core_alloc(pool, sizeof(mod_amqp_command_profile_t)); + + profile->pool = pool; + profile->name = switch_core_strdup(profile->pool, name); + profile->running = 1; + + /* Start the worker threads */ + switch_threadattr_create(&thd_attr, profile->pool); + switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE); + + if (switch_thread_create(&profile->command_thread, thd_attr, mod_amqp_command_thread, profile, profile->pool)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create 'amqp event sender' thread!\n"); + goto err; + } + + if ( switch_core_hash_insert(globals.command_hash, name, (void *) profile) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to insert new profile [%s] into mod_amqp profile hash\n", name); + goto err; + } + + return SWITCH_STATUS_SUCCESS; + + err: + /* Cleanup */ + mod_amqp_command_destroy(&profile); + return SWITCH_STATUS_GENERR; +} + + +void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void *data) +{ + mod_amqp_command_profile_t *profile = (mod_amqp_command_profile_t *) data; + + while (profile->running) { + amqp_queue_declare_ok_t *recv_queue; + amqp_bytes_t queueName = { 0, NULL }; + + /* Ensure we have an AMQP connection */ + if (!profile->conn_active) { + switch_status_t status; + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Amqp no connection- reconnecting...\n"); + + status = mod_amqp_connection_open(profile->conn_root, &(profile->conn_active), profile->name, profile->custom_attr); + if ( status != SWITCH_STATUS_SUCCESS ) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to connect with code(%d), sleeping for %dms\n", + profile->name, status, profile->reconnect_interval_ms); + switch_sleep(profile->reconnect_interval_ms * 1000); + continue; + } + + /* Ensure we have a queue */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Creating command queue"); + recv_queue = amqp_queue_declare(profile->conn_active->state, // state + 1, // channel + amqp_empty_bytes, // queue name + 0, 0, // passive, durable + 0, 1, // exclusive, auto-delete + amqp_empty_table); // args + + if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Declaring queue")) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to connect with code(%d), sleeping for %dms\n", + profile->name, status, profile->reconnect_interval_ms); + switch_sleep(profile->reconnect_interval_ms * 1000); + continue; + } + + if (queueName.bytes) { + amqp_bytes_free(queueName); + } + + queueName = amqp_bytes_malloc_dup(recv_queue->queue); + + if (!queueName.bytes) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Out of memory while copying queue name"); + break; + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Created command queue %.*s", (int)queueName.len, (char *)queueName.bytes); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Binding command queue to exchange %s", profile->exchange); + + /* Bind the queue to the exchange */ + amqp_queue_bind(profile->conn_active->state, // state + 1, // channel + queueName, // queue + amqp_cstring_bytes(profile->exchange), // exchange + amqp_cstring_bytes(profile->binding_key), // routing key + amqp_empty_table); // args + + if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Binding queue")) { + mod_amqp_connection_close(profile->conn_active); + profile->conn_active = NULL; + switch_sleep(profile->reconnect_interval_ms * 1000); + continue; + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Amqp reconnect successful- connected\n"); + continue; + } + + // Start a command + amqp_basic_consume(profile->conn_active->state, // state + 1, // channel + queueName, // queue + amqp_empty_bytes, // command tag + 0, 1, 0, // no_local, no_ack, exclusive + amqp_empty_table); // args + + if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Creating a command")) { + mod_amqp_connection_close(profile->conn_active); + profile->conn_active = NULL; + switch_sleep(profile->reconnect_interval_ms * 1000); + continue; + } + + while (profile->running && profile->conn_active) { + amqp_rpc_reply_t res; + amqp_envelope_t envelope; + struct timeval timeout = {0}; + char command[1024]; + enum ECommandFormat { + COMMAND_FORMAT_UNKNOWN, + COMMAND_FORMAT_PLAINTEXT + } commandFormat = COMMAND_FORMAT_PLAINTEXT; + + amqp_maybe_release_buffers(profile->conn_active->state); + + timeout.tv_usec = 500 * 1000; + res = amqp_consume_message(profile->conn_active->state, &envelope, &timeout, 0); + + if (res.reply_type == AMQP_RESPONSE_LIBRARY_EXCEPTION) { + if (res.library_error == AMQP_STATUS_UNEXPECTED_STATE) { + /* Unexpected frame. Discard it then continue */ + amqp_frame_t decoded_frame; + amqp_simple_wait_frame(profile->conn_active->state, &decoded_frame); + } + + if (res.library_error == AMQP_STATUS_SOCKET_ERROR) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "A socket error occurred. Tearing down and reconnecting\n"); + break; + } + + if (res.library_error == AMQP_STATUS_CONNECTION_CLOSED) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "AMQP connection was closed. Tearing down and reconnecting\n"); + break; + } + + if (res.library_error == AMQP_STATUS_TCP_ERROR) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "A TCP error occurred. Tearing down and reconnecting\n"); + break; + } + + if (res.library_error == AMQP_STATUS_TIMEOUT) { + // nop + } + + /* Try consuming again */ + continue; + } + + if (res.reply_type != AMQP_RESPONSE_NORMAL) { + break; + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Delivery:%u, exchange:%.*s routingkey:%.*s\n", + (unsigned) envelope.delivery_tag, (int) envelope.exchange.len, (char *) envelope.exchange.bytes, + (int) envelope.routing_key.len, (char *) envelope.routing_key.bytes); + + if (envelope.message.properties._flags & AMQP_BASIC_CONTENT_TYPE_FLAG) { + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Content-type: %.*s\n", + (int) envelope.message.properties.content_type.len, (char *) envelope.message.properties.content_type.bytes); + + if (strncasecmp("text/plain", envelope.message.properties.content_type.bytes, strlen("text/plain")) == 0) { + commandFormat = COMMAND_FORMAT_PLAINTEXT; + } else { + commandFormat = COMMAND_FORMAT_UNKNOWN; + } + } + + if (commandFormat == COMMAND_FORMAT_PLAINTEXT) { + switch_stream_handle_t stream = { 0 }; /* Collects the command output */ + + /* Convert amqp bytes to c-string */ + snprintf(command, sizeof(command), "%.*s", (int) envelope.message.body.len, (char *) envelope.message.body.bytes); + + /* Execute the command */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Executing: %s\n", command); + + SWITCH_STANDARD_STREAM(stream); + + if (switch_console_execute(command, 0, &stream) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Remote command failed:\n%s\n", (char *) stream.data); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Remote command succeeded:\n%s\n", (char *) stream.data); + } + switch_safe_free(stream.data); + } + + /* Tidy up */ + amqp_destroy_envelope(&envelope); + } + + amqp_bytes_free(queueName); + queueName.bytes = NULL; + + mod_amqp_connection_close(profile->conn_active); + profile->conn_active = NULL; + + if (profile->running) { + /* We'll reconnect, but sleep to avoid hammering resources */ + switch_sleep(500); + } + } + + /* Terminate the thread */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Command listener thread stopped\n"); + switch_thread_exit(thread, SWITCH_STATUS_SUCCESS); + return NULL; +} + + +/* For Emacs: + * Local Variables: + * mode:c + * indent-tabs-mode:t + * tab-width:4 + * c-basic-offset:4 + * End: + * For VIM: + * vim:set softtabstop=4 shiftwidth=4 tabstop=4 + */ diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c new file mode 100644 index 0000000000..cd0eac98ac --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c @@ -0,0 +1,246 @@ +/* +* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* Copyright (C) 2005-2012, Anthony Minessale II +* +* Version: MPL 1.1 +* +* The contents of this file are subject to the Mozilla Public License Version +* 1.1 (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS IS" basis, +* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +* for the specific language governing rights and limitations under the +* License. +* +* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* +* The Initial Developer of the Original Code is +* Anthony Minessale II +* Portions created by the Initial Developer are Copyright (C) +* the Initial Developer. All Rights Reserved. +* +* Based on mod_skel by +* Anthony Minessale II +* +* Contributor(s): +* +* Daniel Bryars +* Tim Brown +* Anthony Minessale II +* William King +* Mike Jerris +* +* mod_amqp.c -- Sends FreeSWITCH events to an AMQP broker +* +*/ + +#include "mod_amqp.h" + +void mod_amqp_connection_close(mod_amqp_connection_t *connection) +{ + amqp_connection_state_t old_state = connection->state; + int status = 0; + + connection->state = NULL; + + if (old_state != NULL) { + mod_amqp_log_if_amqp_error(amqp_channel_close(old_state, 1, AMQP_REPLY_SUCCESS), "Closing channel"); + mod_amqp_log_if_amqp_error(amqp_connection_close(old_state, AMQP_REPLY_SUCCESS), "Closing connection"); + + if ((status = amqp_destroy_connection(old_state))) { + const char *errstr = amqp_error_string2(-status); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error destroying amqp connection: %s\n", errstr); + } + } +} + +switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod_amqp_connection_t **active, char *profile_name, char *custom_attr) +{ + int channel_max = 0; + int frame_max = 131072; + amqp_table_t loginProperties; + amqp_table_entry_t loginTableEntries[5]; + char hostname[64]; + int bHasHostname; + char key_string[256] = {0}; + amqp_rpc_reply_t status; + amqp_socket_t *socket = NULL; + int amqp_status = -1; + mod_amqp_connection_t *connection_attempt = NULL; + amqp_connection_state_t newConnection = amqp_new_connection(); + amqp_connection_state_t oldConnection = NULL; + + if (active && *active) { + oldConnection = (*active)->state; + } + + /* Set up meta data for connection */ + bHasHostname = gethostname(hostname, sizeof(hostname)) == 0; + + loginProperties.num_entries = sizeof(loginTableEntries)/sizeof(*loginTableEntries); + loginProperties.entries = loginTableEntries; + + snprintf(key_string, 256, "x_%s_HostMachineName", custom_attr); + loginTableEntries[0].key = amqp_cstring_bytes(key_string); + loginTableEntries[0].value.kind = AMQP_FIELD_KIND_BYTES; + loginTableEntries[0].value.value.bytes = amqp_cstring_bytes(bHasHostname ? hostname : "(unknown)"); + + snprintf(key_string, 256, "x_%s_ProcessDescription", custom_attr); + loginTableEntries[1].key = amqp_cstring_bytes(key_string); + loginTableEntries[1].value.kind = AMQP_FIELD_KIND_BYTES; + loginTableEntries[1].value.value.bytes = amqp_cstring_bytes("FreeSwitch"); + + snprintf(key_string, 256, "x_%s_ProcessType", custom_attr); + loginTableEntries[2].key = amqp_cstring_bytes(key_string); + loginTableEntries[2].value.kind = AMQP_FIELD_KIND_BYTES; + loginTableEntries[2].value.value.bytes = amqp_cstring_bytes("TAP"); + + snprintf(key_string, 256, "x_%s_ProcessBuildVersion", custom_attr); + loginTableEntries[3].key = amqp_cstring_bytes(key_string); + loginTableEntries[3].value.kind = AMQP_FIELD_KIND_BYTES; + loginTableEntries[3].value.value.bytes = amqp_cstring_bytes(switch_version_full()); + + snprintf(key_string, 256, "x_%s_Liquid_ProcessBuildBornOn", custom_attr); + loginTableEntries[4].key = amqp_cstring_bytes(key_string); + loginTableEntries[4].value.kind = AMQP_FIELD_KIND_BYTES; + loginTableEntries[4].value.value.bytes = amqp_cstring_bytes(__DATE__ " " __TIME__); + + if (!(socket = amqp_tcp_socket_new(newConnection))) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Could not create TCP socket\n"); + return SWITCH_STATUS_GENERR; + } + + connection_attempt = connections; + amqp_status = -1; + + while (connection_attempt && amqp_status){ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Profile[%s] trying to connect to AMQP broker %s:%d\n", + profile_name, connection_attempt->hostname, connection_attempt->port); + + if ((amqp_status = amqp_socket_open(socket, connection_attempt->hostname, connection_attempt->port))){ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Could not open socket connection to AMQP broker %s:%d status(%d) %s\n", + connection_attempt->hostname, connection_attempt->port, amqp_status, amqp_error_string2(amqp_status)); + connection_attempt = connection_attempt->next; + } + } + + if (!connection_attempt) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] could not connect to any AMQP brokers\n", profile_name); + return SWITCH_STATUS_GENERR; + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Profile[%s] opened socket connection to AMQP broker %s:%d\n", + profile_name, connection_attempt->hostname, connection_attempt->port); + *active = connection_attempt; + + /* We have a connection, now log in */ + status = amqp_login_with_properties(newConnection, + connection_attempt->virtualhost, + channel_max, + frame_max, + connection_attempt->heartbeat, + &loginProperties, + AMQP_SASL_METHOD_PLAIN, + connection_attempt->username, + connection_attempt->password); + + if (mod_amqp_log_if_amqp_error(status, "Logging in")) { + return SWITCH_STATUS_GENERR; + } + + // Open a channel (1). This is fairly standard + amqp_channel_open(newConnection, 1); + if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(newConnection), "Opening channel")) { + return SWITCH_STATUS_GENERR; + } + + (*active)->state = newConnection; + + if (oldConnection) { + amqp_destroy_connection(oldConnection); + } + + return SWITCH_STATUS_SUCCESS; +} + +switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_xml_t cfg, switch_memory_pool_t *pool) +{ + mod_amqp_connection_t *new_con = switch_core_alloc(pool, sizeof(mod_amqp_connection_t)); + switch_xml_t param; + char *name = (char *) switch_xml_attr_soft(cfg, "name"); + char *hostname = NULL, *virtualhost = NULL, *username = NULL, *password = NULL; + unsigned int port = 0, heartbeat = 0; + + if (zstr(name)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Connection missing name attribute\n%s\n", switch_xml_toxml(cfg, 1)); + return SWITCH_STATUS_GENERR; + } + + new_con->name = switch_core_strdup(pool, name); + new_con->state = NULL; + + for (param = switch_xml_child(cfg, "param"); param; param = param->next) { + char *var = (char *) switch_xml_attr_soft(param, "name"); + char *val = (char *) switch_xml_attr_soft(param, "value"); + + if (!var) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "AMQP connection[%s] param missing 'name' attribute\n", name); + continue; + } + + if (!val) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "AMQP connection[%s] param[%s] missing 'value' attribute\n", name, var); + continue; + } + + if (!strncmp(var, "hostname", 8)) { + hostname = switch_core_strdup(pool, val); + } else if (!strncmp(var, "virtualhost", 11)) { + virtualhost = switch_core_strdup(pool, val); + } else if (!strncmp(var, "username", 8)) { + username = switch_core_strdup(pool, val); + } else if (!strncmp(var, "password", 8)) { + password = switch_core_strdup(pool, val); + } else if (!strncmp(var, "port", 4)) { + int interval = atoi(val); + if (interval && interval > 0) { + port = interval; + } + } else if (!strncmp(var, "heartbeat", 4)) { + int interval = atoi(val); + if (interval && interval > 0) { + heartbeat = interval; + } + } + } + + new_con->hostname = hostname ? hostname : "localhost"; + new_con->virtualhost = virtualhost ? virtualhost : "/"; + new_con->username = username ? username : "guest"; + new_con->password = password ? password : "guest"; + new_con->port = port ? port : 5672; + new_con->heartbeat = heartbeat ? heartbeat : 0; + + *conn = new_con; + return SWITCH_STATUS_SUCCESS; +} + +void mod_amqp_connection_destroy(mod_amqp_connection_t **conn) +{ + if (conn && *conn) { + *conn = NULL; + } +} + +/* For Emacs: + * Local Variables: + * mode:c + * indent-tabs-mode:t + * tab-width:4 + * c-basic-offset:4 + * End: + * For VIM: + * vim:set softtabstop=4 shiftwidth=4 tabstop=4 + */ diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c new file mode 100644 index 0000000000..191ae8b124 --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -0,0 +1,484 @@ +/* +* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* Copyright (C) 2005-2012, Anthony Minessale II +* +* Version: MPL 1.1 +* +* The contents of this file are subject to the Mozilla Public License Version +* 1.1 (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS IS" basis, +* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +* for the specific language governing rights and limitations under the +* License. +* +* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* +* The Initial Developer of the Original Code is +* Anthony Minessale II +* Portions created by the Initial Developer are Copyright (C) +* the Initial Developer. All Rights Reserved. +* +* Based on mod_skel by +* Anthony Minessale II +* +* Contributor(s): +* +* Daniel Bryars +* Tim Brown +* Anthony Minessale II +* William King +* Mike Jerris +* +* mod_amqp.c -- Sends FreeSWITCH events to an AMQP broker +* +*/ + +#include "mod_amqp.h" + +void mod_amqp_producer_msg_destroy(mod_amqp_message_t **msg) +{ + if (!msg || !*msg) return; + switch_safe_free((*msg)->pjson); + switch_safe_free(*msg); +} + +switch_status_t mod_amqp_producer_routing_key(char routingKey[MAX_AMQP_ROUTING_KEY_LENGTH], switch_event_t* evt, char* routingKeyEventHeaderNames[]) +{ + int i = 0, idx = 0; + + for (i = 0; i < MAX_ROUTING_KEY_FORMAT_FIELDS && idx < MAX_AMQP_ROUTING_KEY_LENGTH; i++) { + if (routingKeyEventHeaderNames[i]) { + if (idx) { + routingKey[idx++] = '.'; + } + if (routingKeyEventHeaderNames[i][0] == '#') { + strncpy(routingKey + idx, routingKeyEventHeaderNames[i] + 1, MAX_AMQP_ROUTING_KEY_LENGTH - idx); + } else { + char *value = switch_event_get_header(evt, routingKeyEventHeaderNames[i]); + strncpy(routingKey + idx, value ? value : "", MAX_AMQP_ROUTING_KEY_LENGTH - idx); + + /* Replace dots with underscores so that the routing key does not get corrupted */ + switch_replace_char(routingKey + idx, '.', '_', 0); + } + idx += strlen(routingKey + idx); + } + } + return SWITCH_STATUS_SUCCESS; +} + +void mod_amqp_producer_event_handler(switch_event_t* evt) +{ + mod_amqp_message_t *amqp_message; + mod_amqp_producer_profile_t *profile = (mod_amqp_producer_profile_t *)evt->bind_user_data; + switch_time_t now = switch_time_now(); + switch_time_t reset_time; + + if (!profile) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Event without a profile %p %p\n", (void *)evt, (void *)evt->event_user_data); + return; + } + + /* If the mod is disabled ignore the event */ + if (!profile->running) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] not running\n", profile->name); + return; + } + + /* If the circuit breaker is active, ignore the event */ + reset_time = profile->circuit_breaker_reset_time; + if (now < reset_time) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] circuit breaker hit[%d] (%d)\n", profile->name, (int) now, (int) reset_time); + return; + } + + switch_malloc(amqp_message, sizeof(mod_amqp_message_t)); + + switch_event_serialize_json(evt, &amqp_message->pjson); + mod_amqp_producer_routing_key(amqp_message->routing_key, evt, profile->format_fields); + + /* Queue the message to be sent by the worker thread, errors are reported only once per circuit breaker interval */ + if (switch_queue_trypush(profile->send_queue, amqp_message) != SWITCH_STATUS_SUCCESS) { + unsigned int queue_size = switch_queue_size(profile->send_queue); + + /* Trip the circuit breaker for a short period to stop recurring error messages (time is measured in uS) */ + profile->circuit_breaker_reset_time = now + profile->circuit_breaker_ms * 1000; + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "AMQP message queue full. Messages will be dropped for %.1fs! (Queue capacity %d)", + profile->circuit_breaker_ms / 1000.0, queue_size); + + mod_amqp_producer_msg_destroy(&amqp_message); + } +} + +switch_status_t mod_amqp_producer_destroy(mod_amqp_producer_profile_t **prof) { + mod_amqp_message_t *msg = NULL; + switch_status_t status = SWITCH_STATUS_SUCCESS; + mod_amqp_connection_t *conn = NULL, *conn_next = NULL; + switch_memory_pool_t *pool; + mod_amqp_producer_profile_t *profile; + + if (!prof || !*prof) { + return SWITCH_STATUS_SUCCESS; + } + + profile = *prof; + pool = profile->pool; + + if (profile->name) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Profile[%s] shutting down...\n", profile->name); + switch_core_hash_delete(globals.producer_hash, profile->name); + } + + profile->running = 0; + + if (profile->producer_thread) { + switch_thread_join(&status, profile->producer_thread); + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Profile[%s] closing AMQP socket...\n", profile->name); + + for (conn = profile->conn_root; conn; conn = conn_next) { + conn_next = conn->next; + mod_amqp_connection_destroy(&conn); + } + + profile->conn_active = NULL; + profile->conn_root = NULL; + + while (profile->send_queue && switch_queue_trypop(profile->send_queue, (void**)&msg) == SWITCH_STATUS_SUCCESS) { + mod_amqp_producer_msg_destroy(&msg); + } + + if (pool) { + switch_core_destroy_memory_pool(&pool); + } + + *prof = NULL; + + return SWITCH_STATUS_SUCCESS; +} + +switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) +{ + mod_amqp_producer_profile_t *profile = NULL; + int arg = 0, i = 0; + char *argv[SWITCH_EVENT_ALL]; + switch_xml_t params, param, connections, connection; + switch_threadattr_t *thd_attr = NULL; + char *exchange = NULL, *exchange_type = NULL; + switch_memory_pool_t *pool; + + if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) { + goto err; + } + + profile = switch_core_alloc(pool, sizeof(mod_amqp_producer_profile_t)); + profile->pool = pool; + profile->name = switch_core_strdup(profile->pool, name); + profile->running = 1; + memset(profile->format_fields, 0, MAX_ROUTING_KEY_FORMAT_FIELDS + 1); + profile->event_ids[0] = SWITCH_EVENT_ALL; + profile->event_subscriptions = 1; + profile->conn_root = NULL; + profile->conn_active = NULL; + + /* Set reasonable defaults which may change if more reasonable defaults are found */ + /* Handle defaults of non string types */ + profile->circuit_breaker_ms = 10000; + profile->reconnect_interval_ms = 1000; + profile->send_queue_size = 5000; + + if ((params = switch_xml_child(cfg, "params")) != NULL) { + for (param = switch_xml_child(params, "param"); param; param = param->next) { + char *var = (char *) switch_xml_attr_soft(param, "name"); + char *val = (char *) switch_xml_attr_soft(param, "value"); + + if (!var) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] param missing 'name' attribute\n", profile->name); + continue; + } + + if (!val) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] param[%s] missing 'value' attribute\n", profile->name, var); + continue; + } + + if (!strncmp(var, "reconnect_interval_ms", 21)) { + int interval = atoi(val); + if ( interval && interval > 0 ) { + profile->reconnect_interval_ms = interval; + } + } else if (!strncmp(var, "circuit_breaker_ms", 18)) { + int interval = atoi(val); + if ( interval && interval > 0 ) { + profile->circuit_breaker_ms = interval; + } + } else if (!strncmp(var, "send_queue_size", 15)) { + int interval = atoi(val); + if ( interval && interval > 0 ) { + profile->send_queue_size = interval; + } + } else if (!strncmp(var, "format_fields", 13)) { + int size = 0; + if ((size = mod_amqp_count_chars(val, ',')) >= MAX_ROUTING_KEY_FORMAT_FIELDS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "You can have only %d routing fields in the routing key.\n", + MAX_ROUTING_KEY_FORMAT_FIELDS); + goto err; + } + + /* increment size because the count returned the number of separators, not number of fields */ + size++; + + switch_separate_string(val, ',', profile->format_fields, size); + profile->format_fields[size] = NULL; + } else if (!strncmp(var, "event_filter", 12)) { + /* Parse new events */ + profile->event_subscriptions = switch_separate_string(val, ',', argv, (sizeof(argv) / sizeof(argv[0]))); + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Found %d subscriptions\n", profile->event_subscriptions); + + for (arg = 0; arg < profile->event_subscriptions; arg++) { + if (switch_name_event(argv[arg], &(profile->event_ids[arg])) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "The switch event %s was not recognised.\n", argv[arg]); + } + } + } + } /* params for loop */ + } + + /* Handle defaults of string types */ + profile->exchange = exchange ? exchange : switch_core_strdup(profile->pool, "TAP.Events"); + profile->exchange_type = exchange_type ? exchange_type : switch_core_strdup(profile->pool, "topic"); + + if ((connections = switch_xml_child(cfg, "connections")) != NULL) { + for (connection = switch_xml_child(connections, "connection"); connection; connection = connection->next) { + if ( ! profile->conn_root ) { /* Handle first root node */ + if (mod_amqp_connection_create(&(profile->conn_root), connection, profile->pool) != SWITCH_STATUS_SUCCESS) { + /* Handle connection create failure */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to create connection\n", profile->name); + continue; + } + profile->conn_active = profile->conn_root; + } else { + if (mod_amqp_connection_create(&(profile->conn_active->next), connection, profile->pool) != SWITCH_STATUS_SUCCESS) { + /* Handle connection create failure */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to create connection\n", profile->name); + continue; + } + profile->conn_active = profile->conn_active->next; + } + } + } + profile->conn_active = NULL; + + if ( mod_amqp_connection_open(profile->conn_root, &(profile->conn_active), profile->name, profile->custom_attr) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] was unable to connect to any connection\n", profile->name); + } + + /* Create a bounded FIFO queue for sending messages */ + if (switch_queue_create(&(profile->send_queue), profile->send_queue_size, profile->pool) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create send queue of size %d!\n", profile->send_queue_size); + goto err; + } + + /* Start the event send thread. This will set up the initial connection */ + switch_threadattr_create(&thd_attr, profile->pool); + switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE); + if (switch_thread_create(&profile->producer_thread, thd_attr, mod_amqp_producer_thread, profile, profile->pool)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create 'amqp event sender' thread!\n"); + goto err; + } + + /* Subscribe events */ + for (i = 0; i < profile->event_subscriptions; i++) { + if (switch_event_bind_removable("AMQP", + profile->event_ids[i], + SWITCH_EVENT_SUBCLASS_ANY, + mod_amqp_producer_event_handler, + profile, + &(profile->event_nodes[i])) != SWITCH_STATUS_SUCCESS) { + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot bind to event handler %d!\n",(int)profile->event_ids[i]); + goto err; + } + } + + if ( switch_core_hash_insert(globals.producer_hash, name, (void *) profile) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to insert new profile [%s] into mod_amqp profile hash\n", name); + goto err; + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] Successfully started\n", profile->name); + return SWITCH_STATUS_SUCCESS; + + err: + /* Cleanup */ + mod_amqp_producer_destroy(&profile); + return SWITCH_STATUS_GENERR; + +} + +/* This should only be called in a single threaded context from the producer profile send thread */ +switch_status_t mod_amqp_producer_send(mod_amqp_producer_profile_t *profile, mod_amqp_message_t *msg) +{ + amqp_table_entry_t messageTableEntries[1]; + amqp_basic_properties_t props; + int status; + + if (! profile->conn_active) { + /* No connection, so we can not send the message. */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] not active\n", profile->name); + return SWITCH_STATUS_NOT_INITALIZED; + } + + props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG | AMQP_BASIC_TIMESTAMP_FLAG | AMQP_BASIC_HEADERS_FLAG; + props.content_type = amqp_cstring_bytes("text/json"); + props.delivery_mode = 1; /* non persistent delivery mode */ + props.timestamp = (uint64_t)time(NULL); + + props.headers.num_entries = 1; + props.headers.entries = messageTableEntries; + + messageTableEntries[0].key = amqp_cstring_bytes("x_Liquid_MessageSentTimeStamp"); + messageTableEntries[0].value.kind = AMQP_FIELD_KIND_TIMESTAMP; + messageTableEntries[0].value.value.u64 = (uint64_t)switch_micro_time_now(); + + status = amqp_basic_publish( + profile->conn_active->state, + 1, + amqp_cstring_bytes(profile->exchange), + amqp_cstring_bytes(msg->routing_key), + 0, + 0, + &props, + amqp_cstring_bytes(msg->pjson)); + + if (status < 0) { + const char *errstr = amqp_error_string2(-status); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] failed to send event on connection[%s]: %s\n", + profile->name, profile->conn_active->name, errstr); + + /* This is bad, we couldn't send the message. Clear up any connection */ + mod_amqp_connection_close(profile->conn_active); + profile->conn_active = NULL; + return SWITCH_STATUS_SOCKERR; + } + + return SWITCH_STATUS_SUCCESS; +} + +void * SWITCH_THREAD_FUNC mod_amqp_producer_thread(switch_thread_t *thread, void *data) +{ + mod_amqp_message_t *msg = NULL; + switch_status_t status = SWITCH_STATUS_SUCCESS; + mod_amqp_producer_profile_t *profile = (mod_amqp_producer_profile_t *)data; + amqp_boolean_t passive = 0; + amqp_boolean_t durable = 1; + + while (profile->running) { + + if (!profile->conn_active) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Amqp no connection- reconnecting...\n"); + + status = mod_amqp_connection_open(profile->conn_root, &(profile->conn_active), profile->name, profile->custom_attr); + if ( status == SWITCH_STATUS_SUCCESS ) { + // Ensure that the exchange exists, and is of the correct type + amqp_exchange_declare(profile->conn_active->state, 1, + amqp_cstring_bytes(profile->exchange), + amqp_cstring_bytes(profile->exchange_type), + passive, + durable, + amqp_empty_table); + + if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Declaring exchange")) { + continue; + } + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to connect with code(%d), sleeping for %dms\n", + profile->name, status, profile->reconnect_interval_ms); + switch_sleep(profile->reconnect_interval_ms * 1000); + } + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Amqp reconnect successful- connected\n"); + continue; + } + + if (!msg && switch_queue_pop_timeout(profile->send_queue, (void**)&msg, 1000000) != SWITCH_STATUS_SUCCESS) { + continue; + } + + if (msg) { +#ifdef MOD_AMQP_DEBUG_TIMING + long times[TIME_STATS_TO_AGGREGATE]; + static unsigned int thistime = 0; + switch_time_t start = switch_time_now(); +#endif + switch (mod_amqp_producer_send(profile, msg)) { + case SWITCH_STATUS_SUCCESS: + /* Success: prepare for next message */ + mod_amqp_producer_msg_destroy(&msg); + break; + + case SWITCH_STATUS_NOT_INITALIZED: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Send failed with 'not initialised'\n"); + break; + + case SWITCH_STATUS_SOCKERR: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Send failed with 'socket error'\n"); + break; + + default: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Send failed with a generic error\n"); + + /* Send failed and closed the connection; reconnect will happen at the beginning of the loop + * NB: do we need a delay here to prevent a fast reconnect-send-fail loop? */ + break; + } + +#ifdef MOD_AMQP_DEBUG_TIMING + times[thistime++] = switch_time_now() - start; + if (thistime >= TIME_STATS_TO_AGGREGATE) { + int i; + long min_time, max_time, avg_time; + + /* Calculate aggregate times */ + min_time = max_time = avg_time = times[0]; + for (i = 1; i < TIME_STATS_TO_AGGREGATE; ++i) { + + avg_time += times[i]; + if (times[i] < min_time) min_time = times[i]; + if (times[i] > max_time) max_time = times[i]; + } + + avg_time /= TIME_STATS_TO_AGGREGATE; + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Microseconds to send last %d messages: Min %ld Max %ld Avg %ld\n", + TIME_STATS_TO_AGGREGATE, min_time, max_time, avg_time); + thistime = 0; + } +#endif + } + } + + /* Abort the current message */ + mod_amqp_producer_msg_destroy(&msg); + + // Terminate the thread + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Event sender thread stopped\n"); + switch_thread_exit(thread, SWITCH_STATUS_SUCCESS); + return NULL; +} + + +/* For Emacs: + * Local Variables: + * mode:c + * indent-tabs-mode:t + * tab-width:4 + * c-basic-offset:4 + * End: + * For VIM: + * vim:set softtabstop=4 shiftwidth=4 tabstop=4 + */ diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_utils.c b/src/mod/event_handlers/mod_amqp/mod_amqp_utils.c new file mode 100644 index 0000000000..caa22bf21c --- /dev/null +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_utils.c @@ -0,0 +1,160 @@ +/* +* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* Copyright (C) 2005-2012, Anthony Minessale II +* +* Version: MPL 1.1 +* +* The contents of this file are subject to the Mozilla Public License Version +* 1.1 (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS IS" basis, +* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +* for the specific language governing rights and limitations under the +* License. +* +* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application +* +* The Initial Developer of the Original Code is +* Anthony Minessale II +* Portions created by the Initial Developer are Copyright (C) +* the Initial Developer. All Rights Reserved. +* +* Based on mod_skel by +* Anthony Minessale II +* +* Contributor(s): +* +* Daniel Bryars +* Tim Brown +* Anthony Minessale II +* William King +* Mike Jerris +* +* mod_amqp.c -- Sends FreeSWITCH events to an AMQP broker +* +*/ + +#include "mod_amqp.h" + +int mod_amqp_log_if_amqp_error(amqp_rpc_reply_t x, char const *context) +{ + switch (x.reply_type) { + case AMQP_RESPONSE_NORMAL: + return 0; + + case AMQP_RESPONSE_NONE: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: missing RPC reply type!\n", context); + break; + + case AMQP_RESPONSE_LIBRARY_EXCEPTION: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: %s\n", context, amqp_error_string2(x.library_error)); + break; + + case AMQP_RESPONSE_SERVER_EXCEPTION: + switch (x.reply.id) { + case AMQP_CONNECTION_CLOSE_METHOD: { + amqp_connection_close_t *m = (amqp_connection_close_t *) x.reply.decoded; + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: server connection error %d, message: %.*s\n", + context, m->reply_code, (int) m->reply_text.len, (char *) m->reply_text.bytes); + break; + } + case AMQP_CHANNEL_CLOSE_METHOD: { + amqp_channel_close_t *m = (amqp_channel_close_t *) x.reply.decoded; + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: server channel error %d, message: %.*s\n", + context, m->reply_code, (int) m->reply_text.len, (char *) m->reply_text.bytes); + break; + } + default: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: unknown server error, method id 0x%08X\n", context, x.reply.id); + break; + } + break; + + default: + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: unknown reply_type: %d \n", context, x.reply_type); + break; + } + + return -1; +} + +int mod_amqp_count_chars(const char* string, char ch) +{ + int c = 0; + while (*string) c += *(string++) == ch; + return c; +} + +switch_status_t mod_amqp_do_config(switch_bool_t reload) +{ + switch_xml_t cfg = NULL, xml = NULL, profiles = NULL, profile = NULL; + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, reload ? "Reloading Config\n" : "Loading Config\n"); + + if (!(xml = switch_xml_open_cfg("amqp.conf", &cfg, NULL))) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of amqp.conf.xml failed\n"); + return SWITCH_STATUS_FALSE; + } + + if ((profiles = switch_xml_child(cfg, "producers"))) { + if ((profile = switch_xml_child(profiles, "profile"))) { + for (; profile; profile = profile->next) { + char *name = (char *) switch_xml_attr_soft(profile, "name"); + + if (zstr(name)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to load mod_amqp profile. Check configs missing name attr\n"); + continue; + } + + if ( mod_amqp_producer_create(name, profile) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to load mod_amqp profile [%s]. Check configs\n", name); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Loaded mod_amqp profile [%s] successfully\n", name); + } + } + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Unable to locate a profile for mod_amqp\n" ); + } + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unable to locate producers section for mod_amqp\n" ); + } + + if ((profiles = switch_xml_child(cfg, "commands"))) { + if ((profile = switch_xml_child(profiles, "profile"))) { + for (; profile; profile = profile->next) { + char *name = (char *) switch_xml_attr_soft(profile, "name"); + + if (zstr(name)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to load mod_amqp profile. Check configs missing name attr\n"); + continue; + } + name = switch_core_strdup(globals.pool, name); + + if ( mod_amqp_command_create(name, profile) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to load mod_amqp profile [%s]. Check configs\n", name); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Loaded mod_amqp profile [%s] successfully\n", name); + } + } + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Unable to locate a profile for mod_amqp\n" ); + } + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unable to locate commands section for mod_amqp\n" ); + } + + return SWITCH_STATUS_SUCCESS; +} + + +/* For Emacs: + * Local Variables: + * mode:c + * indent-tabs-mode:t + * tab-width:4 + * c-basic-offset:4 + * End: + * For VIM: + * vim:set softtabstop=4 shiftwidth=4 tabstop=4 + */ From 3f685a25a021dec3d21115e53dcd49b59a15df85 Mon Sep 17 00:00:00 2001 From: William King Date: Fri, 3 Apr 2015 15:51:33 -0700 Subject: [PATCH 28/97] Adding debian packaging for mod_amqp --- debian/control-modules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/control-modules b/debian/control-modules index 84b7d8d140..852df6d0c9 100644 --- a/debian/control-modules +++ b/debian/control-modules @@ -453,6 +453,11 @@ Build-Depends: libperl-dev ## mod/event_handlers +Module: event_handler/mod_amqp +Description: Event handler to send events to an amqp server + AMQP event handler +Build-Depends: librabbitmq-dev + Module: event_handlers/mod_cdr_csv Description: mod_cdr_csv Adds mod_cdr_csv. From 6eb59c711989774fb797d1c447e3d63aac84826b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 3 Apr 2015 14:14:14 -0500 Subject: [PATCH 29/97] add variable expansion to mod_xml_ldap --- src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c b/src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c index 2838eeba0e..a3d805495c 100644 --- a/src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c +++ b/src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c @@ -116,7 +116,7 @@ SWITCH_MODULE_DEFINITION(mod_xml_ldap, mod_xml_ldap_load, mod_xml_ldap_shutdown, static switch_xml_t xml_ldap_search(const char *section, const char *tag_name, const char *key_name, const char *key_value, switch_event_t *params, void *user_data); -static switch_status_t trydir(switch_xml_t *, int *, LDAP *, char *, char *, xml_binding_t *); +static switch_status_t trydir(switch_xml_t *, int *, LDAP *, char *, char *, xml_binding_t *, switch_event_t *params); static switch_status_t do_config(void); static switch_status_t trysearch(switch_xml_t *pxml, int *xoff, LDAP * ld, char *basedn, char *filter); void rec(switch_xml_t *, int *, LDAP * ld, char *); @@ -353,7 +353,7 @@ static switch_status_t do_config(void) } -static switch_status_t trydir(switch_xml_t *pxml, int *xoff, LDAP * ld, char *dir_domain, char *dir_exten, xml_binding_t *binding) +static switch_status_t trydir(switch_xml_t *pxml, int *xoff, LDAP * ld, char *dir_domain, char *dir_exten, xml_binding_t *binding, switch_event_t *param_event) { switch_status_t ret = SWITCH_STATUS_FALSE; int off = *xoff; @@ -373,6 +373,15 @@ static switch_status_t trydir(switch_xml_t *pxml, int *xoff, LDAP * ld, char *di basedn = switch_mprintf(binding->basedn, dir_domain); filter = switch_mprintf(binding->filter, dir_exten); + if (param_event) { + char *expanded = switch_event_expand_headers(param_event, filter); + + if (expanded != filter) { + free(filter); + filter = expanded; + } + } + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "searching in basedn %s with filter %s\n", basedn, filter); if ((ldap_search_s(ld, basedn, LDAP_SCOPE_SUB, filter, NULL, 0, &msg) != LDAP_SUCCESS)) @@ -612,7 +621,7 @@ static switch_xml_t xml_ldap_search(const char *section, const char *tag_name, c break; case XML_LDAP_DIRECTORY: - ret = trydir(&xml, &xoff, ld, dir_domain, dir_exten, binding); + ret = trydir(&xml, &xoff, ld, dir_domain, dir_exten, binding, params); break; case XML_LDAP_DIALPLAN: From 7b6a9efcaa609144416dd7290e95de32bead9311 Mon Sep 17 00:00:00 2001 From: William King Date: Tue, 7 Apr 2015 10:52:30 -0700 Subject: [PATCH 30/97] FS-7060 More accurate logging, and improve handling of producer reconnect attempt interval --- src/mod/event_handlers/mod_amqp/mod_amqp_producer.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c index 191ae8b124..136bbf4b48 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -394,15 +394,14 @@ void * SWITCH_THREAD_FUNC mod_amqp_producer_thread(switch_thread_t *thread, void amqp_empty_table); if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Declaring exchange")) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Amqp reconnect successful- connected\n"); continue; } - } else { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to connect with code(%d), sleeping for %dms\n", - profile->name, status, profile->reconnect_interval_ms); - switch_sleep(profile->reconnect_interval_ms * 1000); } - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Amqp reconnect successful- connected\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to connect with code(%d), sleeping for %dms\n", + profile->name, status, profile->reconnect_interval_ms); + switch_sleep(profile->reconnect_interval_ms * 1000); continue; } From d55c4a053b837c653292eb6c118b7b2dc3df1139 Mon Sep 17 00:00:00 2001 From: William King Date: Tue, 7 Apr 2015 16:11:34 -0700 Subject: [PATCH 31/97] FS-7060 expanded configuration for amqp command configuration --- conf/vanilla/autoload_configs/amqp.conf.xml | 4 +- src/mod/event_handlers/mod_amqp/mod_amqp.h | 7 --- .../mod_amqp/mod_amqp_command.c | 57 +++++++++++++++++++ .../mod_amqp/mod_amqp_producer.c | 2 + 4 files changed, 61 insertions(+), 9 deletions(-) diff --git a/conf/vanilla/autoload_configs/amqp.conf.xml b/conf/vanilla/autoload_configs/amqp.conf.xml index 5ae9dc944a..06bbb0d395 100644 --- a/conf/vanilla/autoload_configs/amqp.conf.xml +++ b/conf/vanilla/autoload_configs/amqp.conf.xml @@ -48,8 +48,8 @@ - - + + diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.h b/src/mod/event_handlers/mod_amqp/mod_amqp.h index 808415e7ad..07528b234e 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp.h +++ b/src/mod/event_handlers/mod_amqp/mod_amqp.h @@ -114,15 +114,8 @@ typedef struct { char *name; char *exchange; - char *exchange_type; char *binding_key; - /* Array to store the possible event subscriptions */ - char *event_filter; - unsigned int number_of_event_filters; - switch_event_node_t *event_nodes[SWITCH_EVENT_ALL]; - switch_event_types_t event_ids[SWITCH_EVENT_ALL]; - /* Note: The AMQP channel is not reentrant this MUTEX serializes sending events. */ mod_amqp_connection_t *conn_root; mod_amqp_connection_t *conn_active; diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_command.c b/src/mod/event_handlers/mod_amqp/mod_amqp_command.c index 235983bae0..48eec1da1e 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_command.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_command.c @@ -83,8 +83,10 @@ switch_status_t mod_amqp_command_destroy(mod_amqp_command_profile_t **prof) switch_status_t mod_amqp_command_create(char *name, switch_xml_t cfg) { mod_amqp_command_profile_t *profile = NULL; + switch_xml_t params, param, connections, connection; switch_threadattr_t *thd_attr = NULL; switch_memory_pool_t *pool; + char *exchange = NULL; if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) { goto err; @@ -95,6 +97,61 @@ switch_status_t mod_amqp_command_create(char *name, switch_xml_t cfg) profile->pool = pool; profile->name = switch_core_strdup(profile->pool, name); profile->running = 1; + profile->reconnect_interval_ms = 1000; + + if ((params = switch_xml_child(cfg, "params")) != NULL) { + for (param = switch_xml_child(params, "param"); param; param = param->next) { + char *var = (char *) switch_xml_attr_soft(param, "name"); + char *val = (char *) switch_xml_attr_soft(param, "value"); + + if (!var) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] param missing 'name' attribute\n", profile->name); + continue; + } + + if (!val) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] param[%s] missing 'value' attribute\n", profile->name, var); + continue; + } + + if (!strncmp(var, "reconnect_interval_ms", 21)) { + int interval = atoi(val); + if ( interval && interval > 0 ) { + profile->reconnect_interval_ms = interval; + } + } else if (!strncmp(var, "exchange", 8)) { + exchange = switch_core_strdup(profile->pool, "TAP.Commands"); + } + } + } + + /* Handle defaults of string types */ + profile->exchange = exchange ? exchange : switch_core_strdup(profile->pool, "TAP.Commands"); + + if ((connections = switch_xml_child(cfg, "connections")) != NULL) { + for (connection = switch_xml_child(connections, "connection"); connection; connection = connection->next) { + if ( ! profile->conn_root ) { /* Handle first root node */ + if (mod_amqp_connection_create(&(profile->conn_root), connection, profile->pool) != SWITCH_STATUS_SUCCESS) { + /* Handle connection create failure */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to create connection\n", profile->name); + continue; + } + profile->conn_active = profile->conn_root; + } else { + if (mod_amqp_connection_create(&(profile->conn_active->next), connection, profile->pool) != SWITCH_STATUS_SUCCESS) { + /* Handle connection create failure */ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile[%s] failed to create connection\n", profile->name); + continue; + } + profile->conn_active = profile->conn_active->next; + } + } + } + profile->conn_active = NULL; + + if ( mod_amqp_connection_open(profile->conn_root, &(profile->conn_active), profile->name, profile->custom_attr) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] was unable to connect to any connection\n", profile->name); + } /* Start the worker threads */ switch_threadattr_create(&thd_attr, profile->pool); diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c index 136bbf4b48..067bb57d7b 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -221,6 +221,8 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) if ( interval && interval > 0 ) { profile->send_queue_size = interval; } + } else if (!strncmp(var, "exchange", 8)) { + exchange = switch_core_strdup(profile->pool, "TAP.Events"); } else if (!strncmp(var, "format_fields", 13)) { int size = 0; if ((size = mod_amqp_count_chars(val, ',')) >= MAX_ROUTING_KEY_FORMAT_FIELDS) { From 0d6c3a1d73697ae3d1b01d5fb375c6a6fb8e333f Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Thu, 9 Apr 2015 03:30:49 +0800 Subject: [PATCH 32/97] Various minor tweaks to spandsp and the ARM specific code now does fast top bit detection. --- libs/spandsp/src/ademco_contactid.c | 4 +- libs/spandsp/src/dtmf.c | 4 +- libs/spandsp/src/gsm0610_encode.c | 4 +- libs/spandsp/src/msvc/inttypes.h | 2 +- libs/spandsp/src/spandsp/at_interpreter.h | 1 - libs/spandsp/src/spandsp/bit_operations.h | 4 +- libs/spandsp/src/spandsp/fir.h | 2 - libs/spandsp/src/spandsp/plc.h | 1 - libs/spandsp/src/spandsp/private/time_scale.h | 16 ++- libs/spandsp/src/spandsp/t30_api.h | 22 +++ libs/spandsp/src/spandsp/time_scale.h | 40 +++--- libs/spandsp/src/t30.c | 16 ++- libs/spandsp/src/t30_api.c | 59 ++++++++ libs/spandsp/src/t31.c | 2 +- libs/spandsp/src/t38_gateway.c | 9 +- libs/spandsp/src/time_scale.c | 134 ++++++++++++------ libs/spandsp/src/v22bis_rx.c | 6 +- 17 files changed, 234 insertions(+), 92 deletions(-) diff --git a/libs/spandsp/src/ademco_contactid.c b/libs/spandsp/src/ademco_contactid.c index 975525adb8..d26fab4a2c 100644 --- a/libs/spandsp/src/ademco_contactid.c +++ b/libs/spandsp/src/ademco_contactid.c @@ -755,7 +755,7 @@ SPAN_DECLARE(ademco_contactid_receiver_state_t *) ademco_contactid_receiver_init { if (s == NULL) { - if ((s = (ademco_contactid_receiver_state_t *) span_alloc(sizeof (*s))) == NULL) + if ((s = (ademco_contactid_receiver_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; } memset(s, 0, sizeof(*s)); @@ -1090,7 +1090,7 @@ SPAN_DECLARE(ademco_contactid_sender_state_t *) ademco_contactid_sender_init(ade { if (s == NULL) { - if ((s = (ademco_contactid_sender_state_t *) span_alloc(sizeof (*s))) == NULL) + if ((s = (ademco_contactid_sender_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; } memset(s, 0, sizeof(*s)); diff --git a/libs/spandsp/src/dtmf.c b/libs/spandsp/src/dtmf.c index 48a8836337..1ff725ff22 100644 --- a/libs/spandsp/src/dtmf.c +++ b/libs/spandsp/src/dtmf.c @@ -417,7 +417,7 @@ SPAN_DECLARE(dtmf_rx_state_t *) dtmf_rx_init(dtmf_rx_state_t *s, if (s == NULL) { - if ((s = (dtmf_rx_state_t *) span_alloc(sizeof (*s))) == NULL) + if ((s = (dtmf_rx_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; } memset(s, 0, sizeof(*s)); @@ -578,7 +578,7 @@ SPAN_DECLARE(dtmf_tx_state_t *) dtmf_tx_init(dtmf_tx_state_t *s, { if (s == NULL) { - if ((s = (dtmf_tx_state_t *) span_alloc(sizeof (*s))) == NULL) + if ((s = (dtmf_tx_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; } memset(s, 0, sizeof(*s)); diff --git a/libs/spandsp/src/gsm0610_encode.c b/libs/spandsp/src/gsm0610_encode.c index c810fa2c69..7621f22adc 100644 --- a/libs/spandsp/src/gsm0610_encode.c +++ b/libs/spandsp/src/gsm0610_encode.c @@ -116,12 +116,12 @@ SPAN_DECLARE(gsm0610_state_t *) gsm0610_init(gsm0610_state_t *s, int packing) { if (s == NULL) { - if ((s = (gsm0610_state_t *) span_alloc(sizeof (*s))) == NULL) + if ((s = (gsm0610_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; /*endif*/ } /*endif*/ - memset((char *) s, '\0', sizeof (gsm0610_state_t)); + memset((char *) s, '\0', sizeof(gsm0610_state_t)); s->nrp = 40; s->packing = packing; return s; diff --git a/libs/spandsp/src/msvc/inttypes.h b/libs/spandsp/src/msvc/inttypes.h index 032ec3c36c..8d680e27db 100644 --- a/libs/spandsp/src/msvc/inttypes.h +++ b/libs/spandsp/src/msvc/inttypes.h @@ -33,7 +33,7 @@ typedef __int16 int16_t; typedef __int32 int32_t; typedef __int64 int64_t; -#if !defined(INFINITY) +#if !defined(INFINITY) && _MSC_VER < 1800 #define INFINITY 0x7FFFFFFF #endif diff --git a/libs/spandsp/src/spandsp/at_interpreter.h b/libs/spandsp/src/spandsp/at_interpreter.h index 1b6e1f7771..67ca4c0b77 100644 --- a/libs/spandsp/src/spandsp/at_interpreter.h +++ b/libs/spandsp/src/spandsp/at_interpreter.h @@ -173,7 +173,6 @@ SPAN_DECLARE(void) at_set_class1_handler(at_state_t *s, at_class1_handler_t hand \return A pointer to the logging context */ SPAN_DECLARE(logging_state_t *) at_get_logging_state(at_state_t *s); - SPAN_DECLARE(void) at_set_modem_control_handler(at_state_t *s, at_modem_control_handler_t modem_control_handler, void *modem_control_user_data); diff --git a/libs/spandsp/src/spandsp/bit_operations.h b/libs/spandsp/src/spandsp/bit_operations.h index c7f4093ab3..7b5b5aface 100644 --- a/libs/spandsp/src/spandsp/bit_operations.h +++ b/libs/spandsp/src/spandsp/bit_operations.h @@ -53,13 +53,13 @@ static __inline__ int top_bit(uint32_t bits) : [res] "=&r" (res) : [bits] "rm" (bits)); return res; -#elif defined(__GNUC__x) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__)) +#elif defined(__GNUC__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__)) int res; __asm__("clz %[res], %[bits]" : [res] "=r" (res) : [bits] "r" (bits)); - return res; + return 31 - res; #elif defined(__ppc__) || defined(__powerpc__) int res; diff --git a/libs/spandsp/src/spandsp/fir.h b/libs/spandsp/src/spandsp/fir.h index 554a36c372..85be5d2a6f 100644 --- a/libs/spandsp/src/spandsp/fir.h +++ b/libs/spandsp/src/spandsp/fir.h @@ -38,8 +38,6 @@ #include "mmx.h" #endif -#include "alloc.h" - /*! 16 bit integer FIR descriptor. This defines the working state for a single instance of an FIR filter using 16 bit integer coefficients. diff --git a/libs/spandsp/src/spandsp/plc.h b/libs/spandsp/src/spandsp/plc.h index 6d5c301073..2c2f7ca3fa 100644 --- a/libs/spandsp/src/spandsp/plc.h +++ b/libs/spandsp/src/spandsp/plc.h @@ -111,7 +111,6 @@ That's it! */ typedef struct plc_state_s plc_state_t; - #if defined(__cplusplus) extern "C" { diff --git a/libs/spandsp/src/spandsp/private/time_scale.h b/libs/spandsp/src/spandsp/private/time_scale.h index 775046161d..1b55a00874 100644 --- a/libs/spandsp/src/spandsp/private/time_scale.h +++ b/libs/spandsp/src/spandsp/private/time_scale.h @@ -34,15 +34,27 @@ /*! Audio time scaling descriptor. */ struct time_scale_state_s { + /*! \brief The sample rate of both the incoming and outgoing signal */ int sample_rate; + /*! \brief The minimum pitch we will search for, in samples per cycle */ int min_pitch; + /*! \brief The maximum pitch we will search for, in samples per cycle */ int max_pitch; - int buf_len; + /*! \brief The playout speed, as the fraction output time/input time. + (i.e. >1.0 == slow down, 1.0 == no speed change, <1.0 == speed up) */ float playout_rate; + /*! \brief */ double rcomp; + /*! \brief The fractional sample adjustment, to allow for non-integer values of lcp. */ double rate_nudge; - int fill; + /*! \brief */ int lcp; + /*! \brief The active length of buf at the current sample rate. */ + int buf_len; + /*! \brief The number of samples in buf */ + int fill; + /*! \brief Buffer for residual samples kept over from one call of time_scale() to + the next. */ int16_t buf[TIME_SCALE_BUF_LEN]; }; diff --git a/libs/spandsp/src/spandsp/t30_api.h b/libs/spandsp/src/spandsp/t30_api.h index 90cefc4f58..e6b47fb877 100644 --- a/libs/spandsp/src/spandsp/t30_api.h +++ b/libs/spandsp/src/spandsp/t30_api.h @@ -28,11 +28,33 @@ #if !defined(_SPANDSP_T30_API_H_) #define _SPANDSP_T30_API_H_ +enum +{ + T33_NONE = 0, + T33_SST = 1, + T33_EXT = 2 +}; + #if defined(__cplusplus) extern "C" { #endif +/*! Get the specified field from a T.33 formatted string. + \brief Get the specified field from a T.33 formatted string. + \param field The extracted field. + \param t33 The T.33 formatted string. + \param field_no The field number to extract. The first field is 0. + \return The extracted field type. -1 indicates a over length or badly formatted field. */ +SPAN_DECLARE(int) t33_sub_address_extract_field(uint8_t field[21], const uint8_t t33[], int field_no); + +/*! Append the specified field to a T.33 formatted string. + \brief Append the specified field to a T.33 formatted string. + \param t33 The T.33 formatted string. + \param field The field to be adppended. + \param type The type of the field to be appended. */ +SPAN_DECLARE(void) t33_sub_address_add_field(uint8_t t33[], const uint8_t field[], int type); + /*! Set the transmitted NSF frame to be associated with a T.30 context. \brief Set the transmitted NSF frame to be associated with a T.30 context. \param s The T.30 context. diff --git a/libs/spandsp/src/spandsp/time_scale.h b/libs/spandsp/src/spandsp/time_scale.h index 666cca7a78..35e8e00fe7 100644 --- a/libs/spandsp/src/spandsp/time_scale.h +++ b/libs/spandsp/src/spandsp/time_scale.h @@ -62,25 +62,6 @@ extern "C" { #endif -/*! Initialise a time scale context. This must be called before the first - use of the context, to initialise its contents. - \brief Initialise a time scale context. - \param s The time scale context. - \param sample_rate The sample rate of the signal. - \param playout_rate The ratio between the output speed and the input speed. - \return A pointer to the context, or NULL if there was a problem. */ -SPAN_DECLARE(time_scale_state_t *) time_scale_init(time_scale_state_t *s, int sample_rate, float playout_rate); - -/*! \brief Release a time scale context. - \param s The time scale context. - \return 0 for OK, else -1. */ -SPAN_DECLARE(int) time_scale_release(time_scale_state_t *s); - -/*! \brief Free a time scale context. - \param s The time scale context. - \return 0 for OK, else -1. */ -SPAN_DECLARE(int) time_scale_free(time_scale_state_t *s); - /*! Change the time scale rate. \brief Change the time scale rate. \param s The time scale context. @@ -108,6 +89,27 @@ SPAN_DECLARE(int) time_scale_max_output_len(time_scale_state_t *s, int input_len */ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], int len); +SPAN_DECLARE(int) time_scale_flush(time_scale_state_t *s, int16_t out[]); + +/*! Initialise a time scale context. This must be called before the first + use of the context, to initialise its contents. + \brief Initialise a time scale context. + \param s The time scale context. + \param sample_rate The sample rate of the signal. + \param playout_rate The ratio between the output speed and the input speed. + \return A pointer to the context, or NULL if there was a problem. */ +SPAN_DECLARE(time_scale_state_t *) time_scale_init(time_scale_state_t *s, int sample_rate, float playout_rate); + +/*! \brief Release a time scale context. + \param s The time scale context. + \return 0 for OK, else -1. */ +SPAN_DECLARE(int) time_scale_release(time_scale_state_t *s); + +/*! \brief Free a time scale context. + \param s The time scale context. + \return 0 for OK, else -1. */ +SPAN_DECLARE(int) time_scale_free(time_scale_state_t *s); + #if defined(__cplusplus) } #endif diff --git a/libs/spandsp/src/t30.c b/libs/spandsp/src/t30.c index bd24898b3e..1a51f2fc2f 100644 --- a/libs/spandsp/src/t30.c +++ b/libs/spandsp/src/t30.c @@ -436,6 +436,7 @@ static void decode_20digit_msg(t30_state_t *s, char *msg, const uint8_t *pkt, in static void decode_url_msg(t30_state_t *s, char *msg, const uint8_t *pkt, int len); static int decode_nsf_nss_nsc(t30_state_t *s, uint8_t *msg[], const uint8_t *pkt, int len); static void set_min_scan_time(t30_state_t *s); +static int send_cfr_sequence(t30_state_t *s, int start); static int build_dcs(t30_state_t *s); static void timer_t2_start(t30_state_t *s); static void timer_t2a_start(t30_state_t *s); @@ -1309,7 +1310,6 @@ int t30_build_dis_or_dtc(t30_state_t *s) /* No Document transfer mode (DTM) */ /* No Electronic data interchange (EDI) */ /* No Basic transfer mode (BTM) */ - /* No mixed mode (polling) */ /* No character mode */ /* No mixed mode (T.4/Annex E) */ @@ -5492,9 +5492,9 @@ static void timer_t2_expired(t30_state_t *s) /* We didn't receive a response to our T30_MCF after T30_EOM, so we must be OK to proceed to phase B, and pretty much act like its the beginning of a call. */ span_log(&s->logging, SPAN_LOG_FLOW, "Returning to phase B after %s\n", t30_frametype(s->next_rx_step)); + s->dis_received = false; set_phase(s, T30_PHASE_B_TX); timer_t2_start(s); - s->dis_received = false; send_dis_or_dtc_sequence(s, true); return; } @@ -5548,6 +5548,13 @@ static void timer_t2a_expired(t30_state_t *s) { span_log(&s->logging, SPAN_LOG_FLOW, "T2A expired in phase %s, state %s. An HDLC frame lasted too long.\n", phase_names[s->phase], state_names[s->state]); t30_set_status(s, T30_ERR_HDLC_CARRIER); + /* T.30 says we should retry at this point, but we can't. We would need to + wait for the far end to go quiet before sending. Experience says you only + get here when the far end is buggy, and it will not go quiet unless you + hang up. If we were to retry, how long should we wait for the line to go + quiet? T.30 doesn't specify things like that. The only effective strategy, + when trying to deal with problems found in logs from real world systems, + is to abandon the call. */ terminate_call(s); } /*- End of function --------------------------------------------------------*/ @@ -5571,7 +5578,8 @@ static void timer_t4_expired(t30_state_t *s) { /* There was no response (or only a corrupt response) to a command, within the T4 timeout period. */ - span_log(&s->logging, SPAN_LOG_FLOW, "T4 expired in phase %s, state %s\n", phase_names[s->phase], state_names[s->state]); + if (s->timer_t2_t4_is == TIMER_IS_T4) + span_log(&s->logging, SPAN_LOG_FLOW, "T4 expired in phase %s, state %s\n", phase_names[s->phase], state_names[s->state]); /* Of course, things might just be a little late, especially if there are T.38 links in the path. There is no point in simply timing out, and resending, if we are currently receiving something from the far end - its a half-duplex @@ -6143,9 +6151,9 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) { case T30_STATE_ANSWERING: span_log(&s->logging, SPAN_LOG_FLOW, "Starting answer mode\n"); + s->dis_received = false; set_phase(s, T30_PHASE_B_TX); timer_t2_start(s); - s->dis_received = false; send_dis_or_dtc_sequence(s, true); break; case T30_STATE_R: diff --git a/libs/spandsp/src/t30_api.c b/libs/spandsp/src/t30_api.c index 5bf164b998..724dcf9735 100644 --- a/libs/spandsp/src/t30_api.c +++ b/libs/spandsp/src/t30_api.c @@ -95,6 +95,65 @@ #include "t30_local.h" +SPAN_DECLARE(int) t33_sub_address_extract_field(uint8_t num[21], const uint8_t t33[], int field_no) +{ + int i; + int j; + int k; + int ch; + int type; + + num[0] = '\0'; + k = 0; + for (i = 0; t33[i]; ) + { + if (k++ == field_no) + { + ch = t33[i++]; + j = 0; + if (ch != '#') + { + num[j++] = ch; + type = T33_EXT; + } + else + { + type = T33_SST; + } + while (t33[i]) + { + ch = t33[i++]; + if (ch == '#') + break; + num[j++] = ch; + if (j >= 20) + return -1; + } + num[j] = '\0'; + return type; + } + /* Skip this field */ + i++; + while (t33[i]) + { + if (t33[i++] == '#') + break; + } + } + return T33_NONE; +} +/*- End of function --------------------------------------------------------*/ + +SPAN_DECLARE(void) t33_sub_address_add_field(uint8_t t33[], const uint8_t field[], int type) +{ + if (t33[0] != '\0') + strcat((char *) t33, "#"); + if (type == T33_SST) + strcat((char *) t33, "#"); + strcat((char *) t33, (const char *) field); +} +/*- End of function --------------------------------------------------------*/ + SPAN_DECLARE(int) t30_set_tx_ident(t30_state_t *s, const char *id) { if (id == NULL) diff --git a/libs/spandsp/src/t31.c b/libs/spandsp/src/t31.c index 943063e8a2..e63eb229e8 100644 --- a/libs/spandsp/src/t31.c +++ b/libs/spandsp/src/t31.c @@ -2994,7 +2994,7 @@ SPAN_DECLARE(t31_state_t *) t31_init(t31_state_t *s, alloced = false; if (s == NULL) { - if ((s = (t31_state_t *) span_alloc(sizeof (*s))) == NULL) + if ((s = (t31_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; /*endif*/ alloced = true; diff --git a/libs/spandsp/src/t38_gateway.c b/libs/spandsp/src/t38_gateway.c index 88b17352c4..4467a615ad 100644 --- a/libs/spandsp/src/t38_gateway.c +++ b/libs/spandsp/src/t38_gateway.c @@ -662,8 +662,8 @@ static void monitor_control_messages(t38_gateway_state_t *s, /*endif*/ } /*endfor*/ - /* If we are processing a message from the modem side, the contents determine the fast receive modem. - we are to use. If it comes from the T.38 side the contents do not. */ + /* If we are processing a message from the modem side, the contents determine the fast + receive modem we are to use. If it comes from the T.38 side the contents do not. */ s->core.fast_bit_rate = modem_codes[i].bit_rate; if (from_modem) s->core.fast_rx_modem = modem_codes[i].modem_type; @@ -700,8 +700,9 @@ static void monitor_control_messages(t38_gateway_state_t *s, /*endif*/ } /*endfor*/ - /* If we are processing a message from the modem side, the contents determine the fast receive modem. - we are to use. If it comes from the T.38 side the contents do not. */ + /* If we are processing a DCS message from the modem side, the contents determine the fast + receive modem we are to use. If it comes from the T.38 side the contents do not. For a + DTC message this is reversed. */ s->core.fast_bit_rate = modem_codes[i].bit_rate; if ((buf[2] == T30_DTC && !from_modem) || (buf[2] != T30_DTC && from_modem)) s->core.fast_rx_modem = modem_codes[i].modem_type; diff --git a/libs/spandsp/src/time_scale.c b/libs/spandsp/src/time_scale.c index 5337e4ad0c..ea1f95c35c 100644 --- a/libs/spandsp/src/time_scale.c +++ b/libs/spandsp/src/time_scale.c @@ -78,12 +78,15 @@ static __inline__ int amdf_pitch(int min_pitch, int max_pitch, int16_t amp[], in acc = 0; for (j = 0; j < len; j++) acc += abs(amp[i + j] - amp[j]); + /*endfor*/ if (acc < min_acc) { min_acc = acc; pitch = i; } + /*endif*/ } + /*endfor*/ return pitch; } /*- End of function --------------------------------------------------------*/ @@ -102,6 +105,7 @@ static __inline__ void overlap_add(int16_t amp1[], int16_t amp2[], int len) amp2[i] = (int16_t) ((float) amp1[i]*(1.0f - weight) + (float) amp2[i]*weight); weight += step; } + /*endfor*/ } /*- End of function --------------------------------------------------------*/ @@ -130,52 +134,6 @@ SPAN_DECLARE(int) time_scale_rate(time_scale_state_t *s, float playout_rate) } /*- End of function --------------------------------------------------------*/ -SPAN_DECLARE(time_scale_state_t *) time_scale_init(time_scale_state_t *s, int sample_rate, float playout_rate) -{ - bool alloced; - - if (sample_rate > TIME_SCALE_MAX_SAMPLE_RATE) - return NULL; - alloced = false; - if (s == NULL) - { - if ((s = (time_scale_state_t *) span_alloc(sizeof (*s))) == NULL) - return NULL; - /*endif*/ - alloced = true; - } - /*endif*/ - s->sample_rate = sample_rate; - s->min_pitch = sample_rate/TIME_SCALE_MIN_PITCH; - s->max_pitch = sample_rate/TIME_SCALE_MAX_PITCH; - s->buf_len = 2*sample_rate/TIME_SCALE_MIN_PITCH; - if (time_scale_rate(s, playout_rate)) - { - if (alloced) - span_free(s); - return NULL; - } - /*endif*/ - s->rate_nudge = 0.0f; - s->fill = 0; - s->lcp = 0; - return s; -} -/*- End of function --------------------------------------------------------*/ - -SPAN_DECLARE(int) time_scale_release(time_scale_state_t *s) -{ - return 0; -} -/*- End of function --------------------------------------------------------*/ - -SPAN_DECLARE(int) time_scale_free(time_scale_state_t *s) -{ - span_free(s); - return 0; -} -/*- End of function --------------------------------------------------------*/ - SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], int len) { double lcpf; @@ -191,10 +149,12 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], if (s->fill + len < s->buf_len) { /* Cannot continue without more samples */ + /* Save the residual signal for next time. */ vec_copyi16(&s->buf[s->fill], in, len); s->fill += len; return out_len; } + /*endif*/ k = s->buf_len - s->fill; vec_copyi16(&s->buf[s->fill], in, k); in_len += k; @@ -208,15 +168,18 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], if (len - in_len < s->buf_len) { /* Cannot continue without more samples */ + /* Save the residual signal for next time. */ vec_copyi16(s->buf, &in[in_len], len - in_len); s->fill = len - in_len; s->lcp -= s->buf_len; return out_len; } + /*endif*/ vec_copyi16(s->buf, &in[in_len], s->buf_len); in_len += s->buf_len; s->lcp -= s->buf_len; } + /*endwhile*/ if (s->lcp > 0) { vec_copyi16(&out[out_len], s->buf, s->lcp); @@ -225,15 +188,18 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], if (len - in_len < s->lcp) { /* Cannot continue without more samples */ + /* Save the residual signal for next time. */ vec_copyi16(&s->buf[s->buf_len - s->lcp], &in[in_len], len - in_len); s->fill = s->buf_len - s->lcp + len - in_len; s->lcp = 0; return out_len; } + /*endif*/ vec_copyi16(&s->buf[s->buf_len - s->lcp], &in[in_len], s->lcp); in_len += s->lcp; s->lcp = 0; } + /*endif*/ if (s->playout_rate == 1.0f) { s->lcp = 0x7FFFFFFF; @@ -256,6 +222,7 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], s->lcp++; s->rate_nudge += 1.0f; } + /*endif*/ if (s->playout_rate < 1.0f) { /* Speed up - drop a chunk of data */ @@ -264,10 +231,12 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], if (len - in_len < pitch) { /* Cannot continue without more samples */ + /* Save the residual signal for next time. */ vec_copyi16(&s->buf[s->buf_len - pitch], &in[in_len], len - in_len); s->fill += (len - in_len - pitch); return out_len; } + /*endif*/ vec_copyi16(&s->buf[s->buf_len - pitch], &in[in_len], pitch); in_len += pitch; } @@ -278,15 +247,88 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], out_len += pitch; overlap_add(&s->buf[pitch], s->buf, pitch); } + /*endif*/ } + /*endif*/ } + /*endwhile*/ return out_len; } /*- End of function --------------------------------------------------------*/ +SPAN_DECLARE(int) time_scale_flush(time_scale_state_t *s, int16_t out[]) +{ + int len; + int pad; + + if (s->playout_rate < 1.0f) + return 0; + /*endif*/ + vec_copyi16(out, s->buf, s->fill); + len = s->fill; + if (s->playout_rate > 1.0f) + { + pad = s->fill*(s->playout_rate - 1.0f); + vec_zeroi16(&out[len], pad); + len += pad; + } + /*endif*/ + s->fill = 0; + return len; +} +/*- End of function --------------------------------------------------------*/ + SPAN_DECLARE(int) time_scale_max_output_len(time_scale_state_t *s, int input_len) { return (int) (input_len*s->playout_rate + s->min_pitch + 1); } /*- End of function --------------------------------------------------------*/ + +SPAN_DECLARE(time_scale_state_t *) time_scale_init(time_scale_state_t *s, int sample_rate, float playout_rate) +{ + bool alloced; + + if (sample_rate > TIME_SCALE_MAX_SAMPLE_RATE) + return NULL; + /*endif*/ + alloced = false; + if (s == NULL) + { + if ((s = (time_scale_state_t *) span_alloc(sizeof(*s))) == NULL) + return NULL; + /*endif*/ + alloced = true; + } + /*endif*/ + s->sample_rate = sample_rate; + s->min_pitch = sample_rate/TIME_SCALE_MIN_PITCH; + s->max_pitch = sample_rate/TIME_SCALE_MAX_PITCH; + s->buf_len = 2*sample_rate/TIME_SCALE_MIN_PITCH; + if (time_scale_rate(s, playout_rate)) + { + if (alloced) + span_free(s); + /*endif*/ + return NULL; + } + /*endif*/ + s->rate_nudge = 0.0f; + s->fill = 0; + s->lcp = 0; + return s; +} +/*- End of function --------------------------------------------------------*/ + +SPAN_DECLARE(int) time_scale_release(time_scale_state_t *s) +{ + return 0; +} +/*- End of function --------------------------------------------------------*/ + +SPAN_DECLARE(int) time_scale_free(time_scale_state_t *s) +{ + span_free(s); + return 0; +} +/*- End of function --------------------------------------------------------*/ /*- End of file ------------------------------------------------------------*/ diff --git a/libs/spandsp/src/v22bis_rx.c b/libs/spandsp/src/v22bis_rx.c index 42c3e93c2a..102b9a2eb7 100644 --- a/libs/spandsp/src/v22bis_rx.c +++ b/libs/spandsp/src/v22bis_rx.c @@ -579,7 +579,7 @@ static __inline__ void process_half_baud(v22bis_state_t *s, const complexf_t *sa s->rx.gardner_step = 32; break; case V22BIS_RX_TRAINING_STAGE_UNSCRAMBLED_ONES: - /* Calling modem only */ + /* Calling modem only. */ /* The calling modem should initially receive unscrambled ones at 1200bps */ target = &v22bis_constellation[nearest]; track_carrier(s, &z, target); @@ -621,7 +621,7 @@ static __inline__ void process_half_baud(v22bis_state_t *s, const complexf_t *sa } break; case V22BIS_RX_TRAINING_STAGE_UNSCRAMBLED_ONES_SUSTAINING: - /* Calling modem only */ + /* Calling modem only. */ /* Wait for the end of the unscrambled ones at 1200bps. */ target = &v22bis_constellation[nearest]; track_carrier(s, &z, target); @@ -682,7 +682,7 @@ static __inline__ void process_half_baud(v22bis_state_t *s, const complexf_t *sa /* The transmit side needs to sustain the scrambled ones for a timed period. */ s->tx.training_count = 0; s->tx.training = V22BIS_TX_TRAINING_STAGE_TIMED_S11; - /* Normal reception starts immediately */ + /* Normal reception starts immediately. */ s->rx.training = V22BIS_RX_TRAINING_STAGE_NORMAL_OPERATION; #if defined(SPANDSP_USE_FIXED_POINT) s->rx.carrier_track_i = 8; From b51c054474f4976eb1f901fb9cb1d0e93eb1319f Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 8 Apr 2015 16:04:00 -0700 Subject: [PATCH 33/97] FS-7060 add configuration of the amqp command binding key --- conf/vanilla/autoload_configs/amqp.conf.xml | 1 + src/mod/event_handlers/mod_amqp/mod_amqp_command.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/vanilla/autoload_configs/amqp.conf.xml b/conf/vanilla/autoload_configs/amqp.conf.xml index 06bbb0d395..ccc81f51fd 100644 --- a/conf/vanilla/autoload_configs/amqp.conf.xml +++ b/conf/vanilla/autoload_configs/amqp.conf.xml @@ -49,6 +49,7 @@ + diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_command.c b/src/mod/event_handlers/mod_amqp/mod_amqp_command.c index 48eec1da1e..6299b7a656 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_command.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_command.c @@ -86,7 +86,7 @@ switch_status_t mod_amqp_command_create(char *name, switch_xml_t cfg) switch_xml_t params, param, connections, connection; switch_threadattr_t *thd_attr = NULL; switch_memory_pool_t *pool; - char *exchange = NULL; + char *exchange = NULL, *binding_key = NULL; if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) { goto err; @@ -120,13 +120,16 @@ switch_status_t mod_amqp_command_create(char *name, switch_xml_t cfg) profile->reconnect_interval_ms = interval; } } else if (!strncmp(var, "exchange", 8)) { - exchange = switch_core_strdup(profile->pool, "TAP.Commands"); + exchange = switch_core_strdup(profile->pool, val); + } else if (!strncmp(var, "binding_key", 11)) { + binding_key = switch_core_strdup(profile->pool, val); } } } /* Handle defaults of string types */ profile->exchange = exchange ? exchange : switch_core_strdup(profile->pool, "TAP.Commands"); + profile->binding_key = binding_key ? binding_key : switch_core_strdup(profile->pool, "commandBindingKey"); if ((connections = switch_xml_child(cfg, "connections")) != NULL) { for (connection = switch_xml_child(connections, "connection"); connection; connection = connection->next) { From 39728a98888ce95c38d628f53ff646e5e6cab8a3 Mon Sep 17 00:00:00 2001 From: William King Date: Fri, 10 Apr 2015 09:07:08 -0700 Subject: [PATCH 34/97] FS-7426 fix the debian packaging for wheezy when the newer librabbitmq1 package isn't installed --- debian/bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh index 7458934d43..0bbdfc78b3 100755 --- a/debian/bootstrap.sh +++ b/debian/bootstrap.sh @@ -30,6 +30,7 @@ avoid_mods=( endpoints/mod_opal endpoints/mod_reference endpoints/mod_unicall + event_handlers/mod_amqp languages/mod_managed sdk/autotools xml_int/mod_xml_ldap @@ -46,9 +47,11 @@ avoid_mods_jessie=( formats/mod_shout ) avoid_mods_wheezy=( + event_handlers/mod_amqp languages/mod_java ) avoid_mods_squeeze=( + event_handlers/mod_amqp formats/mod_vlc languages/mod_managed ) From f4848c85d46d19c6cb159881f80f38ffc59ed501 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Sat, 11 Apr 2015 10:54:24 -0400 Subject: [PATCH 35/97] FS-7428 freeswitch.spec needs to copy mongo driver tarball to libs so that packaging doesn't fetch from files.freeswitch.org every build. --- freeswitch.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/freeswitch.spec b/freeswitch.spec index 86f33017fe..bbcff34cc3 100644 --- a/freeswitch.spec +++ b/freeswitch.spec @@ -1352,6 +1352,7 @@ cp %{SOURCE9} libs/ cp %{SOURCE10} libs/ cp %{SOURCE11} libs/ cp %{SOURCE12} libs/ +cp %{SOURCE13} libs/ ###################################################################################################################### # From 713c0124f2f59262e0a9535b8862dc693d38b0d8 Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Tue, 14 Apr 2015 02:55:43 +0800 Subject: [PATCH 36/97] Tweaks to spandsp --- libs/spandsp/src/t30.c | 17 +++++-- libs/spandsp/src/time_scale.c | 91 +++++++++++++++++------------------ 2 files changed, 59 insertions(+), 49 deletions(-) diff --git a/libs/spandsp/src/t30.c b/libs/spandsp/src/t30.c index 1a51f2fc2f..fb8e80a1a1 100644 --- a/libs/spandsp/src/t30.c +++ b/libs/spandsp/src/t30.c @@ -2506,9 +2506,12 @@ static void set_min_scan_time(t30_state_t *s) and the codes for what we say will be used. We need 0 minimum. */ static const uint8_t translate_min_scan_time[3][8] = { - {T30_MIN_SCAN_20MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_20MS, T30_MIN_SCAN_40MS, T30_MIN_SCAN_40MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_0MS}, /* normal */ - {T30_MIN_SCAN_20MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_40MS, T30_MIN_SCAN_20MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_0MS}, /* fine */ - {T30_MIN_SCAN_10MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_20MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_0MS} /* superfine, when half fine time is selected */ + /* Normal */ + {T30_MIN_SCAN_20MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_20MS, T30_MIN_SCAN_40MS, T30_MIN_SCAN_40MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_0MS}, + /* Fine */ + {T30_MIN_SCAN_20MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_40MS, T30_MIN_SCAN_20MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_0MS}, + /* Superfine, when half fine time is selected */ + {T30_MIN_SCAN_10MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_20MS, T30_MIN_SCAN_10MS, T30_MIN_SCAN_5MS, T30_MIN_SCAN_0MS} }; /* Translation between the codes for the minimum scan time we will use, and milliseconds. */ static const int min_scan_times[8] = @@ -5314,6 +5317,14 @@ static void repeat_last_command(t30_state_t *s) queue_phase(s, T30_PHASE_B_TX); send_dcs_sequence(s, true); break; + case T30_STATE_F_POST_RCP_PPR: + queue_phase(s, T30_PHASE_D_TX); + send_frame(s, s->ecm_frame_map, 3 + 32); + break; + case T30_STATE_F_POST_RCP_MCF: + queue_phase(s, T30_PHASE_D_TX); + send_simple_frame(s, T30_MCF); + break; case T30_STATE_F_POST_RCP_RNR: /* Just ignore */ break; diff --git a/libs/spandsp/src/time_scale.c b/libs/spandsp/src/time_scale.c index ea1f95c35c..a21e34cc7d 100644 --- a/libs/spandsp/src/time_scale.c +++ b/libs/spandsp/src/time_scale.c @@ -102,7 +102,7 @@ static __inline__ void overlap_add(int16_t amp1[], int16_t amp2[], int len) for (i = 0; i < len; i++) { /* TODO: saturate */ - amp2[i] = (int16_t) ((float) amp1[i]*(1.0f - weight) + (float) amp2[i]*weight); + amp1[i] = (int16_t) ((float) amp2[i]*(1.0f - weight) + (float) amp1[i]*weight); weight += step; } /*endfor*/ @@ -145,6 +145,13 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], out_len = 0; in_len = 0; + if (s->playout_rate == 1.0f) + { + vec_copyi16(out, in, len); + return len; + } + /*endif*/ + /* Top up the buffer */ if (s->fill + len < s->buf_len) { @@ -152,7 +159,7 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], /* Save the residual signal for next time. */ vec_copyi16(&s->buf[s->fill], in, len); s->fill += len; - return out_len; + return 0; } /*endif*/ k = s->buf_len - s->fill; @@ -200,54 +207,46 @@ SPAN_DECLARE(int) time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], s->lcp = 0; } /*endif*/ - if (s->playout_rate == 1.0f) + pitch = amdf_pitch(s->min_pitch, s->max_pitch, s->buf, s->min_pitch); + lcpf = (double) pitch*s->rcomp; + /* Nudge around to compensate for fractional samples */ + s->lcp = (int) lcpf; + /* Note that s->lcp and lcpf are not the same, as lcpf has a fractional part, and s->lcp doesn't */ + s->rate_nudge += s->lcp - lcpf; + if (s->rate_nudge >= 0.5f) { - s->lcp = 0x7FFFFFFF; + s->lcp--; + s->rate_nudge -= 1.0f; + } + else if (s->rate_nudge <= -0.5f) + { + s->lcp++; + s->rate_nudge += 1.0f; + } + /*endif*/ + if (s->playout_rate < 1.0f) + { + /* Speed up - drop a pitch period of signal */ + overlap_add(&s->buf[pitch], s->buf, pitch); + vec_copyi16(&s->buf[pitch], &s->buf[2*pitch], s->buf_len - 2*pitch); + if (len - in_len < pitch) + { + /* Cannot continue without more samples */ + /* Save the residual signal for next time. */ + vec_copyi16(&s->buf[s->buf_len - pitch], &in[in_len], len - in_len); + s->fill += (len - in_len - pitch); + return out_len; + } + /*endif*/ + vec_copyi16(&s->buf[s->buf_len - pitch], &in[in_len], pitch); + in_len += pitch; } else { - pitch = amdf_pitch(s->min_pitch, s->max_pitch, s->buf, s->min_pitch); - lcpf = (double) pitch*s->rcomp; - /* Nudge around to compensate for fractional samples */ - s->lcp = (int) lcpf; - /* Note that s->lcp and lcpf are not the same, as lcpf has a fractional part, and s->lcp doesn't */ - s->rate_nudge += s->lcp - lcpf; - if (s->rate_nudge >= 0.5f) - { - s->lcp--; - s->rate_nudge -= 1.0f; - } - else if (s->rate_nudge <= -0.5f) - { - s->lcp++; - s->rate_nudge += 1.0f; - } - /*endif*/ - if (s->playout_rate < 1.0f) - { - /* Speed up - drop a chunk of data */ - overlap_add(s->buf, &s->buf[pitch], pitch); - vec_copyi16(&s->buf[pitch], &s->buf[2*pitch], s->buf_len - 2*pitch); - if (len - in_len < pitch) - { - /* Cannot continue without more samples */ - /* Save the residual signal for next time. */ - vec_copyi16(&s->buf[s->buf_len - pitch], &in[in_len], len - in_len); - s->fill += (len - in_len - pitch); - return out_len; - } - /*endif*/ - vec_copyi16(&s->buf[s->buf_len - pitch], &in[in_len], pitch); - in_len += pitch; - } - else - { - /* Slow down - insert a chunk of data */ - vec_copyi16(&out[out_len], s->buf, pitch); - out_len += pitch; - overlap_add(&s->buf[pitch], s->buf, pitch); - } - /*endif*/ + /* Slow down - insert a pitch period of signal */ + vec_copyi16(&out[out_len], s->buf, pitch); + out_len += pitch; + overlap_add(s->buf, &s->buf[pitch], pitch); } /*endif*/ } From 4998e22bdd0c96af1110b82c184edc5547492a1f Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Tue, 14 Apr 2015 03:25:17 +0800 Subject: [PATCH 37/97] Tweaks to spandsp tests --- libs/spandsp/spandsp/fax-tests.dtd | 9 +- libs/spandsp/spandsp/fax-tests.xml | 128 +++++++- libs/spandsp/spandsp/tsb85.xml | 346 ++++++-------------- libs/spandsp/tests/ademco_contactid_tests.c | 2 +- libs/spandsp/tests/awgn_tests.c | 4 +- libs/spandsp/tests/fax_decode.c | 6 +- libs/spandsp/tests/fax_tester.c | 93 ++++++ libs/spandsp/tests/g726_tests.c | 4 +- libs/spandsp/tests/oki_adpcm_tests.c | 1 - libs/spandsp/tests/t42_tests.c | 4 +- libs/spandsp/tests/t43_tests.c | 24 +- libs/spandsp/tests/time_scale_tests.c | 32 ++ libs/spandsp/tests/tsb85_extra_tests.sh | 4 +- libs/spandsp/tests/tsb85_tests.c | 2 +- libs/spandsp/tests/tsb85_tests.sh | 11 +- 15 files changed, 371 insertions(+), 299 deletions(-) diff --git a/libs/spandsp/spandsp/fax-tests.dtd b/libs/spandsp/spandsp/fax-tests.dtd index 39f97febaa..8299ecbb34 100644 --- a/libs/spandsp/spandsp/fax-tests.dtd +++ b/libs/spandsp/spandsp/fax-tests.dtd @@ -19,12 +19,16 @@ name CDATA #IMPLIED > - + - + + diff --git a/libs/spandsp/spandsp/fax-tests.xml b/libs/spandsp/spandsp/fax-tests.xml index fcb3b6be5f..9a51464088 100644 --- a/libs/spandsp/spandsp/fax-tests.xml +++ b/libs/spandsp/spandsp/fax-tests.xml @@ -147,7 +147,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -169,7 +169,7 @@ - + @@ -177,7 +177,7 @@ - + @@ -200,6 +200,7 @@ + @@ -261,7 +262,7 @@ - + @@ -269,7 +270,7 @@ - + @@ -283,7 +284,7 @@ - + @@ -291,7 +292,7 @@ - + @@ -305,7 +306,7 @@ - + @@ -313,7 +314,7 @@ - + @@ -327,7 +328,7 @@ - + @@ -335,7 +336,7 @@ - + @@ -357,7 +358,7 @@ - + @@ -365,7 +366,7 @@ - + @@ -375,6 +376,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/spandsp/spandsp/tsb85.xml b/libs/spandsp/spandsp/tsb85.xml index a711100916..c72a863151 100644 --- a/libs/spandsp/spandsp/tsb85.xml +++ b/libs/spandsp/spandsp/tsb85.xml @@ -26,7 +26,7 @@ - + @@ -171,7 +171,7 @@ - + @@ -183,7 +183,7 @@ - + @@ -239,7 +239,7 @@ - + @@ -255,7 +255,7 @@ - + @@ -493,9 +493,9 @@ - - - + + + @@ -507,7 +507,7 @@ - + @@ -1356,7 +1356,7 @@ - + @@ -1364,7 +1364,7 @@ - + @@ -1378,7 +1378,7 @@ - + @@ -1386,7 +1386,7 @@ - + @@ -1491,7 +1491,7 @@ - + @@ -1499,7 +1499,7 @@ - + @@ -1539,7 +1539,7 @@ - + @@ -1547,7 +1547,7 @@ - + @@ -1561,7 +1561,7 @@ - + @@ -1569,7 +1569,7 @@ - + @@ -1583,7 +1583,7 @@ - + @@ -1591,7 +1591,7 @@ - + @@ -1605,7 +1605,7 @@ - + @@ -1613,7 +1613,7 @@ - + @@ -1635,7 +1635,7 @@ - + @@ -1643,7 +1643,7 @@ - + @@ -1686,7 +1686,7 @@ - + @@ -1694,7 +1694,7 @@ - + @@ -1708,7 +1708,7 @@ - + @@ -1716,7 +1716,7 @@ - + @@ -1730,7 +1730,7 @@ - + @@ -1738,7 +1738,7 @@ - + @@ -1752,7 +1752,7 @@ - + @@ -1760,7 +1760,7 @@ - + @@ -1782,7 +1782,7 @@ - + @@ -1790,7 +1790,7 @@ - + @@ -1833,7 +1833,7 @@ - + @@ -1841,7 +1841,7 @@ - + @@ -1855,7 +1855,7 @@ - + @@ -1863,7 +1863,7 @@ - + @@ -1877,7 +1877,7 @@ - + @@ -1885,7 +1885,7 @@ - + @@ -1899,7 +1899,7 @@ - + @@ -1907,7 +1907,7 @@ - + @@ -1921,7 +1921,7 @@ - + @@ -1929,7 +1929,7 @@ - + @@ -1980,7 +1980,7 @@ - + @@ -1988,7 +1988,7 @@ - + @@ -2002,7 +2002,7 @@ - + @@ -2010,7 +2010,7 @@ - + @@ -2024,7 +2024,7 @@ - + @@ -2032,7 +2032,7 @@ - + @@ -2046,7 +2046,7 @@ - + @@ -2054,7 +2054,7 @@ - + @@ -2076,7 +2076,7 @@ - + @@ -2084,7 +2084,7 @@ - + @@ -2126,7 +2126,7 @@ - + @@ -2134,7 +2134,7 @@ - + @@ -2148,7 +2148,7 @@ - + @@ -2156,7 +2156,7 @@ - + @@ -2170,7 +2170,7 @@ - + @@ -2178,7 +2178,7 @@ - + @@ -2192,7 +2192,7 @@ - + @@ -2200,7 +2200,7 @@ - + @@ -2251,7 +2251,7 @@ - + @@ -2259,7 +2259,7 @@ - + @@ -2273,7 +2273,7 @@ - + @@ -2281,7 +2281,7 @@ - + @@ -5456,166 +5456,14 @@ - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -6755,12 +6603,12 @@ - + - - - + + + @@ -6770,12 +6618,12 @@ - + - - - + + + @@ -6785,10 +6633,10 @@ - - - - + + + + @@ -6805,7 +6653,7 @@ - + @@ -6817,7 +6665,7 @@ - + @@ -6870,7 +6718,7 @@ - + @@ -6894,7 +6742,7 @@ - + @@ -6909,7 +6757,7 @@ - + @@ -6919,7 +6767,7 @@ - + @@ -6942,7 +6790,7 @@ - + @@ -6993,7 +6841,7 @@ - + @@ -7016,7 +6864,7 @@ - + @@ -7061,7 +6909,7 @@ - + @@ -7123,7 +6971,7 @@ - + diff --git a/libs/spandsp/tests/ademco_contactid_tests.c b/libs/spandsp/tests/ademco_contactid_tests.c index b1c9c4f42d..4071999d03 100644 --- a/libs/spandsp/tests/ademco_contactid_tests.c +++ b/libs/spandsp/tests/ademco_contactid_tests.c @@ -149,7 +149,7 @@ static void rx_callback(void *user_data, const ademco_contactid_report_t *report printf(" Event %X\n", report->xyz); printf(" Group/partition %X\n", report->gg); printf(" User/Zone information %X\n", report->ccc); - if (memcmp(&reports[reports_entry], report, sizeof (*report))) + if (memcmp(&reports[reports_entry], report, sizeof(*report))) { printf("Report mismatch\n"); exit(2); diff --git a/libs/spandsp/tests/awgn_tests.c b/libs/spandsp/tests/awgn_tests.c index c105a9b243..09e7884e33 100644 --- a/libs/spandsp/tests/awgn_tests.c +++ b/libs/spandsp/tests/awgn_tests.c @@ -77,7 +77,7 @@ int main(int argc, char *argv[]) total = 0.0; if ((noise_source = awgn_init_dbm0(NULL, idum, (float) j)) == NULL) { - printf("Failed to allocation AWGN source\n"); + printf("Failed to allocate AWGN source\n"); exit(2); } total_samples = 1000000; @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) clip_low = 0; if ((noise_source = awgn_init_dbm0(NULL, idum, -15.0)) == NULL) { - printf("Failed to allocation AWGN source\n"); + printf("Failed to allocate AWGN source\n"); exit(2); } total_samples = 10000000; diff --git a/libs/spandsp/tests/fax_decode.c b/libs/spandsp/tests/fax_decode.c index 7b624bd6f8..e67d32a120 100644 --- a/libs/spandsp/tests/fax_decode.c +++ b/libs/spandsp/tests/fax_decode.c @@ -232,7 +232,11 @@ static int check_rx_dcs(const uint8_t *msg, int len) image_width = widths[(dcs_frame[8] & DISBIT3) ? 2 : 1][dcs_frame[5] & (DISBIT2 | DISBIT1)]; /* Check which compression we will use. */ - if ((dcs_frame[6] & DISBIT7)) + if ((dcs_frame[12] & DISBIT7)) + line_encoding = T4_COMPRESSION_T85_L0; + else if ((dcs_frame[12] & DISBIT6)) + line_encoding = T4_COMPRESSION_T85; + else if ((dcs_frame[6] & DISBIT7)) line_encoding = T4_COMPRESSION_T6; else if ((dcs_frame[4] & DISBIT8)) line_encoding = T4_COMPRESSION_T4_2D; diff --git a/libs/spandsp/tests/fax_tester.c b/libs/spandsp/tests/fax_tester.c index 4cd85d68a7..fb5dcc1ac1 100644 --- a/libs/spandsp/tests/fax_tester.c +++ b/libs/spandsp/tests/fax_tester.c @@ -33,6 +33,7 @@ #include #include #include +#include #if defined(HAVE_TGMATH_H) #include #endif @@ -59,10 +60,102 @@ #include "spandsp.h" +#include "fax_utils.h" #include "fax_tester.h" #define HDLC_FRAMING_OK_THRESHOLD 5 +extern const char *output_tiff_file_name; + +struct xml_node_parms_s +{ + xmlChar *dir; + xmlChar *type; + xmlChar *modem; + xmlChar *value; + xmlChar *tag; + xmlChar *bad_rows; + xmlChar *crc_error; + xmlChar *pattern; + xmlChar *timein; + xmlChar *timeout; + xmlChar *min_bits; + xmlChar *frame_size; + xmlChar *block; + xmlChar *compression; +}; + +static struct +{ + const char *tag; + int code; +} t30_status[] = +{ + {"OK", T30_ERR_OK}, + {"CEDTONE", T30_ERR_CEDTONE}, + {"T0_EXPIRED", T30_ERR_T0_EXPIRED}, + {"T1_EXPIRED", T30_ERR_T1_EXPIRED}, + {"T3_EXPIRED", T30_ERR_T3_EXPIRED}, + {"HDLC_CARRIER", T30_ERR_HDLC_CARRIER}, + {"CANNOT_TRAIN", T30_ERR_CANNOT_TRAIN}, + {"OPER_INT_FAIL", T30_ERR_OPER_INT_FAIL}, + {"INCOMPATIBLE", T30_ERR_INCOMPATIBLE}, + {"RX_INCAPABLE", T30_ERR_RX_INCAPABLE}, + {"TX_INCAPABLE", T30_ERR_TX_INCAPABLE}, + {"NORESSUPPORT", T30_ERR_NORESSUPPORT}, + {"NOSIZESUPPORT", T30_ERR_NOSIZESUPPORT}, + {"UNEXPECTED", T30_ERR_UNEXPECTED}, + {"TX_BADDCS", T30_ERR_TX_BADDCS}, + {"TX_BADPG", T30_ERR_TX_BADPG}, + {"TX_ECMPHD", T30_ERR_TX_ECMPHD}, + {"TX_GOTDCN", T30_ERR_TX_GOTDCN}, + {"TX_INVALRSP", T30_ERR_TX_INVALRSP}, + {"TX_NODIS", T30_ERR_TX_NODIS}, + {"TX_PHBDEAD", T30_ERR_TX_PHBDEAD}, + {"TX_PHDDEAD", T30_ERR_TX_PHDDEAD}, + {"TX_T5EXP", T30_ERR_TX_T5EXP}, + {"RX_ECMPHD", T30_ERR_RX_ECMPHD}, + {"RX_GOTDCS", T30_ERR_RX_GOTDCS}, + {"RX_INVALCMD", T30_ERR_RX_INVALCMD}, + {"RX_NOCARRIER", T30_ERR_RX_NOCARRIER}, + {"RX_NOEOL", T30_ERR_RX_NOEOL}, + {"RX_NOFAX", T30_ERR_RX_NOFAX}, + {"RX_T2EXPDCN", T30_ERR_RX_T2EXPDCN}, + {"RX_T2EXPD", T30_ERR_RX_T2EXPD}, + {"RX_T2EXPFAX", T30_ERR_RX_T2EXPFAX}, + {"RX_T2EXPMPS", T30_ERR_RX_T2EXPMPS}, + {"RX_T2EXPRR", T30_ERR_RX_T2EXPRR}, + {"RX_T2EXP", T30_ERR_RX_T2EXP}, + {"RX_DCNWHY", T30_ERR_RX_DCNWHY}, + {"RX_DCNDATA", T30_ERR_RX_DCNDATA}, + {"RX_DCNFAX", T30_ERR_RX_DCNFAX}, + {"RX_DCNPHD", T30_ERR_RX_DCNPHD}, + {"RX_DCNRRD", T30_ERR_RX_DCNRRD}, + {"RX_DCNNORTN", T30_ERR_RX_DCNNORTN}, + {"FILEERROR", T30_ERR_FILEERROR}, + {"NOPAGE", T30_ERR_NOPAGE}, + {"BADTIFF", T30_ERR_BADTIFF}, + {"BADPAGE", T30_ERR_BADPAGE}, + {"BADTAG", T30_ERR_BADTAG}, + {"BADTIFFHDR", T30_ERR_BADTIFFHDR}, + {"NOMEM", T30_ERR_NOMEM}, + {"RETRYDCN", T30_ERR_RETRYDCN}, + {"CALLDROPPED", T30_ERR_CALLDROPPED}, + {"NOPOLL", T30_ERR_NOPOLL}, + {"IDENT_UNACCEPTABLE", T30_ERR_IDENT_UNACCEPTABLE}, + {"SUB_UNACCEPTABLE", T30_ERR_SUB_UNACCEPTABLE}, + {"SEP_UNACCEPTABLE", T30_ERR_SEP_UNACCEPTABLE}, + {"PSA_UNACCEPTABLE", T30_ERR_PSA_UNACCEPTABLE}, + {"SID_UNACCEPTABLE", T30_ERR_SID_UNACCEPTABLE}, + {"PWD_UNACCEPTABLE", T30_ERR_PWD_UNACCEPTABLE}, + {"TSA_UNACCEPTABLE", T30_ERR_TSA_UNACCEPTABLE}, + {"IRA_UNACCEPTABLE", T30_ERR_IRA_UNACCEPTABLE}, + {"CIA_UNACCEPTABLE", T30_ERR_CIA_UNACCEPTABLE}, + {"ISP_UNACCEPTABLE", T30_ERR_ISP_UNACCEPTABLE}, + {"CSA_UNACCEPTABLE", T30_ERR_CSA_UNACCEPTABLE}, + {NULL, -1} +}; + static void timer_update(faxtester_state_t *s, int len) { s->timer += len; diff --git a/libs/spandsp/tests/g726_tests.c b/libs/spandsp/tests/g726_tests.c index 75d1a542cd..45f64c228a 100644 --- a/libs/spandsp/tests/g726_tests.c +++ b/libs/spandsp/tests/g726_tests.c @@ -90,7 +90,7 @@ uint8_t unpacked[MAX_TEST_VECTOR_LEN]; uint8_t xlaw[MAX_TEST_VECTOR_LEN]; /* -Table 4 - V Reset and homing sequences for u-law +Table 4 - Reset and homing sequences for u-law Normal I-input Overload Algorithm Input Intermediate Output Input Output Input Intermediate Output (PCM) (ADPCM) (PCM) (ADPCM) (PCM) (PCM) (ADPCM) (PCM) @@ -108,7 +108,7 @@ Algorithm Input Intermediate Output Input Output Input HN40FM.I HN40FM.O HI40FM.O HV40FM.I HV40FM.O -Table 5 - V Reset and homing sequences for A-law +Table 5 - Reset and homing sequences for A-law Normal I-input Overload Algorithm Input Intermediate Output Input Output Input Intermediate Output (PCM) (ADPCM) (PCM) (ADPCM) (PCM) (PCM) (ADPCM) (PCM) diff --git a/libs/spandsp/tests/oki_adpcm_tests.c b/libs/spandsp/tests/oki_adpcm_tests.c index 84604b69be..a9eef7e1ae 100644 --- a/libs/spandsp/tests/oki_adpcm_tests.c +++ b/libs/spandsp/tests/oki_adpcm_tests.c @@ -275,7 +275,6 @@ int main(int argc, char *argv[]) } } - oki_adpcm_free(oki_enc_state); if (sf_close_telephony(inhandle)) { diff --git a/libs/spandsp/tests/t42_tests.c b/libs/spandsp/tests/t42_tests.c index d9f80da5b5..fd42133dfd 100644 --- a/libs/spandsp/tests/t42_tests.c +++ b/libs/spandsp/tests/t42_tests.c @@ -43,7 +43,7 @@ #include "spandsp.h" -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) #include #endif @@ -157,7 +157,7 @@ int main(int argc, char *argv[]) logging = span_log_init(NULL, SPAN_LOG_FLOW, "T.42"); #endif -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) TIFF_FX_init(); #endif diff --git a/libs/spandsp/tests/t43_tests.c b/libs/spandsp/tests/t43_tests.c index 3df17ea7f2..dff6bc1978 100644 --- a/libs/spandsp/tests/t43_tests.c +++ b/libs/spandsp/tests/t43_tests.c @@ -43,7 +43,7 @@ #include "spandsp.h" -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) #include #endif @@ -63,7 +63,7 @@ typedef struct int ptr; } packer_t; -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) /* TIFF-FX related extensions to the tag set supported by libtiff */ static const TIFFFieldInfo tiff_fx_tiff_field_info[] = { @@ -184,7 +184,7 @@ int write_file(meta_t *meta, int page, const uint8_t buf[]) uint8_t *out_buf; uint8_t *out_buf2; packer_t packer; -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) toff_t diroff; #endif @@ -222,7 +222,7 @@ int write_file(meta_t *meta, int page, const uint8_t buf[]) TIFFSetField(tif, TIFFTAG_MAKE, "soft-switch.org"); TIFFSetField(tif, TIFFTAG_MODEL, "spandsp"); TIFFSetField(tif, TIFFTAG_HOSTCOMPUTER, "i7.coppice.org"); -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) /* Make space for this to be filled in later */ TIFFSetField(tif, TIFFTAG_GLOBALPARAMETERSIFD, 0); #endif @@ -310,7 +310,7 @@ int write_file(meta_t *meta, int page, const uint8_t buf[]) if (!TIFFWriteDirectory(tif)) printf("Failed to write directory.\n"); -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) if (!TIFFCreateCustomDirectory(tif, &tiff_fx_field_array)) { TIFFSetField(tif, TIFFTAG_PROFILETYPE, PROFILETYPE_G3_FAX); @@ -337,7 +337,7 @@ int write_file(meta_t *meta, int page, const uint8_t buf[]) int read_file(meta_t *meta, int page) { -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) static const char *tiff_fx_fax_profiles[] = { "???", @@ -419,7 +419,7 @@ int read_file(meta_t *meta, int page) meta->bmax = 0.0f; break; } -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) if (TIFFGetField(tif, TIFFTAG_DECODE, &parm16, &fl_parms)) { meta->lmin = fl_parms[0]; @@ -432,7 +432,7 @@ int read_file(meta_t *meta, int page) } #endif -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) printf("Trying to get global parameters\n"); if (TIFFGetField(tif, TIFFTAG_GLOBALPARAMETERSIFD, &diroff)) { @@ -891,7 +891,7 @@ int main(int argc, char *argv[]) meta_t meta; int output_compression; int page_no; -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) toff_t diroff; #endif @@ -900,7 +900,7 @@ int main(int argc, char *argv[]) destination_file = OUT_FILE_NAME; output_compression = (argc > 2) ? atoi(argv[2]) : COMPRESSION_CCITT_T6; -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) TIFF_FX_init(); #endif @@ -1305,7 +1305,7 @@ int main(int argc, char *argv[]) TIFFSetField(tif, TIFFTAG_MAKE, "soft-switch.org"); TIFFSetField(tif, TIFFTAG_MODEL, "spandsp"); TIFFSetField(tif, TIFFTAG_HOSTCOMPUTER, "i7.coppice.org"); -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) /* Make space for this to be filled in later */ TIFFSetField(tif, TIFFTAG_GLOBALPARAMETERSIFD, 0); #endif @@ -1379,7 +1379,7 @@ int main(int argc, char *argv[]) if (!TIFFWriteDirectory(tif)) printf("Failed to write directory.\n"); -#if defined(SPANDSP_SUPPORT_TIFF_FX) +#if defined(SPANDSP_SUPPORT_TIFF_FX) && defined(HAVE_TIF_DIR_H) if (!TIFFCreateCustomDirectory(tif, &tiff_fx_field_array)) { TIFFSetField(tif, TIFFTAG_PROFILETYPE, PROFILETYPE_G3_FAX); diff --git a/libs/spandsp/tests/time_scale_tests.c b/libs/spandsp/tests/time_scale_tests.c index abd5300fdf..4e902c2eae 100644 --- a/libs/spandsp/tests/time_scale_tests.c +++ b/libs/spandsp/tests/time_scale_tests.c @@ -65,6 +65,8 @@ int main(int argc, char *argv[]) int out_frames; int count; int max; + int samples_in; + int samples_out; time_scale_state_t state; float rate; float sample_rate; @@ -129,9 +131,19 @@ int main(int argc, char *argv[]) max = time_scale_max_output_len(&state, BLOCK_LEN); printf("Rate is %f, longest output block is %d\n", rate, max); count = 0; + samples_in = 0; + samples_out = 0; while ((frames = sf_readf_short(inhandle, in, BLOCK_LEN))) { + samples_in += frames; new_frames = time_scale(&state, out, in, frames); + if (new_frames > max) + { + printf("Generated signal has more than the expected maximum samples - %d vs %d\n", new_frames, max); + printf("Tests failed\n"); + exit(2); + } + samples_out += new_frames; out_frames = sf_writef_short(outhandle, out, new_frames); if (out_frames != new_frames) { @@ -152,7 +164,27 @@ int main(int argc, char *argv[]) count = 0; } } + new_frames = time_scale_flush(&state, out); + if (new_frames > max) + { + printf("Generated signal has more than the expected maximum samples - %d vs %d\n", new_frames, max); + printf("Tests failed\n"); + exit(2); + } + samples_out += new_frames; + out_frames = sf_writef_short(outhandle, out, new_frames); + if (out_frames != new_frames) + { + fprintf(stderr, " Error writing audio file\n"); + exit(2); + } time_scale_release(&state); + if ((int) (rate*samples_in) < samples_out - 1 || (int) (rate*samples_in) > samples_out + 1) + { + printf("%d samples became %d samples\n", (int) (rate*samples_in), samples_out); + printf("Tests failed\n"); + exit(2); + } if (sf_close(inhandle)) { printf(" Cannot close audio file '%s'\n", in_file_name); diff --git a/libs/spandsp/tests/tsb85_extra_tests.sh b/libs/spandsp/tests/tsb85_extra_tests.sh index 7b6a52d46f..8e401d41ad 100755 --- a/libs/spandsp/tests/tsb85_extra_tests.sh +++ b/libs/spandsp/tests/tsb85_extra_tests.sh @@ -17,7 +17,7 @@ run_tsb85_test() { - rm -f fax_tests_1.tif + rm -f tsb85_tests.tif echo ./tsb85_tests ${TEST} ./tsb85_tests -x ../spandsp/fax-tests.xml ${TEST} 2>xyzzy2 RETVAL=$? @@ -28,7 +28,7 @@ run_tsb85_test() fi } -for TEST in PPS-MPS-lost-PPS V17-12000-V29-9600 Phase-D-collision Modem-change-at-CTC +for TEST in PPS-MPS-lost-PPS V17-12000-V29-9600 Phase-D-collision Modem-change-at-CTC ECM-DCN-clipped Non-ECM-DCN-clipped do run_tsb85_test done diff --git a/libs/spandsp/tests/tsb85_tests.c b/libs/spandsp/tests/tsb85_tests.c index 4c1559c5dc..624dcb1f6c 100644 --- a/libs/spandsp/tests/tsb85_tests.c +++ b/libs/spandsp/tests/tsb85_tests.c @@ -60,8 +60,8 @@ #include "spandsp.h" #include "spandsp-sim.h" -#include "fax_tester.h" #include "fax_utils.h" +#include "fax_tester.h" #define OUTPUT_TIFF_FILE_NAME "tsb85.tif" diff --git a/libs/spandsp/tests/tsb85_tests.sh b/libs/spandsp/tests/tsb85_tests.sh index ed39b1c524..f20bbfaa97 100755 --- a/libs/spandsp/tests/tsb85_tests.sh +++ b/libs/spandsp/tests/tsb85_tests.sh @@ -17,7 +17,7 @@ run_tsb85_test() { - rm -f fax_tests_1.tif + rm -f tsb85_tests.tif echo ./tsb85_tests ${TEST} ./tsb85_tests ${TEST} 2>xyzzy2 RETVAL=$? @@ -33,11 +33,6 @@ do run_tsb85_test done -#MRGN14 fails because we don't adequately distinguish between receiving a -#bad image signal and receiving none at all. -#MRGN16 fails because we don't adequately distinguish between receiving a -#bad image signal and receiving none at all. - for TEST in MRGN09 MRGN10 MRGN11 MRGN12 MRGN13 MRGN14 MRGN15 MRGN16 MRGN17 do run_tsb85_test @@ -53,10 +48,6 @@ do run_tsb85_test done -# MRGX03 is failing because the V.27ter modem says it trained on HDLC -# MRGX05 is failing because we don't distinguish MPS immediately after MCF from MPS after -# a corrupt image signal. - for TEST in MRGX01 MRGX02 MRGX03 MRGX04 MRGX05 MRGX06 MRGX07 MRGX08 do run_tsb85_test From 535cfbbd4f7240b356c64417550a8814c7319280 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 13 Apr 2015 15:52:43 -0400 Subject: [PATCH 38/97] FS-7426: #resolve fix typo in control-modules for debian build --- debian/control-modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control-modules b/debian/control-modules index 852df6d0c9..7a8a966ef1 100644 --- a/debian/control-modules +++ b/debian/control-modules @@ -453,7 +453,7 @@ Build-Depends: libperl-dev ## mod/event_handlers -Module: event_handler/mod_amqp +Module: event_handlers/mod_amqp Description: Event handler to send events to an amqp server AMQP event handler Build-Depends: librabbitmq-dev From 3bbfa9f34108fe65d1fcfac560f7f0977066e602 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 13 Apr 2015 22:54:02 +0000 Subject: [PATCH 39/97] FS-7407: when using proxy, make sure to pick the right transport to the proxy --- src/mod/endpoints/mod_sofia/sofia_presence.c | 48 +++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 7e31b4cfdd..d7255e8bfc 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2201,9 +2201,23 @@ static void _send_presence_notify(sofia_profile_t *profile, path = sofia_glue_get_path_from_contact((char *) o_contact); } - tmp = (char *)o_contact; - o_contact_dup = sofia_glue_get_url_from_contact(tmp, 1); + dst = sofia_glue_get_destination((char *) o_contact); + switch_assert(dst); + if (!zstr(dst->contact)) { + contact = sofia_glue_get_url_from_contact(dst->contact, 1); + } else { + contact = strdup(o_contact); + } + + if (dst->route_uri) { + route_uri = sofia_glue_strip_uri(dst->route_uri); + tmp = (char *)route_uri; + } else { + tmp = (char *)o_contact; + } + + o_contact_dup = sofia_glue_get_url_from_contact(tmp, 1); if ((tp = switch_stristr("transport=", o_contact_dup))) { tp += 10; @@ -2272,19 +2286,6 @@ static void _send_presence_notify(sofia_profile_t *profile, free(to_uri); } - dst = sofia_glue_get_destination((char *) o_contact); - switch_assert(dst); - - if (!zstr(dst->contact)) { - contact = sofia_glue_get_url_from_contact(dst->contact, 1); - } else { - contact = strdup(o_contact); - } - - if (dst->route_uri) { - route_uri = sofia_glue_strip_uri(dst->route_uri); - } - if (expires) { long ltmp = atol(expires); @@ -4023,7 +4024,7 @@ void sofia_presence_handle_sip_i_subscribe(int status, char *sticky = NULL; char *contactstr = profile->url, *cs = NULL; char *p = NULL, *new_contactstr = NULL; - + sofia_transport_t transport; if (np.is_nat) { char params[128] = ""; @@ -4040,20 +4041,23 @@ void sofia_presence_handle_sip_i_subscribe(int status, contactstr = profile->url; } + if (sip->sip_via) { + transport = sofia_glue_via2transport(sip->sip_via); + } else { + transport = sofia_glue_url2transport(contact->m_url); + } - if (switch_stristr("port=tcp", contact->m_url->url_params)) { + if (transport == SOFIA_TRANSPORT_TCP) { if (np.is_auto_nat) { cs = profile->tcp_public_contact; } else { cs = profile->tcp_contact; } - } else if (switch_stristr("port=tls", contact->m_url->url_params)) { + } else if (transport == SOFIA_TRANSPORT_TCP_TLS) { if (np.is_auto_nat) { - cs = sofia_test_pflag(profile, PFLAG_TLS) ? - profile->tls_public_contact : profile->tcp_public_contact; + cs = sofia_test_pflag(profile, PFLAG_TLS) ? profile->tls_public_contact : profile->tcp_public_contact; } else { - cs = sofia_test_pflag(profile, PFLAG_TLS) ? - profile->tls_contact : profile->tcp_contact; + cs = sofia_test_pflag(profile, PFLAG_TLS) ? profile->tls_contact : profile->tcp_contact; } } From 464d8ab91086715a2ec7eb1fb9a2d2cb53377eb7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Apr 2015 15:46:04 -0500 Subject: [PATCH 40/97] FS-7431 #resolve --- src/mod/formats/mod_tone_stream/mod_tone_stream.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mod/formats/mod_tone_stream/mod_tone_stream.c b/src/mod/formats/mod_tone_stream/mod_tone_stream.c index ffc970adee..90d1fec0cf 100644 --- a/src/mod/formats/mod_tone_stream/mod_tone_stream.c +++ b/src/mod/formats/mod_tone_stream/mod_tone_stream.c @@ -48,10 +48,15 @@ static switch_status_t silence_stream_file_open(switch_file_handle_t *handle, co int ms; char *p; - sh = switch_core_alloc(handle->memory_pool, sizeof(*sh)); - ms = atoi(path); + if (ms == 0) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid Input [%s] Expect [,]\n", path); + return SWITCH_STATUS_FALSE; + } + + sh = switch_core_alloc(handle->memory_pool, sizeof(*sh)); + if (ms > 0) { sh->samples = (handle->samplerate / 1000) * ms; } else { From 5fada4bbb5ec15fb6c4f63bf1f85a24e5fc5c523 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 14 Apr 2015 16:49:43 -0400 Subject: [PATCH 41/97] FS-7060 added amqp.conf.xml to freeswitch.spec to fix packaging --- freeswitch.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/freeswitch.spec b/freeswitch.spec index bbcff34cc3..03c6c105fe 100644 --- a/freeswitch.spec +++ b/freeswitch.spec @@ -1805,6 +1805,7 @@ fi %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/abstraction.conf.xml %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/acl.conf.xml %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/alsa.conf.xml +%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/amqp.conf.xml %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/blacklist.conf.xml %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/callcenter.conf.xml %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/cdr_csv.conf.xml From 702f0472655f834ac939abd2cf877fbf98f5aada Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 15 Apr 2015 11:07:15 -0700 Subject: [PATCH 42/97] FS-7435 change pgsql support to default on, with an option to disable --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ad5d20cca8..91aee243fe 100644 --- a/configure.ac +++ b/configure.ac @@ -598,7 +598,7 @@ SWITCH_AM_LDFLAGS="$LIBUUID_LIBS $SWITCH_AM_LDFLAGS" SWITCH_AM_CFLAGS="$LIBUUID_CFLAGS $SWITCH_AM_CFLAGS" AC_ARG_ENABLE(core-pgsql-support, - [AS_HELP_STRING([--enable-core-pgsql-support], [Compile with PGSQL Support])],,[enable_core_pgsql_support="no"]) + [AS_HELP_STRING([--disable-core-pgsql-support], [Compile without PGSQL Support])],[enable_core_pgsql_support="no"],[enable_core_pgsql_support="yes"]) AC_ARG_ENABLE(core-pgsql-pkgconfig, [AS_HELP_STRING([--disable-core-pgsql-pkgconfig], [Use pg_config to get PGQSL build options])],[enable_core_pgsql_pkgconfig="$enableval"],[enable_core_pgsql_pkgconfig="yes"]) From 6a4c2b3406ff5ef9355b6e61dd60a428dc1b7d86 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 15 Apr 2015 17:00:51 -0500 Subject: [PATCH 43/97] convenience app --- .../applications/mod_dptools/mod_dptools.c | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 7d5b1d5277..f184647407 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -627,6 +627,28 @@ SWITCH_STANDARD_APP(rename_function) } } +#define TRANSFER_VARS_SYNTAX "<~variable_prefix|variable>" +SWITCH_STANDARD_APP(transfer_vars_function) +{ + char *argv[1] = { 0 }; + int argc; + char *lbuf = NULL; + + if (!zstr(data) && (lbuf = switch_core_session_strdup(session, data)) + && (argc = switch_separate_string(lbuf, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) >= 1) { + switch_core_session_t *nsession = NULL; + + switch_core_session_get_partner(session, &nsession); + + if (nsession) { + switch_ivr_transfer_variable(session, nsession, argv[0]); + switch_core_session_rwunlock(nsession); + } else { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Usage: %s\n", RENAME_SYNTAX); + } + } +} + #define SOFT_HOLD_SYNTAX " [] []" SWITCH_STANDARD_APP(soft_hold_function) { @@ -6004,6 +6026,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load) SWITCH_ADD_APP(app_interface, "media_reset", "Reset all bypass/proxy media flags", "Reset all bypass/proxy media flags", media_reset_function, "", SAF_SUPPORT_NOMEDIA); SWITCH_ADD_APP(app_interface, "mkdir", "Create a directory", "Create a directory", mkdir_function, MKDIR_SYNTAX, SAF_SUPPORT_NOMEDIA); SWITCH_ADD_APP(app_interface, "rename", "Rename file", "Rename file", rename_function, RENAME_SYNTAX, SAF_SUPPORT_NOMEDIA | SAF_ZOMBIE_EXEC); + SWITCH_ADD_APP(app_interface, "transfer_vars", "Transfer variables", "Transfer variables", transfer_vars_function, TRANSFER_VARS_SYNTAX, + SAF_SUPPORT_NOMEDIA | SAF_ZOMBIE_EXEC); SWITCH_ADD_APP(app_interface, "soft_hold", "Put a bridged channel on hold", "Put a bridged channel on hold", soft_hold_function, SOFT_HOLD_SYNTAX, SAF_NONE); SWITCH_ADD_APP(app_interface, "bind_meta_app", "Bind a key to an application", "Bind a key to an application", dtmf_bind_function, BIND_SYNTAX, From 40441413e064a9fdbdefeed2182bb741bebe8cde Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 16 Apr 2015 07:49:54 -0500 Subject: [PATCH 44/97] Typo from previous convenience app commit --- src/mod/applications/mod_dptools/mod_dptools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index f184647407..a72a6b96af 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -644,7 +644,7 @@ SWITCH_STANDARD_APP(transfer_vars_function) switch_ivr_transfer_variable(session, nsession, argv[0]); switch_core_session_rwunlock(nsession); } else { - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Usage: %s\n", RENAME_SYNTAX); + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Usage: %s\n", TRANSFER_VARS_SYNTAX); } } } From 362eda521b0c6116f1daff36f8556a6f14192dcc Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Thu, 16 Apr 2015 23:50:49 +0800 Subject: [PATCH 45/97] Tweak for MSVC --- libs/spandsp/src/msvc/spandsp.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/spandsp/src/msvc/spandsp.h b/libs/spandsp/src/msvc/spandsp.h index fb7b1431b1..25d19698de 100644 --- a/libs/spandsp/src/msvc/spandsp.h +++ b/libs/spandsp/src/msvc/spandsp.h @@ -53,6 +53,7 @@ #include #endif #include +#include #include #include #include @@ -96,8 +97,6 @@ #include #include #include -#include -#include #include #include #include @@ -105,9 +104,14 @@ #include #include #include +#if defined(SPANDSP_SUPPORT_V32BIS) +#include +#endif #if defined(SPANDSP_SUPPORT_V34) #include #endif +#include +#include #include #include #include @@ -125,6 +129,7 @@ #include #include #include +#include #include #include #include From 638e93242257ca2c16dc3ab11ded5768a30f7007 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 16 Apr 2015 16:02:16 -0400 Subject: [PATCH 46/97] FS-7434 reset jitter buffer when SSRC changes --- src/switch_rtp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 50206a91b8..62601ecef4 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -328,6 +328,7 @@ struct switch_rtp { uint16_t seq; uint32_t ssrc; uint32_t remote_ssrc; + uint32_t last_read_ssrc; int8_t sending_dtmf; uint8_t need_mark; switch_payload_t payload; @@ -5067,10 +5068,14 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t if (rtp_session->jb && !rtp_session->pause_jb && jb_valid(rtp_session) && rtp_session->recv_msg.header.version == 2 && *bytes) { + uint32_t read_ssrc = ntohl((uint32_t)rtp_session->recv_msg.header.ssrc); if (rtp_session->recv_msg.header.m && rtp_session->recv_msg.header.pt != rtp_session->recv_te && !rtp_session->flags[SWITCH_RTP_FLAG_VIDEO] && !(rtp_session->rtp_bugs & RTP_BUG_IGNORE_MARK_BIT)) { stfu_n_reset(rtp_session->jb); + } else if (rtp_session->last_read_ssrc && rtp_session->last_read_ssrc != read_ssrc) { + stfu_n_reset(rtp_session->jb); } + rtp_session->last_read_ssrc = read_ssrc; if (!rtp_session->flags[SWITCH_RTP_FLAG_USE_TIMER] && rtp_session->timer.interval) { switch_core_timer_sync(&rtp_session->timer); From 753030acf5861915a848a7731a16481b94e04618 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 16 Apr 2015 14:24:35 -0500 Subject: [PATCH 47/97] handle m=video lines before m=audio --- src/switch_core_media.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 21eb2cefcc..466180d42f 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -3132,6 +3132,7 @@ static void clear_pmaps(switch_rtp_engine_t *engine) SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *session, const char *r_sdp, uint8_t *proceed, switch_sdp_type_t sdp_type) { uint8_t match = 0; + uint8_t vmatch = 0; switch_payload_t best_te = 0, te = 0, cng_pt = 0; sdp_media_t *m; sdp_attribute_t *attr; @@ -3796,7 +3797,12 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s smh->num_negotiated_codecs = 0; for(j = 0; j < m_idx; j++) { - payload_map_t *pmap = switch_core_media_add_payload_map(session, + payload_map_t *pmap; + if (matches[j].imp->codec_type != SWITCH_CODEC_TYPE_AUDIO) { + continue; + } + + pmap = switch_core_media_add_payload_map(session, SWITCH_MEDIA_TYPE_AUDIO, matches[j].map->rm_encoding, matches[j].map->rm_fmtp, @@ -3954,8 +3960,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s sdp_rtpmap_t *map; const char *rm_encoding; const switch_codec_implementation_t *mimp = NULL; - int vmatch = 0, i; - + int i; + + vmatch = 0; nm_idx = 0; m_idx = 0; memset(matches, 0, sizeof(matches[0]) * MAX_MATCHES); @@ -4138,7 +4145,6 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s switch_core_media_check_video_codecs(session); switch_snprintf(tmp, sizeof(tmp), "%d", v_engine->cur_payload_map->recv_pt); switch_channel_set_variable(session->channel, "rtp_video_recv_pt", tmp); - if (!match && vmatch) match = 1; if (switch_core_codec_ready(&v_engine->read_codec) && strcasecmp(matches[0].imp->iananame, v_engine->read_codec.implementation->iananame)) { v_engine->reset_codec = 1; @@ -4151,6 +4157,8 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s } } + if (!match && vmatch) match = 1; + done: if (parser) { From c620ee32c7887a73bcaeb690183cd597205f3408 Mon Sep 17 00:00:00 2001 From: William King Date: Sun, 19 Apr 2015 18:42:55 -0700 Subject: [PATCH 48/97] If we lost connection and can't reconnect, make sure to set active connection to NULL --- src/mod/event_handlers/mod_amqp/mod_amqp_connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c index cd0eac98ac..78dc474dcf 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c @@ -128,6 +128,7 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod if (!connection_attempt) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] could not connect to any AMQP brokers\n", profile_name); + *active = NULL; return SWITCH_STATUS_GENERR; } From 777c1154eef46810aefa2a700ee0efe70c900490 Mon Sep 17 00:00:00 2001 From: William King Date: Sun, 19 Apr 2015 19:11:47 -0700 Subject: [PATCH 49/97] Additional fix for error case when connection succeeds, but login fails --- src/mod/event_handlers/mod_amqp/mod_amqp_connection.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c index 78dc474dcf..811bf8b3ba 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c @@ -126,15 +126,15 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod } } + *active = connection_attempt; + if (!connection_attempt) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] could not connect to any AMQP brokers\n", profile_name); - *active = NULL; return SWITCH_STATUS_GENERR; } switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Profile[%s] opened socket connection to AMQP broker %s:%d\n", profile_name, connection_attempt->hostname, connection_attempt->port); - *active = connection_attempt; /* We have a connection, now log in */ status = amqp_login_with_properties(newConnection, @@ -148,6 +148,8 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod connection_attempt->password); if (mod_amqp_log_if_amqp_error(status, "Logging in")) { + mod_amqp_close_connection(*active); + *active = NULL; return SWITCH_STATUS_GENERR; } @@ -181,6 +183,7 @@ switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_ new_con->name = switch_core_strdup(pool, name); new_con->state = NULL; + new_con->next = NULL; for (param = switch_xml_child(cfg, "param"); param; param = param->next) { char *var = (char *) switch_xml_attr_soft(param, "name"); From 9d68cab2ac2cc86b800521c812628bfcc90499f1 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 21 Apr 2015 11:06:46 -0500 Subject: [PATCH 50/97] FS-7456: also more complete fix for FS-7440, handle sdp with m lines in any order --- src/switch_core_media.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 466180d42f..5ac1b60eeb 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -3404,6 +3404,11 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s sdp_rtpmap_t *map; int ice = 0; + nm_idx = 0; + m_idx = 0; + memset(matches, 0, sizeof(matches[0]) * MAX_MATCHES); + memset(near_matches, 0, sizeof(near_matches[0]) * MAX_MATCHES); + if (!sendonly && (m->m_mode == sdp_sendonly || m->m_mode == sdp_inactive)) { sendonly = 1; } @@ -3797,12 +3802,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s smh->num_negotiated_codecs = 0; for(j = 0; j < m_idx; j++) { - payload_map_t *pmap; - if (matches[j].imp->codec_type != SWITCH_CODEC_TYPE_AUDIO) { - continue; - } - - pmap = switch_core_media_add_payload_map(session, + payload_map_t *pmap = switch_core_media_add_payload_map(session, SWITCH_MEDIA_TYPE_AUDIO, matches[j].map->rm_encoding, matches[j].map->rm_fmtp, From 921f1a2bd2389443a54a8a285d18ff8639312c9c Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Tue, 21 Apr 2015 12:06:42 -0500 Subject: [PATCH 51/97] FS-7458 --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 62601ecef4..2d2525c3e7 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -6208,7 +6208,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtcp_zerocopy_read_frame(switch_rtp_t *rt for (i = 0; i < (int)rtp_session->rtcp_recv_msg_p->header.count && i < MAX_REPORT_BLOCKS ; i++) { struct switch_rtcp_report_block* report = (struct switch_rtcp_report_block*) (rtp_session->rtcp_recv_msg_p->body + (sizeof(struct switch_rtcp_sr_head) + (i * sizeof(struct switch_rtcp_report_block)))); frame->reports[i].ssrc = ntohl(report->ssrc); - frame->reports[i].fraction = report->fraction; + frame->reports[i].fraction = (uint8_t)report->fraction; frame->reports[i].lost = ntohl(report->lost); frame->reports[i].highest_sequence_number_received = ntohl(report->highest_sequence_number_received); frame->reports[i].jitter = ntohl(report->jitter); From a4d877c189b331ea47bf3a75745006d4d873eee6 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 21 Apr 2015 18:57:36 -0500 Subject: [PATCH 52/97] FS-7460: don't force ice in 3pcc-mode=proxy --- src/mod/endpoints/mod_sofia/mod_sofia.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 9b55414045..102ab0a238 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -647,7 +647,6 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session) return SWITCH_STATUS_SUCCESS; } - b_sdp = switch_channel_get_variable(channel, SWITCH_B_SDP_VARIABLE); is_proxy = (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA)); is_3pcc = (sofia_test_pflag(tech_pvt->profile, PFLAG_3PCC_PROXY) && sofia_test_flag(tech_pvt, TFLAG_3PCC)); @@ -665,15 +664,16 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session) /* This if statement check and handles the 3pcc proxy mode */ if (is_3pcc) { - switch_channel_set_flag(channel, CF_3PCC); + if (!(sofia_test_pflag(tech_pvt->profile, PFLAG_3PCC_PROXY))) { + switch_channel_set_flag(channel, CF_3PCC); + } - if(!is_proxy) { - switch_core_media_prepare_codecs(tech_pvt->session, SWITCH_TRUE); - tech_pvt->mparams.local_sdp_str = NULL; + if (!is_proxy) { + switch_core_media_prepare_codecs(tech_pvt->session, SWITCH_TRUE); + tech_pvt->mparams.local_sdp_str = NULL; - switch_core_media_choose_port(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO, 0); - switch_core_session_set_ice(session); - switch_core_media_gen_local_sdp(session, SDP_TYPE_RESPONSE, NULL, 0, NULL, 0); + switch_core_media_choose_port(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO, 0); + switch_core_media_gen_local_sdp(session, SDP_TYPE_RESPONSE, NULL, 0, NULL, 0); } else { switch_core_media_set_local_sdp(session, b_sdp, SWITCH_TRUE); From b33563138b0953693dbe0d32a439c533ea8b4316 Mon Sep 17 00:00:00 2001 From: Luis Azedo Date: Wed, 22 Apr 2015 20:11:12 +0100 Subject: [PATCH 53/97] conditionally allow intercept of replaced call-id when processing replaces header without this change one leg calls inhaled could not be picked because there is no bridge_uuid. FS-7463 #resolve --- src/mod/endpoints/mod_sofia/sofia.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index f8ccbd6f67..9ce04111e2 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -9885,7 +9885,14 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia "%sanswer,sofia_sla:%s", codec_str, b_private->uuid); } } else { - if (!zstr(bridge_uuid)) { + char* pickup = NULL; + if(sip->sip_replaces->rq_url->url_params && sip->sip_replaces->rp_call_id) { + pickup = switch_find_parameter(sip->sip_replaces->rq_url->url_params,"pickup", switch_core_session_get_pool(session)); + } + if(pickup) { + switch_channel_mark_hold(b_channel, SWITCH_FALSE); + tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", sip->sip_replaces->rp_call_id); + } else if (!zstr(bridge_uuid)) { switch_channel_mark_hold(b_channel, SWITCH_FALSE); tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", bridge_uuid); } else { From c5d0b63300b3c36a808a70987e392731bbbf1777 Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 22 Apr 2015 16:18:13 -0700 Subject: [PATCH 54/97] Revert "FS-7435 change pgsql support to default on, with an option to disable" This reverts commit 702f0472655f834ac939abd2cf877fbf98f5aada. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 91aee243fe..ad5d20cca8 100644 --- a/configure.ac +++ b/configure.ac @@ -598,7 +598,7 @@ SWITCH_AM_LDFLAGS="$LIBUUID_LIBS $SWITCH_AM_LDFLAGS" SWITCH_AM_CFLAGS="$LIBUUID_CFLAGS $SWITCH_AM_CFLAGS" AC_ARG_ENABLE(core-pgsql-support, - [AS_HELP_STRING([--disable-core-pgsql-support], [Compile without PGSQL Support])],[enable_core_pgsql_support="no"],[enable_core_pgsql_support="yes"]) + [AS_HELP_STRING([--enable-core-pgsql-support], [Compile with PGSQL Support])],,[enable_core_pgsql_support="no"]) AC_ARG_ENABLE(core-pgsql-pkgconfig, [AS_HELP_STRING([--disable-core-pgsql-pkgconfig], [Use pg_config to get PGQSL build options])],[enable_core_pgsql_pkgconfig="$enableval"],[enable_core_pgsql_pkgconfig="yes"]) From b01352c13373444856b2354323f739a25fe898aa Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 22 Apr 2015 21:33:08 -0700 Subject: [PATCH 55/97] Fixing a typo from a last minute refactor after fixing a bug --- src/mod/event_handlers/mod_amqp/mod_amqp_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c index 811bf8b3ba..7aa3095765 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c @@ -148,7 +148,7 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod connection_attempt->password); if (mod_amqp_log_if_amqp_error(status, "Logging in")) { - mod_amqp_close_connection(*active); + mod_amqp_connection_close(*active); *active = NULL; return SWITCH_STATUS_GENERR; } From d3a747ad020b038fc1fe5794662bb96d983b6611 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 23 Apr 2015 10:45:48 -0500 Subject: [PATCH 56/97] FS-7470: add force-register-domain param to verto --- src/mod/endpoints/mod_verto/mod_verto.c | 6 ++++++ src/mod/endpoints/mod_verto/mod_verto.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 410f5ce1d4..8afe2fb5f0 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -932,6 +932,10 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char * } + if (jsock->profile->register_domain) { + domain = jsock->profile->register_domain; + } + if (!(id && domain)) { *code = CODE_AUTH_FAILED; switch_snprintf(message, mlen, "Missing or improper credentials"); @@ -4223,6 +4227,8 @@ static switch_status_t parse_config(const char *cf) profile->mcast_port = (switch_port_t) atoi(val); } else if (!strcasecmp(var, "timer-name") && !zstr(var)) { profile->timer_name = switch_core_strdup(profile->pool, val); + } else if (!strcasecmp(var, "force-register-domain") && !zstr(val)) { + profile->register_domain = switch_core_strdup(profile->pool, val); } else if (!strcasecmp(var, "local-network") && !zstr(val)) { profile->local_network = switch_core_strdup(profile->pool, val); } else if (!strcasecmp(var, "apply-candidate-acl")) { diff --git a/src/mod/endpoints/mod_verto/mod_verto.h b/src/mod/endpoints/mod_verto/mod_verto.h index b864dcf8b7..beb26ab072 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.h +++ b/src/mod/endpoints/mod_verto/mod_verto.h @@ -249,6 +249,8 @@ struct verto_profile_s { verto_vhost_t *vhosts; + char *register_domain; + struct verto_profile_s *next; }; From dbc124d45ee5937283a44087a788065b7cafcb15 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 24 Apr 2015 09:47:16 -0500 Subject: [PATCH 57/97] FS-7465: make sure write buffer is big enough on stereo file handles --- src/switch_core_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core_file.c b/src/switch_core_file.c index 66e5df1d6e..81fb16ed28 100644 --- a/src/switch_core_file.c +++ b/src/switch_core_file.c @@ -412,14 +412,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh, switch_resample_process(fh->resampler, data, (uint32_t) * len); if (fh->resampler->to_len > orig_len) { - if (!fh->dbuf) { + if (!fh->dbuf || (fh->dbuflen < fh->resampler->to_len * 2 * fh->channels)) { void *mem; fh->dbuflen = fh->resampler->to_len * 2 * fh->channels; mem = realloc(fh->dbuf, fh->dbuflen); switch_assert(mem); fh->dbuf = mem; } - switch_assert(fh->resampler->to_len * 2 *fh->channels <= fh->dbuflen); + switch_assert(fh->resampler->to_len * 2 * fh->channels <= fh->dbuflen); memcpy(fh->dbuf, fh->resampler->to, fh->resampler->to_len * 2 * fh->channels); data = fh->dbuf; } else { From b9b1b61d20e801983e60fd470d2b257d392c825d Mon Sep 17 00:00:00 2001 From: Eric Tamme Date: Fri, 24 Apr 2015 10:31:03 -0500 Subject: [PATCH 58/97] FS-7425: set dh params and call set_tmp_dh to enable PFS for DTLS-SRTP --- src/switch_rtp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 2d2525c3e7..a3f2e2e95c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3075,6 +3075,8 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_dtls(switch_rtp_t *rtp_session, d switch_dtls_t *dtls; int ret; const char *kind = ""; + BIO *bio; + DH *dh; #ifndef HAVE_OPENSSL_DTLS_SRTP return SWITCH_STATUS_FALSE; @@ -3122,6 +3124,12 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_dtls(switch_rtp_t *rtp_session, d dtls->ssl_ctx = SSL_CTX_new(DTLSv1_method()); switch_assert(dtls->ssl_ctx); + bio = BIO_new_file(dtls->pem, "r"); + dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); + BIO_free(bio); + SSL_CTX_set_tmp_dh(dtls->ssl_ctx, dh); + DH_free(dh); + SSL_CTX_set_mode(dtls->ssl_ctx, SSL_MODE_AUTO_RETRY); //SSL_CTX_set_verify(dtls->ssl_ctx, SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT, NULL); From c56b7da53a86bbe7ff3fe74a627e13661bb55736 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 25 Apr 2015 13:22:43 -0500 Subject: [PATCH 59/97] copy part of 0e7eb72ca75a3584d203c6464fc8ceaacf79ebae --- src/include/switch_core.h | 3 ++- src/switch_core_codec.c | 7 ++++--- src/switch_core_io.c | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/include/switch_core.h b/src/include/switch_core.h index e783dbd767..6e384502ff 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -1574,7 +1574,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_init_with_bitrate(switch_codec uint32_t bitrate, uint32_t flags, const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool); -SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, switch_memory_pool_t *pool); +SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, + const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool); SWITCH_DECLARE(switch_status_t) switch_core_codec_parse_fmtp(const char *codec_name, const char *fmtp, uint32_t rate, switch_codec_fmtp_t *codec_fmtp); SWITCH_DECLARE(switch_status_t) switch_core_codec_reset(switch_codec_t *codec); diff --git a/src/switch_core_codec.c b/src/switch_core_codec.c index ef22e7714f..f766704059 100644 --- a/src/switch_core_codec.c +++ b/src/switch_core_codec.c @@ -616,7 +616,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_reset(switch_codec_t *codec) } -SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, switch_memory_pool_t *pool) +SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, + const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool) { switch_status_t status; @@ -643,8 +644,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, sw new_codec->fmtp_in = switch_core_strdup(new_codec->memory_pool, codec->fmtp_in); } - new_codec->implementation->init(new_codec, new_codec->flags, NULL); - + new_codec->implementation->init(new_codec, new_codec->flags, codec_settings); + switch_mutex_init(&new_codec->mutex, SWITCH_MUTEX_NESTED, new_codec->memory_pool); return SWITCH_STATUS_SUCCESS; diff --git a/src/switch_core_io.c b/src/switch_core_io.c index cb056adb73..4c39bbbb42 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -527,7 +527,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi if (!switch_core_codec_ready(&session->bug_codec) && switch_core_codec_ready(read_frame->codec)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Setting BUG Codec %s:%d\n", read_frame->codec->implementation->iananame, read_frame->codec->implementation->ianacode); - switch_core_codec_copy(read_frame->codec, &session->bug_codec, NULL); + switch_core_codec_copy(read_frame->codec, &session->bug_codec, NULL, NULL); if (!switch_core_codec_ready(&session->bug_codec)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "%s Error setting BUG codec %s!\n", switch_core_session_get_name(session), read_frame->codec->implementation->iananame); From d60a8ab223ea237ed3edd0c1a659cce3bfc428da Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 12 Feb 2015 10:14:49 -0600 Subject: [PATCH 60/97] fix switch_core_codec_copy blocking interface forever issue --- src/switch_core_codec.c | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/src/switch_core_codec.c b/src/switch_core_codec.c index f766704059..23a16781a9 100644 --- a/src/switch_core_codec.c +++ b/src/switch_core_codec.c @@ -619,36 +619,19 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_reset(switch_codec_t *codec) SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool) { - switch_status_t status; - switch_assert(codec != NULL); switch_assert(new_codec != NULL); - - if (pool) { - new_codec->memory_pool = pool; - } else { - if ((status = switch_core_new_memory_pool(&new_codec->memory_pool)) != SWITCH_STATUS_SUCCESS) { - return status; - } - } - - new_codec->codec_interface = codec->codec_interface; - new_codec->implementation = codec->implementation; - new_codec->flags = codec->flags; - - if (!pool) { - switch_set_flag(new_codec, SWITCH_CODEC_FLAG_FREE_POOL); - } - - if (codec->fmtp_in) { - new_codec->fmtp_in = switch_core_strdup(new_codec->memory_pool, codec->fmtp_in); - } - - new_codec->implementation->init(new_codec, new_codec->flags, codec_settings); - switch_mutex_init(&new_codec->mutex, SWITCH_MUTEX_NESTED, new_codec->memory_pool); - - return SWITCH_STATUS_SUCCESS; + return switch_core_codec_init(new_codec, + codec->implementation->iananame, + codec->fmtp_in, + codec->implementation->actual_samples_per_second, + codec->implementation->microseconds_per_packet / 1000, + codec->implementation->number_of_channels, + codec->flags, + codec_settings, + pool); + } SWITCH_DECLARE(switch_status_t) switch_core_codec_init_with_bitrate(switch_codec_t *codec, const char *codec_name, const char *fmtp, From 3058709a92322aa1cea213bc7c434eec36df219f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 25 Apr 2015 14:15:26 -0500 Subject: [PATCH 61/97] swigall --- .../mod_java/src/org/freeswitch/swig/API.java | 12 +- .../src/org/freeswitch/swig/CoreSession.java | 146 +- .../src/org/freeswitch/swig/DTMF.java | 12 +- .../src/org/freeswitch/swig/Event.java | 38 +- .../org/freeswitch/swig/EventConsumer.java | 38 +- .../src/org/freeswitch/swig/IVRMenu.java | 10 +- .../src/org/freeswitch/swig/JavaSession.java | 18 +- .../freeswitch/swig/SWIGTYPE_p_JavaVM.java | 2 +- .../org/freeswitch/swig/SWIGTYPE_p_int.java | 2 +- .../SWIGTYPE_p_p_switch_event_node_t.java | 2 +- .../swig/SWIGTYPE_p_switch_call_cause_t.java | 2 +- .../SWIGTYPE_p_switch_channel_state_t.java | 2 +- .../swig/SWIGTYPE_p_switch_channel_t.java | 2 +- .../SWIGTYPE_p_switch_core_session_t.java | 2 +- .../swig/SWIGTYPE_p_switch_event_t.java | 2 +- .../swig/SWIGTYPE_p_switch_event_types_t.java | 2 +- .../swig/SWIGTYPE_p_switch_input_args_t.java | 2 +- .../swig/SWIGTYPE_p_switch_input_type_t.java | 2 +- .../swig/SWIGTYPE_p_switch_priority_t.java | 2 +- .../swig/SWIGTYPE_p_switch_queue_t.java | 2 +- ...IGTYPE_p_switch_state_handler_table_t.java | 2 +- .../swig/SWIGTYPE_p_switch_status_t.java | 2 +- .../SWIGTYPE_p_switch_stream_handle_t.java | 2 +- .../freeswitch/swig/SWIGTYPE_p_uint32_t.java | 2 +- .../org/freeswitch/swig/SWIGTYPE_p_void.java | 2 +- .../src/org/freeswitch/swig/Stream.java | 12 +- .../src/org/freeswitch/swig/freeswitch.java | 4 +- .../org/freeswitch/swig/freeswitchJNI.java | 274 +- .../swig/input_callback_state_t.java | 20 +- .../org/freeswitch/swig/session_flag_t.java | 5 +- .../languages/mod_java/switch_swig_wrap.cpp | 842 +- src/mod/languages/mod_lua/mod_lua_wrap.cpp | 4613 +- .../languages/mod_managed/freeswitch_wrap.cxx | 44621 ---------------- src/mod/languages/mod_managed/managed/swig.cs | 40483 -------------- src/mod/languages/mod_perl/freeswitch.pm | 5 +- src/mod/languages/mod_perl/mod_perl_wrap.cpp | 665 +- src/mod/languages/mod_python/freeswitch.py | 74 +- .../languages/mod_python/mod_python_wrap.cpp | 611 +- .../legacy/languages/mod_lua/mod_lua_wrap.cpp | 4611 +- 39 files changed, 4509 insertions(+), 92641 deletions(-) delete mode 100644 src/mod/languages/mod_managed/freeswitch_wrap.cxx delete mode 100644 src/mod/languages/mod_managed/managed/swig.cs diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java index 5fd3da9bb0..4c1640f5e3 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class API { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_API(swigCPtr); @@ -34,19 +34,19 @@ public class API { } public API(CoreSession s) { - this(freeswitchJNI.new_API(CoreSession.getCPtr(s), s), true); + this(freeswitchJNI.new_API(CoreSession.getCPtr(s)), true); } public String execute(String command, String data) { - return freeswitchJNI.API_execute(swigCPtr, this, command, data); + return freeswitchJNI.API_execute(swigCPtr, command, data); } public String executeString(String command) { - return freeswitchJNI.API_executeString(swigCPtr, this, command); + return freeswitchJNI.API_executeString(swigCPtr, command); } public String getTime() { - return freeswitchJNI.API_getTime(swigCPtr, this); + return freeswitchJNI.API_getTime(swigCPtr); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java index e8f8f35a6e..b993399944 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class CoreSession { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_CoreSession(swigCPtr); @@ -34,291 +34,291 @@ public class CoreSession { } public void setSession(SWIGTYPE_p_switch_core_session_t value) { - freeswitchJNI.CoreSession_session_set(swigCPtr, this, SWIGTYPE_p_switch_core_session_t.getCPtr(value)); + freeswitchJNI.CoreSession_session_set(swigCPtr, SWIGTYPE_p_switch_core_session_t.getCPtr(value)); } public SWIGTYPE_p_switch_core_session_t getSession() { - long cPtr = freeswitchJNI.CoreSession_session_get(swigCPtr, this); + long cPtr = freeswitchJNI.CoreSession_session_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_core_session_t(cPtr, false); } public void setChannel(SWIGTYPE_p_switch_channel_t value) { - freeswitchJNI.CoreSession_channel_set(swigCPtr, this, SWIGTYPE_p_switch_channel_t.getCPtr(value)); + freeswitchJNI.CoreSession_channel_set(swigCPtr, SWIGTYPE_p_switch_channel_t.getCPtr(value)); } public SWIGTYPE_p_switch_channel_t getChannel() { - long cPtr = freeswitchJNI.CoreSession_channel_get(swigCPtr, this); + long cPtr = freeswitchJNI.CoreSession_channel_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_channel_t(cPtr, false); } public void setFlags(long value) { - freeswitchJNI.CoreSession_flags_set(swigCPtr, this, value); + freeswitchJNI.CoreSession_flags_set(swigCPtr, value); } public long getFlags() { - return freeswitchJNI.CoreSession_flags_get(swigCPtr, this); + return freeswitchJNI.CoreSession_flags_get(swigCPtr); } public void setAllocated(int value) { - freeswitchJNI.CoreSession_allocated_set(swigCPtr, this, value); + freeswitchJNI.CoreSession_allocated_set(swigCPtr, value); } public int getAllocated() { - return freeswitchJNI.CoreSession_allocated_get(swigCPtr, this); + return freeswitchJNI.CoreSession_allocated_get(swigCPtr); } public void setCb_state(input_callback_state_t value) { - freeswitchJNI.CoreSession_cb_state_set(swigCPtr, this, input_callback_state_t.getCPtr(value), value); + freeswitchJNI.CoreSession_cb_state_set(swigCPtr, input_callback_state_t.getCPtr(value)); } public input_callback_state_t getCb_state() { - long cPtr = freeswitchJNI.CoreSession_cb_state_get(swigCPtr, this); + long cPtr = freeswitchJNI.CoreSession_cb_state_get(swigCPtr); return (cPtr == 0) ? null : new input_callback_state_t(cPtr, false); } public void setHook_state(SWIGTYPE_p_switch_channel_state_t value) { - freeswitchJNI.CoreSession_hook_state_set(swigCPtr, this, SWIGTYPE_p_switch_channel_state_t.getCPtr(value)); + freeswitchJNI.CoreSession_hook_state_set(swigCPtr, SWIGTYPE_p_switch_channel_state_t.getCPtr(value)); } public SWIGTYPE_p_switch_channel_state_t getHook_state() { - return new SWIGTYPE_p_switch_channel_state_t(freeswitchJNI.CoreSession_hook_state_get(swigCPtr, this), true); + return new SWIGTYPE_p_switch_channel_state_t(freeswitchJNI.CoreSession_hook_state_get(swigCPtr), 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)); + freeswitchJNI.CoreSession_cause_set(swigCPtr, 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); + return new SWIGTYPE_p_switch_call_cause_t(freeswitchJNI.CoreSession_cause_get(swigCPtr), true); } public void setUuid(String value) { - freeswitchJNI.CoreSession_uuid_set(swigCPtr, this, value); + freeswitchJNI.CoreSession_uuid_set(swigCPtr, value); } public String getUuid() { - return freeswitchJNI.CoreSession_uuid_get(swigCPtr, this); + return freeswitchJNI.CoreSession_uuid_get(swigCPtr); } public void setTts_name(String value) { - freeswitchJNI.CoreSession_tts_name_set(swigCPtr, this, value); + freeswitchJNI.CoreSession_tts_name_set(swigCPtr, value); } public String getTts_name() { - return freeswitchJNI.CoreSession_tts_name_get(swigCPtr, this); + return freeswitchJNI.CoreSession_tts_name_get(swigCPtr); } public void setVoice_name(String value) { - freeswitchJNI.CoreSession_voice_name_set(swigCPtr, this, value); + freeswitchJNI.CoreSession_voice_name_set(swigCPtr, value); } public String getVoice_name() { - return freeswitchJNI.CoreSession_voice_name_get(swigCPtr, this); + return freeswitchJNI.CoreSession_voice_name_get(swigCPtr); } public int insertFile(String file, String insert_file, int sample_point) { - return freeswitchJNI.CoreSession_insertFile(swigCPtr, this, file, insert_file, sample_point); + return freeswitchJNI.CoreSession_insertFile(swigCPtr, file, insert_file, sample_point); } public int answer() { - return freeswitchJNI.CoreSession_answer(swigCPtr, this); + return freeswitchJNI.CoreSession_answer(swigCPtr); } public int preAnswer() { - return freeswitchJNI.CoreSession_preAnswer(swigCPtr, this); + return freeswitchJNI.CoreSession_preAnswer(swigCPtr); } public void hangup(String cause) { - freeswitchJNI.CoreSession_hangup(swigCPtr, this, cause); + freeswitchJNI.CoreSession_hangup(swigCPtr, cause); } public void hangupState() { - freeswitchJNI.CoreSession_hangupState(swigCPtr, this); + freeswitchJNI.CoreSession_hangupState(swigCPtr); } public void setVariable(String var, String val) { - freeswitchJNI.CoreSession_setVariable(swigCPtr, this, var, val); + freeswitchJNI.CoreSession_setVariable(swigCPtr, var, val); } public void setPrivate(String var, SWIGTYPE_p_void val) { - freeswitchJNI.CoreSession_setPrivate(swigCPtr, this, var, SWIGTYPE_p_void.getCPtr(val)); + freeswitchJNI.CoreSession_setPrivate(swigCPtr, var, SWIGTYPE_p_void.getCPtr(val)); } public SWIGTYPE_p_void getPrivate(String var) { - long cPtr = freeswitchJNI.CoreSession_getPrivate(swigCPtr, this, var); + long cPtr = freeswitchJNI.CoreSession_getPrivate(swigCPtr, var); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public String getVariable(String var) { - return freeswitchJNI.CoreSession_getVariable(swigCPtr, this, var); + return freeswitchJNI.CoreSession_getVariable(swigCPtr, var); } public SWIGTYPE_p_switch_status_t process_callback_result(String result) { - return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_process_callback_result(swigCPtr, this, result), true); + return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_process_callback_result(swigCPtr, result), true); } public void say(String tosay, String module_name, String say_type, String say_method, String say_gender) { - freeswitchJNI.CoreSession_say(swigCPtr, this, tosay, module_name, say_type, say_method, say_gender); + freeswitchJNI.CoreSession_say(swigCPtr, tosay, module_name, say_type, say_method, say_gender); } public void sayPhrase(String phrase_name, String phrase_data, String phrase_lang) { - freeswitchJNI.CoreSession_sayPhrase(swigCPtr, this, phrase_name, phrase_data, phrase_lang); + freeswitchJNI.CoreSession_sayPhrase(swigCPtr, phrase_name, phrase_data, phrase_lang); } public String hangupCause() { - return freeswitchJNI.CoreSession_hangupCause(swigCPtr, this); + return freeswitchJNI.CoreSession_hangupCause(swigCPtr); } public String getState() { - return freeswitchJNI.CoreSession_getState(swigCPtr, this); + return freeswitchJNI.CoreSession_getState(swigCPtr); } public int recordFile(String file_name, int time_limit, int silence_threshold, int silence_hits) { - return freeswitchJNI.CoreSession_recordFile(swigCPtr, this, file_name, time_limit, silence_threshold, silence_hits); + return freeswitchJNI.CoreSession_recordFile(swigCPtr, file_name, time_limit, silence_threshold, silence_hits); } protected int originate(CoreSession a_leg_session, String dest, int timeout, SWIGTYPE_p_switch_state_handler_table_t handlers) { - return freeswitchJNI.CoreSession_originate(swigCPtr, this, CoreSession.getCPtr(a_leg_session), a_leg_session, dest, timeout, SWIGTYPE_p_switch_state_handler_table_t.getCPtr(handlers)); + return freeswitchJNI.CoreSession_originate(swigCPtr, CoreSession.getCPtr(a_leg_session), dest, timeout, SWIGTYPE_p_switch_state_handler_table_t.getCPtr(handlers)); } public void destroy() { - freeswitchJNI.CoreSession_destroy(swigCPtr, this); + freeswitchJNI.CoreSession_destroy(swigCPtr); } public void setDTMFCallback(SWIGTYPE_p_void cbfunc, String funcargs) { - freeswitchJNI.CoreSession_setDTMFCallback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(cbfunc), funcargs); + freeswitchJNI.CoreSession_setDTMFCallback(swigCPtr, SWIGTYPE_p_void.getCPtr(cbfunc), funcargs); } public int speak(String text) { - return freeswitchJNI.CoreSession_speak(swigCPtr, this, text); + return freeswitchJNI.CoreSession_speak(swigCPtr, text); } public void set_tts_parms(String tts_name, String voice_name) { - freeswitchJNI.CoreSession_set_tts_parms(swigCPtr, this, tts_name, voice_name); + freeswitchJNI.CoreSession_set_tts_parms(swigCPtr, tts_name, voice_name); } public void set_tts_params(String tts_name, String voice_name) { - freeswitchJNI.CoreSession_set_tts_params(swigCPtr, this, tts_name, voice_name); + freeswitchJNI.CoreSession_set_tts_params(swigCPtr, tts_name, voice_name); } public int collectDigits(int abs_timeout) { - return freeswitchJNI.CoreSession_collectDigits__SWIG_0(swigCPtr, this, abs_timeout); + return freeswitchJNI.CoreSession_collectDigits__SWIG_0(swigCPtr, abs_timeout); } public int collectDigits(int digit_timeout, int abs_timeout) { - return freeswitchJNI.CoreSession_collectDigits__SWIG_1(swigCPtr, this, digit_timeout, abs_timeout); + return freeswitchJNI.CoreSession_collectDigits__SWIG_1(swigCPtr, digit_timeout, abs_timeout); } public String getDigits(int maxdigits, String terminators, int timeout) { - return freeswitchJNI.CoreSession_getDigits__SWIG_0(swigCPtr, this, maxdigits, terminators, timeout); + return freeswitchJNI.CoreSession_getDigits__SWIG_0(swigCPtr, maxdigits, terminators, timeout); } public String getDigits(int maxdigits, String terminators, int timeout, int interdigit) { - return freeswitchJNI.CoreSession_getDigits__SWIG_1(swigCPtr, this, maxdigits, terminators, timeout, interdigit); + return freeswitchJNI.CoreSession_getDigits__SWIG_1(swigCPtr, maxdigits, terminators, timeout, interdigit); } public int transfer(String extension, String dialplan, String context) { - return freeswitchJNI.CoreSession_transfer(swigCPtr, this, extension, dialplan, context); + return freeswitchJNI.CoreSession_transfer(swigCPtr, extension, dialplan, context); } public String read(int min_digits, int max_digits, String prompt_audio_file, int timeout, String valid_terminators, int digit_timeout) { - return freeswitchJNI.CoreSession_read(swigCPtr, this, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout); + return freeswitchJNI.CoreSession_read(swigCPtr, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout); } public String playAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, String terminators, String audio_files, String bad_input_audio_files, String digits_regex, String var_name, int digit_timeout, String transfer_on_failure) { - return freeswitchJNI.CoreSession_playAndGetDigits(swigCPtr, this, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure); + return freeswitchJNI.CoreSession_playAndGetDigits(swigCPtr, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure); } public int streamFile(String file, int starting_sample_count) { - return freeswitchJNI.CoreSession_streamFile(swigCPtr, this, file, starting_sample_count); + return freeswitchJNI.CoreSession_streamFile(swigCPtr, file, starting_sample_count); } public int sleep(int ms, int sync) { - return freeswitchJNI.CoreSession_sleep(swigCPtr, this, ms, sync); + return freeswitchJNI.CoreSession_sleep(swigCPtr, ms, sync); } public int flushEvents() { - return freeswitchJNI.CoreSession_flushEvents(swigCPtr, this); + return freeswitchJNI.CoreSession_flushEvents(swigCPtr); } public int flushDigits() { - return freeswitchJNI.CoreSession_flushDigits(swigCPtr, this); + return freeswitchJNI.CoreSession_flushDigits(swigCPtr); } public int setAutoHangup(boolean val) { - return freeswitchJNI.CoreSession_setAutoHangup(swigCPtr, this, val); + return freeswitchJNI.CoreSession_setAutoHangup(swigCPtr, val); } public void setHangupHook(SWIGTYPE_p_void hangup_func) { - freeswitchJNI.CoreSession_setHangupHook(swigCPtr, this, SWIGTYPE_p_void.getCPtr(hangup_func)); + freeswitchJNI.CoreSession_setHangupHook(swigCPtr, SWIGTYPE_p_void.getCPtr(hangup_func)); } public boolean ready() { - return freeswitchJNI.CoreSession_ready(swigCPtr, this); + return freeswitchJNI.CoreSession_ready(swigCPtr); } public boolean bridged() { - return freeswitchJNI.CoreSession_bridged(swigCPtr, this); + return freeswitchJNI.CoreSession_bridged(swigCPtr); } public boolean answered() { - return freeswitchJNI.CoreSession_answered(swigCPtr, this); + return freeswitchJNI.CoreSession_answered(swigCPtr); } public boolean mediaReady() { - return freeswitchJNI.CoreSession_mediaReady(swigCPtr, this); + return freeswitchJNI.CoreSession_mediaReady(swigCPtr); } public void waitForAnswer(CoreSession calling_session) { - freeswitchJNI.CoreSession_waitForAnswer(swigCPtr, this, CoreSession.getCPtr(calling_session), calling_session); + freeswitchJNI.CoreSession_waitForAnswer(swigCPtr, CoreSession.getCPtr(calling_session)); } public void execute(String app, String data) { - freeswitchJNI.CoreSession_execute(swigCPtr, this, app, data); + freeswitchJNI.CoreSession_execute(swigCPtr, app, data); } public void sendEvent(Event sendME) { - freeswitchJNI.CoreSession_sendEvent(swigCPtr, this, Event.getCPtr(sendME), sendME); + freeswitchJNI.CoreSession_sendEvent(swigCPtr, Event.getCPtr(sendME)); } public void setEventData(Event e) { - freeswitchJNI.CoreSession_setEventData(swigCPtr, this, Event.getCPtr(e), e); + freeswitchJNI.CoreSession_setEventData(swigCPtr, Event.getCPtr(e)); } public String getXMLCDR() { - return freeswitchJNI.CoreSession_getXMLCDR(swigCPtr, this); + return freeswitchJNI.CoreSession_getXMLCDR(swigCPtr); } public boolean begin_allow_threads() { - return freeswitchJNI.CoreSession_begin_allow_threads(swigCPtr, this); + return freeswitchJNI.CoreSession_begin_allow_threads(swigCPtr); } public boolean end_allow_threads() { - return freeswitchJNI.CoreSession_end_allow_threads(swigCPtr, this); + return freeswitchJNI.CoreSession_end_allow_threads(swigCPtr); } public String get_uuid() { - return freeswitchJNI.CoreSession_get_uuid(swigCPtr, this); + return freeswitchJNI.CoreSession_get_uuid(swigCPtr); } public SWIGTYPE_p_switch_input_args_t get_cb_args() { - return new SWIGTYPE_p_switch_input_args_t(freeswitchJNI.CoreSession_get_cb_args(swigCPtr, this), false); + return new SWIGTYPE_p_switch_input_args_t(freeswitchJNI.CoreSession_get_cb_args(swigCPtr), false); } public void check_hangup_hook() { - freeswitchJNI.CoreSession_check_hangup_hook(swigCPtr, this); + freeswitchJNI.CoreSession_check_hangup_hook(swigCPtr); } public SWIGTYPE_p_switch_status_t run_dtmf_callback(SWIGTYPE_p_void input, SWIGTYPE_p_switch_input_type_t itype) { - return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_run_dtmf_callback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); + return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_run_dtmf_callback(swigCPtr, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); } public void consoleLog(String level_str, String msg) { - freeswitchJNI.CoreSession_consoleLog(swigCPtr, this, level_str, msg); + freeswitchJNI.CoreSession_consoleLog(swigCPtr, level_str, msg); } public void consoleLog2(String level_str, String file, String func, int line, String msg) { - freeswitchJNI.CoreSession_consoleLog2(swigCPtr, this, level_str, file, func, line, msg); + freeswitchJNI.CoreSession_consoleLog2(swigCPtr, level_str, file, func, line, msg); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java index 81e949d285..f3a97d9900 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class DTMF { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_DTMF(swigCPtr); @@ -34,19 +34,19 @@ public class DTMF { } public void setDigit(char value) { - freeswitchJNI.DTMF_digit_set(swigCPtr, this, value); + freeswitchJNI.DTMF_digit_set(swigCPtr, value); } public char getDigit() { - return freeswitchJNI.DTMF_digit_get(swigCPtr, this); + return freeswitchJNI.DTMF_digit_get(swigCPtr); } public void setDuration(SWIGTYPE_p_uint32_t value) { - freeswitchJNI.DTMF_duration_set(swigCPtr, this, SWIGTYPE_p_uint32_t.getCPtr(value)); + freeswitchJNI.DTMF_duration_set(swigCPtr, SWIGTYPE_p_uint32_t.getCPtr(value)); } public SWIGTYPE_p_uint32_t getDuration() { - return new SWIGTYPE_p_uint32_t(freeswitchJNI.DTMF_duration_get(swigCPtr, this), true); + return new SWIGTYPE_p_uint32_t(freeswitchJNI.DTMF_duration_get(swigCPtr), true); } public DTMF(char idigit, SWIGTYPE_p_uint32_t iduration) { diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java index d1adc09dc6..731d33031d 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class Event { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_Event(swigCPtr); @@ -34,28 +34,28 @@ public class Event { } public void setEvent(SWIGTYPE_p_switch_event_t value) { - freeswitchJNI.Event_event_set(swigCPtr, this, SWIGTYPE_p_switch_event_t.getCPtr(value)); + freeswitchJNI.Event_event_set(swigCPtr, SWIGTYPE_p_switch_event_t.getCPtr(value)); } public SWIGTYPE_p_switch_event_t getEvent() { - long cPtr = freeswitchJNI.Event_event_get(swigCPtr, this); + long cPtr = freeswitchJNI.Event_event_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_event_t(cPtr, false); } public void setSerialized_string(String value) { - freeswitchJNI.Event_serialized_string_set(swigCPtr, this, value); + freeswitchJNI.Event_serialized_string_set(swigCPtr, value); } public String getSerialized_string() { - return freeswitchJNI.Event_serialized_string_get(swigCPtr, this); + return freeswitchJNI.Event_serialized_string_get(swigCPtr); } public void setMine(int value) { - freeswitchJNI.Event_mine_set(swigCPtr, this, value); + freeswitchJNI.Event_mine_set(swigCPtr, value); } public int getMine() { - return freeswitchJNI.Event_mine_get(swigCPtr, this); + return freeswitchJNI.Event_mine_get(swigCPtr); } public Event(String type, String subclass_name) { @@ -67,47 +67,47 @@ public class Event { } public int chat_execute(String app, String data) { - return freeswitchJNI.Event_chat_execute(swigCPtr, this, app, data); + return freeswitchJNI.Event_chat_execute(swigCPtr, app, data); } public int chat_send(String dest_proto) { - return freeswitchJNI.Event_chat_send(swigCPtr, this, dest_proto); + return freeswitchJNI.Event_chat_send(swigCPtr, dest_proto); } public String serialize(String format) { - return freeswitchJNI.Event_serialize(swigCPtr, this, format); + return freeswitchJNI.Event_serialize(swigCPtr, format); } public boolean setPriority(SWIGTYPE_p_switch_priority_t priority) { - return freeswitchJNI.Event_setPriority(swigCPtr, this, SWIGTYPE_p_switch_priority_t.getCPtr(priority)); + return freeswitchJNI.Event_setPriority(swigCPtr, SWIGTYPE_p_switch_priority_t.getCPtr(priority)); } public String getHeader(String header_name) { - return freeswitchJNI.Event_getHeader(swigCPtr, this, header_name); + return freeswitchJNI.Event_getHeader(swigCPtr, header_name); } public String getBody() { - return freeswitchJNI.Event_getBody(swigCPtr, this); + return freeswitchJNI.Event_getBody(swigCPtr); } public String getType() { - return freeswitchJNI.Event_getType(swigCPtr, this); + return freeswitchJNI.Event_getType(swigCPtr); } public boolean addBody(String value) { - return freeswitchJNI.Event_addBody(swigCPtr, this, value); + return freeswitchJNI.Event_addBody(swigCPtr, value); } public boolean addHeader(String header_name, String value) { - return freeswitchJNI.Event_addHeader(swigCPtr, this, header_name, value); + return freeswitchJNI.Event_addHeader(swigCPtr, header_name, value); } public boolean delHeader(String header_name) { - return freeswitchJNI.Event_delHeader(swigCPtr, this, header_name); + return freeswitchJNI.Event_delHeader(swigCPtr, header_name); } public boolean fire() { - return freeswitchJNI.Event_fire(swigCPtr, this); + return freeswitchJNI.Event_fire(swigCPtr); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java index 5b2798c316..872e7a1615 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class EventConsumer { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_EventConsumer(swigCPtr); @@ -34,61 +34,61 @@ public class EventConsumer { } public void setEvents(SWIGTYPE_p_switch_queue_t value) { - freeswitchJNI.EventConsumer_events_set(swigCPtr, this, SWIGTYPE_p_switch_queue_t.getCPtr(value)); + freeswitchJNI.EventConsumer_events_set(swigCPtr, SWIGTYPE_p_switch_queue_t.getCPtr(value)); } public SWIGTYPE_p_switch_queue_t getEvents() { - long cPtr = freeswitchJNI.EventConsumer_events_get(swigCPtr, this); + long cPtr = freeswitchJNI.EventConsumer_events_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_queue_t(cPtr, false); } public void setE_event_id(SWIGTYPE_p_switch_event_types_t value) { - freeswitchJNI.EventConsumer_e_event_id_set(swigCPtr, this, SWIGTYPE_p_switch_event_types_t.getCPtr(value)); + freeswitchJNI.EventConsumer_e_event_id_set(swigCPtr, SWIGTYPE_p_switch_event_types_t.getCPtr(value)); } public SWIGTYPE_p_switch_event_types_t getE_event_id() { - return new SWIGTYPE_p_switch_event_types_t(freeswitchJNI.EventConsumer_e_event_id_get(swigCPtr, this), true); + return new SWIGTYPE_p_switch_event_types_t(freeswitchJNI.EventConsumer_e_event_id_get(swigCPtr), true); } public void setE_callback(String value) { - freeswitchJNI.EventConsumer_e_callback_set(swigCPtr, this, value); + freeswitchJNI.EventConsumer_e_callback_set(swigCPtr, value); } public String getE_callback() { - return freeswitchJNI.EventConsumer_e_callback_get(swigCPtr, this); + return freeswitchJNI.EventConsumer_e_callback_get(swigCPtr); } public void setE_subclass_name(String value) { - freeswitchJNI.EventConsumer_e_subclass_name_set(swigCPtr, this, value); + freeswitchJNI.EventConsumer_e_subclass_name_set(swigCPtr, value); } public String getE_subclass_name() { - return freeswitchJNI.EventConsumer_e_subclass_name_get(swigCPtr, this); + return freeswitchJNI.EventConsumer_e_subclass_name_get(swigCPtr); } public void setE_cb_arg(String value) { - freeswitchJNI.EventConsumer_e_cb_arg_set(swigCPtr, this, value); + freeswitchJNI.EventConsumer_e_cb_arg_set(swigCPtr, value); } public String getE_cb_arg() { - return freeswitchJNI.EventConsumer_e_cb_arg_get(swigCPtr, this); + return freeswitchJNI.EventConsumer_e_cb_arg_get(swigCPtr); } public void setEnodes(SWIGTYPE_p_p_switch_event_node_t value) { - freeswitchJNI.EventConsumer_enodes_set(swigCPtr, this, SWIGTYPE_p_p_switch_event_node_t.getCPtr(value)); + freeswitchJNI.EventConsumer_enodes_set(swigCPtr, SWIGTYPE_p_p_switch_event_node_t.getCPtr(value)); } public SWIGTYPE_p_p_switch_event_node_t getEnodes() { - long cPtr = freeswitchJNI.EventConsumer_enodes_get(swigCPtr, this); + long cPtr = freeswitchJNI.EventConsumer_enodes_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_p_switch_event_node_t(cPtr, false); } public void setNode_index(SWIGTYPE_p_uint32_t value) { - freeswitchJNI.EventConsumer_node_index_set(swigCPtr, this, SWIGTYPE_p_uint32_t.getCPtr(value)); + freeswitchJNI.EventConsumer_node_index_set(swigCPtr, SWIGTYPE_p_uint32_t.getCPtr(value)); } public SWIGTYPE_p_uint32_t getNode_index() { - return new SWIGTYPE_p_uint32_t(freeswitchJNI.EventConsumer_node_index_get(swigCPtr, this), true); + return new SWIGTYPE_p_uint32_t(freeswitchJNI.EventConsumer_node_index_get(swigCPtr), true); } public EventConsumer(String event_name, String subclass_name, int len) { @@ -96,16 +96,16 @@ public class EventConsumer { } public int bind(String event_name, String subclass_name) { - return freeswitchJNI.EventConsumer_bind(swigCPtr, this, event_name, subclass_name); + return freeswitchJNI.EventConsumer_bind(swigCPtr, event_name, subclass_name); } public Event pop(int block, int timeout) { - long cPtr = freeswitchJNI.EventConsumer_pop(swigCPtr, this, block, timeout); + long cPtr = freeswitchJNI.EventConsumer_pop(swigCPtr, block, timeout); return (cPtr == 0) ? null : new Event(cPtr, true); } public void cleanup() { - freeswitchJNI.EventConsumer_cleanup(swigCPtr, this); + freeswitchJNI.EventConsumer_cleanup(swigCPtr); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java index f459a116d0..869becb559 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class IVRMenu { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_IVRMenu(swigCPtr); @@ -34,15 +34,15 @@ public class IVRMenu { } public IVRMenu(IVRMenu main, String name, String greeting_sound, String short_greeting_sound, String invalid_sound, String exit_sound, String transfer_sound, String confirm_macro, String confirm_key, String tts_engine, String tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts) { - this(freeswitchJNI.new_IVRMenu(IVRMenu.getCPtr(main), main, name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts), true); + this(freeswitchJNI.new_IVRMenu(IVRMenu.getCPtr(main), name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts), true); } public void bindAction(String action, String arg, String bind) { - freeswitchJNI.IVRMenu_bindAction(swigCPtr, this, action, arg, bind); + freeswitchJNI.IVRMenu_bindAction(swigCPtr, action, arg, bind); } public void execute(CoreSession session, String name) { - freeswitchJNI.IVRMenu_execute(swigCPtr, this, CoreSession.getCPtr(session), session, name); + freeswitchJNI.IVRMenu_execute(swigCPtr, CoreSession.getCPtr(session), name); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java index b2bf611a4e..2e2b01bf27 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -24,7 +24,7 @@ public class JavaSession extends CoreSession { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_JavaSession(swigCPtr); @@ -46,31 +46,31 @@ public class JavaSession extends CoreSession { } public boolean begin_allow_threads() { - return freeswitchJNI.JavaSession_begin_allow_threads(swigCPtr, this); + return freeswitchJNI.JavaSession_begin_allow_threads(swigCPtr); } public boolean end_allow_threads() { - return freeswitchJNI.JavaSession_end_allow_threads(swigCPtr, this); + return freeswitchJNI.JavaSession_end_allow_threads(swigCPtr); } public void setDTMFCallback(org.freeswitch.DTMFCallback dtmfCallback, String funcargs) { - freeswitchJNI.JavaSession_setDTMFCallback(swigCPtr, this, dtmfCallback, funcargs); + freeswitchJNI.JavaSession_setDTMFCallback(swigCPtr, dtmfCallback, funcargs); } public void setHangupHook(org.freeswitch.HangupHook hangupHook) { - freeswitchJNI.JavaSession_setHangupHook(swigCPtr, this, hangupHook); + freeswitchJNI.JavaSession_setHangupHook(swigCPtr, hangupHook); } public void check_hangup_hook() { - freeswitchJNI.JavaSession_check_hangup_hook(swigCPtr, this); + freeswitchJNI.JavaSession_check_hangup_hook(swigCPtr); } public SWIGTYPE_p_switch_status_t run_dtmf_callback(SWIGTYPE_p_void input, SWIGTYPE_p_switch_input_type_t itype) { - return new SWIGTYPE_p_switch_status_t(freeswitchJNI.JavaSession_run_dtmf_callback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); + return new SWIGTYPE_p_switch_status_t(freeswitchJNI.JavaSession_run_dtmf_callback(swigCPtr, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); } public int originate(JavaSession aleg, String destination, int timeout) { - return freeswitchJNI.JavaSession_originate(swigCPtr, this, JavaSession.getCPtr(aleg), aleg, destination, timeout); + return freeswitchJNI.JavaSession_originate(swigCPtr, JavaSession.getCPtr(aleg), destination, timeout); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java index eef921b5b0..3d0a659f10 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java index bb712a806b..7c4364e816 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java index 84a8d3eee6..f54a0d18cd 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java index e3c77ff9c4..d133ba5a2e 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java index 81950079e8..bde735b52c 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java index 6a2e1dbefc..0e4de87e24 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java index 0bc849c275..faa78557fd 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java index e122b7616d..ecf7743f3e 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java index 0c62ea3d40..31dfa93457 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java index 200b43896b..485cab4f4c 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java index dd1d9e8733..e4b46a2bee 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java index 1c8ae112c3..a8af963c06 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java index c979de53a4..6cdb744848 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java index bed7ddc4af..7708dcec0b 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java index ffbbb719d5..31ca4c070f 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java index 656bdcf7ec..8f23b0e364 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java index 0396fde793..3c0605ae13 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java index 9c2cda23d3..012357cc39 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java index 30350b001e..218ccee939 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class Stream { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_Stream(swigCPtr); @@ -42,19 +42,19 @@ public class Stream { } public String read(SWIGTYPE_p_int len) { - return freeswitchJNI.Stream_read(swigCPtr, this, SWIGTYPE_p_int.getCPtr(len)); + return freeswitchJNI.Stream_read(swigCPtr, SWIGTYPE_p_int.getCPtr(len)); } public void write(String data) { - freeswitchJNI.Stream_write(swigCPtr, this, data); + freeswitchJNI.Stream_write(swigCPtr, data); } public void raw_write(String data, int len) { - freeswitchJNI.Stream_raw_write(swigCPtr, this, data, len); + freeswitchJNI.Stream_raw_write(swigCPtr, data, len); } public String get_data() { - return freeswitchJNI.Stream_get_data(swigCPtr, this); + return freeswitchJNI.Stream_get_data(swigCPtr); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java index fe0a0d9bc7..8a9622e41d 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -54,7 +54,7 @@ public class freeswitch { } public static void bridge(CoreSession session_a, CoreSession session_b) { - freeswitchJNI.bridge(CoreSession.getCPtr(session_a), session_a, CoreSession.getCPtr(session_b), session_b); + freeswitchJNI.bridge(CoreSession.getCPtr(session_a), CoreSession.getCPtr(session_b)); } public static SWIGTYPE_p_switch_status_t hanguphook(SWIGTYPE_p_switch_core_session_t session) { diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java index 359bd8b5bc..84bb9f1511 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -16,157 +16,157 @@ class freeswitchJNI { public final static native void consoleCleanLog(String jarg1); public final static native boolean running(); public final static native boolean email(String jarg1, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6, String jarg7); - public final static native long new_IVRMenu(long jarg1, IVRMenu jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, String jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17); + public final static native long new_IVRMenu(long jarg1, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, String jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17); public final static native void delete_IVRMenu(long jarg1); - public final static native void IVRMenu_bindAction(long jarg1, IVRMenu jarg1_, String jarg2, String jarg3, String jarg4); - public final static native void IVRMenu_execute(long jarg1, IVRMenu jarg1_, long jarg2, CoreSession jarg2_, String jarg3); - public final static native long new_API(long jarg1, CoreSession jarg1_); + public final static native void IVRMenu_bindAction(long jarg1, String jarg2, String jarg3, String jarg4); + public final static native void IVRMenu_execute(long jarg1, long jarg2, String jarg3); + public final static native long new_API(long jarg1); public final static native void delete_API(long jarg1); - public final static native String API_execute(long jarg1, API jarg1_, String jarg2, String jarg3); - public final static native String API_executeString(long jarg1, API jarg1_, String jarg2); - public final static native String API_getTime(long jarg1, API jarg1_); - public final static native void input_callback_state_t_function_set(long jarg1, input_callback_state_t jarg1_, long jarg2); - public final static native long input_callback_state_t_function_get(long jarg1, input_callback_state_t jarg1_); - public final static native void input_callback_state_t_threadState_set(long jarg1, input_callback_state_t jarg1_, long jarg2); - public final static native long input_callback_state_t_threadState_get(long jarg1, input_callback_state_t jarg1_); - public final static native void input_callback_state_t_extra_set(long jarg1, input_callback_state_t jarg1_, long jarg2); - public final static native long input_callback_state_t_extra_get(long jarg1, input_callback_state_t jarg1_); - public final static native void input_callback_state_t_funcargs_set(long jarg1, input_callback_state_t jarg1_, String jarg2); - public final static native String input_callback_state_t_funcargs_get(long jarg1, input_callback_state_t jarg1_); + public final static native String API_execute(long jarg1, String jarg2, String jarg3); + public final static native String API_executeString(long jarg1, String jarg2); + public final static native String API_getTime(long jarg1); + public final static native void input_callback_state_t_function_set(long jarg1, long jarg2); + public final static native long input_callback_state_t_function_get(long jarg1); + public final static native void input_callback_state_t_threadState_set(long jarg1, long jarg2); + public final static native long input_callback_state_t_threadState_get(long jarg1); + public final static native void input_callback_state_t_extra_set(long jarg1, long jarg2); + public final static native long input_callback_state_t_extra_get(long jarg1); + public final static native void input_callback_state_t_funcargs_set(long jarg1, String jarg2); + public final static native String input_callback_state_t_funcargs_get(long jarg1); public final static native long new_input_callback_state_t(); public final static native void delete_input_callback_state_t(long jarg1); public final static native int S_HUP_get(); public final static native int S_FREE_get(); public final static native int S_RDLOCK_get(); - public final static native void DTMF_digit_set(long jarg1, DTMF jarg1_, char jarg2); - public final static native char DTMF_digit_get(long jarg1, DTMF jarg1_); - public final static native void DTMF_duration_set(long jarg1, DTMF jarg1_, long jarg2); - public final static native long DTMF_duration_get(long jarg1, DTMF jarg1_); + public final static native void DTMF_digit_set(long jarg1, char jarg2); + public final static native char DTMF_digit_get(long jarg1); + public final static native void DTMF_duration_set(long jarg1, long jarg2); + public final static native long DTMF_duration_get(long jarg1); public final static native long new_DTMF(char jarg1, long jarg2); public final static native void delete_DTMF(long jarg1); public final static native long new_Stream__SWIG_0(); public final static native long new_Stream__SWIG_1(long jarg1); public final static native void delete_Stream(long jarg1); - public final static native String Stream_read(long jarg1, Stream jarg1_, long jarg2); - public final static native void Stream_write(long jarg1, Stream jarg1_, String jarg2); - public final static native void Stream_raw_write(long jarg1, Stream jarg1_, String jarg2, int jarg3); - public final static native String Stream_get_data(long jarg1, Stream jarg1_); - public final static native void Event_event_set(long jarg1, Event jarg1_, long jarg2); - public final static native long Event_event_get(long jarg1, Event jarg1_); - public final static native void Event_serialized_string_set(long jarg1, Event jarg1_, String jarg2); - public final static native String Event_serialized_string_get(long jarg1, Event jarg1_); - public final static native void Event_mine_set(long jarg1, Event jarg1_, int jarg2); - public final static native int Event_mine_get(long jarg1, Event jarg1_); + public final static native String Stream_read(long jarg1, long jarg2); + public final static native void Stream_write(long jarg1, String jarg2); + public final static native void Stream_raw_write(long jarg1, String jarg2, int jarg3); + public final static native String Stream_get_data(long jarg1); + public final static native void Event_event_set(long jarg1, long jarg2); + public final static native long Event_event_get(long jarg1); + public final static native void Event_serialized_string_set(long jarg1, String jarg2); + public final static native String Event_serialized_string_get(long jarg1); + public final static native void Event_mine_set(long jarg1, int jarg2); + public final static native int Event_mine_get(long jarg1); public final static native long new_Event__SWIG_0(String jarg1, String jarg2); public final static native long new_Event__SWIG_1(long jarg1, int jarg2); public final static native void delete_Event(long jarg1); - public final static native int Event_chat_execute(long jarg1, Event jarg1_, String jarg2, String jarg3); - public final static native int Event_chat_send(long jarg1, Event jarg1_, String jarg2); - public final static native String Event_serialize(long jarg1, Event jarg1_, String jarg2); - public final static native boolean Event_setPriority(long jarg1, Event jarg1_, long jarg2); - public final static native String Event_getHeader(long jarg1, Event jarg1_, String jarg2); - public final static native String Event_getBody(long jarg1, Event jarg1_); - public final static native String Event_getType(long jarg1, Event jarg1_); - public final static native boolean Event_addBody(long jarg1, Event jarg1_, String jarg2); - public final static native boolean Event_addHeader(long jarg1, Event jarg1_, String jarg2, String jarg3); - public final static native boolean Event_delHeader(long jarg1, Event jarg1_, String jarg2); - public final static native boolean Event_fire(long jarg1, Event jarg1_); - public final static native void EventConsumer_events_set(long jarg1, EventConsumer jarg1_, long jarg2); - public final static native long EventConsumer_events_get(long jarg1, EventConsumer jarg1_); - public final static native void EventConsumer_e_event_id_set(long jarg1, EventConsumer jarg1_, long jarg2); - public final static native long EventConsumer_e_event_id_get(long jarg1, EventConsumer jarg1_); - public final static native void EventConsumer_e_callback_set(long jarg1, EventConsumer jarg1_, String jarg2); - public final static native String EventConsumer_e_callback_get(long jarg1, EventConsumer jarg1_); - public final static native void EventConsumer_e_subclass_name_set(long jarg1, EventConsumer jarg1_, String jarg2); - public final static native String EventConsumer_e_subclass_name_get(long jarg1, EventConsumer jarg1_); - public final static native void EventConsumer_e_cb_arg_set(long jarg1, EventConsumer jarg1_, String jarg2); - public final static native String EventConsumer_e_cb_arg_get(long jarg1, EventConsumer jarg1_); - public final static native void EventConsumer_enodes_set(long jarg1, EventConsumer jarg1_, long jarg2); - public final static native long EventConsumer_enodes_get(long jarg1, EventConsumer jarg1_); - public final static native void EventConsumer_node_index_set(long jarg1, EventConsumer jarg1_, long jarg2); - public final static native long EventConsumer_node_index_get(long jarg1, EventConsumer jarg1_); + public final static native int Event_chat_execute(long jarg1, String jarg2, String jarg3); + public final static native int Event_chat_send(long jarg1, String jarg2); + public final static native String Event_serialize(long jarg1, String jarg2); + public final static native boolean Event_setPriority(long jarg1, long jarg2); + public final static native String Event_getHeader(long jarg1, String jarg2); + public final static native String Event_getBody(long jarg1); + public final static native String Event_getType(long jarg1); + public final static native boolean Event_addBody(long jarg1, String jarg2); + public final static native boolean Event_addHeader(long jarg1, String jarg2, String jarg3); + public final static native boolean Event_delHeader(long jarg1, String jarg2); + public final static native boolean Event_fire(long jarg1); + public final static native void EventConsumer_events_set(long jarg1, long jarg2); + public final static native long EventConsumer_events_get(long jarg1); + public final static native void EventConsumer_e_event_id_set(long jarg1, long jarg2); + public final static native long EventConsumer_e_event_id_get(long jarg1); + public final static native void EventConsumer_e_callback_set(long jarg1, String jarg2); + public final static native String EventConsumer_e_callback_get(long jarg1); + public final static native void EventConsumer_e_subclass_name_set(long jarg1, String jarg2); + public final static native String EventConsumer_e_subclass_name_get(long jarg1); + public final static native void EventConsumer_e_cb_arg_set(long jarg1, String jarg2); + public final static native String EventConsumer_e_cb_arg_get(long jarg1); + public final static native void EventConsumer_enodes_set(long jarg1, long jarg2); + public final static native long EventConsumer_enodes_get(long jarg1); + public final static native void EventConsumer_node_index_set(long jarg1, long jarg2); + public final static native long EventConsumer_node_index_get(long jarg1); public final static native long new_EventConsumer(String jarg1, String jarg2, int jarg3); public final static native void delete_EventConsumer(long jarg1); - public final static native int EventConsumer_bind(long jarg1, EventConsumer jarg1_, String jarg2, String jarg3); - public final static native long EventConsumer_pop(long jarg1, EventConsumer jarg1_, int jarg2, int jarg3); - public final static native void EventConsumer_cleanup(long jarg1, EventConsumer jarg1_); + public final static native int EventConsumer_bind(long jarg1, String jarg2, String jarg3); + public final static native long EventConsumer_pop(long jarg1, int jarg2, int jarg3); + public final static native void EventConsumer_cleanup(long jarg1); public final static native void delete_CoreSession(long jarg1); - public final static native void CoreSession_session_set(long jarg1, CoreSession jarg1_, long jarg2); - public final static native long CoreSession_session_get(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_channel_set(long jarg1, CoreSession jarg1_, long jarg2); - public final static native long CoreSession_channel_get(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_flags_set(long jarg1, CoreSession jarg1_, long jarg2); - public final static native long CoreSession_flags_get(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_allocated_set(long jarg1, CoreSession jarg1_, int jarg2); - public final static native int CoreSession_allocated_get(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_cb_state_set(long jarg1, CoreSession jarg1_, long jarg2, input_callback_state_t jarg2_); - 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); - public final static native String CoreSession_tts_name_get(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_voice_name_set(long jarg1, CoreSession jarg1_, String jarg2); - public final static native String CoreSession_voice_name_get(long jarg1, CoreSession jarg1_); - public final static native int CoreSession_insertFile(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, int jarg4); - public final static native int CoreSession_answer(long jarg1, CoreSession jarg1_); - public final static native int CoreSession_preAnswer(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_hangup(long jarg1, CoreSession jarg1_, String jarg2); - public final static native void CoreSession_hangupState(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_setVariable(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); - public final static native void CoreSession_setPrivate(long jarg1, CoreSession jarg1_, String jarg2, long jarg3); - public final static native long CoreSession_getPrivate(long jarg1, CoreSession jarg1_, String jarg2); - public final static native String CoreSession_getVariable(long jarg1, CoreSession jarg1_, String jarg2); - public final static native long CoreSession_process_callback_result(long jarg1, CoreSession jarg1_, String jarg2); - public final static native void CoreSession_say(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6); - public final static native void CoreSession_sayPhrase(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4); - public final static native String CoreSession_hangupCause(long jarg1, CoreSession jarg1_); - public final static native String CoreSession_getState(long jarg1, CoreSession jarg1_); - public final static native int CoreSession_recordFile(long jarg1, CoreSession jarg1_, String jarg2, int jarg3, int jarg4, int jarg5); - public final static native int CoreSession_originate(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_, String jarg3, int jarg4, long jarg5); - 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); - public final static native void CoreSession_set_tts_params(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); - public final static native int CoreSession_collectDigits__SWIG_0(long jarg1, CoreSession jarg1_, int jarg2); - public final static native int CoreSession_collectDigits__SWIG_1(long jarg1, CoreSession jarg1_, int jarg2, int jarg3); - public final static native String CoreSession_getDigits__SWIG_0(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4); - public final static native String CoreSession_getDigits__SWIG_1(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4, int jarg5); - public final static native int CoreSession_transfer(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4); - public final static native String CoreSession_read(long jarg1, CoreSession jarg1_, int jarg2, int jarg3, String jarg4, int jarg5, String jarg6, int jarg7); - public final static native String CoreSession_playAndGetDigits(long jarg1, CoreSession jarg1_, int jarg2, int jarg3, int jarg4, int jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, int jarg11, String jarg12); - public final static native int CoreSession_streamFile(long jarg1, CoreSession jarg1_, String jarg2, int jarg3); - public final static native int CoreSession_sleep(long jarg1, CoreSession jarg1_, int jarg2, int jarg3); - public final static native int CoreSession_flushEvents(long jarg1, CoreSession jarg1_); - public final static native int CoreSession_flushDigits(long jarg1, CoreSession jarg1_); - public final static native int CoreSession_setAutoHangup(long jarg1, CoreSession jarg1_, boolean jarg2); - public final static native void CoreSession_setHangupHook(long jarg1, CoreSession jarg1_, long jarg2); - public final static native boolean CoreSession_ready(long jarg1, CoreSession jarg1_); - public final static native boolean CoreSession_bridged(long jarg1, CoreSession jarg1_); - public final static native boolean CoreSession_answered(long jarg1, CoreSession jarg1_); - public final static native boolean CoreSession_mediaReady(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_waitForAnswer(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_); - public final static native void CoreSession_execute(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); - public final static native void CoreSession_sendEvent(long jarg1, CoreSession jarg1_, long jarg2, Event jarg2_); - public final static native void CoreSession_setEventData(long jarg1, CoreSession jarg1_, long jarg2, Event jarg2_); - public final static native String CoreSession_getXMLCDR(long jarg1, CoreSession jarg1_); - public final static native boolean CoreSession_begin_allow_threads(long jarg1, CoreSession jarg1_); - public final static native boolean CoreSession_end_allow_threads(long jarg1, CoreSession jarg1_); - public final static native String CoreSession_get_uuid(long jarg1, CoreSession jarg1_); - public final static native long CoreSession_get_cb_args(long jarg1, CoreSession jarg1_); - public final static native void CoreSession_check_hangup_hook(long jarg1, CoreSession jarg1_); - public final static native long CoreSession_run_dtmf_callback(long jarg1, CoreSession jarg1_, long jarg2, long jarg3); - public final static native void CoreSession_consoleLog(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); - public final static native void CoreSession_consoleLog2(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4, int jarg5, String jarg6); + public final static native void CoreSession_session_set(long jarg1, long jarg2); + public final static native long CoreSession_session_get(long jarg1); + public final static native void CoreSession_channel_set(long jarg1, long jarg2); + public final static native long CoreSession_channel_get(long jarg1); + public final static native void CoreSession_flags_set(long jarg1, long jarg2); + public final static native long CoreSession_flags_get(long jarg1); + public final static native void CoreSession_allocated_set(long jarg1, int jarg2); + public final static native int CoreSession_allocated_get(long jarg1); + public final static native void CoreSession_cb_state_set(long jarg1, long jarg2); + public final static native long CoreSession_cb_state_get(long jarg1); + public final static native void CoreSession_hook_state_set(long jarg1, long jarg2); + public final static native long CoreSession_hook_state_get(long jarg1); + public final static native void CoreSession_cause_set(long jarg1, long jarg2); + public final static native long CoreSession_cause_get(long jarg1); + public final static native void CoreSession_uuid_set(long jarg1, String jarg2); + public final static native String CoreSession_uuid_get(long jarg1); + public final static native void CoreSession_tts_name_set(long jarg1, String jarg2); + public final static native String CoreSession_tts_name_get(long jarg1); + public final static native void CoreSession_voice_name_set(long jarg1, String jarg2); + public final static native String CoreSession_voice_name_get(long jarg1); + public final static native int CoreSession_insertFile(long jarg1, String jarg2, String jarg3, int jarg4); + public final static native int CoreSession_answer(long jarg1); + public final static native int CoreSession_preAnswer(long jarg1); + public final static native void CoreSession_hangup(long jarg1, String jarg2); + public final static native void CoreSession_hangupState(long jarg1); + public final static native void CoreSession_setVariable(long jarg1, String jarg2, String jarg3); + public final static native void CoreSession_setPrivate(long jarg1, String jarg2, long jarg3); + public final static native long CoreSession_getPrivate(long jarg1, String jarg2); + public final static native String CoreSession_getVariable(long jarg1, String jarg2); + public final static native long CoreSession_process_callback_result(long jarg1, String jarg2); + public final static native void CoreSession_say(long jarg1, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6); + public final static native void CoreSession_sayPhrase(long jarg1, String jarg2, String jarg3, String jarg4); + public final static native String CoreSession_hangupCause(long jarg1); + public final static native String CoreSession_getState(long jarg1); + public final static native int CoreSession_recordFile(long jarg1, String jarg2, int jarg3, int jarg4, int jarg5); + public final static native int CoreSession_originate(long jarg1, long jarg2, String jarg3, int jarg4, long jarg5); + public final static native void CoreSession_destroy(long jarg1); + public final static native void CoreSession_setDTMFCallback(long jarg1, long jarg2, String jarg3); + public final static native int CoreSession_speak(long jarg1, String jarg2); + public final static native void CoreSession_set_tts_parms(long jarg1, String jarg2, String jarg3); + public final static native void CoreSession_set_tts_params(long jarg1, String jarg2, String jarg3); + public final static native int CoreSession_collectDigits__SWIG_0(long jarg1, int jarg2); + public final static native int CoreSession_collectDigits__SWIG_1(long jarg1, int jarg2, int jarg3); + public final static native String CoreSession_getDigits__SWIG_0(long jarg1, int jarg2, String jarg3, int jarg4); + public final static native String CoreSession_getDigits__SWIG_1(long jarg1, int jarg2, String jarg3, int jarg4, int jarg5); + public final static native int CoreSession_transfer(long jarg1, String jarg2, String jarg3, String jarg4); + public final static native String CoreSession_read(long jarg1, int jarg2, int jarg3, String jarg4, int jarg5, String jarg6, int jarg7); + public final static native String CoreSession_playAndGetDigits(long jarg1, int jarg2, int jarg3, int jarg4, int jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, int jarg11, String jarg12); + public final static native int CoreSession_streamFile(long jarg1, String jarg2, int jarg3); + public final static native int CoreSession_sleep(long jarg1, int jarg2, int jarg3); + public final static native int CoreSession_flushEvents(long jarg1); + public final static native int CoreSession_flushDigits(long jarg1); + public final static native int CoreSession_setAutoHangup(long jarg1, boolean jarg2); + public final static native void CoreSession_setHangupHook(long jarg1, long jarg2); + public final static native boolean CoreSession_ready(long jarg1); + public final static native boolean CoreSession_bridged(long jarg1); + public final static native boolean CoreSession_answered(long jarg1); + public final static native boolean CoreSession_mediaReady(long jarg1); + public final static native void CoreSession_waitForAnswer(long jarg1, long jarg2); + public final static native void CoreSession_execute(long jarg1, String jarg2, String jarg3); + public final static native void CoreSession_sendEvent(long jarg1, long jarg2); + public final static native void CoreSession_setEventData(long jarg1, long jarg2); + public final static native String CoreSession_getXMLCDR(long jarg1); + public final static native boolean CoreSession_begin_allow_threads(long jarg1); + public final static native boolean CoreSession_end_allow_threads(long jarg1); + public final static native String CoreSession_get_uuid(long jarg1); + public final static native long CoreSession_get_cb_args(long jarg1); + public final static native void CoreSession_check_hangup_hook(long jarg1); + public final static native long CoreSession_run_dtmf_callback(long jarg1, long jarg2, long jarg3); + public final static native void CoreSession_consoleLog(long jarg1, String jarg2, String jarg3); + public final static native void CoreSession_consoleLog2(long jarg1, String jarg2, String jarg3, String jarg4, int jarg5, String jarg6); public final static native void console_log(String jarg1, String jarg2); public final static native void console_log2(String jarg1, String jarg2, String jarg3, int jarg4, String jarg5); public final static native void console_clean_log(String jarg1); public final static native void msleep(long jarg1); - public final static native void bridge(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_); + public final static native void bridge(long jarg1, long jarg2); public final static native long hanguphook(long jarg1); public final static native long dtmf_callback(long jarg1, long jarg2, long jarg3, long jarg4, long jarg5); public final static native void javaVM_set(long jarg1); @@ -176,12 +176,12 @@ class freeswitchJNI { public final static native long new_JavaSession__SWIG_1(String jarg1); public final static native long new_JavaSession__SWIG_2(long jarg1); public final static native void delete_JavaSession(long jarg1); - public final static native boolean JavaSession_begin_allow_threads(long jarg1, JavaSession jarg1_); - public final static native boolean JavaSession_end_allow_threads(long jarg1, JavaSession jarg1_); - public final static native void JavaSession_setDTMFCallback(long jarg1, JavaSession jarg1_, org.freeswitch.DTMFCallback jarg2, String jarg3); - public final static native void JavaSession_setHangupHook(long jarg1, JavaSession jarg1_, org.freeswitch.HangupHook jarg2); - public final static native void JavaSession_check_hangup_hook(long jarg1, JavaSession jarg1_); - public final static native long JavaSession_run_dtmf_callback(long jarg1, JavaSession jarg1_, long jarg2, long jarg3); - public final static native int JavaSession_originate(long jarg1, JavaSession jarg1_, long jarg2, JavaSession jarg2_, String jarg3, int jarg4); + public final static native boolean JavaSession_begin_allow_threads(long jarg1); + public final static native boolean JavaSession_end_allow_threads(long jarg1); + public final static native void JavaSession_setDTMFCallback(long jarg1, org.freeswitch.DTMFCallback jarg2, String jarg3); + public final static native void JavaSession_setHangupHook(long jarg1, org.freeswitch.HangupHook jarg2); + public final static native void JavaSession_check_hangup_hook(long jarg1); + public final static native long JavaSession_run_dtmf_callback(long jarg1, long jarg2, long jarg3); + public final static native int JavaSession_originate(long jarg1, long jarg2, String jarg3, int jarg4); public final static native long SWIGJavaSessionUpcast(long jarg1); } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java index 7ee03cda53..a84d9b73d8 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class input_callback_state_t { delete(); } - public synchronized void delete() { + public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_input_callback_state_t(swigCPtr); @@ -34,38 +34,38 @@ public class input_callback_state_t { } public void setFunction(SWIGTYPE_p_void value) { - freeswitchJNI.input_callback_state_t_function_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); + freeswitchJNI.input_callback_state_t_function_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } public SWIGTYPE_p_void getFunction() { - long cPtr = freeswitchJNI.input_callback_state_t_function_get(swigCPtr, this); + long cPtr = freeswitchJNI.input_callback_state_t_function_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public void setThreadState(SWIGTYPE_p_void value) { - freeswitchJNI.input_callback_state_t_threadState_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); + freeswitchJNI.input_callback_state_t_threadState_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } public SWIGTYPE_p_void getThreadState() { - long cPtr = freeswitchJNI.input_callback_state_t_threadState_get(swigCPtr, this); + long cPtr = freeswitchJNI.input_callback_state_t_threadState_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public void setExtra(SWIGTYPE_p_void value) { - freeswitchJNI.input_callback_state_t_extra_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); + freeswitchJNI.input_callback_state_t_extra_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } public SWIGTYPE_p_void getExtra() { - long cPtr = freeswitchJNI.input_callback_state_t_extra_get(swigCPtr, this); + long cPtr = freeswitchJNI.input_callback_state_t_extra_get(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public void setFuncargs(String value) { - freeswitchJNI.input_callback_state_t_funcargs_set(swigCPtr, this, value); + freeswitchJNI.input_callback_state_t_funcargs_set(swigCPtr, value); } public String getFuncargs() { - return freeswitchJNI.input_callback_state_t_funcargs_get(swigCPtr, this); + return freeswitchJNI.input_callback_state_t_funcargs_get(swigCPtr); } public input_callback_state_t() { diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java index d897a6f145..ed19d8920f 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -27,18 +27,15 @@ public enum session_flag_t { throw new IllegalArgumentException("No enum " + session_flag_t.class + " with value " + swigValue); } - @SuppressWarnings("unused") private session_flag_t() { this.swigValue = SwigNext.next++; } - @SuppressWarnings("unused") private session_flag_t(int swigValue) { this.swigValue = swigValue; SwigNext.next = swigValue+1; } - @SuppressWarnings("unused") private session_flag_t(session_flag_t swigEnum) { this.swigValue = swigEnum.swigValue; SwigNext.next = this.swigValue+1; diff --git a/src/mod/languages/mod_java/switch_swig_wrap.cpp b/src/mod/languages/mod_java/switch_swig_wrap.cpp index a24b28ceaa..cbfa08a393 100644 --- a/src/mod/languages/mod_java/switch_swig_wrap.cpp +++ b/src/mod/languages/mod_java/switch_swig_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -10,7 +10,7 @@ #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -23,10 +23,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template T SwigValueInit() { - return T(); -} #endif /* ----------------------------------------------------------------------------- @@ -36,14 +32,14 @@ template T SwigValueInit() { /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -122,16 +118,10 @@ template T SwigValueInit() { #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* Fix for jlong on some versions of gcc on Windows */ #if defined(__GNUC__) && !defined(__INTELC__) @@ -208,7 +198,7 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC extern "C" { #endif -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -225,12 +215,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setGlobalVariable if (!arg2) return ; } setGlobalVariable(arg1,arg2); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_getGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_getGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1) { jstring jresult = 0 ; char *arg1 = (char *) 0 ; char *result = 0 ; @@ -243,14 +233,14 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_getGlobalVaria if (!arg1) return 0; } result = (char *)getGlobalVariable(arg1); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if(result) jresult = jenv->NewStringUTF(result); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); free(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -267,12 +257,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog(JNIEnv if (!arg2) return ; } consoleLog(arg1,arg2); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -303,14 +293,14 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog2(JNIEn if (!arg5) return ; } consoleLog2(arg1,arg2,arg3,arg4,arg5); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleCleanLog(JNIEnv *jenv, jclass jcls, jstring jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleCleanLog(JNIEnv *jenv, jclass jcls, jstring jarg1) { char *arg1 = (char *) 0 ; (void)jenv; @@ -321,11 +311,11 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleCleanLog(J if (!arg1) return ; } consoleCleanLog(arg1); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_running(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_running(JNIEnv *jenv, jclass jcls) { jboolean jresult = 0 ; bool result; @@ -337,7 +327,7 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_running(JNIEn } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_email(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_email(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) { jboolean jresult = 0 ; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -387,18 +377,18 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_email(JNIEnv } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = (jboolean)result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); + if (arg7) jenv->ReleaseStringUTFChars(jarg7, arg7); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jstring jarg11, jint jarg12, jint jarg13, jint jarg14, jint jarg15, jint jarg16, jint jarg17) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jstring jarg11, jint jarg12, jint jarg13, jint jarg14, jint jarg15, jint jarg16, jint jarg17) { jlong jresult = 0 ; IVRMenu *arg1 = (IVRMenu *) 0 ; char *arg2 = (char *) 0 ; @@ -421,7 +411,6 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNI (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(IVRMenu **)&jarg1; arg2 = 0; if (jarg2) { @@ -481,21 +470,21 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNI arg17 = (int)jarg17; result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17); *(IVRMenu **)&jresult = result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); - if (arg8) jenv->ReleaseStringUTFChars(jarg8, (const char *)arg8); - if (arg9) jenv->ReleaseStringUTFChars(jarg9, (const char *)arg9); - if (arg10) jenv->ReleaseStringUTFChars(jarg10, (const char *)arg10); - if (arg11) jenv->ReleaseStringUTFChars(jarg11, (const char *)arg11); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); + if (arg7) jenv->ReleaseStringUTFChars(jarg7, arg7); + if (arg8) jenv->ReleaseStringUTFChars(jarg8, arg8); + if (arg9) jenv->ReleaseStringUTFChars(jarg9, arg9); + if (arg10) jenv->ReleaseStringUTFChars(jarg10, arg10); + if (arg11) jenv->ReleaseStringUTFChars(jarg11, arg11); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1) { IVRMenu *arg1 = (IVRMenu *) 0 ; (void)jenv; @@ -506,7 +495,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1IVRMenu(J } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindAction(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindAction(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { IVRMenu *arg1 = (IVRMenu *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -514,7 +503,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindActi (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(IVRMenu **)&jarg1; arg2 = 0; if (jarg2) { @@ -532,21 +520,19 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindActi if (!arg4) return ; } (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) { IVRMenu *arg1 = (IVRMenu *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(IVRMenu **)&jarg1; arg2 = *(CoreSession **)&jarg2; arg3 = 0; @@ -555,18 +541,17 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute( if (!arg3) return ; } (arg1)->execute(arg2,(char const *)arg3); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) NULL ; API *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (API *)new API(arg1); *(API **)&jresult = result; @@ -574,7 +559,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1API(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1API(JNIEnv *jenv, jclass jcls, jlong jarg1) { API *arg1 = (API *) 0 ; (void)jenv; @@ -585,7 +570,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1API(JNIEn } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { jstring jresult = 0 ; API *arg1 = (API *) 0 ; char *arg2 = (char *) 0 ; @@ -594,7 +579,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(J (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(API **)&jarg1; arg2 = 0; if (jarg2) { @@ -607,14 +591,14 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(J if (!arg3) return 0; } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if(result) jresult = jenv->NewStringUTF(result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeString(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jstring jresult = 0 ; API *arg1 = (API *) 0 ; char *arg2 = (char *) 0 ; @@ -622,7 +606,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeSt (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(API **)&jarg1; arg2 = 0; if (jarg2) { @@ -630,34 +613,32 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeSt if (!arg2) return 0; } result = (char *)(arg1)->executeString((char const *)arg2); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if(result) jresult = jenv->NewStringUTF(result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1getTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1getTime(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; API *arg1 = (API *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(API **)&jarg1; result = (char *)(arg1)->getTime(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = *(void **)&jarg2; if (arg1) (arg1)->function = arg2; @@ -665,14 +646,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (void *) ((arg1)->function); *(void **)&jresult = result; @@ -680,13 +660,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_ } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = *(void **)&jarg2; if (arg1) (arg1)->threadState = arg2; @@ -694,14 +673,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (void *) ((arg1)->threadState); *(void **)&jresult = result; @@ -709,13 +687,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_ } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = *(void **)&jarg2; if (arg1) (arg1)->extra = arg2; @@ -723,14 +700,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (void *) ((arg1)->extra); *(void **)&jresult = result; @@ -738,13 +714,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_ } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = 0; if (jarg2) { @@ -754,32 +729,31 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 { if (arg1->funcargs) delete [] arg1->funcargs; if (arg2) { - arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->funcargs, (const char *)arg2); + arg1->funcargs = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->funcargs,arg2); } else { arg1->funcargs = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (char *) ((arg1)->funcargs); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; input_callback_state_t *result = 0 ; @@ -791,7 +765,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1call } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; (void)jenv; @@ -802,7 +776,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1ca } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1HUP_1get(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1HUP_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; session_flag_t result; @@ -814,7 +788,7 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1HUP_1get(JNIEn } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1FREE_1get(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1FREE_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; session_flag_t result; @@ -826,7 +800,7 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1FREE_1get(JNIE } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; session_flag_t result; @@ -838,13 +812,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JN } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jchar jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) { DTMF *arg1 = (DTMF *) 0 ; char arg2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(DTMF **)&jarg1; arg2 = (char)jarg2; if (arg1) (arg1)->digit = arg2; @@ -852,14 +825,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set( } -SWIGEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jchar jresult = 0 ; DTMF *arg1 = (DTMF *) 0 ; char result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(DTMF **)&jarg1; result = (char) ((arg1)->digit); jresult = (jchar)result; @@ -867,14 +839,13 @@ SWIGEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { DTMF *arg1 = (DTMF *) 0 ; uint32_t arg2 ; uint32_t *argp2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(DTMF **)&jarg1; argp2 = *(uint32_t **)&jarg2; if (!argp2) { @@ -887,14 +858,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1s } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; DTMF *arg1 = (DTMF *) 0 ; uint32_t result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(DTMF **)&jarg1; result = ((arg1)->duration); *(uint32_t **)&jresult = new uint32_t((uint32_t &)result); @@ -902,7 +872,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1 } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF(JNIEnv *jenv, jclass jcls, jchar jarg1, jlong jarg2) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF(JNIEnv *jenv, jclass jcls, jchar jarg1, jlong jarg2) { jlong jresult = 0 ; char arg1 ; uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ; @@ -924,7 +894,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF(JNIEnv } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIEnv *jenv, jclass jcls, jlong jarg1) { DTMF *arg1 = (DTMF *) 0 ; (void)jenv; @@ -935,7 +905,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIE } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; Stream *result = 0 ; @@ -947,7 +917,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1S } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; Stream *result = 0 ; @@ -961,7 +931,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1S } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JNIEnv *jenv, jclass jcls, jlong jarg1) { Stream *arg1 = (Stream *) 0 ; (void)jenv; @@ -972,7 +942,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JN } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jstring jresult = 0 ; Stream *arg1 = (Stream *) 0 ; int *arg2 = (int *) 0 ; @@ -980,22 +950,20 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(J (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Stream **)&jarg1; arg2 = *(int **)&jarg2; result = (char *)(arg1)->read(arg2); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Stream **)&jarg1; arg2 = 0; if (jarg2) { @@ -1003,18 +971,17 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNI if (!arg2) return ; } (arg1)->write((char const *)arg2); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Stream **)&jarg1; arg2 = 0; if (jarg2) { @@ -1023,32 +990,30 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1writ } arg3 = (int)jarg3; (arg1)->raw_write((char const *)arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1get_1data(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1get_1data(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; Stream *arg1 = (Stream *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Stream **)&jarg1; result = (char *)(arg1)->get_data(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { Event *arg1 = (Event *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = *(switch_event_t **)&jarg2; if (arg1) (arg1)->event = arg2; @@ -1056,14 +1021,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1set } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; Event *arg1 = (Event *) 0 ; switch_event_t *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; result = (switch_event_t *) ((arg1)->event); *(switch_event_t **)&jresult = result; @@ -1071,13 +1035,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1ge } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1087,38 +1050,36 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized { if (arg1->serialized_string) delete [] arg1->serialized_string; if (arg2) { - arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->serialized_string, (const char *)arg2); + arg1->serialized_string = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->serialized_string,arg2); } else { arg1->serialized_string = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; result = (char *) ((arg1)->serialized_string); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { Event *arg1 = (Event *) 0 ; int arg2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = (int)jarg2; if (arg1) (arg1)->mine = arg2; @@ -1126,14 +1087,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1set( } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; Event *arg1 = (Event *) 0 ; int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; result = (int) ((arg1)->mine); jresult = (jint)result; @@ -1141,7 +1101,7 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1get( } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { jlong jresult = 0 ; char *arg1 = (char *) 0 ; char *arg2 = (char *) NULL ; @@ -1161,13 +1121,13 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SW } result = (Event *)new Event((char const *)arg1,(char const *)arg2); *(Event **)&jresult = result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { jlong jresult = 0 ; switch_event_t *arg1 = (switch_event_t *) 0 ; int arg2 = (int) 0 ; @@ -1183,7 +1143,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SW } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Event(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Event(JNIEnv *jenv, jclass jcls, jlong jarg1) { Event *arg1 = (Event *) 0 ; (void)jenv; @@ -1194,7 +1154,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Event(JNI } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { jint jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1203,7 +1163,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1exec (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1217,13 +1176,13 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1exec } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jint jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) NULL ; @@ -1231,7 +1190,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1240,12 +1198,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send } result = (int)(arg1)->chat_send((char const *)arg2); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialize(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) NULL ; @@ -1253,7 +1211,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1seriali (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1261,13 +1218,13 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1seriali if (!arg2) return 0; } result = (char *)(arg1)->serialize((char const *)arg2); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if(result) jresult = jenv->NewStringUTF(result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPriority(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPriority(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; @@ -1276,7 +1233,6 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPri (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; argp2 = *(switch_priority_t **)&jarg2; if (!argp2) { @@ -1290,7 +1246,7 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPri } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1298,7 +1254,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHead (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1306,43 +1261,41 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHead if (!arg2) return 0; } result = (char *)(arg1)->getHeader((char const *)arg2); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if(result) jresult = jenv->NewStringUTF(result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getBody(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; result = (char *)(arg1)->getBody(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; result = (char *)(arg1)->getType(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1350,7 +1303,6 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBod (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1359,12 +1311,12 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBod } result = (bool)(arg1)->addBody((char const *)arg2); jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1373,7 +1325,6 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHea (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1387,13 +1338,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHea } result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1401,7 +1352,6 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHea (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1410,19 +1360,18 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHea } result = (bool)(arg1)->delHeader((char const *)arg2); jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1fire(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1fire(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(Event **)&jarg1; result = (bool)(arg1)->fire(); jresult = (jboolean)result; @@ -1430,13 +1379,12 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1fire(J } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *arg2 = (switch_queue_t *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = *(switch_queue_t **)&jarg2; if (arg1) (arg1)->events = arg2; @@ -1444,14 +1392,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1ev } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (switch_queue_t *) ((arg1)->events); *(switch_queue_t **)&jresult = result; @@ -1459,14 +1406,13 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t arg2 ; switch_event_types_t *argp2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; argp2 = *(switch_event_types_t **)&jarg2; if (!argp2) { @@ -1479,14 +1425,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_ } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = ((arg1)->e_event_id); *(switch_event_types_t **)&jresult = new switch_event_types_t((switch_event_types_t &)result); @@ -1494,13 +1439,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1510,38 +1454,36 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_ { if (arg1->e_callback) delete [] arg1->e_callback; if (arg2) { - arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_callback, (const char *)arg2); + arg1->e_callback = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_callback,arg2); } else { arg1->e_callback = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (char *) ((arg1)->e_callback); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1551,38 +1493,36 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_ { if (arg1->e_subclass_name) delete [] arg1->e_subclass_name; if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_subclass_name, (const char *)arg2); + arg1->e_subclass_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_subclass_name,arg2); } else { arg1->e_subclass_name = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (char *) ((arg1)->e_subclass_name); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1592,38 +1532,36 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_ { if (arg1->e_cb_arg) delete [] arg1->e_cb_arg; if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_cb_arg, (const char *)arg2); + arg1->e_cb_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_cb_arg,arg2); } else { arg1->e_cb_arg = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (char *) ((arg1)->e_cb_arg); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **arg2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = *(switch_event_node_t ***)&jarg2; { @@ -1635,14 +1573,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1en } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); *(switch_event_node_t ***)&jresult = result; @@ -1650,14 +1587,13 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t arg2 ; uint32_t *argp2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; argp2 = *(uint32_t **)&jarg2; if (!argp2) { @@ -1670,14 +1606,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1no } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = ((arg1)->node_index); *(uint32_t **)&jresult = new uint32_t((uint32_t &)result); @@ -1685,7 +1620,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1n } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1EventConsumer(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jint jarg3) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1EventConsumer(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jint jarg3) { jlong jresult = 0 ; char *arg1 = (char *) NULL ; char *arg2 = (char *) "" ; @@ -1707,13 +1642,13 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1EventConsum arg3 = (int)jarg3; result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3); *(EventConsumer **)&jresult = result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1EventConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1EventConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { EventConsumer *arg1 = (EventConsumer *) 0 ; (void)jenv; @@ -1724,7 +1659,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1EventCons } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bind(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bind(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { jint jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; @@ -1733,7 +1668,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bi (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1747,13 +1681,13 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bi } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1pop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1pop(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; int arg2 = (int) 0 ; @@ -1762,7 +1696,6 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1p (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -1772,18 +1705,17 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1p } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1cleanup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1cleanup(JNIEnv *jenv, jclass jcls, jlong jarg1) { EventConsumer *arg1 = (EventConsumer *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; (arg1)->cleanup(); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { CoreSession *arg1 = (CoreSession *) 0 ; (void)jenv; @@ -1794,13 +1726,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSessi } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(switch_core_session_t **)&jarg2; if (arg1) (arg1)->session = arg2; @@ -1808,14 +1739,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sess } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (switch_core_session_t *) ((arg1)->session); *(switch_core_session_t **)&jresult = result; @@ -1823,13 +1753,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ses } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *arg2 = (switch_channel_t *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(switch_channel_t **)&jarg2; if (arg1) (arg1)->channel = arg2; @@ -1837,14 +1766,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1chan } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (switch_channel_t *) ((arg1)->channel); *(switch_channel_t **)&jresult = result; @@ -1852,13 +1780,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cha } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int arg2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (unsigned int)jarg2; if (arg1) (arg1)->flags = arg2; @@ -1866,14 +1793,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flag } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; unsigned int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (unsigned int) ((arg1)->flags); jresult = (jlong)result; @@ -1881,13 +1807,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1fla } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; if (arg1) (arg1)->allocated = arg2; @@ -1895,14 +1820,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allo } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int) ((arg1)->allocated); jresult = (jint)result; @@ -1910,14 +1834,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allo } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *arg2 = (input_callback_state *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(input_callback_state **)&jarg2; if (arg1) (arg1)->cb_state = *arg2; @@ -1925,14 +1847,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1 } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (input_callback_state *)& ((arg1)->cb_state); *(input_callback_state **)&jresult = result; @@ -1940,14 +1861,13 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_ } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t arg2 ; switch_channel_state_t *argp2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; argp2 = *(switch_channel_state_t **)&jarg2; if (!argp2) { @@ -1960,14 +1880,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = ((arg1)->hook_state); *(switch_channel_state_t **)&jresult = new switch_channel_state_t((switch_channel_state_t &)result); @@ -1975,14 +1894,13 @@ 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) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1set(JNIEnv *jenv, jclass jcls, jlong 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) { @@ -1995,14 +1913,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1caus } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1get(JNIEnv *jenv, jclass jcls, jlong 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); @@ -2010,13 +1927,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cau } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2026,38 +1942,36 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid { if (arg1->uuid) delete [] arg1->uuid; if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); + arg1->uuid = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->uuid,arg2); } else { arg1->uuid = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (char *) ((arg1)->uuid); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2067,38 +1981,36 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_ { if (arg1->tts_name) delete [] arg1->tts_name; if (arg2) { - arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->tts_name, (const char *)arg2); + arg1->tts_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->tts_name,arg2); } else { arg1->tts_name = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (char *) ((arg1)->tts_name); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2108,32 +2020,31 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voic { if (arg1->voice_name) delete [] arg1->voice_name; if (arg2) { - arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->voice_name, (const char *)arg2); + arg1->voice_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->voice_name,arg2); } else { arg1->voice_name = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (char *) ((arg1)->voice_name); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1insertFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jint jarg4) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1insertFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2143,7 +2054,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1inse (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2158,20 +2068,19 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1inse arg4 = (int)jarg4; result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answer(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->answer(); jresult = (jint)result; @@ -2179,14 +2088,13 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answ } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->preAnswer(); jresult = (jint)result; @@ -2194,13 +2102,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preA } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) "normal_clearing" ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2208,29 +2115,27 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hang if (!arg2) return ; } (arg1)->hangup((char const *)arg2); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupState(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupState(JNIEnv *jenv, jclass jcls, jlong jarg1) { CoreSession *arg1 = (CoreSession *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; (arg1)->hangupState(); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2243,19 +2148,18 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setV if (!arg3) return ; } (arg1)->setVariable(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = (void *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2264,11 +2168,11 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setP } arg3 = *(void **)&jarg3; (arg1)->setPrivate(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2276,7 +2180,6 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2285,12 +2188,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get } result = (void *)(arg1)->getPrivate(arg2); *(void **)&jresult = result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2298,7 +2201,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2306,13 +2208,13 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g if (!arg2) return 0; } result = (char *)(arg1)->getVariable(arg2); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if(result) jresult = jenv->NewStringUTF(result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1process_1callback_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1process_1callback_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2320,7 +2222,6 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1pro (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2329,12 +2230,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1pro } result = (arg1)->process_callback_result(arg2); *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -2344,7 +2245,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say( (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2372,15 +2272,15 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say( if (!arg6) return ; } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) "" ; @@ -2388,7 +2288,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayP (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2406,43 +2305,41 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayP if (!arg4) return ; } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupCause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupCause(JNIEnv *jenv, jclass jcls, jlong 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); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getState(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getState(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (char *)(arg1)->getState(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recordFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jint jarg4, jint jarg5) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recordFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jint jarg4, jint jarg5) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2453,7 +2350,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1reco (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2465,12 +2361,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1reco arg5 = (int)jarg5; result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3, jint jarg4, jlong jarg5) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4, jlong jarg5) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; @@ -2481,8 +2377,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1orig (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(CoreSession **)&jarg2; arg3 = 0; @@ -2494,30 +2388,28 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1orig arg5 = *(switch_state_handler_table_t **)&jarg5; result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); jresult = (jint)result; - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1destroy(JNIEnv *jenv, jclass jcls, jlong 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) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(void **)&jarg2; arg3 = 0; @@ -2526,11 +2418,11 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setD if (!arg3) return ; } (arg1)->setDTMFCallback(arg2,arg3); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1speak(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1speak(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2538,7 +2430,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1spea (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2547,19 +2438,18 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1spea } result = (int)(arg1)->speak(arg2); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1parms(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1parms(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2572,19 +2462,18 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_ if (!arg3) return ; } (arg1)->set_tts_parms(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1params(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1params(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2597,12 +2486,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_ if (!arg3) return ; } (arg1)->set_tts_params(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2610,7 +2499,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1coll (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; result = (int)(arg1)->collectDigits(arg2); @@ -2619,7 +2507,7 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1coll } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2628,7 +2516,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1coll (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2638,7 +2525,7 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1coll } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2648,7 +2535,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = 0; @@ -2658,13 +2544,13 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g } arg4 = (int)jarg4; result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if(result) jresult = jenv->NewStringUTF(result); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4, jint jarg5) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jint jarg5) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2675,7 +2561,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = 0; @@ -2686,13 +2571,13 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g arg4 = (int)jarg4; arg5 = (int)jarg5; result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if(result) jresult = jenv->NewStringUTF(result); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1transfer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1transfer(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2702,7 +2587,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tran (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2721,14 +2605,14 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tran } result = (int)(arg1)->transfer(arg2,arg3,arg4); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jstring jarg4, jint jarg5, jstring jarg6, jint jarg7) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3, jstring jarg4, jint jarg5, jstring jarg6, jint jarg7) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2741,7 +2625,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1r (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2758,14 +2641,14 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1r } arg7 = (int)jarg7; result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); + if(result) jresult = jenv->NewStringUTF(result); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); return jresult; } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1playAndGetDigits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jint jarg11, jstring jarg12) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1playAndGetDigits(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jint jarg11, jstring jarg12) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2783,7 +2666,6 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1p (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2821,18 +2703,18 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1p if (!arg12) return 0; } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - if(result) jresult = jenv->NewStringUTF((const char *)result); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); - if (arg8) jenv->ReleaseStringUTFChars(jarg8, (const char *)arg8); - if (arg9) jenv->ReleaseStringUTFChars(jarg9, (const char *)arg9); - if (arg10) jenv->ReleaseStringUTFChars(jarg10, (const char *)arg10); - if (arg12) jenv->ReleaseStringUTFChars(jarg12, (const char *)arg12); + if(result) jresult = jenv->NewStringUTF(result); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); + if (arg7) jenv->ReleaseStringUTFChars(jarg7, arg7); + if (arg8) jenv->ReleaseStringUTFChars(jarg8, arg8); + if (arg9) jenv->ReleaseStringUTFChars(jarg9, arg9); + if (arg10) jenv->ReleaseStringUTFChars(jarg10, arg10); + if (arg12) jenv->ReleaseStringUTFChars(jarg12, arg12); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1streamFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1streamFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2841,7 +2723,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1stre (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2851,12 +2732,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1stre arg3 = (int)jarg3; result = (int)(arg1)->streamFile(arg2,arg3); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); return jresult; } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sleep(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sleep(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2865,7 +2746,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1slee (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2875,14 +2755,13 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1slee } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushEvents(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushEvents(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->flushEvents(); jresult = (jint)result; @@ -2890,14 +2769,13 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flus } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushDigits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushDigits(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->flushDigits(); jresult = (jint)result; @@ -2905,7 +2783,7 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flus } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setAutoHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setAutoHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jboolean jarg2) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool arg2 ; @@ -2913,7 +2791,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setA (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = jarg2 ? true : false; result = (int)(arg1)->setAutoHangup(arg2); @@ -2922,27 +2799,25 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setA } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(void **)&jarg2; (arg1)->setHangupHook(arg2); } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ready(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ready(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->ready(); jresult = (jboolean)result; @@ -2950,14 +2825,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1 } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1bridged(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1bridged(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->bridged(); jresult = (jboolean)result; @@ -2965,14 +2839,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1 } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answered(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answered(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->answered(); jresult = (jboolean)result; @@ -2980,14 +2853,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1 } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1mediaReady(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1mediaReady(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->mediaReady(); jresult = (jboolean)result; @@ -2995,28 +2867,25 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1 } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1waitForAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1waitForAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(CoreSession **)&jarg2; (arg1)->waitForAnswer(arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -3029,62 +2898,56 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1exec if (!arg3) return ; } (arg1)->execute((char const *)arg2,(char const *)arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sendEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sendEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(Event **)&jarg2; (arg1)->sendEvent(arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setEventData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setEventData(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(Event **)&jarg2; (arg1)->setEventData(arg2); } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getXMLCDR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getXMLCDR(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (char *)(arg1)->getXMLCDR(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->begin_allow_threads(); jresult = (jboolean)result; @@ -3092,14 +2955,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1 } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->end_allow_threads(); jresult = (jboolean)result; @@ -3107,29 +2969,27 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1 } -SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1uuid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1uuid(JNIEnv *jenv, jclass jcls, jlong jarg1) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (char *)((CoreSession const *)arg1)->get_uuid(); - if(result) jresult = jenv->NewStringUTF((const char *)result); + if(result) jresult = jenv->NewStringUTF(result); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1cb_1args(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1cb_1args(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_input_args_t *result = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; { switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args(); @@ -3140,18 +3000,17 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1) { CoreSession *arg1 = (CoreSession *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; (arg1)->check_hangup_hook(); } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; @@ -3161,7 +3020,6 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(void **)&jarg2; argp3 = *(switch_input_type_t **)&jarg3; @@ -3176,14 +3034,13 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -3196,12 +3053,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cons if (!arg3) return ; } (arg1)->consoleLog(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jint jarg5, jstring jarg6) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog2(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jint jarg5, jstring jarg6) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -3211,7 +3068,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cons (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -3235,14 +3091,14 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cons if (!arg6) return ; } (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -3259,12 +3115,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log(JNIE if (!arg2) return ; } console_log(arg1,arg2); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -3295,14 +3151,14 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log2(JNI if (!arg5) return ; } console_log2(arg1,arg2,arg3,arg4,arg5); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1log(JNIEnv *jenv, jclass jcls, jstring jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1log(JNIEnv *jenv, jclass jcls, jstring jarg1) { char *arg1 = (char *) 0 ; (void)jenv; @@ -3313,11 +3169,11 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1l if (!arg1) return ; } console_clean_log(arg1); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jenv, jclass jcls, jlong jarg1) { unsigned int arg1 ; (void)jenv; @@ -3327,14 +3183,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *je } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { CoreSession *arg1 = 0 ; CoreSession *arg2 = 0 ; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(CoreSession **)&jarg1; if(!arg1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & reference is null"); @@ -3349,7 +3203,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *je } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_status_t result; @@ -3363,7 +3217,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEn } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) { jlong jresult = 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; void *arg2 = (void *) 0 ; @@ -3391,7 +3245,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(J } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1set(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1set(JNIEnv *jenv, jclass jcls, jlong jarg1) { JavaVM *arg1 = (JavaVM *) 0 ; (void)jenv; @@ -3402,7 +3256,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1set(JNIEn } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1get(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1get(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; JavaVM *result = 0 ; @@ -3414,7 +3268,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1get(JNIE } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateStateHandler(JNIEnv *jenv, jclass jcls, jobject jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateStateHandler(JNIEnv *jenv, jclass jcls, jobject jarg1) { jobject arg1 ; (void)jenv; @@ -3424,7 +3278,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateState } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; JavaSession *result = 0 ; @@ -3436,7 +3290,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) { jlong jresult = 0 ; char *arg1 = (char *) 0 ; JavaSession *result = 0 ; @@ -3450,12 +3304,12 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession } result = (JavaSession *)new JavaSession(arg1); *(JavaSession **)&jresult = result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; JavaSession *result = 0 ; @@ -3469,7 +3323,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1JavaSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1JavaSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { JavaSession *arg1 = (JavaSession *) 0 ; (void)jenv; @@ -3480,14 +3334,13 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1JavaSessi } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(JavaSession **)&jarg1; result = (bool)(arg1)->begin_allow_threads(); jresult = (jboolean)result; @@ -3495,14 +3348,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1 } -SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { jboolean jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; bool result; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(JavaSession **)&jarg1; result = (bool)(arg1)->end_allow_threads(); jresult = (jboolean)result; @@ -3510,14 +3362,13 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1 } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jstring jarg3) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jstring jarg3) { JavaSession *arg1 = (JavaSession *) 0 ; jobject arg2 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(JavaSession **)&jarg1; arg2 = jarg2; arg3 = 0; @@ -3526,35 +3377,33 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setD if (!arg3) return ; } (arg1)->setDTMFCallback(arg2,arg3); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2) { JavaSession *arg1 = (JavaSession *) 0 ; jobject arg2 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(JavaSession **)&jarg1; arg2 = jarg2; (arg1)->setHangupHook(arg2); } -SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1) { JavaSession *arg1 = (JavaSession *) 0 ; (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(JavaSession **)&jarg1; (arg1)->check_hangup_hook(); } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; void *arg2 = (void *) 0 ; @@ -3564,7 +3413,6 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run (void)jenv; (void)jcls; - (void)jarg1_; arg1 = *(JavaSession **)&jarg1; arg2 = *(void **)&jarg2; argp3 = *(switch_input_type_t **)&jarg3; @@ -3579,7 +3427,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run } -SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3, jint jarg4) { +JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4) { jint jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; JavaSession *arg2 = (JavaSession *) 0 ; @@ -3589,8 +3437,6 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1orig (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; arg1 = *(JavaSession **)&jarg1; arg2 = *(JavaSession **)&jarg2; arg3 = 0; @@ -3601,12 +3447,12 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1orig arg4 = (int)jarg4; result = (int)(arg1)->originate(arg2,arg3,arg4); jresult = (jint)result; - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); return jresult; } -SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_SWIGJavaSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { +JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_SWIGJavaSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong baseptr = 0; (void)jenv; (void)jcls; diff --git a/src/mod/languages/mod_lua/mod_lua_wrap.cpp b/src/mod/languages/mod_lua/mod_lua_wrap.cpp index 256f86b98b..0a66f05699 100644 --- a/src/mod/languages/mod_lua/mod_lua_wrap.cpp +++ b/src/mod/languages/mod_lua/mod_lua_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -10,7 +10,7 @@ #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -23,10 +23,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template T SwigValueInit() { - return T(); -} #endif /* ----------------------------------------------------------------------------- @@ -36,14 +32,14 @@ template T SwigValueInit() { /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -122,16 +118,10 @@ template T SwigValueInit() { #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -141,7 +131,7 @@ template T SwigValueInit() { /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" +#define SWIG_RUNTIME_VERSION "2" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -176,7 +166,6 @@ template T SwigValueInit() { /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -317,10 +306,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *, int *); +typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store information on one type */ +/* Structure to store inforomation on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -365,7 +354,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (int)((l1 - f1) - (l2 - f2)); + return (l1 - f1) - (l2 - f2); } /* @@ -447,8 +436,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +SWIG_TypeCast(swig_cast_info *ty, void *ptr) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* @@ -719,8 +708,7 @@ extern "C" { #include "lua.h" #include "lauxlib.h" -#include /* for malloc */ -#include /* for a few sanity tests */ +#include /* for a few sanity tests */ /* ----------------------------------------------------------------------------- * global swig types @@ -731,7 +719,12 @@ extern "C" { #define SWIG_LUA_STRING 3 #define SWIG_LUA_POINTER 4 #define SWIG_LUA_BINARY 5 -#define SWIG_LUA_CHAR 6 + +/* Structure for command table (replaced by luaLib's luaL_reg) */ +/*typedef struct { + const char *name; + lua_CFunction wrapper; +} swig_lua_command_info;*/ /* Structure for variable linking table */ typedef struct { @@ -762,42 +755,29 @@ typedef struct { } swig_lua_attribute; typedef struct swig_lua_class { - const char *name; + const char *name; swig_type_info **type; - lua_CFunction constructor; - void (*destructor)(void *); - swig_lua_method *methods; + lua_CFunction constructor; + void (*destructor)(void *); + swig_lua_method *methods; swig_lua_attribute *attributes; struct swig_lua_class **bases; - const char **base_names; } swig_lua_class; -/* this is the struct for wrappering all pointers in SwigLua -*/ typedef struct { + void *ptr; swig_type_info *type; - int own; /* 1 if owned & must be destroyed */ - void *ptr; + int own; /* 1 if owned & must be destroyed */ } swig_lua_userdata; -/* this is the struct for wrapping arbitary packed binary data -(currently it is only used for member function pointers) -the data ordering is similar to swig_lua_userdata, but it is currently not possible -to tell the two structures apart within Swig, other than by looking at the type -*/ -typedef struct { - swig_type_info *type; - int own; /* 1 if owned & must be destroyed */ - char data[1]; /* arbitary amount of data */ -} swig_lua_rawdata; /* Common SWIG API */ -#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) -#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) -#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) -#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) +#define SWIG_NewPointerObj(L, ptr, type, owner) \ + SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) +#define SWIG_ConvertPtr(L,idx, ptr, type, flags) \ + SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) +#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) \ + SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) @@ -808,193 +788,141 @@ typedef struct { #define SWIG_contract_assert(expr, msg) \ if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else + + /* helper #defines */ #define SWIG_fail {goto fail;} -#define SWIG_fail_arg(func_name,argnum,type) \ - {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ - func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ - goto fail;} -#define SWIG_fail_ptr(func_name,argnum,type) \ - SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") -#define SWIG_check_num_args(func_name,a,b) \ - if (lua_gettop(L)b) \ - {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ - goto fail;} - +#define SWIG_fail_arg(I) {lua_pushfstring(L,"argument %d incorrect/missing",I);goto fail;} #define SWIG_Lua_get_table(L,n) \ - (lua_pushstring(L, n), lua_rawget(L,-2)) + (lua_pushstring(L, n), lua_rawget(L,-2)) #define SWIG_Lua_add_function(L,n,f) \ - (lua_pushstring(L, n), \ - lua_pushcfunction(L, f), \ - lua_rawset(L,-3)) - -/* special helper for allowing 'nil' for usertypes */ -#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) - -#ifdef __cplusplus -/* Special helper for member function pointers -it gets the address, casts it, then dereferences it */ -//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) -#endif - -/* storing/access of swig_module_info */ -SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { - swig_module_info *ret = 0; - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_rawget(L,LUA_REGISTRYINDEX); - if (lua_islightuserdata(L,-1)) - ret=(swig_module_info*)lua_touserdata(L,-1); - lua_pop(L,1); /* tidy */ - return ret; -} - -SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { - /* add this all into the Lua registry: */ - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_pushlightuserdata(L,(void*)module); - lua_rawset(L,LUA_REGISTRYINDEX); -} + (lua_pushstring(L, n), \ + lua_pushcfunction(L, f), \ + lua_rawset(L,-3)) /* ----------------------------------------------------------------------------- * global variable support code: modules * ----------------------------------------------------------------------------- */ -/* this function is called when trying to set an immutable. -default value is to print an error. -This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ -SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) -{ -/* there should be 1 param passed in: the new value */ -#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE - lua_pop(L,1); /* remove it */ - lua_pushstring(L,"This variable is immutable"); - lua_error(L); -#endif - return 0; /* should not return anything */ -} - /* the module.get method used for getting linked data */ SWIGINTERN int SWIG_Lua_module_get(lua_State* L) { -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); +/* there should be 2 params passed in + (1) table (not the meta table) + (2) string name of the attribute + printf("SWIG_Lua_module_get %p(%s) '%s'\n", + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2)); */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* get the .get table */ + lua_remove(L,3); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,3); /* remove .get */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_call(L,0,1); + return 1; + } + lua_pop(L,1); /* remove the top */ + } + lua_pop(L,1); /* remove the .get */ + lua_pushnil(L); /* return a nil */ return 1; } /* the module.set method used for setting linked data */ SWIGINTERN int SWIG_Lua_module_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; - } - } - lua_settop(L,3); /* reset back to start */ - /* we now have the table, key & new value, so just set directly */ - lua_rawset(L,1); /* add direct */ - return 0; + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".set"); /* get the .set table */ + lua_remove(L,4); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,4); /* remove .set */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,3); /* value */ + lua_call(L,1,0); + return 0; + } + lua_pop(L,1); /* remove the top */ + } + lua_pop(L,1); /* remove the .set */ + return 0; } /* registering a module in lua */ SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushstring(L,name); + lua_newtable(L); /* the table */ + /* add meta table */ + lua_newtable(L); /* the meta table */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); + lua_pushstring(L,".get"); + lua_newtable(L); /* the .get table */ + lua_rawset(L,-3); /* add .get into metatable */ + lua_pushstring(L,".set"); + lua_newtable(L); /* the .set table */ + lua_rawset(L,-3); /* add .set into metatable */ + lua_setmetatable(L,-2); /* sets meta table in module */ + lua_rawset(L,-3); /* add module into parent */ + SWIG_Lua_get_table(L,name); /* get the table back out */ } /* ending the register */ SWIGINTERN void SWIG_Lua_module_end(lua_State* L) { - lua_pop(L,1); /* tidy stack (remove module) */ + lua_pop(L,1); /* tidy stack (remove module) */ } /* adding a linked variable to the module */ SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_istable(L,-1)); /* just in case */ + lua_getmetatable(L,-1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) /* if there is a set fn */ + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } + lua_pop(L,1); /* tidy stack (remove meta) */ } /* adding a function module */ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_add_function(L,name,fn); } /* ----------------------------------------------------------------------------- @@ -1004,383 +932,307 @@ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_ /* the class.get method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_get(lua_State* L) { -/* there should be 2 params passed in - (1) userdata (not the meta table) - (2) string name of the attribute +/* there should be 2 params passed in + (1) userdata (not the meta table) + (2) string name of the attribute */ - assert(lua_isuserdata(L,-2)); /* just in case */ - lua_getmetatable(L,-2); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,-2); /* stack tidy, remove .get table */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* ok, so try the .fn table */ - SWIG_Lua_get_table(L,".fn"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); /* look for the fn */ - lua_remove(L,-2); /* stack tidy, remove .fn table */ - if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */ - { /* found it so return the fn & let lua call it */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* NEW: looks for the __getitem() fn - this is a user provided get fn */ - SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; /* sorry not known */ + assert(lua_isuserdata(L,-2)); /* just in case */ + lua_getmetatable(L,-2); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,-2); /* stack tidy, remove .get table */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* ok, so try the .fn table */ + SWIG_Lua_get_table(L,".fn"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); /* look for the fn */ + lua_remove(L,-2); /* stack tidy, remove .fn table */ + if (lua_iscfunction(L,-1)) + { /* found it so return the fn & let lua call it */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* NEW: looks for the __getitem() fn + this is a user provided get fn */ + SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; /* sorry not known */ } /* the class.set method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2), + lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ + assert(lua_isuserdata(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ - lua_call(L,2,0); - return 0; - } - lua_pop(L,1); /* remove the value */ - } - lua_pop(L,1); /* remove the value .set table */ - /* NEW: looks for the __setitem() fn - this is a user provided set fn */ - SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ - lua_call(L,3,0); /* 3 values in ,0 out */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* userdata */ + lua_pushvalue(L,3); /* value */ + lua_call(L,2,0); + return 0; + } + lua_pop(L,1); /* remove the value */ + } + lua_pop(L,1); /* remove the value .set table */ + /* NEW: looks for the __setitem() fn + this is a user provided set fn */ + SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_pushvalue(L,3); /* the value */ + lua_call(L,3,0); /* 3 values in ,0 out */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; } /* the class.destruct method called by the interpreter */ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) { -/* there should be 1 params passed in - (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; - assert(lua_isuserdata(L,-1)); /* just in case */ - usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ - /* if must be destroyed & has a destructor */ - if (usr->own) /* if must be destroyed */ - { - clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ - if (clss && clss->destructor) /* there is a destroy fn */ - { - clss->destructor(usr->ptr); /* bye bye */ - } - } - return 0; +/* there should be 1 params passed in + (1) userdata (not the meta table) */ + swig_lua_userdata* usr; + swig_lua_class* clss; + assert(lua_isuserdata(L,-1)); /* just in case */ + usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ + /* if must be destroyed & has a destructor */ + if (usr->own) /* if must be destroyed */ + { + clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ + if (clss && clss->destructor) /* there is a destroy fn */ + { + clss->destructor(usr->ptr); /* bye bye */ + } + } + return 0; } /* gets the swig class registry (or creates it) */ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) { - /* add this all into the swig registry: */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ - if (!lua_istable(L,-1)) /* not there */ - { /* must be first time, so add it */ - lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); - /* then get it */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); - } + /* add this all into the swig registry: */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ + if (!lua_istable(L,-1)) /* not there */ + { /* must be first time, so add it */ + lua_pop(L,1); /* remove the result */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + lua_rawset(L,LUA_REGISTRYINDEX); + /* then get it */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); + } } /* helper fn to get the classes metatable from the register */ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) { - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,cname); /* get the name */ - lua_rawget(L,-2); /* get it */ - lua_remove(L,-2); /* tidy up (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,cname); /* get the name */ + lua_rawget(L,-2); /* get it */ + lua_remove(L,-2); /* tidy up (remove registry) */ } /* helper add a variable to a registered class */ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } } /* helper to recursively add class details (attributes & operations) */ SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) { - int i; - /* call all the base classes first: we can then override these later: */ - for(i=0;clss->bases[i];i++) - { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ - for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); - } - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - } -} - -/* set up the base classes pointers. -Each class structure has a list of pointers to the base class structures. -This function fills them. -It cannot be done at compile time, as this will not work with hireachies -spread over more than one swig file. -Therefore it must be done at runtime, querying the SWIG type system. -*/ -SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) -{ - int i=0; - swig_module_info* module=SWIG_GetModule(L); - for(i=0;clss->base_names[i];i++) - { - if (clss->bases[i]==0) /* not found yet */ - { - /* lookup and cache the base class */ - swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); - if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; - } - } + int i; + /* call all the base classes first: we can then override these later: */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_add_class_details(L,clss->bases[i]); + } + /* add fns */ + for(i=0;clss->attributes[i].name;i++){ + SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + } + /* add methods to the metatable */ + SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ + assert(lua_istable(L,-1)); /* just in case */ + for(i=0;clss->methods[i].name;i++){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + lua_pop(L,1); /* tidy stack (remove table) */ + /* add operator overloads + these look ANY method which start with "__" and assume they + are operator overloads & add them to the metatable + (this might mess up is someone defines a method __gc (the destructor)*/ + for(i=0;clss->methods[i].name;i++){ + if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + } } /* performs the entire class registration process */ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) { - /* add its constructor to module with the name of the class - so you can do MyClass(...) as well as new_MyClass(...) - BUT only if a constructor is defined - (this overcomes the problem of pure virtual classes without constructors)*/ - if (clss->constructor) - SWIG_Lua_add_function(L,clss->name,clss->constructor); +/* add its constructor to module with the name of the class + so you can do MyClass(...) as well as new_MyClass(...) + BUT only if a constructor is defined + (this overcomes the problem of pure virtual classes without constructors)*/ + if (clss->constructor) + SWIG_Lua_add_function(L,clss->name,clss->constructor); - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ - lua_newtable(L); /* create the metatable */ - /* add string of class name called ".type" */ - lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); - lua_rawset(L,-3); - /* add a table called ".get" */ - lua_pushstring(L,".get"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".set" */ - lua_pushstring(L,".set"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".fn" */ - lua_pushstring(L,".fn"); - lua_newtable(L); - lua_rawset(L,-3); - /* add accessor fns for using the .get,.set&.fn */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); - SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add it */ - lua_rawset(L,-3); /* metatable into registry */ - lua_pop(L,1); /* tidy stack (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->name); /* get the name */ + lua_newtable(L); /* create the metatable */ + /* add string of class name called ".type" */ + lua_pushstring(L,".type"); + lua_pushstring(L,clss->name); + lua_rawset(L,-3); + /* add a table called ".get" */ + lua_pushstring(L,".get"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".set" */ + lua_pushstring(L,".set"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".fn" */ + lua_pushstring(L,".fn"); + lua_newtable(L); + lua_rawset(L,-3); + /* add accessor fns for using the .get,.set&.fn */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); + SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); + /* add it */ + lua_rawset(L,-3); /* metatable into registry */ + lua_pop(L,1); /* tidy stack (remove registry) */ - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ - lua_pop(L,1); /* tidy stack (remove class metatable) */ + SWIG_Lua_get_class_metatable(L,clss->name); + SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ + lua_pop(L,1); /* tidy stack (remove class metatable) */ } /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ -/* helper to add metatable to new lua object */ -SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) -{ - if (type->clientdata) /* there is clientdata: so add the metatable */ - { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); - if (lua_istable(L,-1)) - { - lua_setmetatable(L,-2); - } - else - { - lua_pop(L,1); - } - } -} - /* pushes a new object into the lua stack */ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; - if (!ptr){ - lua_pushnil(L); - return; - } - usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ - usr->ptr=ptr; /* set the ptr */ - usr->type=type; - usr->own=own; - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + swig_lua_userdata* usr; + if (!ptr){ + lua_pushnil(L); + return; + } + usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ + usr->ptr=ptr; /* set the ptr */ + usr->type=type; + usr->own=own; + if (type->clientdata) /* there is clientdata: so add the metatable */ + { + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + if (lua_istable(L,-1)) + { + lua_setmetatable(L,-2); + } + else + { + lua_pop(L,1); + } + } } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; - swig_cast_info *cast; - if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ - usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ - if (usr) - { - if (flags & SWIG_POINTER_DISOWN) /* must disown the object */ - { - usr->own=0; - } - if (!type) /* special cast void*, no casting fn */ - { - *ptr=usr->ptr; - return SWIG_OK; /* ok */ - } - cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */ - if (cast) - { - int newmemory = 0; - *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - return SWIG_OK; /* ok */ - } - } - return SWIG_ERROR; /* error */ + swig_lua_userdata* usr; + swig_cast_info *cast; + usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ + if (usr) + { + cast=SWIG_TypeCheckStruct(usr->type,type); + if (cast) + { + *ptr=SWIG_TypeCast(cast,usr->ptr); + return 0; /* ok */ + } + } + return 1; /* error */ } SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; - if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ - lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", - func_name,(type && type->str)?type->str:"void*",argnum); - lua_error(L); - } - return result; -} - -/* pushes a packed userdata. user for member fn pointers only */ -SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) -{ - swig_lua_rawdata* raw; - assert(ptr); /* not acceptable to pass in a NULL value */ - raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ - raw->type=type; - raw->own=0; - memcpy(raw->data,ptr,size); /* copy the data */ - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ -} - -/* converts a packed userdata. user for member fn pointers only */ -SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) -{ - swig_lua_rawdata* raw; - raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ - if (!raw) return SWIG_ERROR; /* error */ - if (type==0 || type==raw->type) /* void* or identical type */ - { - memcpy(ptr,raw->data,size); /* copy it */ - return SWIG_OK; /* ok */ - } - return SWIG_ERROR; /* error */ -} - -/* a function to get the typestring of a piece of data */ -SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) -{ - swig_lua_userdata* usr; - if (lua_isuserdata(L,tp)) - { - usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - if (usr && usr->type && usr->type->str) - return usr->type->str; - return "userdata (unknown type)"; - } - return lua_typename(L,lua_type(L,tp)); + int argnum,const char* func_name){ + void* result; + if (SWIG_ConvertPtr(L,index,&result,type,flags)){ + lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", + func_name,(type && type->str)?type->str:"void*",argnum); + lua_error(L); + } + return result; } /* lua callable function to get the userdata's type */ SWIGRUNTIME int SWIG_Lua_type(lua_State* L) { - lua_pushstring(L,SWIG_Lua_typename(L,1)); - return 1; + swig_lua_userdata* usr; + if (!lua_isuserdata(L,1)) /* just in case */ + return 0; /* nil reply */ + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + lua_pushstring(L,usr->type->name); + return 1; } /* lua callable function to compare userdata's value @@ -1388,18 +1240,18 @@ the issue is that two userdata may point to the same thing but to lua, they are different objects */ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) { - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ - result=(usr1->ptr==usr2->ptr); - lua_pushboolean(L,result); - return 1; + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); + lua_pushboolean(L,result); + return 1; } + /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1412,17 +1264,12 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].lvalue); + lua_pushnumber(L,(double)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].dvalue); - lua_rawset(L,-3); - break; - case SWIG_LUA_CHAR: - lua_pushstring(L,constants[i].name); - lua_pushfstring(L,"%c",(char)constants[i].lvalue); + lua_pushnumber(L,(double)constants[i].dvalue); lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1436,9 +1283,8 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { lua_rawset(L,-3); break; case SWIG_LUA_BINARY: - lua_pushstring(L,constants[i].name); - SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); - lua_rawset(L,-3); + /* TODO?? */ +/* obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); */ break; default: break; @@ -1446,34 +1292,25 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { } } -/* ----------------------------------------------------------------------------- - * executing lua code from within the wrapper - * ----------------------------------------------------------------------------- */ +/* storing/access of swig_module_info */ +SWIGRUNTIME swig_module_info * +SWIG_Lua_GetModule(lua_State* L) { + swig_module_info *ret = 0; + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_rawget(L,LUA_REGISTRYINDEX); + if (lua_islightuserdata(L,-1)) + ret=(swig_module_info*)lua_touserdata(L,-1); + lua_pop(L,1); /* tidy */ + return ret; +} -#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */ -#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) -#endif -/* Executes a C string in Lua a really simple way of calling lua from C -Unfortunately lua keeps changing its API's, so we need a conditional compile -In lua 5.0.X its lua_dostring() -In lua 5.1.X its luaL_dostring() -*/ -SWIGINTERN int -SWIG_Lua_dostring(lua_State *L, const char* str) { - int ok,top; - if (str==0 || str[0]==0) return 0; /* nothing to do */ - top=lua_gettop(L); /* save stack */ -#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) - ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */ -#else - ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */ -#endif - if (ok!=0) { - SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); - } - lua_settop(L,top); /* restore the stack */ - return ok; -} +SWIGRUNTIME void +SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { + /* add this all into the Lua registry: */ + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_pushlightuserdata(L,(void*)module); + lua_rawset(L,LUA_REGISTRYINDEX); +} #ifdef __cplusplus } @@ -1484,15 +1321,15 @@ SWIG_Lua_dostring(lua_State *L, const char* str) { /* -------- TYPES TABLE (BEGIN) -------- */ -#define SWIGTYPE_p_API swig_types[0] -#define SWIGTYPE_p_CoreSession swig_types[1] -#define SWIGTYPE_p_DTMF swig_types[2] -#define SWIGTYPE_p_Event swig_types[3] -#define SWIGTYPE_p_EventConsumer swig_types[4] -#define SWIGTYPE_p_IVRMenu swig_types[5] -#define SWIGTYPE_p_LUA__Dbh swig_types[6] -#define SWIGTYPE_p_LUA__Session swig_types[7] -#define SWIGTYPE_p_SWIGLUA_FN swig_types[8] +#define SWIGTYPE_SWIGLUA_FN swig_types[0] +#define SWIGTYPE_p_API swig_types[1] +#define SWIGTYPE_p_CoreSession swig_types[2] +#define SWIGTYPE_p_DTMF swig_types[3] +#define SWIGTYPE_p_Event swig_types[4] +#define SWIGTYPE_p_EventConsumer swig_types[5] +#define SWIGTYPE_p_IVRMenu swig_types[6] +#define SWIGTYPE_p_LUA__Dbh swig_types[7] +#define SWIGTYPE_p_LUA__Session swig_types[8] #define SWIGTYPE_p_Stream swig_types[9] #define SWIGTYPE_p_input_callback_state swig_types[10] #define SWIGTYPE_p_int swig_types[11] @@ -1514,23 +1351,22 @@ SWIG_Lua_dostring(lua_State *L, const char* str) { #define SWIGTYPE_p_switch_stream_handle_t swig_types[27] #define SWIGTYPE_p_uint32_t swig_types[28] #define SWIGTYPE_p_void swig_types[29] -static swig_type_info *swig_types[31]; -static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0}; +#define SWIGTYPE_switch_call_cause_t swig_types[30] +#define SWIGTYPE_switch_channel_state_t swig_types[31] +#define SWIGTYPE_switch_event_types_t swig_types[32] +#define SWIGTYPE_switch_input_type_t swig_types[33] +#define SWIGTYPE_switch_priority_t swig_types[34] +#define SWIGTYPE_uint32_t swig_types[35] +static swig_type_info *swig_types[37]; +static swig_module_info swig_module = {swig_types, 36, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ -#define SWIG_name "freeswitch" -#define SWIG_init luaopen_freeswitch -#define SWIG_init_user luaopen_freeswitch_user - -#define SWIG_LUACODE luaopen_freeswitch_luacode - - -namespace swig { -typedef struct{} LANGUAGE_OBJ; -} +#define SWIG_init Freeswitch_Init +#define SWIG_name "freeswitch" +#define SWIG_import luaopen_freeswitch #include "switch.h" @@ -1538,13 +1374,15 @@ typedef struct{} LANGUAGE_OBJ; #include "freeswitch_lua.h" + #ifdef __cplusplus /* generic alloc/dealloc fns*/ -#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN] -#define SWIG_FREE_ARRAY(PTR) delete[] PTR; +#define SWIG_ALLOC_ARRAY(TYPE,LEN) new (TYPE)[LEN] +#define SWIG_FREE_ARRAY(PTR) if(PTR){delete[] PTR;} #else #define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE)) -#define SWIG_FREE_ARRAY(PTR) free(PTR); +#define SWIG_FREE_ARRAY(PTR) if(PTR){free(PTR);} #endif + /* counting the size of arrays:*/ int SWIG_itable_size(lua_State* L, int index) { @@ -1700,18 +1538,15 @@ static int _wrap_setGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("setGlobalVariable",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); setGlobalVariable(arg1,arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1723,17 +1558,14 @@ static int _wrap_getGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("getGlobalVariable",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); result = (char *)getGlobalVariable(arg1); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; free(result); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1745,18 +1577,15 @@ static int _wrap_consoleLog(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("consoleLog",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); consoleLog(arg1,arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1771,24 +1600,21 @@ static int _wrap_consoleLog2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - SWIG_check_num_args("consoleLog2",5,5) - if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int"); - if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char *)lua_tostring(L, 5); + arg5 = (char*)lua_tostring(L, 5); consoleLog2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1799,16 +1625,13 @@ static int _wrap_consoleCleanLog(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - SWIG_check_num_args("consoleCleanLog",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); consoleCleanLog(arg1); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1819,14 +1642,11 @@ static int _wrap_running(lua_State* L) { int SWIG_arg = -1; bool result; - SWIG_check_num_args("running",0,0) result = (bool)running(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1844,38 +1664,35 @@ static int _wrap_email(lua_State* L) { char *arg7 = (char *) NULL ; bool result; - SWIG_check_num_args("email",2,7) - if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *"); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *"); - if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *"); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *"); - if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); + if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg(5); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); + if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg(7); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); } if(lua_gettop(L)>=5){ - arg5 = (char *)lua_tostring(L, 5); + arg5 = (char*)lua_tostring(L, 5); } if(lua_gettop(L)>=6){ - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); } if(lua_gettop(L)>=7){ - arg7 = (char *)lua_tostring(L, 7); + arg7 = (char*)lua_tostring(L, 7); } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1903,39 +1720,34 @@ static int _wrap_new_IVRMenu(lua_State* L) { int arg17 ; IVRMenu *result = 0 ; - SWIG_check_num_args("IVRMenu",17,17) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *"); - if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *"); - if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *"); - if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *"); - if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *"); - if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *"); - if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *"); - if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *"); - if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int"); - if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int"); - if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int"); - if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int"); - if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int"); - if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ - SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); - arg5 = (char *)lua_tostring(L, 5); - arg6 = (char *)lua_tostring(L, 6); - arg7 = (char *)lua_tostring(L, 7); - arg8 = (char *)lua_tostring(L, 8); - arg9 = (char *)lua_tostring(L, 9); - arg10 = (char *)lua_tostring(L, 10); - arg11 = (char *)lua_tostring(L, 11); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + if(!lua_isstring(L,7)) SWIG_fail_arg(7); + if(!lua_isstring(L,8)) SWIG_fail_arg(8); + if(!lua_isstring(L,9)) SWIG_fail_arg(9); + if(!lua_isstring(L,10)) SWIG_fail_arg(10); + if(!lua_isstring(L,11)) SWIG_fail_arg(11); + if(!lua_isnumber(L,12)) SWIG_fail_arg(12); + if(!lua_isnumber(L,13)) SWIG_fail_arg(13); + if(!lua_isnumber(L,14)) SWIG_fail_arg(14); + if(!lua_isnumber(L,15)) SWIG_fail_arg(15); + if(!lua_isnumber(L,16)) SWIG_fail_arg(16); + if(!lua_isnumber(L,17)) SWIG_fail_arg(17); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"new_IVRMenu"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); + arg5 = (char*)lua_tostring(L, 5); + arg6 = (char*)lua_tostring(L, 6); + arg7 = (char*)lua_tostring(L, 7); + arg8 = (char*)lua_tostring(L, 8); + arg9 = (char*)lua_tostring(L, 9); + arg10 = (char*)lua_tostring(L, 10); + arg11 = (char*)lua_tostring(L, 11); arg12 = (int)lua_tonumber(L, 12); arg13 = (int)lua_tonumber(L, 13); arg14 = (int)lua_tonumber(L, 14); @@ -1947,8 +1759,6 @@ static int _wrap_new_IVRMenu(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1959,21 +1769,14 @@ static int _wrap_delete_IVRMenu(lua_State* L) { int SWIG_arg = -1; IVRMenu *arg1 = (IVRMenu *) 0 ; - SWIG_check_num_args("IVRMenu",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"delete_IVRMenu"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1987,26 +1790,19 @@ static int _wrap_IVRMenu_bindAction(lua_State* L) { char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; - SWIG_check_num_args("bindAction",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bindAction",1,"IVRMenu *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ - SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_bindAction"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2019,28 +1815,17 @@ static int _wrap_IVRMenu_execute(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("execute",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"IVRMenu *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("execute",2,"CoreSession *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ - SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("IVRMenu_execute",2,SWIGTYPE_p_CoreSession); - } - - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_execute"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"IVRMenu_execute"); + arg3 = (char*)lua_tostring(L, 3); (arg1)->execute(arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2060,28 +1845,22 @@ static swig_lua_attribute swig_IVRMenu_attributes[] = { {0,0,0} }; static swig_lua_class *swig_IVRMenu_bases[] = {0}; -static const char *swig_IVRMenu_base_names[] = {0}; -static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names }; +swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases }; static int _wrap_new_API(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) NULL ; API *result = 0 ; - SWIG_check_num_args("API",0,1) - if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"CoreSession *"); + if(lua_gettop(L)>=1 && !lua_isuserdata(L,1)) SWIG_fail_arg(1); if(lua_gettop(L)>=1){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession); - } + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"new_API"); } result = (API *)new API(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2092,21 +1871,14 @@ static int _wrap_delete_API(lua_State* L) { int SWIG_arg = -1; API *arg1 = (API *) 0 ; - SWIG_check_num_args("API",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"API *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"delete_API"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2120,27 +1892,20 @@ static int _wrap_API_execute(lua_State* L) { char *arg3 = (char *) NULL ; char *result = 0 ; - SWIG_check_num_args("execute",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"API *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ - SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_execute"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; free(result); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2153,23 +1918,16 @@ static int _wrap_API_executeString(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("executeString",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("executeString",1,"API *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ - SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_executeString"); + arg2 = (char*)lua_tostring(L, 2); result = (char *)(arg1)->executeString((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; free(result); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2181,20 +1939,13 @@ static int _wrap_API_getTime(lua_State* L) { API *arg1 = (API *) 0 ; char *result = 0 ; - SWIG_check_num_args("getTime",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ - SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_getTime"); result = (char *)(arg1)->getTime(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2215,31 +1966,23 @@ static swig_lua_attribute swig_API_attributes[] = { {0,0,0} }; static swig_lua_class *swig_API_bases[] = {0}; -static const char *swig_API_base_names[] = {0}; -static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names }; +swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases }; static int _wrap_input_callback_state_t_function_set(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("function",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("function",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_set"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; if (arg1) (arg1)->function = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2251,20 +1994,13 @@ static int _wrap_input_callback_state_t_function_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - SWIG_check_num_args("function",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_get"); result = (void *) ((arg1)->function); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2276,23 +2012,16 @@ static int _wrap_input_callback_state_t_threadState_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("threadState",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("threadState",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_set"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; if (arg1) (arg1)->threadState = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2304,20 +2033,13 @@ static int _wrap_input_callback_state_t_threadState_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - SWIG_check_num_args("threadState",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_get"); result = (void *) ((arg1)->threadState); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2329,23 +2051,16 @@ static int _wrap_input_callback_state_t_extra_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("extra",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("extra",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_set"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; if (arg1) (arg1)->extra = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2357,20 +2072,13 @@ static int _wrap_input_callback_state_t_extra_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - SWIG_check_num_args("extra",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_get"); result = (void *) ((arg1)->extra); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2382,20 +2090,15 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("funcargs",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->funcargs) delete [] arg1->funcargs; if (arg2) { - arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->funcargs, (const char *)arg2); + arg1->funcargs = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->funcargs,arg2); } else { arg1->funcargs = 0; } @@ -2404,8 +2107,6 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2417,20 +2118,13 @@ static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *result = 0 ; - SWIG_check_num_args("funcargs",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_get"); result = (char *) ((arg1)->funcargs); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2441,14 +2135,11 @@ static int _wrap_new_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *result = 0 ; - SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0) result = (input_callback_state_t *)new input_callback_state_t(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2459,21 +2150,14 @@ static int _wrap_delete_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; - SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"delete_input_callback_state_t"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2488,38 +2172,30 @@ static swig_lua_method swig_input_callback_state_t_methods[] = { {0,0} }; static swig_lua_attribute swig_input_callback_state_t_attributes[] = { - { "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, - { "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, - { "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, - { "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, + { "function",_wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, + { "threadState",_wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, + { "extra",_wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, + { "funcargs",_wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, {0,0,0} }; static swig_lua_class *swig_input_callback_state_t_bases[] = {0}; -static const char *swig_input_callback_state_t_base_names[] = {0}; -static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names }; +swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases }; static int _wrap_DTMF_digit_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; char arg2 ; - SWIG_check_num_args("digit",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF); - } - - arg2 = (lua_tostring(L, 2))[0]; + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_set"); + arg2 = ((char*)lua_tostring(L, 2))[0]; if (arg1) (arg1)->digit = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2531,20 +2207,13 @@ static int _wrap_DTMF_digit_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; char result; - SWIG_check_num_args("digit",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_get"); result = (char) ((arg1)->digit); SWIG_arg=0; lua_pushfstring(L,"%c",result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2555,30 +2224,21 @@ static int _wrap_DTMF_duration_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; uint32_t arg2 ; - uint32_t *argp2 ; - SWIG_check_num_args("duration",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_set"); + { + uint32_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ - SWIG_fail_ptr("DTMF_duration_set",2,SWIGTYPE_p_uint32_t); - } - arg2 = *argp2; - if (arg1) (arg1)->duration = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2590,23 +2250,17 @@ static int _wrap_DTMF_duration_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; uint32_t result; - SWIG_check_num_args("duration",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_get"); result = ((arg1)->duration); SWIG_arg=0; { - uint32_t * resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr; + resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2618,25 +2272,22 @@ static int _wrap_new_DTMF(lua_State* L) { char arg1 ; uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ; DTMF *result = 0 ; - uint32_t *argp2 ; - SWIG_check_num_args("DTMF",1,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char"); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t"); - arg1 = (lua_tostring(L, 1))[0]; + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1 = ((char*)lua_tostring(L, 1))[0]; if(lua_gettop(L)>=2){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ - SWIG_fail_ptr("new_DTMF",2,SWIGTYPE_p_uint32_t); + { + uint32_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; + arg2 = *argp; } - arg2 = *argp2; } result = (DTMF *)new DTMF(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2647,21 +2298,14 @@ static int _wrap_delete_DTMF(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; - SWIG_check_num_args("DTMF",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF",1,"DTMF *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"delete_DTMF"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2676,26 +2320,22 @@ static swig_lua_method swig_DTMF_methods[] = { {0,0} }; static swig_lua_attribute swig_DTMF_attributes[] = { - { "digit", _wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, - { "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, + { "digit",_wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, + { "duration",_wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, {0,0,0} }; static swig_lua_class *swig_DTMF_bases[] = {0}; -static const char *swig_DTMF_base_names[] = {0}; -static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names }; +swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases }; static int _wrap_new_Stream__SWIG_0(lua_State* L) { int SWIG_arg = -1; Stream *result = 0 ; - SWIG_check_num_args("Stream",0,0) result = (Stream *)new Stream(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2707,20 +2347,13 @@ static int _wrap_new_Stream__SWIG_1(lua_State* L) { switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; Stream *result = 0 ; - SWIG_check_num_args("Stream",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))){ - SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(switch_stream_handle_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_stream_handle_t,0,1,"new_Stream"); result = (Stream *)new Stream(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2741,7 +2374,7 @@ static int _wrap_new_Stream(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { _v = 0; } else { _v = 1; @@ -2761,21 +2394,14 @@ static int _wrap_delete_Stream(lua_State* L) { int SWIG_arg = -1; Stream *arg1 = (Stream *) 0 ; - SWIG_check_num_args("Stream",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"Stream *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"delete_Stream"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2790,21 +2416,14 @@ static int _wrap_Stream_read(lua_State* L) { int temp2 ; arg2 = &temp2; - SWIG_check_num_args("read",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_read"); result = (char *)(arg1)->read(arg2); SWIG_arg=0; - lua_pushlstring(L,(const char*)result, (*arg2)); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2816,22 +2435,15 @@ static int _wrap_Stream_write(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("write",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("write",1,"Stream *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_write"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->write((char const *)arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2844,24 +2456,17 @@ static int _wrap_Stream_raw_write(lua_State* L) { char *arg2 = (char *) 0 ; int arg3 ; - SWIG_check_num_args("raw_write",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_raw_write"); + arg2 = (char*)lua_tostring(L, 2); arg3 = (int)lua_tonumber(L, 3); (arg1)->raw_write((char const *)arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2873,20 +2478,13 @@ static int _wrap_Stream_get_data(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *result = 0 ; - SWIG_check_num_args("get_data",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_data",1,"Stream *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_get_data"); result = (char *)(arg1)->get_data(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2908,35 +2506,23 @@ static swig_lua_attribute swig_Stream_attributes[] = { {0,0,0} }; static swig_lua_class *swig_Stream_bases[] = {0}; -static const char *swig_Stream_base_names[] = {0}; -static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names }; +swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases }; static int _wrap_Event_event_set(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; - SWIG_check_num_args("event",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("event",2,"switch_event_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_event_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("Event_event_set",2,SWIGTYPE_p_switch_event_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_set"); + arg2=(switch_event_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_event_t,0,2,"Event_event_set"); if (arg1) (arg1)->event = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2948,20 +2534,13 @@ static int _wrap_Event_event_get(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_event_t *result = 0 ; - SWIG_check_num_args("event",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_get"); result = (switch_event_t *) ((arg1)->event); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2973,20 +2552,15 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("serialized_string",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->serialized_string) delete [] arg1->serialized_string; if (arg2) { - arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->serialized_string, (const char *)arg2); + arg1->serialized_string = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->serialized_string,arg2); } else { arg1->serialized_string = 0; } @@ -2995,8 +2569,6 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3008,20 +2580,13 @@ static int _wrap_Event_serialized_string_get(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - SWIG_check_num_args("serialized_string",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_get"); result = (char *) ((arg1)->serialized_string); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3033,14 +2598,9 @@ static int _wrap_Event_mine_set(lua_State* L) { Event *arg1 = (Event *) 0 ; int arg2 ; - SWIG_check_num_args("mine",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_set"); arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->mine = arg2; @@ -3048,8 +2608,6 @@ static int _wrap_Event_mine_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3061,20 +2619,13 @@ static int _wrap_Event_mine_get(lua_State* L) { Event *arg1 = (Event *) 0 ; int result; - SWIG_check_num_args("mine",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_get"); result = (int) ((arg1)->mine); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3087,20 +2638,17 @@ static int _wrap_new_Event__SWIG_0(lua_State* L) { char *arg2 = (char *) NULL ; Event *result = 0 ; - SWIG_check_num_args("Event",1,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } result = (Event *)new Event((char const *)arg1,(char const *)arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3113,14 +2661,9 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { int arg2 = (int) 0 ; Event *result = 0 ; - SWIG_check_num_args("Event",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"switch_event_t *"); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))){ - SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(switch_event_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_event_t,0,1,"new_Event"); if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -3129,8 +2672,6 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3148,7 +2689,7 @@ static int _wrap_new_Event(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { _v = 0; } else { _v = 1; @@ -3193,21 +2734,14 @@ static int _wrap_delete_Event(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; - SWIG_check_num_args("Event",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"delete_Event"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3221,26 +2755,19 @@ static int _wrap_Event_chat_execute(lua_State* L) { char *arg3 = (char *) NULL ; int result; - SWIG_check_num_args("chat_execute",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_execute",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_execute"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3253,24 +2780,17 @@ static int _wrap_Event_chat_send(lua_State* L) { char *arg2 = (char *) NULL ; int result; - SWIG_check_num_args("chat_send",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_send",1,"Event *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_send"); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } result = (int)(arg1)->chat_send((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3283,24 +2803,17 @@ static int _wrap_Event_serialize(lua_State* L) { char *arg2 = (char *) NULL ; char *result = 0 ; - SWIG_check_num_args("serialize",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialize",1,"Event *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialize"); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } result = (char *)(arg1)->serialize((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3312,29 +2825,22 @@ static int _wrap_Event_setPriority(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; bool result; - switch_priority_t *argp2 ; - - SWIG_check_num_args("setPriority",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPriority",1,"Event *"); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event); - } + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_setPriority"); if(lua_gettop(L)>=2){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_priority_t,0))){ - SWIG_fail_ptr("Event_setPriority",2,SWIGTYPE_p_switch_priority_t); + { + switch_priority_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_priority_t,0)) SWIG_fail; + arg2 = *argp; } - arg2 = *argp2; } result = (bool)(arg1)->setPriority(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3347,22 +2853,15 @@ static int _wrap_Event_getHeader(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("getHeader",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getHeader",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getHeader"); + arg2 = (char*)lua_tostring(L, 2); result = (char *)(arg1)->getHeader((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3374,20 +2873,13 @@ static int _wrap_Event_getBody(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - SWIG_check_num_args("getBody",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getBody",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getBody"); result = (char *)(arg1)->getBody(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3399,20 +2891,13 @@ static int _wrap_Event_getType(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - SWIG_check_num_args("getType",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getType",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getType"); result = (char *)(arg1)->getType(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3425,22 +2910,15 @@ static int _wrap_Event_addBody(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - SWIG_check_num_args("addBody",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addBody",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addBody"); + arg2 = (char*)lua_tostring(L, 2); result = (bool)(arg1)->addBody((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3454,24 +2932,17 @@ static int _wrap_Event_addHeader(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - SWIG_check_num_args("addHeader",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addHeader",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addHeader"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3484,22 +2955,15 @@ static int _wrap_Event_delHeader(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - SWIG_check_num_args("delHeader",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delHeader",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_delHeader"); + arg2 = (char*)lua_tostring(L, 2); result = (bool)(arg1)->delHeader((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3511,20 +2975,13 @@ static int _wrap_Event_fire(lua_State* L) { Event *arg1 = (Event *) 0 ; bool result; - SWIG_check_num_args("fire",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("fire",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_fire"); result = (bool)(arg1)->fire(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3550,41 +3007,29 @@ static swig_lua_method swig_Event_methods[] = { {0,0} }; static swig_lua_attribute swig_Event_attributes[] = { - { "event", _wrap_Event_event_get, _wrap_Event_event_set}, - { "serialized_string", _wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, - { "mine", _wrap_Event_mine_get, _wrap_Event_mine_set}, + { "event",_wrap_Event_event_get, _wrap_Event_event_set}, + { "serialized_string",_wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, + { "mine",_wrap_Event_mine_get, _wrap_Event_mine_set}, {0,0,0} }; static swig_lua_class *swig_Event_bases[] = {0}; -static const char *swig_Event_base_names[] = {0}; -static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names }; +swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases }; static int _wrap_EventConsumer_events_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *arg2 = (switch_queue_t *) 0 ; - SWIG_check_num_args("events",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_queue_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("EventConsumer_events_set",2,SWIGTYPE_p_switch_queue_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_set"); + arg2=(switch_queue_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_queue_t,0,2,"EventConsumer_events_set"); if (arg1) (arg1)->events = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3596,20 +3041,13 @@ static int _wrap_EventConsumer_events_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *result = 0 ; - SWIG_check_num_args("events",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_get"); result = (switch_queue_t *) ((arg1)->events); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3620,30 +3058,21 @@ static int _wrap_EventConsumer_e_event_id_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t arg2 ; - switch_event_types_t *argp2 ; - SWIG_check_num_args("e_event_id",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_set"); + { + switch_event_types_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_event_types_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_event_types_t,0))){ - SWIG_fail_ptr("EventConsumer_e_event_id_set",2,SWIGTYPE_p_switch_event_types_t); - } - arg2 = *argp2; - if (arg1) (arg1)->e_event_id = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3655,23 +3084,17 @@ static int _wrap_EventConsumer_e_event_id_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t result; - SWIG_check_num_args("e_event_id",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_get"); result = ((arg1)->e_event_id); SWIG_arg=0; { - switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result); + switch_event_types_t * resultptr; + resultptr = new switch_event_types_t((switch_event_types_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3683,20 +3106,15 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("e_callback",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->e_callback) delete [] arg1->e_callback; if (arg2) { - arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_callback, (const char *)arg2); + arg1->e_callback = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_callback,arg2); } else { arg1->e_callback = 0; } @@ -3705,8 +3123,6 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3718,20 +3134,13 @@ static int _wrap_EventConsumer_e_callback_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - SWIG_check_num_args("e_callback",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_get"); result = (char *) ((arg1)->e_callback); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3743,20 +3152,15 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("e_subclass_name",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->e_subclass_name) delete [] arg1->e_subclass_name; if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_subclass_name, (const char *)arg2); + arg1->e_subclass_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_subclass_name,arg2); } else { arg1->e_subclass_name = 0; } @@ -3765,8 +3169,6 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3778,20 +3180,13 @@ static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - SWIG_check_num_args("e_subclass_name",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_get"); result = (char *) ((arg1)->e_subclass_name); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3803,20 +3198,15 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("e_cb_arg",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->e_cb_arg) delete [] arg1->e_cb_arg; if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_cb_arg, (const char *)arg2); + arg1->e_cb_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_cb_arg,arg2); } else { arg1->e_cb_arg = 0; } @@ -3825,8 +3215,6 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3838,20 +3226,13 @@ static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - SWIG_check_num_args("e_cb_arg",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_get"); result = (char *) ((arg1)->e_cb_arg); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3863,19 +3244,10 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **arg2 ; - SWIG_check_num_args("enodes",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_switch_event_node_t,0))){ - SWIG_fail_ptr("EventConsumer_enodes_set",2,SWIGTYPE_p_p_switch_event_node_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_set"); + arg2=(switch_event_node_t **)SWIG_MustGetPtr(L,2,SWIGTYPE_p_p_switch_event_node_t,0,2,"EventConsumer_enodes_set"); { size_t ii; switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes; @@ -3885,8 +3257,6 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3898,20 +3268,13 @@ static int _wrap_EventConsumer_enodes_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **result = 0 ; - SWIG_check_num_args("enodes",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_get"); result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3922,30 +3285,21 @@ static int _wrap_EventConsumer_node_index_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t arg2 ; - uint32_t *argp2 ; - SWIG_check_num_args("node_index",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_set"); + { + uint32_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ - SWIG_fail_ptr("EventConsumer_node_index_set",2,SWIGTYPE_p_uint32_t); - } - arg2 = *argp2; - if (arg1) (arg1)->node_index = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3957,23 +3311,17 @@ static int _wrap_EventConsumer_node_index_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t result; - SWIG_check_num_args("node_index",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_get"); result = ((arg1)->node_index); SWIG_arg=0; { - uint32_t * resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr; + resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3987,15 +3335,14 @@ static int _wrap_new_EventConsumer(lua_State* L) { int arg3 = (int) 5000 ; EventConsumer *result = 0 ; - SWIG_check_num_args("EventConsumer",0,3) - if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int"); + if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); if(lua_gettop(L)>=1){ - arg1 = (char *)lua_tostring(L, 1); + arg1 = (char*)lua_tostring(L, 1); } if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -4005,8 +3352,6 @@ static int _wrap_new_EventConsumer(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4017,21 +3362,14 @@ static int _wrap_delete_EventConsumer(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - SWIG_check_num_args("EventConsumer",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"delete_EventConsumer"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4045,26 +3383,19 @@ static int _wrap_EventConsumer_bind(lua_State* L) { char *arg3 = (char *) "" ; int result; - SWIG_check_num_args("bind",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bind",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_bind"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4078,15 +3409,10 @@ static int _wrap_EventConsumer_pop(lua_State* L) { int arg3 = (int) 0 ; Event *result = 0 ; - SWIG_check_num_args("pop",1,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *"); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_pop"); if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -4098,8 +3424,6 @@ static int _wrap_EventConsumer_pop(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4110,20 +3434,13 @@ static int _wrap_EventConsumer_cleanup(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - SWIG_check_num_args("cleanup",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_cleanup"); (arg1)->cleanup(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4141,38 +3458,30 @@ static swig_lua_method swig_EventConsumer_methods[] = { {0,0} }; static swig_lua_attribute swig_EventConsumer_attributes[] = { - { "events", _wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, - { "e_event_id", _wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, - { "e_callback", _wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, - { "e_subclass_name", _wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, - { "e_cb_arg", _wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, - { "enodes", _wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, - { "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, + { "events",_wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, + { "e_event_id",_wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, + { "e_callback",_wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, + { "e_subclass_name",_wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, + { "e_cb_arg",_wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, + { "enodes",_wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, + { "node_index",_wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, {0,0,0} }; static swig_lua_class *swig_EventConsumer_bases[] = {0}; -static const char *swig_EventConsumer_base_names[] = {0}; -static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names }; +swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases }; static int _wrap_delete_CoreSession(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("CoreSession",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"delete_CoreSession"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4184,27 +3493,16 @@ static int _wrap_CoreSession_session_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - SWIG_check_num_args("session",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("session",2,"switch_core_session_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_core_session_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("CoreSession_session_set",2,SWIGTYPE_p_switch_core_session_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_set"); + arg2=(switch_core_session_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_core_session_t,0,2,"CoreSession_session_set"); if (arg1) (arg1)->session = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4216,20 +3514,13 @@ static int _wrap_CoreSession_session_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *result = 0 ; - SWIG_check_num_args("session",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_get"); result = (switch_core_session_t *) ((arg1)->session); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4241,27 +3532,16 @@ static int _wrap_CoreSession_channel_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *arg2 = (switch_channel_t *) 0 ; - SWIG_check_num_args("channel",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("channel",2,"switch_channel_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_channel_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("CoreSession_channel_set",2,SWIGTYPE_p_switch_channel_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_set"); + arg2=(switch_channel_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_channel_t,0,2,"CoreSession_channel_set"); if (arg1) (arg1)->channel = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4273,20 +3553,13 @@ static int _wrap_CoreSession_channel_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *result = 0 ; - SWIG_check_num_args("channel",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_get"); result = (switch_channel_t *) ((arg1)->channel); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4298,14 +3571,9 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int arg2 ; - SWIG_check_num_args("flags",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_set"); arg2 = (unsigned int)lua_tonumber(L, 2); if (arg1) (arg1)->flags = arg2; @@ -4313,8 +3581,6 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4326,20 +3592,13 @@ static int _wrap_CoreSession_flags_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int result; - SWIG_check_num_args("flags",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_get"); result = (unsigned int) ((arg1)->flags); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4351,14 +3610,9 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; - SWIG_check_num_args("allocated",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_set"); arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->allocated = arg2; @@ -4366,8 +3620,6 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4379,20 +3631,13 @@ static int _wrap_CoreSession_allocated_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("allocated",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_get"); result = (int) ((arg1)->allocated); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4404,27 +3649,16 @@ static int _wrap_CoreSession_cb_state_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *arg2 = (input_callback_state *) 0 ; - SWIG_check_num_args("cb_state",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("cb_state",2,"input_callback_state *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("CoreSession_cb_state_set",2,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_set"); + arg2=(input_callback_state *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_input_callback_state,0,2,"CoreSession_cb_state_set"); if (arg1) (arg1)->cb_state = *arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4436,20 +3670,13 @@ static int _wrap_CoreSession_cb_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *result = 0 ; - SWIG_check_num_args("cb_state",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_get"); result = (input_callback_state *)& ((arg1)->cb_state); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4460,30 +3687,21 @@ static int _wrap_CoreSession_hook_state_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t arg2 ; - switch_channel_state_t *argp2 ; - SWIG_check_num_args("hook_state",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_set"); + { + switch_channel_state_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_channel_state_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_channel_state_t,0))){ - SWIG_fail_ptr("CoreSession_hook_state_set",2,SWIGTYPE_p_switch_channel_state_t); - } - arg2 = *argp2; - if (arg1) (arg1)->hook_state = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4495,23 +3713,17 @@ static int _wrap_CoreSession_hook_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t result; - SWIG_check_num_args("hook_state",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_get"); result = ((arg1)->hook_state); SWIG_arg=0; { - switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result); + switch_channel_state_t * resultptr; + resultptr = new switch_channel_state_t((switch_channel_state_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4522,30 +3734,21 @@ static int _wrap_CoreSession_cause_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t arg2 ; - switch_call_cause_t *argp2 ; - SWIG_check_num_args("cause",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_set"); + { + switch_call_cause_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_call_cause_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_call_cause_t,0))){ - SWIG_fail_ptr("CoreSession_cause_set",2,SWIGTYPE_p_switch_call_cause_t); - } - arg2 = *argp2; - if (arg1) (arg1)->cause = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4557,23 +3760,17 @@ static int _wrap_CoreSession_cause_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t result; - SWIG_check_num_args("cause",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_get"); result = ((arg1)->cause); SWIG_arg=0; { - switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result); + switch_call_cause_t * resultptr; + resultptr = new switch_call_cause_t((switch_call_cause_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4585,20 +3782,15 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("uuid",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->uuid) delete [] arg1->uuid; if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); + arg1->uuid = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->uuid,arg2); } else { arg1->uuid = 0; } @@ -4607,8 +3799,6 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4620,20 +3810,13 @@ static int _wrap_CoreSession_uuid_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("uuid",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_get"); result = (char *) ((arg1)->uuid); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4645,20 +3828,15 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("tts_name",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->tts_name) delete [] arg1->tts_name; if (arg2) { - arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->tts_name, (const char *)arg2); + arg1->tts_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->tts_name,arg2); } else { arg1->tts_name = 0; } @@ -4667,8 +3845,6 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4680,20 +3856,13 @@ static int _wrap_CoreSession_tts_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("tts_name",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_get"); result = (char *) ((arg1)->tts_name); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4705,20 +3874,15 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("voice_name",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->voice_name) delete [] arg1->voice_name; if (arg2) { - arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->voice_name, (const char *)arg2); + arg1->voice_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->voice_name,arg2); } else { arg1->voice_name = 0; } @@ -4727,8 +3891,6 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4740,20 +3902,13 @@ static int _wrap_CoreSession_voice_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("voice_name",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_get"); result = (char *) ((arg1)->voice_name); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4768,26 +3923,19 @@ static int _wrap_CoreSession_insertFile(lua_State* L) { int arg4 ; int result; - SWIG_check_num_args("insertFile",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("insertFile",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_insertFile"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4799,20 +3947,13 @@ static int _wrap_CoreSession_answer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("answer",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answer",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answer"); result = (int)(arg1)->answer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4824,20 +3965,13 @@ static int _wrap_CoreSession_preAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("preAnswer",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("preAnswer",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_preAnswer"); result = (int)(arg1)->preAnswer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4849,24 +3983,17 @@ static int _wrap_CoreSession_hangup(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) "normal_clearing" ; - SWIG_check_num_args("hangup",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup",1,"CoreSession *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangup"); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } (arg1)->hangup((char const *)arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4877,20 +4004,13 @@ static int _wrap_CoreSession_hangupState(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("hangupState",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupState",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupState"); (arg1)->hangupState(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4903,24 +4023,17 @@ static int _wrap_CoreSession_setVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setVariable",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setVariable",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setVariable"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->setVariable(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4933,24 +4046,17 @@ static int _wrap_CoreSession_setPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *arg3 = (void *) 0 ; - SWIG_check_num_args("setPrivate",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPrivate",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *"); - if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("setPrivate",3,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setPrivate"); + arg2 = (char*)lua_tostring(L, 2); + arg3=((swig_lua_userdata*)(lua_touserdata(L,3)))->ptr; (arg1)->setPrivate(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4963,22 +4069,15 @@ static int _wrap_CoreSession_getPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *result = 0 ; - SWIG_check_num_args("getPrivate",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getPrivate",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getPrivate"); + arg2 = (char*)lua_tostring(L, 2); result = (void *)(arg1)->getPrivate(arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4991,22 +4090,15 @@ static int _wrap_CoreSession_getVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("getVariable",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getVariable",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getVariable"); + arg2 = (char*)lua_tostring(L, 2); result = (char *)(arg1)->getVariable(arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5019,25 +4111,19 @@ static int _wrap_CoreSession_process_callback_result(lua_State* L) { char *arg2 = (char *) 0 ; switch_status_t result; - SWIG_check_num_args("process_callback_result",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("process_callback_result",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_process_callback_result"); + arg2 = (char*)lua_tostring(L, 2); result = (arg1)->process_callback_result(arg2); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5053,32 +4139,25 @@ static int _wrap_CoreSession_say(lua_State* L) { char *arg5 = (char *) 0 ; char *arg6 = (char *) NULL ; - SWIG_check_num_args("say",5,6) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("say",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *"); - if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *"); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); - arg5 = (char *)lua_tostring(L, 5); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_say"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); + arg5 = (char*)lua_tostring(L, 5); if(lua_gettop(L)>=6){ - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5092,30 +4171,23 @@ static int _wrap_CoreSession_sayPhrase(lua_State* L) { char *arg3 = (char *) "" ; char *arg4 = (char *) NULL ; - SWIG_check_num_args("sayPhrase",2,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sayPhrase",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *"); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sayPhrase"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5127,20 +4199,13 @@ static int _wrap_CoreSession_hangupCause(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("hangupCause",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupCause",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupCause"); result = (char *)(arg1)->hangupCause(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5152,20 +4217,13 @@ static int _wrap_CoreSession_getState(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("getState",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getState",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getState"); result = (char *)(arg1)->getState(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5181,18 +4239,13 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { int arg5 = (int) 0 ; int result; - SWIG_check_num_args("recordFile",2,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("recordFile",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int"); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int"); - if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); + if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg(5); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_recordFile"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -5207,8 +4260,6 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5224,38 +4275,25 @@ static int _wrap_CoreSession_originate(lua_State* L) { switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ; int result; - SWIG_check_num_args("originate",3,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); - if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_originate",2,SWIGTYPE_p_CoreSession); - } - - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); + if(lua_gettop(L)>=5 && !lua_isuserdata(L,5)) SWIG_fail_arg(5); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_originate"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_originate"); + arg3 = (char*)lua_tostring(L, 3); if(lua_gettop(L)>=4){ arg4 = (int)lua_tonumber(L, 4); } if(lua_gettop(L)>=5){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_switch_state_handler_table_t,0))){ - SWIG_fail_ptr("CoreSession_originate",5,SWIGTYPE_p_switch_state_handler_table_t); - } + arg5=(switch_state_handler_table_t *)SWIG_MustGetPtr(L,5,SWIGTYPE_p_switch_state_handler_table_t,0,5,"CoreSession_originate"); } result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5266,20 +4304,13 @@ static int _wrap_CoreSession_destroy(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("destroy",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_destroy"); (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5292,24 +4323,17 @@ static int _wrap_CoreSession_setDTMFCallback(lua_State* L) { void *arg2 = (void *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setDTMFCallback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setDTMFCallback",2,"void *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback"); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setDTMFCallback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + arg3 = (char*)lua_tostring(L, 3); (arg1)->setDTMFCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5322,22 +4346,15 @@ static int _wrap_CoreSession_speak(lua_State* L) { char *arg2 = (char *) 0 ; int result; - SWIG_check_num_args("speak",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("speak",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_speak"); + arg2 = (char*)lua_tostring(L, 2); result = (int)(arg1)->speak(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5350,24 +4367,17 @@ static int _wrap_CoreSession_set_tts_parms(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("set_tts_parms",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_parms",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_parms"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->set_tts_parms(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5380,24 +4390,17 @@ static int _wrap_CoreSession_set_tts_params(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("set_tts_params",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_params",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_params"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->set_tts_params(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5410,22 +4413,15 @@ static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) { int arg2 ; int result; - SWIG_check_num_args("collectDigits",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); arg2 = (int)lua_tonumber(L, 2); result = (int)(arg1)->collectDigits(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5439,15 +4435,10 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { int arg3 ; int result; - SWIG_check_num_args("collectDigits",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); result = (int)(arg1)->collectDigits(arg2,arg3); @@ -5455,8 +4446,6 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5474,7 +4463,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5493,7 +4482,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5527,26 +4516,19 @@ static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) { int arg4 ; char *result = 0 ; - SWIG_check_num_args("getDigits",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); - if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); arg2 = (int)lua_tonumber(L, 2); - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5562,28 +4544,21 @@ static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) { int arg5 ; char *result = 0 ; - SWIG_check_num_args("getDigits",5,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); - if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); arg2 = (int)lua_tonumber(L, 2); - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5601,7 +4576,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5630,7 +4605,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5674,30 +4649,23 @@ static int _wrap_CoreSession_transfer(lua_State* L) { char *arg4 = (char *) NULL ; int result; - SWIG_check_num_args("transfer",2,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("transfer",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *"); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_transfer"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); } result = (int)(arg1)->transfer(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5715,34 +4683,27 @@ static int _wrap_CoreSession_read(lua_State* L) { int arg7 = (int) 0 ; char *result = 0 ; - SWIG_check_num_args("read",6,7) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int"); - if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int"); - if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *"); - if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg(7); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_read"); arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); if(lua_gettop(L)>=7){ arg7 = (int)lua_tonumber(L, 7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5765,48 +4726,41 @@ static int _wrap_CoreSession_playAndGetDigits(lua_State* L) { char *arg12 = (char *) NULL ; char *result = 0 ; - SWIG_check_num_args("playAndGetDigits",9,12) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int"); - if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *"); - if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *"); - if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *"); - if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *"); - if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *"); - if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int"); - if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + if(!lua_isstring(L,7)) SWIG_fail_arg(7); + if(!lua_isstring(L,8)) SWIG_fail_arg(8); + if(!lua_isstring(L,9)) SWIG_fail_arg(9); + if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg(10); + if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg(11); + if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg(12); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_playAndGetDigits"); arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char *)lua_tostring(L, 6); - arg7 = (char *)lua_tostring(L, 7); - arg8 = (char *)lua_tostring(L, 8); - arg9 = (char *)lua_tostring(L, 9); + arg6 = (char*)lua_tostring(L, 6); + arg7 = (char*)lua_tostring(L, 7); + arg8 = (char*)lua_tostring(L, 8); + arg9 = (char*)lua_tostring(L, 9); if(lua_gettop(L)>=10){ - arg10 = (char *)lua_tostring(L, 10); + arg10 = (char*)lua_tostring(L, 10); } if(lua_gettop(L)>=11){ arg11 = (int)lua_tonumber(L, 11); } if(lua_gettop(L)>=12){ - arg12 = (char *)lua_tostring(L, 12); + arg12 = (char*)lua_tostring(L, 12); } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5820,16 +4774,11 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { int arg3 = (int) 0 ; int result; - SWIG_check_num_args("streamFile",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("streamFile",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_streamFile"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -5838,8 +4787,6 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5853,15 +4800,10 @@ static int _wrap_CoreSession_sleep(lua_State* L) { int arg3 = (int) 0 ; int result; - SWIG_check_num_args("sleep",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sleep"); arg2 = (int)lua_tonumber(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -5871,8 +4813,6 @@ static int _wrap_CoreSession_sleep(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5884,20 +4824,13 @@ static int _wrap_CoreSession_flushEvents(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("flushEvents",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushEvents",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushEvents"); result = (int)(arg1)->flushEvents(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5909,20 +4842,13 @@ static int _wrap_CoreSession_flushDigits(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("flushDigits",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushDigits",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushDigits"); result = (int)(arg1)->flushDigits(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5935,22 +4861,15 @@ static int _wrap_CoreSession_setAutoHangup(lua_State* L) { bool arg2 ; int result; - SWIG_check_num_args("setAutoHangup",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setAutoHangup",1,"CoreSession *"); - if(!lua_isboolean(L,2)) SWIG_fail_arg("setAutoHangup",2,"bool"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (lua_toboolean(L, 2)!=0); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isboolean(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setAutoHangup"); + arg2 = (bool)lua_toboolean(L, 2); result = (int)(arg1)->setAutoHangup(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5962,22 +4881,15 @@ static int _wrap_CoreSession_setHangupHook(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("setHangupHook",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setHangupHook",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setHangupHook"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5989,20 +4901,13 @@ static int _wrap_CoreSession_ready(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("ready",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_ready"); result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6014,20 +4919,13 @@ static int _wrap_CoreSession_bridged(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("bridged",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_bridged"); result = (bool)(arg1)->bridged(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6039,20 +4937,13 @@ static int _wrap_CoreSession_answered(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("answered",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answered",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answered"); result = (bool)(arg1)->answered(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6064,20 +4955,13 @@ static int _wrap_CoreSession_mediaReady(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("mediaReady",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mediaReady",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_mediaReady"); result = (bool)(arg1)->mediaReady(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6089,26 +4973,15 @@ static int _wrap_CoreSession_waitForAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; - SWIG_check_num_args("waitForAnswer",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("waitForAnswer",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("waitForAnswer",2,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_waitForAnswer",2,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_waitForAnswer"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_waitForAnswer"); (arg1)->waitForAnswer(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6121,26 +4994,19 @@ static int _wrap_CoreSession_execute(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; - SWIG_check_num_args("execute",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_execute"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } (arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6152,26 +5018,15 @@ static int _wrap_CoreSession_sendEvent(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - SWIG_check_num_args("sendEvent",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sendEvent",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("sendEvent",2,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("CoreSession_sendEvent",2,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sendEvent"); + arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_sendEvent"); (arg1)->sendEvent(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6183,26 +5038,15 @@ static int _wrap_CoreSession_setEventData(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - SWIG_check_num_args("setEventData",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setEventData",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setEventData",2,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("CoreSession_setEventData",2,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setEventData"); + arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_setEventData"); (arg1)->setEventData(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6214,20 +5058,13 @@ static int _wrap_CoreSession_getXMLCDR(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("getXMLCDR",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getXMLCDR",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getXMLCDR"); result = (char *)(arg1)->getXMLCDR(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6239,20 +5076,13 @@ static int _wrap_CoreSession_begin_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("begin_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_begin_allow_threads"); result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6264,20 +5094,13 @@ static int _wrap_CoreSession_end_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("end_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_end_allow_threads"); result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6289,20 +5112,13 @@ static int _wrap_CoreSession_get_uuid(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("get_uuid",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_uuid",1,"CoreSession const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_uuid"); result = (char *)((CoreSession const *)arg1)->get_uuid(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6314,13 +5130,8 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_input_args_t *result = 0 ; - SWIG_check_num_args("get_cb_args",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_cb_args",1,"CoreSession const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_cb_args"); { switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args(); result = (switch_input_args_t *) &_result_ref; @@ -6329,8 +5140,6 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6341,20 +5150,13 @@ static int _wrap_CoreSession_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("check_hangup_hook",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_check_hangup_hook"); (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6367,34 +5169,26 @@ static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; - switch_input_type_t *argp3 ; - SWIG_check_num_args("run_dtmf_callback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); - if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_run_dtmf_callback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + { + switch_input_type_t * argp; + if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; + arg3 = *argp; } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_run_dtmf_callback"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ - SWIG_fail_ptr("CoreSession_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); - } - arg3 = *argp3; - result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6407,24 +5201,17 @@ static int _wrap_CoreSession_consoleLog(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("consoleLog",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->consoleLog(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6440,30 +5227,23 @@ static int _wrap_CoreSession_consoleLog2(lua_State* L) { int arg5 ; char *arg6 = (char *) 0 ; - SWIG_check_num_args("consoleLog2",6,6) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog2",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int"); - if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog2"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6527,39 +5307,35 @@ static swig_lua_method swig_CoreSession_methods[] = { {0,0} }; static swig_lua_attribute swig_CoreSession_attributes[] = { - { "session", _wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, - { "channel", _wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, - { "flags", _wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, - { "allocated", _wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, - { "cb_state", _wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, - { "hook_state", _wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, - { "cause", _wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, - { "uuid", _wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, - { "tts_name", _wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, - { "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, + { "session",_wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, + { "channel",_wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, + { "flags",_wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, + { "allocated",_wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, + { "cb_state",_wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, + { "hook_state",_wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, + { "cause",_wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, + { "uuid",_wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, + { "tts_name",_wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, + { "voice_name",_wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, {0,0,0} }; static swig_lua_class *swig_CoreSession_bases[] = {0}; -static const char *swig_CoreSession_base_names[] = {0}; -static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names }; +swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases }; static int _wrap_console_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("console_log",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); console_log(arg1,arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6574,24 +5350,21 @@ static int _wrap_console_log2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - SWIG_check_num_args("console_log2",5,5) - if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int"); - if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char *)lua_tostring(L, 5); + arg5 = (char*)lua_tostring(L, 5); console_log2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6602,16 +5375,13 @@ static int _wrap_console_clean_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - SWIG_check_num_args("console_clean_log",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); console_clean_log(arg1); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6622,16 +5392,13 @@ static int _wrap_msleep(lua_State* L) { int SWIG_arg = -1; unsigned int arg1 ; - SWIG_check_num_args("switch_msleep",1,1) - if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int"); + if(!lua_isnumber(L,1)) SWIG_fail_arg(1); arg1 = (unsigned int)lua_tonumber(L, 1); switch_msleep(arg1); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6643,26 +5410,15 @@ static int _wrap_bridge(lua_State* L) { CoreSession *arg1 = 0 ; CoreSession *arg2 = 0 ; - SWIG_check_num_args("bridge",2,2) - if(!lua_isuserdata(L,1)) SWIG_fail_arg("bridge",1,"CoreSession &"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("bridge",2,"CoreSession &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("bridge",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("bridge",2,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"bridge"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"bridge"); bridge(*arg1,*arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6674,23 +5430,17 @@ static int _wrap_hanguphook(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_status_t result; - SWIG_check_num_args("hanguphook",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hanguphook",1,"switch_core_session_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ - SWIG_fail_ptr("hanguphook",1,SWIGTYPE_p_switch_core_session_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"hanguphook"); result = hanguphook(arg1); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6705,38 +5455,30 @@ static int _wrap_dtmf_callback(lua_State* L) { void *arg4 = (void *) 0 ; unsigned int arg5 ; switch_status_t result; - switch_input_type_t *argp3 ; - SWIG_check_num_args("dtmf_callback",5,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("dtmf_callback",2,"void *"); - if(!lua_isuserdata(L,3)) SWIG_fail_arg("dtmf_callback",3,"switch_input_type_t"); - if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("dtmf_callback",4,"void *"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("dtmf_callback",5,"unsigned int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ - SWIG_fail_ptr("dtmf_callback",1,SWIGTYPE_p_switch_core_session_t); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + if(!lua_isuserdata(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"dtmf_callback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + { + switch_input_type_t * argp; + if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; + arg3 = *argp; } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"dtmf_callback"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ - SWIG_fail_ptr("dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); - } - arg3 = *argp3; - - arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback"); + arg4=((swig_lua_userdata*)(lua_touserdata(L,4)))->ptr; arg5 = (unsigned int)lua_tonumber(L, 5); result = dtmf_callback(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6747,14 +5489,11 @@ static int _wrap_new_Session__SWIG_0(lua_State* L) { int SWIG_arg = -1; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",0,0) result = (LUA::Session *)new LUA::Session(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6767,22 +5506,15 @@ static int _wrap_new_Session__SWIG_1(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *"); - arg1 = (char *)lua_tostring(L, 1); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("new_Session",2,SWIGTYPE_p_CoreSession); - } - + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"new_Session"); result = (LUA::Session *)new LUA::Session(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6794,16 +5526,13 @@ static int _wrap_new_Session__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; - SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); + SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6815,20 +5544,13 @@ static int _wrap_new_Session__SWIG_3(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ - SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"new_Session"); result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6849,7 +5571,7 @@ static int _wrap_new_Session(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { _v = 0; } else { _v = 1; @@ -6876,7 +5598,7 @@ static int _wrap_new_Session(lua_State* L) { if (_v) { { void *ptr; - if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -6897,21 +5619,14 @@ static int _wrap_delete_Session(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("LUA::~Session",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"delete_Session"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6923,22 +5638,15 @@ static int _wrap_Session_destroy__SWIG_0(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("destroy",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->destroy((char const *)arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6949,20 +5657,13 @@ static int _wrap_Session_destroy__SWIG_1(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("destroy",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6980,7 +5681,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -6994,7 +5695,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7020,20 +5721,13 @@ static int _wrap_Session_begin_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - SWIG_check_num_args("begin_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_begin_allow_threads"); result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7045,20 +5739,13 @@ static int _wrap_Session_end_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - SWIG_check_num_args("end_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_end_allow_threads"); result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7069,20 +5756,13 @@ static int _wrap_Session_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("check_hangup_hook",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_check_hangup_hook"); (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7095,34 +5775,26 @@ static int _wrap_Session_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; - switch_input_type_t *argp3 ; - SWIG_check_num_args("run_dtmf_callback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); - if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_run_dtmf_callback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + { + switch_input_type_t * argp; + if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; + arg3 = *argp; } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"Session_run_dtmf_callback"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ - SWIG_fail_ptr("Session_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); - } - arg3 = *argp3; - result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7133,20 +5805,13 @@ static int _wrap_Session_unsetInputCallback(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("unsetInputCallback",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_unsetInputCallback"); (arg1)->unsetInputCallback(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7159,24 +5824,17 @@ static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setInputCallback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->setInputCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7188,22 +5846,15 @@ static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("setInputCallback",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->setInputCallback(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7221,7 +5872,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7240,7 +5891,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7272,24 +5923,17 @@ static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setHangupHook",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->setHangupHook(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7301,22 +5945,15 @@ static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("setHangupHook",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7334,7 +5971,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7353,7 +5990,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7384,20 +6021,13 @@ static int _wrap_Session_ready(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - SWIG_check_num_args("ready",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_ready"); result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7412,30 +6042,19 @@ static int _wrap_Session_originate(lua_State* L) { int arg4 ; int result; - SWIG_check_num_args("originate",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("Session_originate",2,SWIGTYPE_p_CoreSession); - } - - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_originate"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"Session_originate"); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->originate(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7447,20 +6066,15 @@ static int _wrap_Session_cb_function_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("cb_function",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->cb_function) delete [] arg1->cb_function; if (arg2) { - arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->cb_function, (const char *)arg2); + arg1->cb_function = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->cb_function,arg2); } else { arg1->cb_function = 0; } @@ -7469,8 +6083,6 @@ static int _wrap_Session_cb_function_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7482,20 +6094,13 @@ static int _wrap_Session_cb_function_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("cb_function",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_get"); result = (char *) ((arg1)->cb_function); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7507,20 +6112,15 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("cb_arg",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->cb_arg) delete [] arg1->cb_arg; if (arg2) { - arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->cb_arg, (const char *)arg2); + arg1->cb_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->cb_arg,arg2); } else { arg1->cb_arg = 0; } @@ -7529,8 +6129,6 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7542,20 +6140,13 @@ static int _wrap_Session_cb_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("cb_arg",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_get"); result = (char *) ((arg1)->cb_arg); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7567,20 +6158,15 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("hangup_func_str",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->hangup_func_str) delete [] arg1->hangup_func_str; if (arg2) { - arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->hangup_func_str, (const char *)arg2); + arg1->hangup_func_str = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->hangup_func_str,arg2); } else { arg1->hangup_func_str = 0; } @@ -7589,8 +6175,6 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7602,20 +6186,13 @@ static int _wrap_Session_hangup_func_str_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("hangup_func_str",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_get"); result = (char *) ((arg1)->hangup_func_str); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7627,20 +6204,15 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("hangup_func_arg",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg; if (arg2) { - arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->hangup_func_arg, (const char *)arg2); + arg1->hangup_func_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->hangup_func_arg,arg2); } else { arg1->hangup_func_arg = 0; } @@ -7649,8 +6221,6 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7662,20 +6232,13 @@ static int _wrap_Session_hangup_func_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("hangup_func_arg",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_get"); result = (char *) ((arg1)->hangup_func_arg); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7687,21 +6250,15 @@ static int _wrap_Session_setLUA(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; lua_State *arg2 = (lua_State *) 0 ; - arg2 = L; - SWIG_check_num_args("setLUA",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setLUA",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setLUA"); + arg2=(lua_State *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_lua_State,0,2,"Session_setLUA"); (arg1)->setLUA(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7727,15 +6284,14 @@ static swig_lua_method swig_LUA_Session_methods[] = { {0,0} }; static swig_lua_attribute swig_LUA_Session_attributes[] = { - { "cb_function", _wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, - { "cb_arg", _wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, - { "hangup_func_str", _wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, - { "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, + { "cb_function",_wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, + { "cb_arg",_wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, + { "hangup_func_str",_wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, + { "hangup_func_arg",_wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, {0,0,0} }; -static swig_lua_class *swig_LUA_Session_bases[] = {0,0}; -static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0}; -static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names }; +static swig_lua_class *swig_LUA_Session_bases[] = {&_wrap_class_CoreSession,0}; +swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases }; static int _wrap_new_Dbh__SWIG_0(lua_State* L) { int SWIG_arg = -1; @@ -7744,20 +6300,17 @@ static int _wrap_new_Dbh__SWIG_0(lua_State* L) { char *arg3 = (char *) 0 ; LUA::Dbh *result = 0 ; - SWIG_check_num_args("LUA::Dbh",3,3) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7770,18 +6323,15 @@ static int _wrap_new_Dbh__SWIG_1(lua_State* L) { char *arg2 = (char *) 0 ; LUA::Dbh *result = 0 ; - SWIG_check_num_args("LUA::Dbh",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7793,16 +6343,13 @@ static int _wrap_new_Dbh__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Dbh *result = 0 ; - SWIG_check_num_args("LUA::Dbh",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); result = (LUA::Dbh *)new LUA::Dbh(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7868,21 +6415,14 @@ static int _wrap_delete_Dbh(lua_State* L) { int SWIG_arg = -1; LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; - SWIG_check_num_args("LUA::~Dbh",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"delete_Dbh"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7894,20 +6434,13 @@ static int _wrap_Dbh_release(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - SWIG_check_num_args("release",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("release",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_release"); result = (bool)(arg1)->release(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7919,20 +6452,13 @@ static int _wrap_Dbh_connected(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - SWIG_check_num_args("connected",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("connected",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_connected"); result = (bool)(arg1)->connected(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7947,26 +6473,19 @@ static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) { char *arg4 = (char *) 0 ; bool result; - SWIG_check_num_args("test_reactive",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); result = (bool)(arg1)->test_reactive(arg2,arg3,arg4); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7980,24 +6499,17 @@ static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - SWIG_check_num_args("test_reactive",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); result = (bool)(arg1)->test_reactive(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8010,22 +6522,15 @@ static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - SWIG_check_num_args("test_reactive",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); + arg2 = (char*)lua_tostring(L, 2); result = (bool)(arg1)->test_reactive(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8043,7 +6548,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -8062,7 +6567,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -8086,7 +6591,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -8130,16 +6635,11 @@ static int _wrap_Dbh_query(lua_State* L) { }; arg3 = default_swiglua_fn; } - SWIG_check_num_args("query",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("query",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("query",3,"SWIGLUA_FN"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_query"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ { (&arg3)->L = L; @@ -8148,11 +6648,9 @@ static int _wrap_Dbh_query(lua_State* L) { } result = (bool)(arg1)->query(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8164,20 +6662,13 @@ static int _wrap_Dbh_affected_rows(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; int result; - SWIG_check_num_args("affected_rows",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_affected_rows"); result = (int)(arg1)->affected_rows(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8190,22 +6681,15 @@ static int _wrap_Dbh_load_extension(lua_State* L) { char *arg2 = (char *) 0 ; int result; - SWIG_check_num_args("load_extension",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("load_extension",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_load_extension"); + arg2 = (char*)lua_tostring(L, 2); result = (int)(arg1)->load_extension((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8229,8 +6713,7 @@ static swig_lua_attribute swig_LUA_Dbh_attributes[] = { {0,0,0} }; static swig_lua_class *swig_LUA_Dbh_bases[] = {0}; -static const char *swig_LUA_Dbh_base_names[] = {0}; -static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names }; +swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases }; #ifdef __cplusplus } @@ -8244,6 +6727,145 @@ static const struct luaL_Reg swig_commands[] = { { "consoleCleanLog", _wrap_consoleCleanLog}, { "running", _wrap_running}, { "email", _wrap_email}, + { "new_IVRMenu", _wrap_new_IVRMenu}, + { "delete_IVRMenu", _wrap_delete_IVRMenu}, + { "IVRMenu_bindAction", _wrap_IVRMenu_bindAction}, + { "IVRMenu_execute", _wrap_IVRMenu_execute}, + { "new_API", _wrap_new_API}, + { "delete_API", _wrap_delete_API}, + { "API_execute", _wrap_API_execute}, + { "API_executeString", _wrap_API_executeString}, + { "API_getTime", _wrap_API_getTime}, + { "input_callback_state_t_function_set", _wrap_input_callback_state_t_function_set}, + { "input_callback_state_t_function_get", _wrap_input_callback_state_t_function_get}, + { "input_callback_state_t_threadState_set", _wrap_input_callback_state_t_threadState_set}, + { "input_callback_state_t_threadState_get", _wrap_input_callback_state_t_threadState_get}, + { "input_callback_state_t_extra_set", _wrap_input_callback_state_t_extra_set}, + { "input_callback_state_t_extra_get", _wrap_input_callback_state_t_extra_get}, + { "input_callback_state_t_funcargs_set", _wrap_input_callback_state_t_funcargs_set}, + { "input_callback_state_t_funcargs_get", _wrap_input_callback_state_t_funcargs_get}, + { "new_input_callback_state_t", _wrap_new_input_callback_state_t}, + { "delete_input_callback_state_t", _wrap_delete_input_callback_state_t}, + { "DTMF_digit_set", _wrap_DTMF_digit_set}, + { "DTMF_digit_get", _wrap_DTMF_digit_get}, + { "DTMF_duration_set", _wrap_DTMF_duration_set}, + { "DTMF_duration_get", _wrap_DTMF_duration_get}, + { "new_DTMF", _wrap_new_DTMF}, + { "delete_DTMF", _wrap_delete_DTMF}, + { "new_Stream",_wrap_new_Stream}, + { "delete_Stream", _wrap_delete_Stream}, + { "Stream_read", _wrap_Stream_read}, + { "Stream_write", _wrap_Stream_write}, + { "Stream_raw_write", _wrap_Stream_raw_write}, + { "Stream_get_data", _wrap_Stream_get_data}, + { "Event_event_set", _wrap_Event_event_set}, + { "Event_event_get", _wrap_Event_event_get}, + { "Event_serialized_string_set", _wrap_Event_serialized_string_set}, + { "Event_serialized_string_get", _wrap_Event_serialized_string_get}, + { "Event_mine_set", _wrap_Event_mine_set}, + { "Event_mine_get", _wrap_Event_mine_get}, + { "new_Event",_wrap_new_Event}, + { "delete_Event", _wrap_delete_Event}, + { "Event_chat_execute", _wrap_Event_chat_execute}, + { "Event_chat_send", _wrap_Event_chat_send}, + { "Event_serialize", _wrap_Event_serialize}, + { "Event_setPriority", _wrap_Event_setPriority}, + { "Event_getHeader", _wrap_Event_getHeader}, + { "Event_getBody", _wrap_Event_getBody}, + { "Event_getType", _wrap_Event_getType}, + { "Event_addBody", _wrap_Event_addBody}, + { "Event_addHeader", _wrap_Event_addHeader}, + { "Event_delHeader", _wrap_Event_delHeader}, + { "Event_fire", _wrap_Event_fire}, + { "EventConsumer_events_set", _wrap_EventConsumer_events_set}, + { "EventConsumer_events_get", _wrap_EventConsumer_events_get}, + { "EventConsumer_e_event_id_set", _wrap_EventConsumer_e_event_id_set}, + { "EventConsumer_e_event_id_get", _wrap_EventConsumer_e_event_id_get}, + { "EventConsumer_e_callback_set", _wrap_EventConsumer_e_callback_set}, + { "EventConsumer_e_callback_get", _wrap_EventConsumer_e_callback_get}, + { "EventConsumer_e_subclass_name_set", _wrap_EventConsumer_e_subclass_name_set}, + { "EventConsumer_e_subclass_name_get", _wrap_EventConsumer_e_subclass_name_get}, + { "EventConsumer_e_cb_arg_set", _wrap_EventConsumer_e_cb_arg_set}, + { "EventConsumer_e_cb_arg_get", _wrap_EventConsumer_e_cb_arg_get}, + { "EventConsumer_enodes_set", _wrap_EventConsumer_enodes_set}, + { "EventConsumer_enodes_get", _wrap_EventConsumer_enodes_get}, + { "EventConsumer_node_index_set", _wrap_EventConsumer_node_index_set}, + { "EventConsumer_node_index_get", _wrap_EventConsumer_node_index_get}, + { "new_EventConsumer", _wrap_new_EventConsumer}, + { "delete_EventConsumer", _wrap_delete_EventConsumer}, + { "EventConsumer_bind", _wrap_EventConsumer_bind}, + { "EventConsumer_pop", _wrap_EventConsumer_pop}, + { "EventConsumer_cleanup", _wrap_EventConsumer_cleanup}, + { "delete_CoreSession", _wrap_delete_CoreSession}, + { "CoreSession_session_set", _wrap_CoreSession_session_set}, + { "CoreSession_session_get", _wrap_CoreSession_session_get}, + { "CoreSession_channel_set", _wrap_CoreSession_channel_set}, + { "CoreSession_channel_get", _wrap_CoreSession_channel_get}, + { "CoreSession_flags_set", _wrap_CoreSession_flags_set}, + { "CoreSession_flags_get", _wrap_CoreSession_flags_get}, + { "CoreSession_allocated_set", _wrap_CoreSession_allocated_set}, + { "CoreSession_allocated_get", _wrap_CoreSession_allocated_get}, + { "CoreSession_cb_state_set", _wrap_CoreSession_cb_state_set}, + { "CoreSession_cb_state_get", _wrap_CoreSession_cb_state_get}, + { "CoreSession_hook_state_set", _wrap_CoreSession_hook_state_set}, + { "CoreSession_hook_state_get", _wrap_CoreSession_hook_state_get}, + { "CoreSession_cause_set", _wrap_CoreSession_cause_set}, + { "CoreSession_cause_get", _wrap_CoreSession_cause_get}, + { "CoreSession_uuid_set", _wrap_CoreSession_uuid_set}, + { "CoreSession_uuid_get", _wrap_CoreSession_uuid_get}, + { "CoreSession_tts_name_set", _wrap_CoreSession_tts_name_set}, + { "CoreSession_tts_name_get", _wrap_CoreSession_tts_name_get}, + { "CoreSession_voice_name_set", _wrap_CoreSession_voice_name_set}, + { "CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get}, + { "CoreSession_insertFile", _wrap_CoreSession_insertFile}, + { "CoreSession_answer", _wrap_CoreSession_answer}, + { "CoreSession_preAnswer", _wrap_CoreSession_preAnswer}, + { "CoreSession_hangup", _wrap_CoreSession_hangup}, + { "CoreSession_hangupState", _wrap_CoreSession_hangupState}, + { "CoreSession_setVariable", _wrap_CoreSession_setVariable}, + { "CoreSession_setPrivate", _wrap_CoreSession_setPrivate}, + { "CoreSession_getPrivate", _wrap_CoreSession_getPrivate}, + { "CoreSession_getVariable", _wrap_CoreSession_getVariable}, + { "CoreSession_process_callback_result", _wrap_CoreSession_process_callback_result}, + { "CoreSession_say", _wrap_CoreSession_say}, + { "CoreSession_sayPhrase", _wrap_CoreSession_sayPhrase}, + { "CoreSession_hangupCause", _wrap_CoreSession_hangupCause}, + { "CoreSession_getState", _wrap_CoreSession_getState}, + { "CoreSession_recordFile", _wrap_CoreSession_recordFile}, + { "CoreSession_originate", _wrap_CoreSession_originate}, + { "CoreSession_destroy", _wrap_CoreSession_destroy}, + { "CoreSession_setDTMFCallback", _wrap_CoreSession_setDTMFCallback}, + { "CoreSession_speak", _wrap_CoreSession_speak}, + { "CoreSession_set_tts_parms", _wrap_CoreSession_set_tts_parms}, + { "CoreSession_set_tts_params", _wrap_CoreSession_set_tts_params}, + { "CoreSession_collectDigits",_wrap_CoreSession_collectDigits}, + { "CoreSession_getDigits",_wrap_CoreSession_getDigits}, + { "CoreSession_transfer", _wrap_CoreSession_transfer}, + { "CoreSession_read", _wrap_CoreSession_read}, + { "CoreSession_playAndGetDigits", _wrap_CoreSession_playAndGetDigits}, + { "CoreSession_streamFile", _wrap_CoreSession_streamFile}, + { "CoreSession_sleep", _wrap_CoreSession_sleep}, + { "CoreSession_flushEvents", _wrap_CoreSession_flushEvents}, + { "CoreSession_flushDigits", _wrap_CoreSession_flushDigits}, + { "CoreSession_setAutoHangup", _wrap_CoreSession_setAutoHangup}, + { "CoreSession_setHangupHook", _wrap_CoreSession_setHangupHook}, + { "CoreSession_ready", _wrap_CoreSession_ready}, + { "CoreSession_bridged", _wrap_CoreSession_bridged}, + { "CoreSession_answered", _wrap_CoreSession_answered}, + { "CoreSession_mediaReady", _wrap_CoreSession_mediaReady}, + { "CoreSession_waitForAnswer", _wrap_CoreSession_waitForAnswer}, + { "CoreSession_execute", _wrap_CoreSession_execute}, + { "CoreSession_sendEvent", _wrap_CoreSession_sendEvent}, + { "CoreSession_setEventData", _wrap_CoreSession_setEventData}, + { "CoreSession_getXMLCDR", _wrap_CoreSession_getXMLCDR}, + { "CoreSession_begin_allow_threads", _wrap_CoreSession_begin_allow_threads}, + { "CoreSession_end_allow_threads", _wrap_CoreSession_end_allow_threads}, + { "CoreSession_get_uuid", _wrap_CoreSession_get_uuid}, + { "CoreSession_get_cb_args", _wrap_CoreSession_get_cb_args}, + { "CoreSession_check_hangup_hook", _wrap_CoreSession_check_hangup_hook}, + { "CoreSession_run_dtmf_callback", _wrap_CoreSession_run_dtmf_callback}, + { "CoreSession_consoleLog", _wrap_CoreSession_consoleLog}, + { "CoreSession_consoleLog2", _wrap_CoreSession_consoleLog2}, { "console_log", _wrap_console_log}, { "console_log2", _wrap_console_log2}, { "console_clean_log", _wrap_console_clean_log}, @@ -8251,6 +6873,35 @@ static const struct luaL_Reg swig_commands[] = { { "bridge", _wrap_bridge}, { "hanguphook", _wrap_hanguphook}, { "dtmf_callback", _wrap_dtmf_callback}, + { "new_Session",_wrap_new_Session}, + { "delete_Session", _wrap_delete_Session}, + { "Session_destroy",_wrap_Session_destroy}, + { "Session_begin_allow_threads", _wrap_Session_begin_allow_threads}, + { "Session_end_allow_threads", _wrap_Session_end_allow_threads}, + { "Session_check_hangup_hook", _wrap_Session_check_hangup_hook}, + { "Session_run_dtmf_callback", _wrap_Session_run_dtmf_callback}, + { "Session_unsetInputCallback", _wrap_Session_unsetInputCallback}, + { "Session_setInputCallback",_wrap_Session_setInputCallback}, + { "Session_setHangupHook",_wrap_Session_setHangupHook}, + { "Session_ready", _wrap_Session_ready}, + { "Session_originate", _wrap_Session_originate}, + { "Session_cb_function_set", _wrap_Session_cb_function_set}, + { "Session_cb_function_get", _wrap_Session_cb_function_get}, + { "Session_cb_arg_set", _wrap_Session_cb_arg_set}, + { "Session_cb_arg_get", _wrap_Session_cb_arg_get}, + { "Session_hangup_func_str_set", _wrap_Session_hangup_func_str_set}, + { "Session_hangup_func_str_get", _wrap_Session_hangup_func_str_get}, + { "Session_hangup_func_arg_set", _wrap_Session_hangup_func_arg_set}, + { "Session_hangup_func_arg_get", _wrap_Session_hangup_func_arg_get}, + { "Session_setLUA", _wrap_Session_setLUA}, + { "new_Dbh",_wrap_new_Dbh}, + { "delete_Dbh", _wrap_delete_Dbh}, + { "Dbh_release", _wrap_Dbh_release}, + { "Dbh_connected", _wrap_Dbh_connected}, + { "Dbh_test_reactive",_wrap_Dbh_test_reactive}, + { "Dbh_query", _wrap_Dbh_query}, + { "Dbh_affected_rows", _wrap_Dbh_affected_rows}, + { "Dbh_load_extension", _wrap_Dbh_load_extension}, {0,0} }; @@ -8267,9 +6918,10 @@ static swig_lua_const_info swig_constants[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) { +static void *_p_LUA__SessionTo_p_CoreSession(void *x) { return (void *)((CoreSession *) ((LUA::Session *) x)); } +static swig_type_info _swigt__SWIGLUA_FN = {"_SWIGLUA_FN", "SWIGLUA_FN", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0}; static swig_type_info _swigt__p_CoreSession = {"_p_CoreSession", "CoreSession *", 0, 0, (void*)&_wrap_class_CoreSession, 0}; static swig_type_info _swigt__p_DTMF = {"_p_DTMF", "DTMF *", 0, 0, (void*)&_wrap_class_DTMF, 0}; @@ -8278,9 +6930,8 @@ static swig_type_info _swigt__p_EventConsumer = {"_p_EventConsumer", "EventConsu static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (void*)&_wrap_class_IVRMenu, 0}; static swig_type_info _swigt__p_LUA__Dbh = {"_p_LUA__Dbh", "LUA::Dbh *", 0, 0, (void*)&_wrap_class_LUA_Dbh, 0}; static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0}; -static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; @@ -8300,8 +6951,15 @@ static swig_type_info _swigt__p_switch_status_t = {"_p_switch_status_t", "switch static swig_type_info _swigt__p_switch_stream_handle_t = {"_p_switch_stream_handle_t", "switch_stream_handle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_call_cause_t = {"_switch_call_cause_t", "switch_call_cause_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_channel_state_t = {"_switch_channel_state_t", "switch_channel_state_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_event_types_t = {"_switch_event_types_t", "switch_event_types_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_input_type_t = {"_switch_input_type_t", "switch_input_type_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_priority_t = {"_switch_priority_t", "switch_priority_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__uint32_t = {"_uint32_t", "uint32_t", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { + &_swigt__SWIGLUA_FN, &_swigt__p_API, &_swigt__p_CoreSession, &_swigt__p_DTMF, @@ -8310,7 +6968,6 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_IVRMenu, &_swigt__p_LUA__Dbh, &_swigt__p_LUA__Session, - &_swigt__p_SWIGLUA_FN, &_swigt__p_Stream, &_swigt__p_input_callback_state, &_swigt__p_int, @@ -8332,8 +6989,15 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_switch_stream_handle_t, &_swigt__p_uint32_t, &_swigt__p_void, + &_swigt__switch_call_cause_t, + &_swigt__switch_channel_state_t, + &_swigt__switch_event_types_t, + &_swigt__switch_input_type_t, + &_swigt__switch_priority_t, + &_swigt__uint32_t, }; +static swig_cast_info _swigc__SWIGLUA_FN[] = { {&_swigt__SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_API[] = { {&_swigt__p_API, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CoreSession[] = { {&_swigt__p_CoreSession, 0, 0, 0}, {&_swigt__p_LUA__Session, _p_LUA__SessionTo_p_CoreSession, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_DTMF[] = { {&_swigt__p_DTMF, 0, 0, 0},{0, 0, 0, 0}}; @@ -8342,7 +7006,6 @@ static swig_cast_info _swigc__p_EventConsumer[] = { {&_swigt__p_EventConsumer, static swig_cast_info _swigc__p_IVRMenu[] = { {&_swigt__p_IVRMenu, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Dbh[] = { {&_swigt__p_LUA__Dbh, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SWIGLUA_FN[] = { {&_swigt__p_SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_callback_state, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; @@ -8364,8 +7027,15 @@ static swig_cast_info _swigc__p_switch_status_t[] = { {&_swigt__p_switch_status static swig_cast_info _swigc__p_switch_stream_handle_t[] = { {&_swigt__p_switch_stream_handle_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_call_cause_t[] = { {&_swigt__switch_call_cause_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_channel_state_t[] = { {&_swigt__switch_channel_state_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_event_types_t[] = { {&_swigt__switch_event_types_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_input_type_t[] = { {&_swigt__switch_input_type_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_priority_t[] = { {&_swigt__switch_priority_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__uint32_t[] = { {&_swigt__uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { + _swigc__SWIGLUA_FN, _swigc__p_API, _swigc__p_CoreSession, _swigc__p_DTMF, @@ -8374,7 +7044,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_IVRMenu, _swigc__p_LUA__Dbh, _swigc__p_LUA__Session, - _swigc__p_SWIGLUA_FN, _swigc__p_Stream, _swigc__p_input_callback_state, _swigc__p_int, @@ -8396,6 +7065,12 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_switch_stream_handle_t, _swigc__p_uint32_t, _swigc__p_void, + _swigc__switch_call_cause_t, + _swigc__switch_channel_state_t, + _swigc__switch_event_types_t, + _swigc__switch_input_type_t, + _swigc__switch_priority_t, + _swigc__uint32_t, }; @@ -8415,7 +7090,7 @@ static swig_cast_info *swig_cast_initial[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. + * array. We just loop though that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -8453,58 +7128,32 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif - SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head, *iter; - int found, init; + swig_module_info *module_head; + static int init_run = 0; clientdata = clientdata; - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } + if (init_run) return; + init_run = 1; + + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + if (module_head) { swig_module.next = module_head->next; module_head->next = &swig_module; + } else { + /* This is the first module loaded */ + swig_module.next = &swig_module; + SWIG_SetModule(clientdata, &swig_module); } - - /* When multiple interpeters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -8641,56 +7290,73 @@ SWIG_PropagateClientData(void) { /* Forward declaration of where the user's %init{} gets inserted */ -void SWIG_init_user(lua_State* L ); - #ifdef __cplusplus extern "C" { #endif +void SWIG_init_user(lua_State* L ); + /* this is the initialization function - added at the very end of the code - the function is always called SWIG_init, but an eariler #define will rename it + added at the very end of the code + the function is always called SWIG_init, but an eariler #define will rename it */ SWIGEXPORT int SWIG_init(lua_State* L) { - int i; - /* start with global table */ - lua_pushglobaltable(L); - /* SWIG's internal initalisation */ - SWIG_InitializeModule((void*)L); - SWIG_PropagateClientData(); - /* add a global fn */ - SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } - /* set up base class pointers (the hierachy) */ - for (i = 0; swig_types[i]; i++){ - if (swig_types[i]->clientdata){ - SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); - } - } - /* additional registration structs & classes in lua */ - for (i = 0; swig_types[i]; i++){ - if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); - } - } - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); - /* invoke user-specific initialization */ - SWIG_init_user(L); - /* end module */ - lua_pop(L,1); /* tidy stack (remove module table)*/ - lua_pop(L,1); /* tidy stack (remove global table)*/ - return 1; + int i; + + /* start with global table */ + lua_pushvalue(L,LUA_GLOBALSINDEX); + + SWIG_InitializeModule((void*)L); + SWIG_PropagateClientData(); + + /* invoke user-specific initialization */ + SWIG_init_user(L); + + /* add a global fn */ + SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); + + /* begin the module (its a table with the same name as the module) */ + SWIG_Lua_module_begin(L,SWIG_name); + /* add commands/functions */ + for (i = 0; swig_commands[i].name; i++){ + SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); + } + /*luaL_openlib(L,NULL,swig_commands,0);*/ + /* all in one */ + /*luaL_openlib(L,SWIG_name,swig_commands,0);*/ + /* add variables */ + for (i = 0; swig_variables[i].name; i++){ + SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); + } + + /* additional registration structs & classes in lua: */ + for (i = 0; swig_types[i]; i++){ + if (swig_types[i]->clientdata){ + SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + } + } + + /* constants */ + SWIG_Lua_InstallConstants(L,swig_constants); + + /* end module */ + /*SWIG_Lua_module_end(L);*/ + lua_pop(L,1); /* tidy stack (remove module table)*/ + lua_pop(L,1); /* tidy stack (remove global table)*/ + + return 1; +} + +/* Lua 5.1 has a different name for importing libraries +luaopen_XXX, where XXX is the name of the module (not capitalised) +this function will allow Lua 5.1 to import correctly. +There is a #define in the wrapper to rename 'SWIG_import' to the correct name +*/ + +SWIGEXPORT int SWIG_import(lua_State* L) +{ + return SWIG_init(L); } #ifdef __cplusplus @@ -8698,13 +7364,12 @@ SWIGEXPORT int SWIG_init(lua_State* L) #endif -const char* SWIG_LUACODE= - ""; - +#ifdef __cplusplus +extern "C" +#endif void SWIG_init_user(lua_State* L) { - /* exec Lua code if applicable */ - SWIG_Lua_dostring(L,SWIG_LUACODE); + } #include "mod_lua_extra.c" diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx deleted file mode 100644 index 83a87bcf94..0000000000 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ /dev/null @@ -1,44621 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGCSHARP - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template class SwigValueWrapper { - struct SwigMovePointer { - T *ptr; - SwigMovePointer(T *p) : ptr(p) { } - ~SwigMovePointer() { delete ptr; } - SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } - } pointer; - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); - SwigValueWrapper(const SwigValueWrapper& rhs); -public: - SwigValueWrapper() : pointer(0) { } - SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } - operator T&() const { return *pointer.ptr; } - T *operator&() { return pointer.ptr; } -}; - -template T SwigValueInit() { - return T(); -} -#endif - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - - -#include -#include -#include - - -/* Support for throwing C# exceptions from C/C++. There are two types: - * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ -typedef enum { - SWIG_CSharpApplicationException, - SWIG_CSharpArithmeticException, - SWIG_CSharpDivideByZeroException, - SWIG_CSharpIndexOutOfRangeException, - SWIG_CSharpInvalidCastException, - SWIG_CSharpInvalidOperationException, - SWIG_CSharpIOException, - SWIG_CSharpNullReferenceException, - SWIG_CSharpOutOfMemoryException, - SWIG_CSharpOverflowException, - SWIG_CSharpSystemException -} SWIG_CSharpExceptionCodes; - -typedef enum { - SWIG_CSharpArgumentException, - SWIG_CSharpArgumentNullException, - SWIG_CSharpArgumentOutOfRangeException -} SWIG_CSharpExceptionArgumentCodes; - -typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); -typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); - -typedef struct { - SWIG_CSharpExceptionCodes code; - SWIG_CSharpExceptionCallback_t callback; -} SWIG_CSharpException_t; - -typedef struct { - SWIG_CSharpExceptionArgumentCodes code; - SWIG_CSharpExceptionArgumentCallback_t callback; -} SWIG_CSharpExceptionArgument_t; - -static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { - { SWIG_CSharpApplicationException, NULL }, - { SWIG_CSharpArithmeticException, NULL }, - { SWIG_CSharpDivideByZeroException, NULL }, - { SWIG_CSharpIndexOutOfRangeException, NULL }, - { SWIG_CSharpInvalidCastException, NULL }, - { SWIG_CSharpInvalidOperationException, NULL }, - { SWIG_CSharpIOException, NULL }, - { SWIG_CSharpNullReferenceException, NULL }, - { SWIG_CSharpOutOfMemoryException, NULL }, - { SWIG_CSharpOverflowException, NULL }, - { SWIG_CSharpSystemException, NULL } -}; - -static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { - { SWIG_CSharpArgumentException, NULL }, - { SWIG_CSharpArgumentNullException, NULL }, - { SWIG_CSharpArgumentOutOfRangeException, NULL } -}; - -static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { - SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; - if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { - callback = SWIG_csharp_exceptions[code].callback; - } - callback(msg); -} - -static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { - SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; - if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { - callback = SWIG_csharp_exceptions_argument[code].callback; - } - callback(msg, param_name); -} - - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_freeswitch( - SWIG_CSharpExceptionCallback_t applicationCallback, - SWIG_CSharpExceptionCallback_t arithmeticCallback, - SWIG_CSharpExceptionCallback_t divideByZeroCallback, - SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, - SWIG_CSharpExceptionCallback_t invalidCastCallback, - SWIG_CSharpExceptionCallback_t invalidOperationCallback, - SWIG_CSharpExceptionCallback_t ioCallback, - SWIG_CSharpExceptionCallback_t nullReferenceCallback, - SWIG_CSharpExceptionCallback_t outOfMemoryCallback, - SWIG_CSharpExceptionCallback_t overflowCallback, - SWIG_CSharpExceptionCallback_t systemCallback) { - SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; - SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; - SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; - SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; - SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; - SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; - SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; - SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; - SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; - SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; - SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; -} - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_freeswitch( - SWIG_CSharpExceptionArgumentCallback_t argumentCallback, - SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, - SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; -} - - -/* Contract support */ - -#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else - - - -/* Callback for returning strings to C# without leaking memory */ -#ifndef _MANAGED -#include -#include -#include -#include -#include -#endif - -typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); -static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback_real = NULL; - - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_freeswitch(SWIG_CSharpStringHelperCallback callback) { - /* Set this only once, in the main appdomain */ - if (SWIG_csharp_string_callback_real == NULL) SWIG_csharp_string_callback_real = callback; -} -char * SWIG_csharp_string_callback(const char * str) { -#ifndef _MANAGED - // Mono won't transition appdomains properly after the callback, so we force it - MonoDomain* dom = mono_domain_get(); - char* res = SWIG_csharp_string_callback_real(str); - mono_domain_set(dom, true); - return res; -#else - return SWIG_csharp_string_callback_real(str); -#endif -} - - -#include "switch.h" -#include "switch_cpp.h" -#include "freeswitch_managed.h" - - -#ifdef __cplusplus -extern "C" { -#endif - -SWIGEXPORT char * SWIGSTDCALL CSharp_FREESWITCH_PEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("27880"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_FREESWITCH_OID_PREFIX_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)(".1.3.6.1.4.1.27880"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_FREESWITCH_ITAD_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("543"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp___EXTENSIONS___get() { - int jresult ; - int result; - - result = (int)(1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp___BSD_VISIBLE_get() { - int jresult ; - int result; - - result = (int)(1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ENT_ORIGINATE_DELIM_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)(":_:"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BLANK_STRING_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\0"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_TON_UNDEF_get() { - int jresult ; - int result; - - result = (int)(255); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_NUMPLAN_UNDEF_get() { - int jresult ; - int result; - - result = (int)(255); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_ESC_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33["); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_HOME_CHAR_get() { - char jresult ; - char result; - - result = (char)('H'); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_HOME_CHAR_STR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("H"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINE_CHAR_get() { - char jresult ; - char result; - - result = (char)('1'); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINE_CHAR_STR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("1"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINEEND_CHAR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("K"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_CHAR0_get() { - char jresult ; - char result; - - result = (char)('2'); - jresult = result; - return jresult; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_CHAR1_get() { - char jresult ; - char result; - - result = (char)('J'); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_CHAR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("2J"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_AND_COLOR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)(";"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_END_COLOR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_BLACK_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("30"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_RED_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("31"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_GREEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("32"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_YELLOW_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("33"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_BLUE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("34"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_MAGEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("35"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_CYAN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("36"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_WHITE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("37"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_BLACK_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("40"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_RED_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("41"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_GREEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("42"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_YELLOW_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("43"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_BLUE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("44"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_MAGEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("45"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_CYAN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("46"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_WHITE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("47"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FBLACK_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[30m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FRED_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[31m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FGREEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[32m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FYELLOW_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[33m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FBLUE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[34m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FMAGEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[35m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FCYAN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[36m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FWHITE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[37m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BBLACK_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[40m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BRED_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[41m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BGREEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[42m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BYELLOW_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[43m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BBLUE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[44m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BMAGEN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[45m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BCYAN_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[46m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BWHITE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[47m"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_HOME_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[H"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[1"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINEEND_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[K"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\33[2J\33[H"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_DEFAULT_CLID_NAME_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("\0"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_DEFAULT_CLID_NUMBER_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("0000000000"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DEFAULT_DTMF_DURATION_get() { - int jresult ; - int result; - - result = (int)(2000); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MIN_DTMF_DURATION_get() { - int jresult ; - int result; - - result = (int)(400); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_DTMF_DURATION_get() { - int jresult ; - int result; - - result = (int)(192000); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PATH_SEPARATOR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("/"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_URL_SEPARATOR_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("://"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("ignore_display_updates"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("audio_spool_path"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bridge_hangup_cause"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_READ_TERMINATOR_USED_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("read_terminator_used"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("send_silence_when_idle"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CURRENT_APPLICATION_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("current_application"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("current_application_data"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("current_application_response"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("passthru_ptime_mismatch"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("enable_heartbeat_events"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bypass_media_after_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_READ_RESULT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("read_result"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ATT_XFER_RESULT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("att_xfer_result"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_COPY_XML_CDR_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("copy_xml_cdr"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_COPY_JSON_CDR_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("copy_json_cdr"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("proto_specific_hangup_cause"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_HISTORY_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("transfer_history"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_SOURCE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("transfer_source"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SENSITIVE_DTMF_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("sensitive_dtmf"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("record_post_process_exec_app"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("record_post_process_exec_api"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_answer"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_pre_answer"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_media"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_ring"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_tone_detect"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_originate"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_post_originate"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_pre_originate"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_pre_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("execute_on_post_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_answer"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_pre_answer"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_media"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_RING_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_ring"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_tone_detect"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_originate"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_post_originate"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_on_pre_originate"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("call_timeout"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_HOLDING_UUID_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("holding_uuid"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SOFT_HOLDING_UUID_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("soft_holding_uuid"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_BRIDGE_END_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_after_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_BRIDGE_START_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_before_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_HANGUP_HOOK_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_hangup_hook"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_REPORTING_HOOK_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("api_reporting_hook"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("session_in_hangup_hook"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PROCESS_CDR_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("process_cdr"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SKIP_CDR_CAUSES_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("skip_cdr_causes"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_FORCE_PROCESS_CDR_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("force_process_cdr"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_CHANNEL_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bridge_channel"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_NAME_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("channel_name"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_UUID_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bridge_uuid"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("continue_on_fail"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("playback_terminators"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PLAYBACK_TERMINATOR_USED_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("playback_terminator_used"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("cache_speech_handles"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("__cache_speech_handles_obj__"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BYPASS_MEDIA_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bypass_media"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PROXY_MEDIA_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("proxy_media"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ZRTP_PASSTHRU_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("zrtp_passthru"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("endpoint_disposition"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_HOLD_MUSIC_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("hold_music"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("temp_hold_music"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXPORT_VARS_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("export_vars"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bridge_export_vars"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_R_SDP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("switch_r_sdp"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_L_SDP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("switch_l_sdp"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_B_SDP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("switch_m_sdp"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("bridge_to"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LAST_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("last_bridge_to"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SIGNAL_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("signal_bridge_to"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SIGNAL_BOND_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("signal_bond"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("originate_signal_bond"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATOR_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("originator"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATOR_CODEC_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("originator_codec"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("originator_video_codec"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_MEDIA_IP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("local_media_ip"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("local_media_port"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("advertised_media_ip"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_MEDIA_IP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("remote_media_ip"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("remote_media_port"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_VIDEO_IP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("remote_video_ip"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("remote_video_port"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_VIDEO_IP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("local_video_ip"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("local_video_port"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("hangup_after_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("park_after_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("transfer_after_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("exec_after_bridge_app"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("exec_after_bridge_arg"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_MAX_FORWARDS_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("max_forwards"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_DISABLE_APP_LOG_VARIABLE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("disable_app_log"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SPEECH_KEY_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("speech"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_UUID_BRIDGE_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("uuid_bridge"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_BITS_PER_BYTE_get() { - int jresult ; - int result; - - result = (int)(8); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DEFAULT_FILE_BUFFER_LEN_get() { - int jresult ; - int result; - - result = (int)(65536); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DTMF_LOG_LEN_get() { - int jresult ; - int result; - - result = (int)(1000); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_TRANS_get() { - int jresult ; - int result; - - result = (int)(2000); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_SESSION_MAX_PRIVATES_get() { - int jresult ; - int result; - - result = (int)(2); - jresult = result; - return jresult; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_JITTER_VARIANCE_THRESHOLD_get() { - double jresult ; - double result; - - result = (double)(400.0); - jresult = result; - return jresult; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_IPDV_THRESHOLD_get() { - double jresult ; - double result; - - result = (double)(1.0); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_LOST_BURST_ANALYZE_get() { - int jresult ; - int result; - - result = (int)(500); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_LOST_BURST_CAPTURE_get() { - int jresult ; - int result; - - result = (int)(1024); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_digit_set(void * jarg1, char jarg2) { - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - char arg2 ; - - arg1 = (switch_dtmf_t *)jarg1; - arg2 = (char)jarg2; - if (arg1) (arg1)->digit = arg2; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_switch_dtmf_t_digit_get(void * jarg1) { - char jresult ; - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - char result; - - arg1 = (switch_dtmf_t *)jarg1; - result = (char) ((arg1)->digit); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_duration_set(void * jarg1, unsigned long jarg2) { - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_dtmf_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->duration = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_dtmf_t_duration_get(void * jarg1) { - unsigned long jresult ; - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - uint32_t result; - - arg1 = (switch_dtmf_t *)jarg1; - result = (uint32_t) ((arg1)->duration); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_flags_set(void * jarg1, int jarg2) { - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - int32_t arg2 ; - - arg1 = (switch_dtmf_t *)jarg1; - arg2 = (int32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmf_t_flags_get(void * jarg1) { - int jresult ; - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - int32_t result; - - arg1 = (switch_dtmf_t *)jarg1; - result = (int32_t) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_source_set(void * jarg1, int jarg2) { - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - switch_dtmf_source_t arg2 ; - - arg1 = (switch_dtmf_t *)jarg1; - arg2 = (switch_dtmf_source_t)jarg2; - if (arg1) (arg1)->source = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmf_t_source_get(void * jarg1) { - int jresult ; - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - switch_dtmf_source_t result; - - arg1 = (switch_dtmf_t *)jarg1; - result = (switch_dtmf_source_t) ((arg1)->source); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_dtmf_t() { - void * jresult ; - switch_dtmf_t *result = 0 ; - - result = (switch_dtmf_t *)new switch_dtmf_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_dtmf_t(void * jarg1) { - switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; - - arg1 = (switch_dtmf_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_buf_set(void * jarg1, void * jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t *arg2 = (switch_byte_t *) 0 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t *)jarg2; - if (arg1) (arg1)->buf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_bitpack_t_buf_get(void * jarg1) { - void * jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t *result = 0 ; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t *) ((arg1)->buf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_buflen_set(void * jarg1, unsigned long jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->buflen = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_bitpack_t_buflen_get(void * jarg1) { - unsigned long jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - uint32_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (uint32_t) ((arg1)->buflen); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_cur_set(void * jarg1, void * jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t *arg2 = (switch_byte_t *) 0 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t *)jarg2; - if (arg1) (arg1)->cur = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_bitpack_t_cur_get(void * jarg1) { - void * jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t *result = 0 ; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t *) ((arg1)->cur); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bytes_set(void * jarg1, unsigned long jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->bytes = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_bitpack_t_bytes_get(void * jarg1) { - unsigned long jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - uint32_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (uint32_t) ((arg1)->bytes); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bits_tot_set(void * jarg1, unsigned long jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->bits_tot = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_bitpack_t_bits_tot_get(void * jarg1) { - unsigned long jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - uint32_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (uint32_t) ((arg1)->bits_tot); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bits_cur_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->bits_cur = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_bits_cur_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->bits_cur); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bits_rem_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->bits_rem = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_bits_rem_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->bits_rem); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_frame_bits_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->frame_bits = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_frame_bits_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->frame_bits); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_shiftby_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->shiftby = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_shiftby_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->shiftby); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_this_byte_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->this_byte = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_this_byte_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->this_byte); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_under_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->under = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_under_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->under); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_over_set(void * jarg1, unsigned char jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_byte_t)jarg2; - if (arg1) (arg1)->over = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_over_get(void * jarg1) { - unsigned char jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_byte_t) ((arg1)->over); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_mode_set(void * jarg1, int jarg2) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_bitpack_mode_t arg2 ; - - arg1 = (switch_bitpack_t *)jarg1; - arg2 = (switch_bitpack_mode_t)jarg2; - if (arg1) (arg1)->mode = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_bitpack_t_mode_get(void * jarg1) { - int jresult ; - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - switch_bitpack_mode_t result; - - arg1 = (switch_bitpack_t *)jarg1; - result = (switch_bitpack_mode_t) ((arg1)->mode); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_bitpack_t() { - void * jresult ; - switch_bitpack_t *result = 0 ; - - result = (switch_bitpack_t *)new switch_bitpack_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_bitpack_t(void * jarg1) { - switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; - - arg1 = (switch_bitpack_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_base_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->base_dir; - if (arg2) { - arg1->base_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->base_dir, (const char *)arg2); - } else { - arg1->base_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_base_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->base_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_mod_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->mod_dir; - if (arg2) { - arg1->mod_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->mod_dir, (const char *)arg2); - } else { - arg1->mod_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_mod_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->mod_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_conf_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->conf_dir; - if (arg2) { - arg1->conf_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->conf_dir, (const char *)arg2); - } else { - arg1->conf_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_conf_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->conf_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_log_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->log_dir; - if (arg2) { - arg1->log_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->log_dir, (const char *)arg2); - } else { - arg1->log_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_log_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->log_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_run_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->run_dir; - if (arg2) { - arg1->run_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->run_dir, (const char *)arg2); - } else { - arg1->run_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_run_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->run_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_db_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->db_dir; - if (arg2) { - arg1->db_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->db_dir, (const char *)arg2); - } else { - arg1->db_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_db_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->db_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_script_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->script_dir; - if (arg2) { - arg1->script_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->script_dir, (const char *)arg2); - } else { - arg1->script_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_script_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->script_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_temp_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->temp_dir; - if (arg2) { - arg1->temp_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->temp_dir, (const char *)arg2); - } else { - arg1->temp_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_temp_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->temp_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_htdocs_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->htdocs_dir; - if (arg2) { - arg1->htdocs_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->htdocs_dir, (const char *)arg2); - } else { - arg1->htdocs_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_htdocs_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->htdocs_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_grammar_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->grammar_dir; - if (arg2) { - arg1->grammar_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->grammar_dir, (const char *)arg2); - } else { - arg1->grammar_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_grammar_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->grammar_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_storage_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->storage_dir; - if (arg2) { - arg1->storage_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->storage_dir, (const char *)arg2); - } else { - arg1->storage_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_storage_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->storage_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_cache_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->cache_dir; - if (arg2) { - arg1->cache_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->cache_dir, (const char *)arg2); - } else { - arg1->cache_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_cache_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->cache_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_recordings_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->recordings_dir; - if (arg2) { - arg1->recordings_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->recordings_dir, (const char *)arg2); - } else { - arg1->recordings_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_recordings_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->recordings_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_sounds_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->sounds_dir; - if (arg2) { - arg1->sounds_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->sounds_dir, (const char *)arg2); - } else { - arg1->sounds_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_sounds_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->sounds_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_lib_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->lib_dir; - if (arg2) { - arg1->lib_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->lib_dir, (const char *)arg2); - } else { - arg1->lib_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_lib_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->lib_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_certs_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->certs_dir; - if (arg2) { - arg1->certs_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->certs_dir, (const char *)arg2); - } else { - arg1->certs_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_certs_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->certs_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directories() { - void * jresult ; - switch_directories *result = 0 ; - - result = (switch_directories *)new switch_directories(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directories(void * jarg1) { - switch_directories *arg1 = (switch_directories *) 0 ; - - arg1 = (switch_directories *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_SWITCH_GLOBAL_dirs_set(void * jarg1) { - switch_directories *arg1 = (switch_directories *) 0 ; - - arg1 = (switch_directories *)jarg1; - SWITCH_GLOBAL_dirs = *arg1; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_SWITCH_GLOBAL_dirs_get() { - void * jresult ; - switch_directories *result = 0 ; - - result = (switch_directories *)&SWITCH_GLOBAL_dirs; - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_filenames_conf_name_set(void * jarg1, char * jarg2) { - switch_filenames *arg1 = (switch_filenames *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_filenames *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->conf_name; - if (arg2) { - arg1->conf_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->conf_name, (const char *)arg2); - } else { - arg1->conf_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_filenames_conf_name_get(void * jarg1) { - char * jresult ; - switch_filenames *arg1 = (switch_filenames *) 0 ; - char *result = 0 ; - - arg1 = (switch_filenames *)jarg1; - result = (char *) ((arg1)->conf_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_filenames() { - void * jresult ; - switch_filenames *result = 0 ; - - result = (switch_filenames *)new switch_filenames(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_filenames(void * jarg1) { - switch_filenames *arg1 = (switch_filenames *) 0 ; - - arg1 = (switch_filenames *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_SWITCH_GLOBAL_filenames_set(void * jarg1) { - switch_filenames *arg1 = (switch_filenames *) 0 ; - - arg1 = (switch_filenames *)jarg1; - SWITCH_GLOBAL_filenames = *arg1; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_SWITCH_GLOBAL_filenames_get() { - void * jresult ; - switch_filenames *result = 0 ; - - result = (switch_filenames *)&SWITCH_GLOBAL_filenames; - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STACKS_get() { - int jresult ; - int result; - - result = (int)(16); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_THREAD_STACKSIZE_get() { - int jresult ; - int result; - - result = (int)(240*1024); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SYSTEM_THREAD_STACKSIZE_get() { - int jresult ; - int result; - - result = (int)(8192*1024); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_INTERVAL_get() { - int jresult ; - int result; - - result = (int)(120); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_INTERVAL_PAD_get() { - int jresult ; - int result; - - result = (int)(10); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_SAMPLE_LEN_get() { - int jresult ; - int result; - - result = (int)(48); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_BYTES_PER_SAMPLE_get() { - int jresult ; - int result; - - result = (int)(2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RECOMMENDED_BUFFER_SIZE_get() { - int jresult ; - int result; - - result = (int)(8192); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_CODECS_get() { - int jresult ; - int result; - - result = (int)(50); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STATE_HANDLERS_get() { - int jresult ; - int result; - - result = (int)(30); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_QUEUE_LEN_get() { - int jresult ; - int result; - - result = (int)(100000); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get() { - int jresult ; - int result; - - result = (int)(1024*8); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_raw_bytes_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->raw_bytes = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_raw_bytes_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->raw_bytes); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_bytes_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->media_bytes = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_bytes_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->media_bytes); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_period_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->period_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_period_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->period_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->media_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->media_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_skip_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->skip_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_skip_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->skip_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jb_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->jb_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_jb_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->jb_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_dtmf_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->dtmf_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_dtmf_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->dtmf_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_cng_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->cng_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_cng_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->cng_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_flush_packet_count_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->flush_packet_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_flush_packet_count_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->flush_packet_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_largest_jb_size_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->largest_jb_size = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_largest_jb_size_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->largest_jb_size); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_proc_time_set(void * jarg1, long long jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->last_proc_time = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_proc_time_get(void * jarg1) { - long long jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int64_t) ((arg1)->last_proc_time); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_n_set(void * jarg1, long long jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->jitter_n = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_n_get(void * jarg1) { - long long jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int64_t) ((arg1)->jitter_n); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_add_set(void * jarg1, long long jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->jitter_add = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_add_get(void * jarg1) { - long long jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int64_t) ((arg1)->jitter_add); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_addsq_set(void * jarg1, long long jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->jitter_addsq = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_addsq_get(void * jarg1) { - long long jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int64_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int64_t) ((arg1)->jitter_addsq); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_variance_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->variance = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_variance_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->variance); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_min_variance_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->min_variance = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_min_variance_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->min_variance); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_max_variance_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->max_variance = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_max_variance_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->max_variance); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_std_deviation_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->std_deviation = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_std_deviation_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->std_deviation); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_lossrate_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->lossrate = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_lossrate_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->lossrate); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_burstrate_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->burstrate = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_burstrate_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->burstrate); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_mean_interval_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->mean_interval = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_mean_interval_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->mean_interval); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_loss_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int *arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int *)jarg2; - { - size_t ii; - int *b = (int *) arg1->loss; - for (ii = 0; ii < (size_t)1024; ii++) b[ii] = *((int *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_loss_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int *result = 0 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int *)(int *) ((arg1)->loss); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_loss_set(void * jarg1, int jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->last_loss = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_loss_get(void * jarg1) { - int jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int) ((arg1)->last_loss); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_recved_set(void * jarg1, int jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->recved = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_numbers_t_recved_get(void * jarg1) { - int jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int) ((arg1)->recved); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_processed_seq_set(void * jarg1, int jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->last_processed_seq = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_processed_seq_get(void * jarg1) { - int jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - int result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (int) ((arg1)->last_processed_seq); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_flaws_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->flaws = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_flaws_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->flaws); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_flaw_set(void * jarg1, void * jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->last_flaw = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_flaw_get(void * jarg1) { - void * jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = ((arg1)->last_flaw); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_R_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->R = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_R_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->R); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_mos_set(void * jarg1, double jarg2) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double arg2 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->mos = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_mos_get(void * jarg1) { - double jresult ; - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - double result; - - arg1 = (switch_rtp_numbers_t *)jarg1; - result = (double) ((arg1)->mos); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_numbers_t() { - void * jresult ; - switch_rtp_numbers_t *result = 0 ; - - result = (switch_rtp_numbers_t *)new switch_rtp_numbers_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_numbers_t(void * jarg1) { - switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; - - arg1 = (switch_rtp_numbers_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_packet_count_set(void * jarg1, unsigned long jarg2) { - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->packet_count = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_packet_count_get(void * jarg1) { - unsigned long jresult ; - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - result = (uint32_t) ((arg1)->packet_count); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_octet_count_set(void * jarg1, unsigned long jarg2) { - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->octet_count = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_octet_count_get(void * jarg1) { - unsigned long jresult ; - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - result = (uint32_t) ((arg1)->octet_count); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_peer_ssrc_set(void * jarg1, unsigned long jarg2) { - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->peer_ssrc = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_peer_ssrc_get(void * jarg1) { - unsigned long jresult ; - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - result = (uint32_t) ((arg1)->peer_ssrc); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtcp_numbers_t() { - void * jresult ; - switch_rtcp_numbers_t *result = 0 ; - - result = (switch_rtcp_numbers_t *)new switch_rtcp_numbers_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtcp_numbers_t(void * jarg1) { - switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; - - arg1 = (switch_rtcp_numbers_t *)jarg1; - delete arg1; -} - - -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)->inbound = *arg2; -} - - -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)->inbound); - jresult = (void *)result; - return jresult; -} - - -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)->outbound = *arg2; -} - - -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)->outbound); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_rtcp_set(void * jarg1, void * jarg2) { - switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; - switch_rtcp_numbers_t *arg2 = (switch_rtcp_numbers_t *) 0 ; - - arg1 = (switch_rtp_stats_t *)jarg1; - arg2 = (switch_rtcp_numbers_t *)jarg2; - if (arg1) (arg1)->rtcp = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_stats_t_rtcp_get(void * jarg1) { - void * jresult ; - switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; - switch_rtcp_numbers_t *result = 0 ; - - arg1 = (switch_rtp_stats_t *)jarg1; - result = (switch_rtcp_numbers_t *)& ((arg1)->rtcp); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_read_count_set(void * jarg1, unsigned long jarg2) { - switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtp_stats_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->read_count = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_stats_t_read_count_get(void * jarg1) { - unsigned long jresult ; - switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtp_stats_t *)jarg1; - result = (uint32_t) ((arg1)->read_count); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_stats_t() { - void * jresult ; - switch_rtp_stats_t *result = 0 ; - - result = (switch_rtp_stats_t *)new switch_rtp_stats_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_stats_t(void * jarg1) { - switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; - - arg1 = (switch_rtp_stats_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_CNG_PAYLOAD_get() { - int jresult ; - int result; - - result = (int)(13); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_version_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->version = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_version_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->version); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_p_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->p = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_p_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->p); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_x_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->x = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_x_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->x); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_cc_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->cc = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_cc_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->cc); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_m_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->m = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_m_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->m); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_pt_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->pt = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_pt_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->pt); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_seq_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->seq = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_seq_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->seq); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_ts_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->ts = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_ts_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->ts); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_ssrc_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->ssrc = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_ssrc_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->ssrc); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_hdr_t() { - void * jresult ; - switch_rtp_hdr_t *result = 0 ; - - result = (switch_rtp_hdr_t *)new switch_rtp_hdr_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_t(void * jarg1) { - switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; - - arg1 = (switch_rtp_hdr_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_length_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_ext_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->length = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_length_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_ext_t *)jarg1; - result = (unsigned int) ((arg1)->length); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_profile_set(void * jarg1, unsigned int jarg2) { - switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtp_hdr_ext_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->profile = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_profile_get(void * jarg1) { - unsigned int jresult ; - switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtp_hdr_ext_t *)jarg1; - result = (unsigned int) ((arg1)->profile); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_hdr_ext_t() { - void * jresult ; - switch_rtp_hdr_ext_t *result = 0 ; - - result = (switch_rtp_hdr_ext_t *)new switch_rtp_hdr_ext_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_ext_t(void * jarg1) { - switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; - - arg1 = (switch_rtp_hdr_ext_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_version_set(void * jarg1, unsigned int jarg2) { - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->version = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_version_get(void * jarg1) { - unsigned int jresult ; - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->version); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_p_set(void * jarg1, unsigned int jarg2) { - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->p = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_p_get(void * jarg1) { - unsigned int jresult ; - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->p); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_count_set(void * jarg1, unsigned int jarg2) { - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_count_get(void * jarg1) { - unsigned int jresult ; - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_type_set(void * jarg1, unsigned int jarg2) { - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_type_get(void * jarg1) { - unsigned int jresult ; - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_length_set(void * jarg1, unsigned int jarg2) { - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->length = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_length_get(void * jarg1) { - unsigned int jresult ; - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - unsigned int result; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - result = (unsigned int) ((arg1)->length); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtcp_hdr_t() { - void * jresult ; - switch_rtcp_hdr_t *result = 0 ; - - result = (switch_rtcp_hdr_t *)new switch_rtcp_hdr_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtcp_hdr_t(void * jarg1) { - switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ; - - arg1 = (switch_rtcp_hdr_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_audio_buffer_header_t_ts_set(void * jarg1, unsigned long jarg2) { - audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; - uint32_t arg2 ; - - arg1 = (audio_buffer_header_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ts = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_audio_buffer_header_t_ts_get(void * jarg1) { - unsigned long jresult ; - audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; - uint32_t result; - - arg1 = (audio_buffer_header_s *)jarg1; - result = (uint32_t) ((arg1)->ts); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_audio_buffer_header_t_len_set(void * jarg1, unsigned long jarg2) { - audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; - uint32_t arg2 ; - - arg1 = (audio_buffer_header_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->len = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_audio_buffer_header_t_len_get(void * jarg1) { - unsigned long jresult ; - audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; - uint32_t result; - - arg1 = (audio_buffer_header_s *)jarg1; - result = (uint32_t) ((arg1)->len); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_audio_buffer_header_t() { - void * jresult ; - audio_buffer_header_s *result = 0 ; - - result = (audio_buffer_header_s *)new audio_buffer_header_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_audio_buffer_header_t(void * jarg1) { - audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; - - arg1 = (audio_buffer_header_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxVersion_set(void * jarg1, unsigned short jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint16_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (uint16_t)jarg2; - if (arg1) (arg1)->T38FaxVersion = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxVersion_get(void * jarg1) { - unsigned short jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint16_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (uint16_t) ((arg1)->T38FaxVersion); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38MaxBitRate_set(void * jarg1, unsigned long jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->T38MaxBitRate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_t38_options_t_T38MaxBitRate_get(void * jarg1) { - unsigned long jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint32_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (uint32_t) ((arg1)->T38MaxBitRate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxFillBitRemoval_set(void * jarg1, int jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->T38FaxFillBitRemoval = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxFillBitRemoval_get(void * jarg1) { - int jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (switch_bool_t) ((arg1)->T38FaxFillBitRemoval); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingMMR_set(void * jarg1, int jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->T38FaxTranscodingMMR = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingMMR_get(void * jarg1) { - int jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (switch_bool_t) ((arg1)->T38FaxTranscodingMMR); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_set(void * jarg1, int jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->T38FaxTranscodingJBIG = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_get(void * jarg1) { - int jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (switch_bool_t) ((arg1)->T38FaxTranscodingJBIG); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxRateManagement_set(void * jarg1, char * jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->T38FaxRateManagement = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->T38FaxRateManagement, (const char *)arg2); - } else { - arg1->T38FaxRateManagement = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxRateManagement_get(void * jarg1) { - char * jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - result = (char *) ((arg1)->T38FaxRateManagement); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxBuffer_set(void * jarg1, unsigned long jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->T38FaxMaxBuffer = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxBuffer_get(void * jarg1) { - unsigned long jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint32_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (uint32_t) ((arg1)->T38FaxMaxBuffer); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxDatagram_set(void * jarg1, unsigned long jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->T38FaxMaxDatagram = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxDatagram_get(void * jarg1) { - unsigned long jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint32_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (uint32_t) ((arg1)->T38FaxMaxDatagram); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxUdpEC_set(void * jarg1, char * jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->T38FaxUdpEC = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->T38FaxUdpEC, (const char *)arg2); - } else { - arg1->T38FaxUdpEC = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxUdpEC_get(void * jarg1) { - char * jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - result = (char *) ((arg1)->T38FaxUdpEC); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38VendorInfo_set(void * jarg1, char * jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->T38VendorInfo = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->T38VendorInfo, (const char *)arg2); - } else { - arg1->T38VendorInfo = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_T38VendorInfo_get(void * jarg1) { - char * jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - result = (char *) ((arg1)->T38VendorInfo); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_remote_ip_set(void * jarg1, char * jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->remote_ip = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->remote_ip, (const char *)arg2); - } else { - arg1->remote_ip = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_remote_ip_get(void * jarg1) { - char * jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - result = (char *) ((arg1)->remote_ip); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_remote_port_set(void * jarg1, unsigned short jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint16_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (uint16_t)jarg2; - if (arg1) (arg1)->remote_port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_t38_options_t_remote_port_get(void * jarg1) { - unsigned short jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint16_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (uint16_t) ((arg1)->remote_port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_local_ip_set(void * jarg1, char * jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->local_ip = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->local_ip, (const char *)arg2); - } else { - arg1->local_ip = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_local_ip_get(void * jarg1) { - char * jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - result = (char *) ((arg1)->local_ip); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_local_port_set(void * jarg1, unsigned short jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint16_t arg2 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (uint16_t)jarg2; - if (arg1) (arg1)->local_port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_t38_options_t_local_port_get(void * jarg1) { - unsigned short jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - uint16_t result; - - arg1 = (switch_t38_options_t *)jarg1; - result = (uint16_t) ((arg1)->local_port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_sdp_o_line_set(void * jarg1, char * jarg2) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->sdp_o_line = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->sdp_o_line, (const char *)arg2); - } else { - arg1->sdp_o_line = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_sdp_o_line_get(void * jarg1) { - char * jresult ; - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - result = (char *) ((arg1)->sdp_o_line); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_t38_options_t() { - void * jresult ; - switch_t38_options_t *result = 0 ; - - result = (switch_t38_options_t *)new switch_t38_options_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_t38_options_t(void * jarg1) { - switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; - - arg1 = (switch_t38_options_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MEDIA_TYPE_TOTAL_get() { - int jresult ; - int result; - - result = (int)(2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SOCK_INVALID_get() { - int jresult ; - int result; - - result = (int)(-1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_node_val_set(void * jarg1, char * jarg2) { - switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_console_callback_match_node *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->val; - if (arg2) { - arg1->val = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->val, (const char *)arg2); - } else { - arg1->val = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_console_callback_match_node_val_get(void * jarg1) { - char * jresult ; - switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; - char *result = 0 ; - - arg1 = (switch_console_callback_match_node *)jarg1; - result = (char *) ((arg1)->val); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_node_next_set(void * jarg1, void * jarg2) { - switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; - switch_console_callback_match_node *arg2 = (switch_console_callback_match_node *) 0 ; - - arg1 = (switch_console_callback_match_node *)jarg1; - arg2 = (switch_console_callback_match_node *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_node_next_get(void * jarg1) { - void * jresult ; - switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; - switch_console_callback_match_node *result = 0 ; - - arg1 = (switch_console_callback_match_node *)jarg1; - result = (switch_console_callback_match_node *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_console_callback_match_node() { - void * jresult ; - switch_console_callback_match_node *result = 0 ; - - result = (switch_console_callback_match_node *)new switch_console_callback_match_node(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_console_callback_match_node(void * jarg1) { - switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; - - arg1 = (switch_console_callback_match_node *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_head_set(void * jarg1, void * jarg2) { - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - switch_console_callback_match_node *arg2 = (switch_console_callback_match_node *) 0 ; - - arg1 = (switch_console_callback_match *)jarg1; - arg2 = (switch_console_callback_match_node *)jarg2; - if (arg1) (arg1)->head = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_head_get(void * jarg1) { - void * jresult ; - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - switch_console_callback_match_node *result = 0 ; - - arg1 = (switch_console_callback_match *)jarg1; - result = (switch_console_callback_match_node *) ((arg1)->head); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_end_set(void * jarg1, void * jarg2) { - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - switch_console_callback_match_node *arg2 = (switch_console_callback_match_node *) 0 ; - - arg1 = (switch_console_callback_match *)jarg1; - arg2 = (switch_console_callback_match_node *)jarg2; - if (arg1) (arg1)->end = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_end_get(void * jarg1) { - void * jresult ; - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - switch_console_callback_match_node *result = 0 ; - - arg1 = (switch_console_callback_match *)jarg1; - result = (switch_console_callback_match_node *) ((arg1)->end); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_count_set(void * jarg1, int jarg2) { - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - int arg2 ; - - arg1 = (switch_console_callback_match *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_callback_match_count_get(void * jarg1) { - int jresult ; - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - int result; - - arg1 = (switch_console_callback_match *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_dynamic_set(void * jarg1, int jarg2) { - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - int arg2 ; - - arg1 = (switch_console_callback_match *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->dynamic = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_callback_match_dynamic_get(void * jarg1) { - int jresult ; - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - int result; - - arg1 = (switch_console_callback_match *)jarg1; - result = (int) ((arg1)->dynamic); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_console_callback_match() { - void * jresult ; - switch_console_callback_match *result = 0 ; - - result = (switch_console_callback_match *)new switch_console_callback_match(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_console_callback_match(void * jarg1) { - switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; - - arg1 = (switch_console_callback_match *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_DMACHINE_MAX_DIGIT_LEN_get() { - int jresult ; - int result; - - result = (int)(512); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_dmachine_set(void * jarg1, void * jarg2) { - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - arg2 = (switch_ivr_dmachine_t *)jarg2; - if (arg1) (arg1)->dmachine = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_dmachine_match_dmachine_get(void * jarg1) { - void * jresult ; - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - switch_ivr_dmachine_t *result = 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - result = (switch_ivr_dmachine_t *) ((arg1)->dmachine); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_digits_set(void * jarg1, char * jarg2) { - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->match_digits = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->match_digits, (const char *)arg2); - } else { - arg1->match_digits = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_digits_get(void * jarg1) { - char * jresult ; - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - char *result = 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - result = (char *) ((arg1)->match_digits); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_key_set(void * jarg1, int jarg2) { - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - int32_t arg2 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - arg2 = (int32_t)jarg2; - if (arg1) (arg1)->match_key = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_key_get(void * jarg1) { - int jresult ; - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - int32_t result; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - result = (int32_t) ((arg1)->match_key); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_type_set(void * jarg1, int jarg2) { - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - dm_match_type_t arg2 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - arg2 = (dm_match_type_t)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_match_type_get(void * jarg1) { - int jresult ; - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - dm_match_type_t result; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - result = (dm_match_type_t) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_user_data_set(void * jarg1, void * jarg2) { - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_dmachine_match_user_data_get(void * jarg1) { - void * jresult ; - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - void *result = 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - result = (void *) ((arg1)->user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_ivr_dmachine_match() { - void * jresult ; - switch_ivr_dmachine_match *result = 0 ; - - result = (switch_ivr_dmachine_match *)new switch_ivr_dmachine_match(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_ivr_dmachine_match(void * jarg1) { - switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; - - arg1 = (switch_ivr_dmachine_match *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_MAX_ARG_RECURSION_get() { - int jresult ; - int result; - - result = (int)(25); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_input_callback_set(void * jarg1, void * jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - switch_input_callback_function_t arg2 = (switch_input_callback_function_t) 0 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (switch_input_callback_function_t)jarg2; - if (arg1) (arg1)->input_callback = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_input_callback_get(void * jarg1) { - void * jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - switch_input_callback_function_t result; - - arg1 = (switch_input_args_t *)jarg1; - result = (switch_input_callback_function_t) ((arg1)->input_callback); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_buf_set(void * jarg1, void * jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->buf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_buf_get(void * jarg1) { - void * jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_input_args_t *)jarg1; - result = (void *) ((arg1)->buf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_buflen_set(void * jarg1, unsigned long jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->buflen = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_input_args_t_buflen_get(void * jarg1) { - unsigned long jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - uint32_t result; - - arg1 = (switch_input_args_t *)jarg1; - result = (uint32_t) ((arg1)->buflen); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_read_frame_callback_set(void * jarg1, void * jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - switch_read_frame_callback_function_t arg2 = (switch_read_frame_callback_function_t) 0 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (switch_read_frame_callback_function_t)jarg2; - if (arg1) (arg1)->read_frame_callback = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_read_frame_callback_get(void * jarg1) { - void * jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - switch_read_frame_callback_function_t result; - - arg1 = (switch_input_args_t *)jarg1; - result = (switch_read_frame_callback_function_t) ((arg1)->read_frame_callback); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_user_data_set(void * jarg1, void * jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_user_data_get(void * jarg1) { - void * jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_input_args_t *)jarg1; - result = (void *) ((arg1)->user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_dmachine_set(void * jarg1, void * jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (switch_ivr_dmachine_t *)jarg2; - if (arg1) (arg1)->dmachine = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_dmachine_get(void * jarg1) { - void * jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - switch_ivr_dmachine_t *result = 0 ; - - arg1 = (switch_input_args_t *)jarg1; - result = (switch_ivr_dmachine_t *) ((arg1)->dmachine); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_loops_set(void * jarg1, int jarg2) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - int arg2 ; - - arg1 = (switch_input_args_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->loops = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_input_args_t_loops_get(void * jarg1) { - int jresult ; - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - int result; - - arg1 = (switch_input_args_t *)jarg1; - result = (int) ((arg1)->loops); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_input_args_t() { - void * jresult ; - switch_input_args_t *result = 0 ; - - result = (switch_input_args_t *)new switch_input_args_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_input_args_t(void * jarg1) { - switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; - - arg1 = (switch_input_args_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_type_set(void * jarg1, int jarg2) { - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - switch_say_type_t arg2 ; - - arg1 = (switch_say_args_t *)jarg1; - arg2 = (switch_say_type_t)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_type_get(void * jarg1) { - int jresult ; - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - switch_say_type_t result; - - arg1 = (switch_say_args_t *)jarg1; - result = (switch_say_type_t) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_method_set(void * jarg1, int jarg2) { - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - switch_say_method_t arg2 ; - - arg1 = (switch_say_args_t *)jarg1; - arg2 = (switch_say_method_t)jarg2; - if (arg1) (arg1)->method = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_method_get(void * jarg1) { - int jresult ; - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - switch_say_method_t result; - - arg1 = (switch_say_args_t *)jarg1; - result = (switch_say_method_t) ((arg1)->method); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_gender_set(void * jarg1, int jarg2) { - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - switch_say_gender_t arg2 ; - - arg1 = (switch_say_args_t *)jarg1; - arg2 = (switch_say_gender_t)jarg2; - if (arg1) (arg1)->gender = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_gender_get(void * jarg1) { - int jresult ; - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - switch_say_gender_t result; - - arg1 = (switch_say_args_t *)jarg1; - result = (switch_say_gender_t) ((arg1)->gender); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_ext_set(void * jarg1, char * jarg2) { - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_say_args_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->ext = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->ext, (const char *)arg2); - } else { - arg1->ext = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_args_t_ext_get(void * jarg1) { - char * jresult ; - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_say_args_t *)jarg1; - result = (char *) ((arg1)->ext); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_say_args_t() { - void * jresult ; - switch_say_args_t *result = 0 ; - - result = (switch_say_args_t *)new switch_say_args_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_say_args_t(void * jarg1) { - switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; - - arg1 = (switch_say_args_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_API_VERSION_get() { - int jresult ; - int result; - - result = (int)(5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_switch_api_version_set(void * jarg1, int jarg2) { - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - int arg2 ; - - arg1 = (switch_loadable_module_function_table *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->switch_api_version = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_switch_api_version_get(void * jarg1) { - int jresult ; - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - int result; - - arg1 = (switch_loadable_module_function_table *)jarg1; - result = (int) ((arg1)->switch_api_version); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_load_set(void * jarg1, void * jarg2) { - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_load_t arg2 = (switch_module_load_t) 0 ; - - arg1 = (switch_loadable_module_function_table *)jarg1; - arg2 = (switch_module_load_t)jarg2; - if (arg1) (arg1)->load = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_load_get(void * jarg1) { - void * jresult ; - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_load_t result; - - arg1 = (switch_loadable_module_function_table *)jarg1; - result = (switch_module_load_t) ((arg1)->load); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_shutdown_set(void * jarg1, void * jarg2) { - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_shutdown_t arg2 = (switch_module_shutdown_t) 0 ; - - arg1 = (switch_loadable_module_function_table *)jarg1; - arg2 = (switch_module_shutdown_t)jarg2; - if (arg1) (arg1)->shutdown = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_shutdown_get(void * jarg1) { - void * jresult ; - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_shutdown_t result; - - arg1 = (switch_loadable_module_function_table *)jarg1; - result = (switch_module_shutdown_t) ((arg1)->shutdown); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_runtime_set(void * jarg1, void * jarg2) { - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_runtime_t arg2 = (switch_module_runtime_t) 0 ; - - arg1 = (switch_loadable_module_function_table *)jarg1; - arg2 = (switch_module_runtime_t)jarg2; - if (arg1) (arg1)->runtime = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_runtime_get(void * jarg1) { - void * jresult ; - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_runtime_t result; - - arg1 = (switch_loadable_module_function_table *)jarg1; - result = (switch_module_runtime_t) ((arg1)->runtime); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_flags_set(void * jarg1, unsigned long jarg2) { - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_flag_t arg2 ; - - arg1 = (switch_loadable_module_function_table *)jarg1; - arg2 = (switch_module_flag_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_flags_get(void * jarg1) { - unsigned long jresult ; - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - switch_module_flag_t result; - - arg1 = (switch_loadable_module_function_table *)jarg1; - result = (switch_module_flag_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_loadable_module_function_table_t() { - void * jresult ; - switch_loadable_module_function_table *result = 0 ; - - result = (switch_loadable_module_function_table *)new switch_loadable_module_function_table(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_loadable_module_function_table_t(void * jarg1) { - switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; - - arg1 = (switch_loadable_module_function_table *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_type_set(void * jarg1, int jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_media_type_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (switch_media_type_t)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_type_get(void * jarg1) { - int jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_media_type_t result; - - arg1 = (payload_map_s *)jarg1; - result = (switch_media_type_t) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_sdp_type_set(void * jarg1, int jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_sdp_type_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (switch_sdp_type_t)jarg2; - if (arg1) (arg1)->sdp_type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_sdp_type_get(void * jarg1) { - int jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_sdp_type_t result; - - arg1 = (payload_map_s *)jarg1; - result = (switch_sdp_type_t) ((arg1)->sdp_type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_ptime_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ptime = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_ptime_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint32_t) ((arg1)->ptime); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rate_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_rate_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint32_t) ((arg1)->rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_allocated_set(void * jarg1, unsigned char jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint8_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->allocated = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_allocated_get(void * jarg1) { - unsigned char jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint8_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint8_t) ((arg1)->allocated); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_negotiated_set(void * jarg1, unsigned char jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint8_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->negotiated = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_negotiated_get(void * jarg1) { - unsigned char jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint8_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint8_t) ((arg1)->negotiated); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_current_set(void * jarg1, unsigned char jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint8_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->current = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_current_get(void * jarg1) { - unsigned char jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint8_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint8_t) ((arg1)->current); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_hash_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - unsigned long arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->hash = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_hash_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - unsigned long result; - - arg1 = (payload_map_s *)jarg1; - result = (unsigned long) ((arg1)->hash); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rm_encoding_set(void * jarg1, char * jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->rm_encoding; - if (arg2) { - arg1->rm_encoding = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->rm_encoding, (const char *)arg2); - } else { - arg1->rm_encoding = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_rm_encoding_get(void * jarg1) { - char * jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *result = 0 ; - - arg1 = (payload_map_s *)jarg1; - result = (char *) ((arg1)->rm_encoding); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_iananame_set(void * jarg1, char * jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->iananame; - if (arg2) { - arg1->iananame = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->iananame, (const char *)arg2); - } else { - arg1->iananame = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_iananame_get(void * jarg1) { - char * jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *result = 0 ; - - arg1 = (payload_map_s *)jarg1; - result = (char *) ((arg1)->iananame); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_pt_set(void * jarg1, unsigned char jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_payload_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (switch_payload_t)jarg2; - if (arg1) (arg1)->pt = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_pt_get(void * jarg1) { - unsigned char jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_payload_t result; - - arg1 = (payload_map_s *)jarg1; - result = (switch_payload_t) ((arg1)->pt); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rm_rate_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - unsigned long arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->rm_rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_rm_rate_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - unsigned long result; - - arg1 = (payload_map_s *)jarg1; - result = (unsigned long) ((arg1)->rm_rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_adv_rm_rate_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - unsigned long arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->adv_rm_rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_adv_rm_rate_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - unsigned long result; - - arg1 = (payload_map_s *)jarg1; - result = (unsigned long) ((arg1)->adv_rm_rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_codec_ms_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->codec_ms = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_codec_ms_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint32_t) ((arg1)->codec_ms); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_bitrate_set(void * jarg1, unsigned long jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->bitrate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_bitrate_get(void * jarg1) { - unsigned long jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - uint32_t result; - - arg1 = (payload_map_s *)jarg1; - result = (uint32_t) ((arg1)->bitrate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rm_fmtp_set(void * jarg1, char * jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->rm_fmtp; - if (arg2) { - arg1->rm_fmtp = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->rm_fmtp, (const char *)arg2); - } else { - arg1->rm_fmtp = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_rm_fmtp_get(void * jarg1) { - char * jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *result = 0 ; - - arg1 = (payload_map_s *)jarg1; - result = (char *) ((arg1)->rm_fmtp); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_agreed_pt_set(void * jarg1, unsigned char jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_payload_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (switch_payload_t)jarg2; - if (arg1) (arg1)->agreed_pt = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_agreed_pt_get(void * jarg1) { - unsigned char jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_payload_t result; - - arg1 = (payload_map_s *)jarg1; - result = (switch_payload_t) ((arg1)->agreed_pt); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_recv_pt_set(void * jarg1, unsigned char jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_payload_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (switch_payload_t)jarg2; - if (arg1) (arg1)->recv_pt = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_recv_pt_get(void * jarg1) { - unsigned char jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_payload_t result; - - arg1 = (payload_map_s *)jarg1; - result = (switch_payload_t) ((arg1)->recv_pt); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_fmtp_out_set(void * jarg1, char * jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->fmtp_out; - if (arg2) { - arg1->fmtp_out = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->fmtp_out, (const char *)arg2); - } else { - arg1->fmtp_out = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_fmtp_out_get(void * jarg1) { - char * jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *result = 0 ; - - arg1 = (payload_map_s *)jarg1; - result = (char *) ((arg1)->fmtp_out); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_remote_sdp_ip_set(void * jarg1, char * jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->remote_sdp_ip; - if (arg2) { - arg1->remote_sdp_ip = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->remote_sdp_ip, (const char *)arg2); - } else { - arg1->remote_sdp_ip = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_remote_sdp_ip_get(void * jarg1) { - char * jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - char *result = 0 ; - - arg1 = (payload_map_s *)jarg1; - result = (char *) ((arg1)->remote_sdp_ip); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_remote_sdp_port_set(void * jarg1, unsigned short jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_port_t arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (switch_port_t)jarg2; - if (arg1) (arg1)->remote_sdp_port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_payload_map_t_remote_sdp_port_get(void * jarg1) { - unsigned short jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - switch_port_t result; - - arg1 = (payload_map_s *)jarg1; - result = (switch_port_t) ((arg1)->remote_sdp_port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_channels_set(void * jarg1, int jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - int arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->channels = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_channels_get(void * jarg1) { - int jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - int result; - - arg1 = (payload_map_s *)jarg1; - result = (int) ((arg1)->channels); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_adv_channels_set(void * jarg1, int jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - int arg2 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->adv_channels = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_adv_channels_get(void * jarg1) { - int jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - int result; - - arg1 = (payload_map_s *)jarg1; - result = (int) ((arg1)->adv_channels); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_next_set(void * jarg1, void * jarg2) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - payload_map_s *arg2 = (payload_map_s *) 0 ; - - arg1 = (payload_map_s *)jarg1; - arg2 = (payload_map_s *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_payload_map_t_next_get(void * jarg1) { - void * jresult ; - payload_map_s *arg1 = (payload_map_s *) 0 ; - payload_map_s *result = 0 ; - - arg1 = (payload_map_s *)jarg1; - result = (payload_map_s *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_payload_map_t() { - void * jresult ; - payload_map_s *result = 0 ; - - result = (payload_map_s *)new payload_map_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_payload_map_t(void * jarg1) { - payload_map_s *arg1 = (payload_map_s *) 0 ; - - arg1 = (payload_map_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_waitlist_t_sock_set(void * jarg1, int jarg2) { - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - switch_os_socket_t arg2 ; - - arg1 = (switch_waitlist_s *)jarg1; - arg2 = (switch_os_socket_t)jarg2; - if (arg1) (arg1)->sock = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_waitlist_t_sock_get(void * jarg1) { - int jresult ; - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - switch_os_socket_t result; - - arg1 = (switch_waitlist_s *)jarg1; - result = (switch_os_socket_t) ((arg1)->sock); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_waitlist_t_events_set(void * jarg1, unsigned long jarg2) { - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_waitlist_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->events = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_waitlist_t_events_get(void * jarg1) { - unsigned long jresult ; - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - uint32_t result; - - arg1 = (switch_waitlist_s *)jarg1; - result = (uint32_t) ((arg1)->events); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_waitlist_t_revents_set(void * jarg1, unsigned long jarg2) { - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_waitlist_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->revents = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_waitlist_t_revents_get(void * jarg1) { - unsigned long jresult ; - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - uint32_t result; - - arg1 = (switch_waitlist_s *)jarg1; - result = (uint32_t) ((arg1)->revents); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_waitlist_t() { - void * jresult ; - switch_waitlist_s *result = 0 ; - - result = (switch_waitlist_s *)new switch_waitlist_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_waitlist_t(void * jarg1) { - switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; - - arg1 = (switch_waitlist_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_close(void * jarg1) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - int result; - - arg1 = (switch_core_db_t *)jarg1; - result = (int)switch_core_db_close(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_open(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_core_db_t **arg2 = (switch_core_db_t **) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (switch_core_db_t **)jarg2; - result = (int)switch_core_db_open((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_db_column_text(void * jarg1, int jarg2) { - void * jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int arg2 ; - unsigned char *result = 0 ; - - arg1 = (switch_core_db_stmt_t *)jarg1; - arg2 = (int)jarg2; - result = (unsigned char *)switch_core_db_column_text(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_db_column_name(void * jarg1, int jarg2) { - char * jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int arg2 ; - char *result = 0 ; - - arg1 = (switch_core_db_stmt_t *)jarg1; - arg2 = (int)jarg2; - result = (char *)switch_core_db_column_name(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_column_count(void * jarg1) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - result = (int)switch_core_db_column_count(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_db_errmsg(void * jarg1) { - char * jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_db_t *)jarg1; - result = (char *)switch_core_db_errmsg(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_exec(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; - void *arg4 = (void *) 0 ; - char **arg5 = (char **) 0 ; - int result; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_callback_func_t)jarg3; - arg4 = (void *)jarg4; - arg5 = (char **)jarg5; - result = (int)switch_core_db_exec(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_finalize(void * jarg1) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - result = (int)switch_core_db_finalize(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_prepare(void * jarg1, char * jarg2, int jarg3, void * jarg4, void * jarg5) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - switch_core_db_stmt_t **arg4 = (switch_core_db_stmt_t **) 0 ; - char **arg5 = (char **) 0 ; - int result; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (switch_core_db_stmt_t **)jarg4; - arg5 = (char **)jarg5; - result = (int)switch_core_db_prepare(arg1,(char const *)arg2,arg3,arg4,(char const **)arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_step(void * jarg1) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - result = (int)switch_core_db_step(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_reset(void * jarg1) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - result = (int)switch_core_db_reset(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_int(void * jarg1, int jarg2, int jarg3) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int arg2 ; - int arg3 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - result = (int)switch_core_db_bind_int(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_int64(void * jarg1, int jarg2, long long jarg3) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int arg2 ; - int64_t arg3 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (int64_t)jarg3; - result = (int)switch_core_db_bind_int64(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_text(void * jarg1, int jarg2, char * jarg3, int jarg4, void * jarg5) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_core_db_destructor_type_t arg5 = (switch_core_db_destructor_type_t) 0 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (switch_core_db_destructor_type_t)jarg5; - result = (int)switch_core_db_bind_text(arg1,arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_double(void * jarg1, int jarg2, double jarg3) { - int jresult ; - switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; - int arg2 ; - double arg3 ; - int result; - - arg1 = (switch_core_db_stmt_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (double)jarg3; - result = (int)switch_core_db_bind_double(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_core_db_last_insert_rowid(void * jarg1) { - long long jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - int64_t result; - - arg1 = (switch_core_db_t *)jarg1; - result = (int64_t)switch_core_db_last_insert_rowid(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_get_table(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - char ***arg3 = (char ***) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - char **arg6 = (char **) 0 ; - int result; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char ***)jarg3; - arg4 = (int *)jarg4; - arg5 = (int *)jarg5; - arg6 = (char **)jarg6; - result = (int)switch_core_db_get_table(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_db_free_table(void * jarg1) { - char **arg1 = (char **) 0 ; - - arg1 = (char **)jarg1; - switch_core_db_free_table(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_db_free(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - switch_core_db_free(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_changes(void * jarg1) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - int result; - - arg1 = (switch_core_db_t *)jarg1; - result = (int)switch_core_db_changes(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_load_extension(void * jarg1, char * jarg2) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - result = (int)switch_core_db_load_extension(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_OK_get() { - int jresult ; - int result; - - result = (int)(0); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_ERROR_get() { - int jresult ; - int result; - - result = (int)(1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_INTERNAL_get() { - int jresult ; - int result; - - result = (int)(2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_PERM_get() { - int jresult ; - int result; - - result = (int)(3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_ABORT_get() { - int jresult ; - int result; - - result = (int)(4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_BUSY_get() { - int jresult ; - int result; - - result = (int)(5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_LOCKED_get() { - int jresult ; - int result; - - result = (int)(6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOMEM_get() { - int jresult ; - int result; - - result = (int)(7); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_READONLY_get() { - int jresult ; - int result; - - result = (int)(8); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_INTERRUPT_get() { - int jresult ; - int result; - - result = (int)(9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_IOERR_get() { - int jresult ; - int result; - - result = (int)(10); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_CORRUPT_get() { - int jresult ; - int result; - - result = (int)(11); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOTFOUND_get() { - int jresult ; - int result; - - result = (int)(12); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_FULL_get() { - int jresult ; - int result; - - result = (int)(13); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_CANTOPEN_get() { - int jresult ; - int result; - - result = (int)(14); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_PROTOCOL_get() { - int jresult ; - int result; - - result = (int)(15); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_EMPTY_get() { - int jresult ; - int result; - - result = (int)(16); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_SCHEMA_get() { - int jresult ; - int result; - - result = (int)(17); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_TOOBIG_get() { - int jresult ; - int result; - - result = (int)(18); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_CONSTRAINT_get() { - int jresult ; - int result; - - result = (int)(19); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_MISMATCH_get() { - int jresult ; - int result; - - result = (int)(20); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_MISUSE_get() { - int jresult ; - int result; - - result = (int)(21); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOLFS_get() { - int jresult ; - int result; - - result = (int)(22); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_AUTH_get() { - int jresult ; - int result; - - result = (int)(23); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_FORMAT_get() { - int jresult ; - int result; - - result = (int)(24); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_RANGE_get() { - int jresult ; - int result; - - result = (int)(25); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOTADB_get() { - int jresult ; - int result; - - result = (int)(26); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_ROW_get() { - int jresult ; - int result; - - result = (int)(100); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_DONE_get() { - int jresult ; - int result; - - result = (int)(101); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_sql_concat() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_sql_concat(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_regex_compile(char * jarg1, int jarg2, void * jarg3, void * jarg4, void * jarg5) { - void * jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - char **arg3 = (char **) 0 ; - int *arg4 = (int *) 0 ; - unsigned char *arg5 = (unsigned char *) 0 ; - switch_regex_t *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - arg3 = (char **)jarg3; - arg4 = (int *)jarg4; - arg5 = (unsigned char *)jarg5; - result = (switch_regex_t *)switch_regex_compile((char const *)arg1,arg2,(char const **)arg3,arg4,(unsigned char const *)arg5); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_copy_substring(char * jarg1, void * jarg2, int jarg3, int jarg4, char * jarg5, int jarg6) { - int jresult ; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - int arg6 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (char *)jarg5; - arg6 = (int)jarg6; - result = (int)switch_regex_copy_substring((char const *)arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_regex_free(void * jarg1) { - void *arg1 = (void *) 0 ; - - arg1 = (void *)jarg1; - switch_regex_free(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_perform(char * jarg1, char * jarg2, void * jarg3, void * jarg4, unsigned long jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_regex_t **arg3 = (switch_regex_t **) 0 ; - int *arg4 = (int *) 0 ; - uint32_t arg5 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_regex_t **)jarg3; - arg4 = (int *)jarg4; - arg5 = (uint32_t)jarg5; - result = (int)switch_regex_perform((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_perform_substitution(void * jarg1, int jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6, void * jarg7) { - switch_regex_t *arg1 = (switch_regex_t *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - switch_size_t arg6 ; - int *arg7 = (int *) 0 ; - switch_size_t *argp6 ; - - arg1 = (switch_regex_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - argp6 = (switch_size_t *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg6 = *argp6; - arg7 = (int *)jarg7; - switch_perform_substitution(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_match(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_regex_match((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_match_partial(char * jarg1, char * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int *arg3 = (int *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int *)jarg3; - result = (switch_status_t)switch_regex_match_partial((char const *)arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_capture_regex(void * jarg1, int jarg2, char * jarg3, void * jarg4, char * jarg5, void * jarg6, void * jarg7) { - switch_regex_t *arg1 = (switch_regex_t *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int *arg4 = (int *) 0 ; - char *arg5 = (char *) 0 ; - switch_cap_callback_t arg6 = (switch_cap_callback_t) 0 ; - void *arg7 = (void *) 0 ; - - arg1 = (switch_regex_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (char *)jarg3; - arg4 = (int *)jarg4; - arg5 = (char *)jarg5; - arg6 = (switch_cap_callback_t)jarg6; - arg7 = (void *)jarg7; - switch_capture_regex(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6,arg7); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_regex_set_var_callback(char * jarg1, char * jarg2, void * jarg3) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - switch_regex_set_var_callback((char const *)arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_regex_set_event_header_callback(char * jarg1, char * jarg2, void * jarg3) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - switch_regex_set_event_header_callback((char const *)arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get() { - int jresult ; - int result; - - result = (int)(128); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STREAMS_get() { - int jresult ; - int result; - - result = (int)(128); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_mms_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->mms = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_mms_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->mms); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_ms_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ms = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_ms_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->ms); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_sec_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->sec = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_sec_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->sec); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_min_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->min = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_min_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->min); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_hr_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->hr = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_hr_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->hr); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_day_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->day = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_day_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->day); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_yr_set(void * jarg1, unsigned long jarg2) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_time_duration *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->yr = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_yr_get(void * jarg1) { - unsigned long jresult ; - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - uint32_t result; - - arg1 = (switch_core_time_duration *)jarg1; - result = (uint32_t) ((arg1)->yr); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_core_time_duration() { - void * jresult ; - switch_core_time_duration *result = 0 ; - - result = (switch_core_time_duration *)new switch_core_time_duration(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_time_duration(void * jarg1) { - switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; - - arg1 = (switch_core_time_duration *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_app_set(void * jarg1, char * jarg2) { - switch_app_log *arg1 = (switch_app_log *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_app_log *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->app; - if (arg2) { - arg1->app = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->app, (const char *)arg2); - } else { - arg1->app = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_app_get(void * jarg1) { - char * jresult ; - switch_app_log *arg1 = (switch_app_log *) 0 ; - char *result = 0 ; - - arg1 = (switch_app_log *)jarg1; - result = (char *) ((arg1)->app); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_arg_set(void * jarg1, char * jarg2) { - switch_app_log *arg1 = (switch_app_log *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_app_log *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->arg; - if (arg2) { - arg1->arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->arg, (const char *)arg2); - } else { - arg1->arg = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_arg_get(void * jarg1) { - char * jresult ; - switch_app_log *arg1 = (switch_app_log *) 0 ; - char *result = 0 ; - - arg1 = (switch_app_log *)jarg1; - result = (char *) ((arg1)->arg); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_stamp_set(void * jarg1, void * jarg2) { - switch_app_log *arg1 = (switch_app_log *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_app_log *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->stamp = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_app_log_stamp_get(void * jarg1) { - void * jresult ; - switch_app_log *arg1 = (switch_app_log *) 0 ; - switch_time_t result; - - arg1 = (switch_app_log *)jarg1; - result = ((arg1)->stamp); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_next_set(void * jarg1, void * jarg2) { - switch_app_log *arg1 = (switch_app_log *) 0 ; - switch_app_log *arg2 = (switch_app_log *) 0 ; - - arg1 = (switch_app_log *)jarg1; - arg2 = (switch_app_log *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_app_log_next_get(void * jarg1) { - void * jresult ; - switch_app_log *arg1 = (switch_app_log *) 0 ; - switch_app_log *result = 0 ; - - arg1 = (switch_app_log *)jarg1; - result = (switch_app_log *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_app_log() { - void * jresult ; - switch_app_log *result = 0 ; - - result = (switch_app_log *)new switch_app_log(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_app_log(void * jarg1) { - switch_app_log *arg1 = (switch_app_log *) 0 ; - - arg1 = (switch_app_log *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_func_set(void * jarg1, void * jarg2) { - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - switch_thread_start_t arg2 ; - switch_thread_start_t *argp2 ; - - arg1 = (switch_thread_data_s *)jarg1; - argp2 = (switch_thread_start_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_thread_start_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->func = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_func_get(void * jarg1) { - void * jresult ; - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - switch_thread_start_t result; - - arg1 = (switch_thread_data_s *)jarg1; - result = ((arg1)->func); - jresult = new switch_thread_start_t((const switch_thread_start_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_obj_set(void * jarg1, void * jarg2) { - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_thread_data_s *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->obj = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_obj_get(void * jarg1) { - void * jresult ; - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - void *result = 0 ; - - arg1 = (switch_thread_data_s *)jarg1; - result = (void *) ((arg1)->obj); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_alloc_set(void * jarg1, int jarg2) { - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - int arg2 ; - - arg1 = (switch_thread_data_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->alloc = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_thread_data_t_alloc_get(void * jarg1) { - int jresult ; - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - int result; - - arg1 = (switch_thread_data_s *)jarg1; - result = (int) ((arg1)->alloc); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_pool_set(void * jarg1, void * jarg2) { - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_thread_data_s *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_pool_get(void * jarg1) { - void * jresult ; - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_thread_data_s *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_thread_data_t() { - void * jresult ; - switch_thread_data_s *result = 0 ; - - result = (switch_thread_data_s *)new switch_thread_data_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_thread_data_t(void * jarg1) { - switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; - - arg1 = (switch_thread_data_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_on_set(void * jarg1, void * jarg2) { - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_hold_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->on = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_hold_record_t_on_get(void * jarg1) { - void * jresult ; - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_hold_record_s *)jarg1; - result = ((arg1)->on); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_off_set(void * jarg1, void * jarg2) { - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_hold_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->off = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_hold_record_t_off_get(void * jarg1) { - void * jresult ; - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_hold_record_s *)jarg1; - result = ((arg1)->off); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_uuid_set(void * jarg1, char * jarg2) { - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_hold_record_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->uuid; - if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); - } else { - arg1->uuid = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_hold_record_t_uuid_get(void * jarg1) { - char * jresult ; - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_hold_record_s *)jarg1; - result = (char *) ((arg1)->uuid); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_next_set(void * jarg1, void * jarg2) { - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - switch_hold_record_s *arg2 = (switch_hold_record_s *) 0 ; - - arg1 = (switch_hold_record_s *)jarg1; - arg2 = (switch_hold_record_s *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_hold_record_t_next_get(void * jarg1) { - void * jresult ; - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - switch_hold_record_s *result = 0 ; - - arg1 = (switch_hold_record_s *)jarg1; - result = (switch_hold_record_s *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_hold_record_t() { - void * jresult ; - switch_hold_record_s *result = 0 ; - - result = (switch_hold_record_s *)new switch_hold_record_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_hold_record_t(void * jarg1) { - switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; - - arg1 = (switch_hold_record_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_uuid_set(void * jarg1, char * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->uuid; - if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); - } else { - arg1->uuid = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_device_node_t_uuid_get(void * jarg1) { - char * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - char *result = 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - result = (char *) ((arg1)->uuid); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_xml_cdr_set(void * jarg1, void * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_xml_t)jarg2; - if (arg1) (arg1)->xml_cdr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_xml_cdr_get(void * jarg1) { - void * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_xml_t result; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_xml_t) ((arg1)->xml_cdr); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t__event_set(void * jarg1, void * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_event_t *)jarg2; - if (arg1) (arg1)->event = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t__event_get(void * jarg1) { - void * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_event_t *result = 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_event_t *) ((arg1)->event); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_callstate_set(void * jarg1, int jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_channel_callstate_t arg2 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_channel_callstate_t)jarg2; - if (arg1) (arg1)->callstate = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_node_t_callstate_get(void * jarg1) { - int jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_channel_callstate_t result; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_channel_callstate_t) ((arg1)->callstate); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_hold_record_set(void * jarg1, void * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_hold_record_t *arg2 = (switch_hold_record_t *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_hold_record_t *)jarg2; - if (arg1) (arg1)->hold_record = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_hold_record_get(void * jarg1) { - void * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_hold_record_t *result = 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_hold_record_t *) ((arg1)->hold_record); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_hup_profile_set(void * jarg1, void * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - if (arg1) (arg1)->hup_profile = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_hup_profile_get(void * jarg1) { - void * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_caller_profile_t *) ((arg1)->hup_profile); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_direction_set(void * jarg1, int jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_call_direction_t arg2 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_call_direction_t)jarg2; - if (arg1) (arg1)->direction = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_node_t_direction_get(void * jarg1) { - int jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_call_direction_t result; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_call_direction_t) ((arg1)->direction); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_parent_set(void * jarg1, void * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_device_record_s *arg2 = (switch_device_record_s *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (switch_device_record_s *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_parent_get(void * jarg1) { - void * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - switch_device_record_s *result = 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - result = (switch_device_record_s *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_next_set(void * jarg1, void * jarg2) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - device_uuid_node_s *arg2 = (device_uuid_node_s *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - arg2 = (device_uuid_node_s *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_next_get(void * jarg1) { - void * jresult ; - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - device_uuid_node_s *result = 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - result = (device_uuid_node_s *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_device_node_t() { - void * jresult ; - device_uuid_node_s *result = 0 ; - - result = (device_uuid_node_s *)new device_uuid_node_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_device_node_t(void * jarg1) { - device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; - - arg1 = (device_uuid_node_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_total_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->total = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_total_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->total); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_total_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->total_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_total_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->total_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_total_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->total_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_total_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->total_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_offhook_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->offhook = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_offhook_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->offhook); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_offhook_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->offhook_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_offhook_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->offhook_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_offhook_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->offhook_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_offhook_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->offhook_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_active_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->active = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_active_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->active); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_active_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->active_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_active_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->active_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_active_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->active_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_active_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->active_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_held_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->held = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_held_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->held); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_held_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->held_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_held_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->held_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_held_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->held_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_held_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->held_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_unheld_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->unheld = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_unheld_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->unheld); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_unheld_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->unheld_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_unheld_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->unheld_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_unheld_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->unheld_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_unheld_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->unheld_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_hup_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->hup = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_hup_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->hup); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_hup_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->hup_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_hup_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->hup_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_hup_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->hup_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_hup_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->hup_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ringing_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ringing = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ringing_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->ringing); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ringing_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ringing_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ringing_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->ringing_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ringing_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ringing_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ringing_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->ringing_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_early_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->early = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_early_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->early); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_early_in_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->early_in = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_early_in_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->early_in); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_early_out_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->early_out = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_early_out_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->early_out); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ring_wait_set(void * jarg1, unsigned long jarg2) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_device_stats_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ring_wait = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ring_wait_get(void * jarg1) { - unsigned long jresult ; - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - uint32_t result; - - arg1 = (switch_device_stats_s *)jarg1; - result = (uint32_t) ((arg1)->ring_wait); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_device_stats_t() { - void * jresult ; - switch_device_stats_s *result = 0 ; - - result = (switch_device_stats_s *)new switch_device_stats_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_device_stats_t(void * jarg1) { - switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; - - arg1 = (switch_device_stats_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_device_id_set(void * jarg1, char * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->device_id; - if (arg2) { - arg1->device_id = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->device_id, (const char *)arg2); - } else { - arg1->device_id = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_device_record_t_device_id_get(void * jarg1) { - char * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (char *) ((arg1)->device_id); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_uuid_set(void * jarg1, char * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->uuid; - if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); - } else { - arg1->uuid = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_device_record_t_uuid_get(void * jarg1) { - char * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (char *) ((arg1)->uuid); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_refs_set(void * jarg1, int jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - int arg2 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_record_t_refs_get(void * jarg1) { - int jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - int result; - - arg1 = (switch_device_record_s *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_stats_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_stats_t *arg2 = (switch_device_stats_t *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (switch_device_stats_t *)jarg2; - if (arg1) (arg1)->stats = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_stats_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_stats_t *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (switch_device_stats_t *)& ((arg1)->stats); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_last_stats_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_stats_t *arg2 = (switch_device_stats_t *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (switch_device_stats_t *)jarg2; - if (arg1) (arg1)->last_stats = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_last_stats_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_stats_t *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (switch_device_stats_t *)& ((arg1)->last_stats); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_state_set(void * jarg1, int jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_state_t arg2 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (switch_device_state_t)jarg2; - if (arg1) (arg1)->state = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_record_t_state_get(void * jarg1) { - int jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_state_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = (switch_device_state_t) ((arg1)->state); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_last_state_set(void * jarg1, int jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_state_t arg2 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (switch_device_state_t)jarg2; - if (arg1) (arg1)->last_state = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_record_t_last_state_get(void * jarg1) { - int jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_device_state_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = (switch_device_state_t) ((arg1)->last_state); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_active_start_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->active_start = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_active_start_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->active_start); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_active_stop_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->active_stop = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_active_stop_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->active_stop); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_last_call_time_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->last_call_time = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_last_call_time_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->last_call_time); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_ring_start_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->ring_start = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_ring_start_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->ring_start); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_ring_stop_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->ring_stop = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_ring_stop_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->ring_stop); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_hold_start_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->hold_start = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_hold_start_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->hold_start); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_hold_stop_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->hold_stop = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_hold_stop_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->hold_stop); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_call_start_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_device_record_s *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->call_start = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_call_start_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_time_t result; - - arg1 = (switch_device_record_s *)jarg1; - result = ((arg1)->call_start); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_uuid_list_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - device_uuid_node_s *arg2 = (device_uuid_node_s *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (device_uuid_node_s *)jarg2; - if (arg1) (arg1)->uuid_list = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_uuid_list_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - device_uuid_node_s *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (device_uuid_node_s *) ((arg1)->uuid_list); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_uuid_tail_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - device_uuid_node_s *arg2 = (device_uuid_node_s *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (device_uuid_node_s *)jarg2; - if (arg1) (arg1)->uuid_tail = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_uuid_tail_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - device_uuid_node_s *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (device_uuid_node_s *) ((arg1)->uuid_tail); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_mutex_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->mutex = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_mutex_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (switch_mutex_t *) ((arg1)->mutex); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_pool_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_pool_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_user_data_set(void * jarg1, void * jarg2) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_user_data_get(void * jarg1) { - void * jresult ; - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - void *result = 0 ; - - arg1 = (switch_device_record_s *)jarg1; - result = (void *) ((arg1)->user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_device_record_t() { - void * jresult ; - switch_device_record_s *result = 0 ; - - result = (switch_device_record_s *)new switch_device_record_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_device_record_t(void * jarg1) { - switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; - - arg1 = (switch_device_record_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_DTLS_SRTP_FNAME_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("dtls-srtp"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_MAX_FPLEN_get() { - int jresult ; - int result; - - result = (int)(64); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_MAX_FPSTRLEN_get() { - int jresult ; - int result; - - result = (int)(192); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_len_set(void * jarg1, unsigned long jarg2) { - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - uint32_t arg2 ; - - arg1 = (dtls_fp_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->len = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_dtls_fingerprint_t_len_get(void * jarg1) { - unsigned long jresult ; - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - uint32_t result; - - arg1 = (dtls_fp_s *)jarg1; - result = (uint32_t) ((arg1)->len); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_data_set(void * jarg1, void * jarg2) { - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - uint8_t *arg2 ; - - arg1 = (dtls_fp_s *)jarg1; - arg2 = (uint8_t *)jarg2; - { - size_t ii; - uint8_t *b = (uint8_t *) arg1->data; - for (ii = 0; ii < (size_t)64+1; ii++) b[ii] = *((uint8_t *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_dtls_fingerprint_t_data_get(void * jarg1) { - void * jresult ; - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - uint8_t *result = 0 ; - - arg1 = (dtls_fp_s *)jarg1; - result = (uint8_t *)(uint8_t *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_type_set(void * jarg1, char * jarg2) { - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (dtls_fp_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->type; - if (arg2) { - arg1->type = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->type, (const char *)arg2); - } else { - arg1->type = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_dtls_fingerprint_t_type_get(void * jarg1) { - char * jresult ; - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - char *result = 0 ; - - arg1 = (dtls_fp_s *)jarg1; - result = (char *) ((arg1)->type); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_str_set(void * jarg1, char * jarg2) { - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - char *arg2 ; - - arg1 = (dtls_fp_s *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->str, (const char *)arg2, 192-1); - arg1->str[192-1] = 0; - } else { - arg1->str[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_dtls_fingerprint_t_str_get(void * jarg1) { - char * jresult ; - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - char *result = 0 ; - - arg1 = (dtls_fp_s *)jarg1; - result = (char *)(char *) ((arg1)->str); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_dtls_fingerprint_t() { - void * jresult ; - dtls_fp_s *result = 0 ; - - result = (dtls_fp_s *)new dtls_fp_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_dtls_fingerprint_t(void * jarg1) { - dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; - - arg1 = (dtls_fp_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_MESSAGE_STRING_ARG_MAX_get() { - int jresult ; - int result; - - result = (int)(10); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_from_set(void * jarg1, char * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->from; - if (arg2) { - arg1->from = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->from, (const char *)arg2); - } else { - arg1->from = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message_from_get(void * jarg1) { - char * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (char *) ((arg1)->from); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_message_id_set(void * jarg1, int jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_core_session_message_types_t arg2 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (switch_core_session_message_types_t)jarg2; - if (arg1) (arg1)->message_id = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_message_id_get(void * jarg1) { - int jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_core_session_message_types_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = (switch_core_session_message_types_t) ((arg1)->message_id); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_numeric_arg_set(void * jarg1, int jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - int arg2 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->numeric_arg = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_numeric_arg_get(void * jarg1) { - int jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - int result; - - arg1 = (switch_core_session_message *)jarg1; - result = (int) ((arg1)->numeric_arg); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_arg_set(void * jarg1, char * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->string_arg = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->string_arg, (const char *)arg2); - } else { - arg1->string_arg = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message_string_arg_get(void * jarg1) { - char * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (char *) ((arg1)->string_arg); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_arg_size_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_core_session_message *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->string_arg_size = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_string_arg_size_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = ((arg1)->string_arg_size); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->pointer_arg = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - void *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (void *) ((arg1)->pointer_arg); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_size_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_core_session_message *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->pointer_arg_size = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_size_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = ((arg1)->pointer_arg_size); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_numeric_reply_set(void * jarg1, int jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - int arg2 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->numeric_reply = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_numeric_reply_get(void * jarg1) { - int jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - int result; - - arg1 = (switch_core_session_message *)jarg1; - result = (int) ((arg1)->numeric_reply); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_reply_set(void * jarg1, char * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->string_reply; - if (arg2) { - arg1->string_reply = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->string_reply, (const char *)arg2); - } else { - arg1->string_reply = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message_string_reply_get(void * jarg1) { - char * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (char *) ((arg1)->string_reply); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_reply_size_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_core_session_message *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->string_reply_size = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_string_reply_size_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = ((arg1)->string_reply_size); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->pointer_reply = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - void *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (void *) ((arg1)->pointer_reply); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_size_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_core_session_message *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->pointer_reply_size = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_size_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_size_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = ((arg1)->pointer_reply_size); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_flags_set(void * jarg1, unsigned long jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_core_session_message_flag_t arg2 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (switch_core_session_message_flag_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_message_flags_get(void * jarg1) { - unsigned long jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - switch_core_session_message_flag_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = (switch_core_session_message_flag_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message__file_set(void * jarg1, char * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->_file = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->_file, (const char *)arg2); - } else { - arg1->_file = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message__file_get(void * jarg1) { - char * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (char *) ((arg1)->_file); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message__func_set(void * jarg1, char * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->_func = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->_func, (const char *)arg2); - } else { - arg1->_func = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message__func_get(void * jarg1) { - char * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (char *) ((arg1)->_func); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message__line_set(void * jarg1, int jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - int arg2 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->_line = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message__line_get(void * jarg1) { - int jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - int result; - - arg1 = (switch_core_session_message *)jarg1; - result = (int) ((arg1)->_line); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_array_arg_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char **arg2 ; - - arg1 = (switch_core_session_message *)jarg1; - arg2 = (char **)jarg2; - { - size_t ii; - char const * *b = (char const * *) arg1->string_array_arg; - for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((char const * *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_string_array_arg_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - char **result = 0 ; - - arg1 = (switch_core_session_message *)jarg1; - result = (char **)(char **) ((arg1)->string_array_arg); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_delivery_time_set(void * jarg1, void * jarg2) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - time_t arg2 ; - time_t *argp2 ; - - arg1 = (switch_core_session_message *)jarg1; - argp2 = (time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->delivery_time = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_delivery_time_get(void * jarg1) { - void * jresult ; - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - time_t result; - - arg1 = (switch_core_session_message *)jarg1; - result = ((arg1)->delivery_time); - jresult = new time_t((const time_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_core_session_message() { - void * jresult ; - switch_core_session_message *result = 0 ; - - result = (switch_core_session_message *)new switch_core_session_message(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_session_message(void * jarg1) { - switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; - - arg1 = (switch_core_session_message *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_running_set(void * jarg1, int jarg2) { - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - int arg2 ; - - arg1 = (switch_core_thread_session *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->running = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_thread_session_running_get(void * jarg1) { - int jresult ; - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - int result; - - arg1 = (switch_core_thread_session *)jarg1; - result = (int) ((arg1)->running); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_mutex_set(void * jarg1, void * jarg2) { - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->mutex = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_mutex_get(void * jarg1) { - void * jresult ; - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - result = (switch_mutex_t *) ((arg1)->mutex); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_objs_set(void * jarg1, void * jarg2) { - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - void **arg2 ; - - arg1 = (switch_core_thread_session *)jarg1; - arg2 = (void **)jarg2; - { - size_t ii; - void * *b = (void * *) arg1->objs; - for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((void * *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_objs_get(void * jarg1) { - void * jresult ; - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - void **result = 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - result = (void **)(void **) ((arg1)->objs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_input_callback_set(void * jarg1, void * jarg2) { - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - switch_input_callback_function_t arg2 = (switch_input_callback_function_t) 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - arg2 = (switch_input_callback_function_t)jarg2; - if (arg1) (arg1)->input_callback = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_input_callback_get(void * jarg1) { - void * jresult ; - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - switch_input_callback_function_t result; - - arg1 = (switch_core_thread_session *)jarg1; - result = (switch_input_callback_function_t) ((arg1)->input_callback); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_pool_set(void * jarg1, void * jarg2) { - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_pool_get(void * jarg1) { - void * jresult ; - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_core_thread_session() { - void * jresult ; - switch_core_thread_session *result = 0 ; - - result = (switch_core_thread_session *)new switch_core_thread_session(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_thread_session(void * jarg1) { - switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; - - arg1 = (switch_core_thread_session *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_screen_size(void * jarg1, void * jarg2) { - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - - arg1 = (int *)jarg1; - arg2 = (int *)jarg2; - switch_core_screen_size(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_sched_heartbeat(void * jarg1, unsigned long jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_core_session_sched_heartbeat(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unsched_heartbeat(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_unsched_heartbeat(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_enable_heartbeat(void * jarg1, unsigned long jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_core_session_enable_heartbeat(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_disable_heartbeat(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_disable_heartbeat(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_pop(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_media_bug_t **arg3 = (switch_media_bug_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_media_bug_t **)jarg3; - result = (switch_status_t)switch_core_media_bug_pop(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_exec_all(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_media_bug_exec_cb_t arg3 = (switch_media_bug_exec_cb_t) 0 ; - void *arg4 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_media_bug_exec_cb_t)jarg3; - arg4 = (void *)jarg4; - result = (switch_status_t)switch_core_media_bug_exec_all(arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_count(void * jarg1, char * jarg2) { - unsigned long jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (uint32_t)switch_core_media_bug_count(arg1,(char const *)arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_add(void * jarg1, char * jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6, unsigned long jarg7, void * jarg8) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_media_bug_callback_t arg4 = (switch_media_bug_callback_t) 0 ; - void *arg5 = (void *) 0 ; - time_t arg6 ; - switch_media_bug_flag_t arg7 ; - switch_media_bug_t **arg8 = (switch_media_bug_t **) 0 ; - time_t *argp6 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_media_bug_callback_t)jarg4; - arg5 = (void *)jarg5; - argp6 = (time_t *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return 0; - } - arg6 = *argp6; - arg7 = (switch_media_bug_flag_t)jarg7; - arg8 = (switch_media_bug_t **)jarg8; - result = (switch_status_t)switch_core_media_bug_add(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_pause(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_media_bug_pause(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_resume(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_media_bug_resume(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_inuse(void * jarg1, void * jarg2, void * jarg3) { - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_size_t *arg2 = (switch_size_t *) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (switch_size_t *)jarg2; - arg3 = (switch_size_t *)jarg3; - switch_core_media_bug_inuse(arg1,arg2,arg3); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_user_data(void * jarg1) { - void * jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - result = (void *)switch_core_media_bug_get_user_data(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_write_replace_frame(void * jarg1) { - void * jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - result = (switch_frame_t *)switch_core_media_bug_get_write_replace_frame(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_native_read_frame(void * jarg1) { - void * jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - result = (switch_frame_t *)switch_core_media_bug_get_native_read_frame(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_native_write_frame(void * jarg1) { - void * jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - result = (switch_frame_t *)switch_core_media_bug_get_native_write_frame(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_write_replace_frame(void * jarg1, void * jarg2) { - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - switch_core_media_bug_set_write_replace_frame(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_read_replace_frame(void * jarg1) { - void * jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - result = (switch_frame_t *)switch_core_media_bug_get_read_replace_frame(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_read_demux_frame(void * jarg1, void * jarg2) { - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - switch_core_media_bug_set_read_demux_frame(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_session(void * jarg1) { - void * jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - result = (switch_core_session_t *)switch_core_media_bug_get_session(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_test_flag(void * jarg1, unsigned long jarg2) { - unsigned long jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - uint32_t arg2 ; - uint32_t result; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (uint32_t)switch_core_media_bug_test_flag(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_set_flag(void * jarg1, unsigned long jarg2) { - unsigned long jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - uint32_t arg2 ; - uint32_t result; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (uint32_t)switch_core_media_bug_set_flag(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_clear_flag(void * jarg1, unsigned long jarg2) { - unsigned long jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - uint32_t arg2 ; - uint32_t result; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (uint32_t)switch_core_media_bug_clear_flag(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_read_replace_frame(void * jarg1, void * jarg2) { - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - switch_core_media_bug_set_read_replace_frame(arg1,arg2); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_cpu_count() { - unsigned long jresult ; - uint32_t result; - - result = (uint32_t)switch_core_cpu_count(); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_media_bug_t **arg2 = (switch_media_bug_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_media_bug_t **)jarg2; - result = (switch_status_t)switch_core_media_bug_remove(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_prune(void * jarg1) { - unsigned long jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (uint32_t)switch_core_media_bug_prune(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove_callback(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_media_bug_callback_t arg2 = (switch_media_bug_callback_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_media_bug_callback_t)jarg2; - result = (switch_status_t)switch_core_media_bug_remove_callback(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_close(void * jarg1) { - int jresult ; - switch_media_bug_t **arg1 = (switch_media_bug_t **) 0 ; - switch_status_t result; - - arg1 = (switch_media_bug_t **)jarg1; - result = (switch_status_t)switch_core_media_bug_close(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove_all_function(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_media_bug_remove_all_function(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_enumerate(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_stream_handle_t *arg2 = (switch_stream_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_stream_handle_t *)jarg2; - result = (switch_status_t)switch_core_media_bug_enumerate(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_transfer_recordings(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - result = (switch_status_t)switch_core_media_bug_transfer_recordings(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_transfer_callback(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_media_bug_callback_t arg3 = (switch_media_bug_callback_t) 0 ; - void *(*arg4)(switch_core_session_t *,void *) = (void *(*)(switch_core_session_t *,void *)) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - arg3 = (switch_media_bug_callback_t)jarg3; - arg4 = (void *(*)(switch_core_session_t *,void *))jarg4; - result = (switch_status_t)switch_core_media_bug_transfer_callback(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_read(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_core_media_bug_read(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_flush(void * jarg1) { - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - - arg1 = (switch_media_bug_t *)jarg1; - switch_core_media_bug_flush(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_flush_all(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_media_bug_flush_all(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_set_pre_buffer_framecount(void * jarg1, unsigned long jarg2) { - int jresult ; - switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; - uint32_t arg2 ; - switch_status_t result; - - arg1 = (switch_media_bug_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (switch_status_t)switch_core_media_bug_set_pre_buffer_framecount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_new(char * jarg1, unsigned short jarg2, unsigned short jarg3, unsigned long jarg4, void * jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_port_t arg2 ; - switch_port_t arg3 ; - switch_port_flag_t arg4 ; - switch_core_port_allocator_t **arg5 = (switch_core_port_allocator_t **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_port_t)jarg2; - arg3 = (switch_port_t)jarg3; - arg4 = (switch_port_flag_t)jarg4; - arg5 = (switch_core_port_allocator_t **)jarg5; - result = (switch_status_t)switch_core_port_allocator_new((char const *)arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_request_port(void * jarg1, void * jarg2) { - int jresult ; - switch_core_port_allocator_t *arg1 = (switch_core_port_allocator_t *) 0 ; - switch_port_t *arg2 = (switch_port_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_port_allocator_t *)jarg1; - arg2 = (switch_port_t *)jarg2; - result = (switch_status_t)switch_core_port_allocator_request_port(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_free_port(void * jarg1, unsigned short jarg2) { - int jresult ; - switch_core_port_allocator_t *arg1 = (switch_core_port_allocator_t *) 0 ; - switch_port_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_port_allocator_t *)jarg1; - arg2 = (switch_port_t)jarg2; - result = (switch_status_t)switch_core_port_allocator_free_port(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_port_allocator_destroy(void * jarg1) { - switch_core_port_allocator_t **arg1 = (switch_core_port_allocator_t **) 0 ; - - arg1 = (switch_core_port_allocator_t **)jarg1; - switch_core_port_allocator_destroy(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_test_flag(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_core_test_flag(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_init(unsigned long jarg1, int jarg2, void * jarg3) { - int jresult ; - switch_core_flag_t arg1 ; - switch_bool_t arg2 ; - char **arg3 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_core_flag_t)jarg1; - arg2 = (switch_bool_t)jarg2; - arg3 = (char **)jarg3; - result = (switch_status_t)switch_core_init(arg1,arg2,(char const **)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_init_and_modload(unsigned long jarg1, int jarg2, void * jarg3) { - int jresult ; - switch_core_flag_t arg1 ; - switch_bool_t arg2 ; - char **arg3 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_core_flag_t)jarg1; - arg2 = (switch_bool_t)jarg2; - arg3 = (char **)jarg3; - result = (switch_status_t)switch_core_init_and_modload(arg1,arg2,(char const **)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_limit(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_core_session_limit(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_sessions_per_second(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_core_sessions_per_second(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_destroy() { - int jresult ; - switch_status_t result; - - result = (switch_status_t)switch_core_destroy(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_read_lock(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_io_read_lock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_write_lock(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_io_write_lock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_rwunlock(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_io_rwunlock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_lock(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_read_lock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_lock_hangup(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_read_lock_hangup(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_write_lock(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_write_lock(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_rwunlock(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_rwunlock(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_state_handler(void * jarg1) { - int jresult ; - switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ; - int result; - - arg1 = (switch_state_handler_table_t *)jarg1; - result = (int)switch_core_add_state_handler((switch_state_handler_table const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_remove_state_handler(void * jarg1) { - switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ; - - arg1 = (switch_state_handler_table_t *)jarg1; - switch_core_remove_state_handler((switch_state_handler_table const *)arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_get_state_handler(int jarg1) { - void * jresult ; - int arg1 ; - switch_state_handler_table_t *result = 0 ; - - arg1 = (int)jarg1; - result = (switch_state_handler_table_t *)switch_core_get_state_handler(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_pool_tag(void * jarg1, char * jarg2) { - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - switch_core_memory_pool_tag(arg1,(char const *)arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_perform_new_memory_pool(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_memory_pool_t **arg1 = (switch_memory_pool_t **) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_perform_new_memory_pool(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_sync_clock() { - int jresult ; - int result; - - result = (int)switch_core_session_sync_clock(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_perform_destroy_memory_pool(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_memory_pool_t **arg1 = (switch_memory_pool_t **) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_perform_destroy_memory_pool(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_pool_set_data(void * jarg1, char * jarg2, void * jarg3) { - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - switch_core_memory_pool_set_data(arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_memory_pool_get_data(void * jarg1, char * jarg2) { - void * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - void *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - result = (void *)switch_core_memory_pool_get_data(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_run(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_run(arg1); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_core_session_running(void * jarg1) { - unsigned int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - unsigned int result; - - arg1 = (switch_core_session_t *)jarg1; - result = (unsigned int)switch_core_session_running(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_core_session_started(void * jarg1) { - unsigned int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - unsigned int result; - - arg1 = (switch_core_session_t *)jarg1; - result = (unsigned int)switch_core_session_started(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_perform_permanent_alloc(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - void * jresult ; - switch_size_t arg1 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_size_t *argp1 ; - void *result = 0 ; - - argp1 = (switch_size_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg1 = *argp1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (void *)switch_core_perform_permanent_alloc(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_perform_alloc(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { - void * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_size_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_size_t *argp2 ; - void *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (void *)switch_core_perform_alloc(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_perform_session_alloc(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_size_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_size_t *argp2 ; - void *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (void *)switch_core_perform_session_alloc(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_perform_permanent_strdup(char * jarg1, char * jarg2, char * jarg3, int jarg4) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (char *)switch_core_perform_permanent_strdup((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_perform_session_strdup(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { - char * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - char *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (char *)switch_core_perform_session_strdup(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_perform_strdup(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { - char * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - char *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (char *)switch_core_perform_strdup(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_sprintf(void * jarg1, char * jarg2) { - char * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_core_session_sprintf(arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_sprintf(void * jarg1, char * jarg2) { - char * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - char *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_core_sprintf(arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_pool(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_memory_pool_t *)switch_core_session_get_pool(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_xml(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; - switch_memory_pool_t **arg2 = (switch_memory_pool_t **) 0 ; - switch_xml_t arg3 = (switch_xml_t) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_endpoint_interface_t *)jarg1; - arg2 = (switch_memory_pool_t **)jarg2; - arg3 = (switch_xml_t)jarg3; - result = (switch_core_session_t *)switch_core_session_request_xml(arg1,arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_uuid(void * jarg1, int jarg2, unsigned long jarg3, void * jarg4, char * jarg5) { - void * jresult ; - switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; - switch_call_direction_t arg2 ; - switch_originate_flag_t arg3 ; - switch_memory_pool_t **arg4 = (switch_memory_pool_t **) 0 ; - char *arg5 = (char *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_endpoint_interface_t *)jarg1; - arg2 = (switch_call_direction_t)jarg2; - arg3 = (switch_originate_flag_t)jarg3; - arg4 = (switch_memory_pool_t **)jarg4; - arg5 = (char *)jarg5; - result = (switch_core_session_t *)switch_core_session_request_uuid(arg1,arg2,arg3,arg4,(char const *)arg5); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_uuid(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_session_set_uuid(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_perform_destroy(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - switch_core_session_t **arg1 = (switch_core_session_t **) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - - arg1 = (switch_core_session_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - switch_core_session_perform_destroy(arg1,(char const *)arg2,(char const *)arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_destroy_state(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_destroy_state(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_reporting_state(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_reporting_state(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hangup_state(void * jarg1, int jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - switch_core_session_hangup_state(arg1,arg2); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_count() { - unsigned long jresult ; - uint32_t result; - - result = (uint32_t)switch_core_session_count(); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_id(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_size_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = switch_core_session_get_id(arg1); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_id() { - void * jresult ; - switch_size_t result; - - result = switch_core_session_id(); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_id_dec() { - void * jresult ; - switch_size_t result; - - result = switch_core_session_id_dec(); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_by_name(char * jarg1, int jarg2, void * jarg3) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_call_direction_t arg2 ; - switch_memory_pool_t **arg3 = (switch_memory_pool_t **) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (switch_call_direction_t)jarg2; - arg3 = (switch_memory_pool_t **)jarg3; - result = (switch_core_session_t *)switch_core_session_request_by_name((char const *)arg1,arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_thread_launch(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_thread_launch(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_thread_pool_launch_thread(void * jarg1) { - int jresult ; - switch_thread_data_t **arg1 = (switch_thread_data_t **) 0 ; - switch_status_t result; - - arg1 = (switch_thread_data_t **)jarg1; - result = (switch_status_t)switch_thread_pool_launch_thread(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_thread_pool_launch(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_thread_pool_launch(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_channel(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_channel_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_channel_t *)switch_core_session_get_channel(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_mutex(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_mutex_t *)switch_core_session_get_mutex(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_wake_session_thread(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_wake_session_thread(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_signal_state_change(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_signal_state_change(arg1); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_get_uuid(void * jarg1) { - char * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (char *)switch_core_session_get_uuid(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_loglevel(void * jarg1, int jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_log_level_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_log_level_t)jarg2; - result = (switch_status_t)switch_core_session_set_loglevel(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_loglevel(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_log_level_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_log_level_t)switch_core_session_get_loglevel(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_jb(void * jarg1, int jarg2) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_media_type_t arg2 ; - stfu_instance_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_media_type_t)jarg2; - result = (stfu_instance_t *)switch_core_session_get_jb(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_soft_lock(void * jarg1, unsigned long jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_core_session_soft_lock(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_soft_unlock(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_soft_unlock(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_set_dmachine(void * jarg1, void * jarg2, int jarg3) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; - switch_digit_action_target_t arg3 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_ivr_dmachine_t *)jarg2; - arg3 = (switch_digit_action_target_t)jarg3; - switch_core_session_set_dmachine(arg1,arg2,arg3); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_dmachine(void * jarg1, int jarg2) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_digit_action_target_t arg2 ; - switch_ivr_dmachine_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_digit_action_target_t)jarg2; - result = (switch_ivr_dmachine_t *)switch_core_session_get_dmachine(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_get_target(void * jarg1) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_digit_action_target_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (switch_digit_action_target_t)switch_ivr_dmachine_get_target(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_target(void * jarg1, int jarg2) { - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_digit_action_target_t arg2 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (switch_digit_action_target_t)jarg2; - switch_ivr_dmachine_set_target(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_set_terminators(void * jarg1, char * jarg2) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_dmachine_set_terminators(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_codec_slin(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_slin_data_t *arg2 = (switch_slin_data_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_slin_data_t *)jarg2; - result = (switch_status_t)switch_core_session_set_codec_slin(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_uuid() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_core_get_uuid(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_perform_locate(char * jarg1, char * jarg2, char * jarg3, int jarg4) { - void * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_core_session_t *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_core_session_t *)switch_core_session_perform_locate((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_perform_force_locate(char * jarg1, char * jarg2, char * jarg3, int jarg4) { - void * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_core_session_t *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_core_session_t *)switch_core_session_perform_force_locate((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_variable(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_core_get_variable((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_variable_dup(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_core_get_variable_dup((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_variable_pdup(char * jarg1, void * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - result = (char *)switch_core_get_variable_pdup((char const *)arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_hostname() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_core_get_hostname(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_switchname() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_core_get_switchname(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_domain(int jarg1) { - char * jresult ; - switch_bool_t arg1 ; - char *result = 0 ; - - arg1 = (switch_bool_t)jarg1; - result = (char *)switch_core_get_domain(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_set_variable(char * jarg1, char * jarg2) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - switch_core_set_variable((char const *)arg1,(char const *)arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_get_variables(void * jarg1) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - result = (switch_status_t)switch_core_get_variables(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_set_var_conditional(char * jarg1, char * jarg2, char * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_bool_t)switch_core_set_var_conditional((char const *)arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_dump_variables(void * jarg1) { - switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; - - arg1 = (switch_stream_handle_t *)jarg1; - switch_core_dump_variables(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hupall(int jarg1) { - switch_call_cause_t arg1 ; - - arg1 = (switch_call_cause_t)jarg1; - switch_core_session_hupall(arg1); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_hupall_matching_var_ans(char * jarg1, char * jarg2, int jarg3, int jarg4) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_call_cause_t arg3 ; - switch_hup_type_t arg4 ; - uint32_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_call_cause_t)jarg3; - arg4 = (switch_hup_type_t)jarg4; - result = (uint32_t)switch_core_session_hupall_matching_var_ans((char const *)arg1,(char const *)arg2,arg3,arg4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_findall_matching_var(char * jarg1, char * jarg2) { - void * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_console_callback_match_t *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_console_callback_match_t *)switch_core_session_findall_matching_var((char const *)arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_findall() { - void * jresult ; - switch_console_callback_match_t *result = 0 ; - - result = (switch_console_callback_match_t *)switch_core_session_findall(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hupall_endpoint(void * jarg1, int jarg2) { - switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; - switch_call_cause_t arg2 ; - - arg1 = (switch_endpoint_interface_t *)jarg1; - arg2 = (switch_call_cause_t)jarg2; - switch_core_session_hupall_endpoint((switch_endpoint_interface const *)arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_perform_get_partner(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t **)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_status_t)switch_core_session_perform_get_partner(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_send(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_core_session_message_t *)jarg2; - result = (switch_status_t)switch_core_session_message_send((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_message(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_message_t *)jarg2; - result = (switch_status_t)switch_core_session_queue_message(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_free_message(void * jarg1) { - switch_core_session_message_t **arg1 = (switch_core_session_message_t **) 0 ; - - arg1 = (switch_core_session_message_t **)jarg1; - switch_core_session_free_message(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_signal_data(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (void *)jarg2; - result = (switch_status_t)switch_core_session_queue_signal_data(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_signal_data(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - void **arg2 = (void **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (void **)jarg2; - result = (switch_status_t)switch_core_session_dequeue_signal_data(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_pass_indication(void * jarg1, int jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_message_types_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_message_types_t)jarg2; - result = (switch_status_t)switch_core_session_pass_indication(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_indication(void * jarg1, int jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_message_types_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_message_types_t)jarg2; - result = (switch_status_t)switch_core_session_queue_indication(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_message(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_message_t **arg2 = (switch_core_session_message_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_message_t **)jarg2; - result = (switch_status_t)switch_core_session_dequeue_message(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_flush_message(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_flush_message(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_event_send(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_core_session_event_send((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_app_log(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_app_log_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_app_log_t *)switch_core_session_get_app_log(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_exec(void * jarg1, void * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_application_interface_t *arg2 = (switch_application_interface_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_application_interface_t *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_session_exec(arg1,(switch_application_interface const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_video_reset(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_video_reset(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_application_get_flags(void * jarg1, char * jarg2, char * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int32_t *arg4 = (int32_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int32_t *)jarg4; - result = (switch_status_t)switch_core_session_execute_application_get_flags(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_application_async(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_session_execute_application_async(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_app_flags(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - int32_t *arg2 = (int32_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (int32_t *)jarg2; - result = (switch_status_t)switch_core_session_get_app_flags((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_exten(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_core_session_execute_exten(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_receive_event(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_core_session_receive_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_private_class(void * jarg1, int jarg2) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_pvt_class_t arg2 ; - void *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_pvt_class_t)jarg2; - result = (void *)switch_core_session_get_private_class(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_private_class(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_pvt_class_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_pvt_class_t)jarg3; - result = (switch_status_t)switch_core_session_set_private_class(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_add_stream(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - void *arg2 = (void *) 0 ; - int result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (void *)jarg2; - result = (int)switch_core_session_add_stream(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_stream(void * jarg1, int jarg2) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - int arg2 ; - void *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (int)jarg2; - result = (void *)switch_core_session_get_stream(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_stream_count(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - int result; - - arg1 = (switch_core_session_t *)jarg1; - result = (int)switch_core_session_get_stream_count(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_launch_thread(void * jarg1, void * jarg2, void * jarg3) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - void *(*arg2)(switch_thread_t *,void *) = (void *(*)(switch_thread_t *,void *)) 0 ; - void *arg3 = (void *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (void *(*)(switch_thread_t *,void *))jarg2; - arg3 = (void *)jarg3; - switch_core_session_launch_thread(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_end(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_thread_session_end(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_service_session_av(void * jarg1, int jarg2, int jarg3) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t arg2 ; - switch_bool_t arg3 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - arg3 = (switch_bool_t)jarg3; - switch_core_service_session_av(arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_outgoing_channel(void * jarg1, void * jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6, unsigned long jarg7, void * jarg8) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_caller_profile_t *arg4 = (switch_caller_profile_t *) 0 ; - switch_core_session_t **arg5 = (switch_core_session_t **) 0 ; - switch_memory_pool_t **arg6 = (switch_memory_pool_t **) 0 ; - switch_originate_flag_t arg7 ; - switch_call_cause_t *arg8 = (switch_call_cause_t *) 0 ; - switch_call_cause_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_caller_profile_t *)jarg4; - arg5 = (switch_core_session_t **)jarg5; - arg6 = (switch_memory_pool_t **)jarg6; - arg7 = (switch_originate_flag_t)jarg7; - arg8 = (switch_call_cause_t *)jarg8; - result = (switch_call_cause_t)switch_core_session_outgoing_channel(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_perform_receive_message(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_message_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_status_t)switch_core_session_perform_receive_message(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_event(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_core_session_queue_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_event_count(void * jarg1) { - unsigned long jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (uint32_t)switch_core_session_event_count(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_messages_waiting(void * jarg1) { - unsigned long jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (uint32_t)switch_core_session_messages_waiting(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_event(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_core_session_dequeue_event(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_private_event(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_core_session_queue_private_event(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_private_event_count(void * jarg1) { - unsigned long jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (uint32_t)switch_core_session_private_event_count(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_private_event(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_core_session_dequeue_private_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_flush_private_events(void * jarg1) { - unsigned long jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (uint32_t)switch_core_session_flush_private_events(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_frame_t **arg2 = (switch_frame_t **) 0 ; - switch_io_flag_t arg3 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_frame_t **)jarg2; - arg3 = (switch_io_flag_t)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_session_read_frame(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_video_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_frame_t **arg2 = (switch_frame_t **) 0 ; - switch_io_flag_t arg3 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_frame_t **)jarg2; - arg3 = (switch_io_flag_t)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_session_read_video_frame(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_write_video_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - switch_io_flag_t arg3 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - arg3 = (switch_io_flag_t)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_session_write_video_frame(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_read_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_set_read_impl(arg1,(switch_codec_implementation const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_write_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_set_write_impl(arg1,(switch_codec_implementation const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_read_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_set_video_read_impl(arg1,(switch_codec_implementation const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_write_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_set_video_write_impl(arg1,(switch_codec_implementation const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_reset(void * jarg1, int jarg2, int jarg3) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t arg2 ; - switch_bool_t arg3 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - arg3 = (switch_bool_t)jarg3; - switch_core_session_reset(arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_write_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - switch_io_flag_t arg3 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - arg3 = (switch_io_flag_t)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_session_write_frame(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_perform_kill_channel(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_signal_t arg5 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (switch_signal_t)jarg5; - result = (switch_status_t)switch_core_session_perform_kill_channel(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_send_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = (switch_status_t)switch_core_session_send_dtmf(arg1,(switch_dtmf_t const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_send_dtmf_string(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_session_send_dtmf_string(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_recv_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = (switch_status_t)switch_core_session_recv_dtmf(arg1,(switch_dtmf_t const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_init_case(void * jarg1, int jarg2) { - int jresult ; - switch_hash_t **arg1 = (switch_hash_t **) 0 ; - switch_bool_t arg2 ; - switch_status_t result; - - arg1 = (switch_hash_t **)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_status_t)switch_core_hash_init_case(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_destroy(void * jarg1) { - int jresult ; - switch_hash_t **arg1 = (switch_hash_t **) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t **)jarg1; - result = (switch_status_t)switch_core_hash_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_destructor(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - hashtable_destructor_t arg4 = (hashtable_destructor_t) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - arg4 = (hashtable_destructor_t)jarg4; - result = (switch_status_t)switch_core_hash_insert_destructor(arg1,(char const *)arg2,(void const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_locked(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - switch_mutex_t *arg4 = (switch_mutex_t *) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - arg4 = (switch_mutex_t *)jarg4; - result = (switch_status_t)switch_core_hash_insert_locked(arg1,(char const *)arg2,(void const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_wrlock(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - switch_thread_rwlock_t *arg4 = (switch_thread_rwlock_t *) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - arg4 = (switch_thread_rwlock_t *)jarg4; - result = (switch_status_t)switch_core_hash_insert_wrlock(arg1,(char const *)arg2,(void const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete(void * jarg1, char * jarg2) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_hash_delete(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_locked(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_mutex_t *arg3 = (switch_mutex_t *) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_mutex_t *)jarg3; - result = (switch_status_t)switch_core_hash_delete_locked(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_wrlock(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_thread_rwlock_t *arg3 = (switch_thread_rwlock_t *) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_thread_rwlock_t *)jarg3; - result = (switch_status_t)switch_core_hash_delete_wrlock(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_multi(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - switch_hash_delete_callback_t arg2 = (switch_hash_delete_callback_t) 0 ; - void *arg3 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (switch_hash_delete_callback_t)jarg2; - arg3 = (void *)jarg3; - result = (switch_status_t)switch_core_hash_delete_multi(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find(void * jarg1, char * jarg2) { - void * jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - void *result = 0 ; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - result = (void *)switch_core_hash_find(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find_locked(void * jarg1, char * jarg2, void * jarg3) { - void * jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_mutex_t *arg3 = (switch_mutex_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_mutex_t *)jarg3; - result = (void *)switch_core_hash_find_locked(arg1,(char const *)arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find_rdlock(void * jarg1, char * jarg2, void * jarg3) { - void * jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_thread_rwlock_t *arg3 = (switch_thread_rwlock_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_thread_rwlock_t *)jarg3; - result = (void *)switch_core_hash_find_rdlock(arg1,(char const *)arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_first_iter(void * jarg1, void * jarg2) { - void * jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - switch_hash_index_t *arg2 = (switch_hash_index_t *) 0 ; - switch_hash_index_t *result = 0 ; - - arg1 = (switch_hash_t *)jarg1; - arg2 = (switch_hash_index_t *)jarg2; - result = (switch_hash_index_t *)switch_core_hash_first_iter(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_empty(void * jarg1) { - int jresult ; - switch_hash_t *arg1 = (switch_hash_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_hash_t *)jarg1; - result = (switch_bool_t)switch_core_hash_empty(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_next(void * jarg1) { - void * jresult ; - switch_hash_index_t **arg1 = (switch_hash_index_t **) 0 ; - switch_hash_index_t *result = 0 ; - - arg1 = (switch_hash_index_t **)jarg1; - result = (switch_hash_index_t *)switch_core_hash_next(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_hash_this(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - switch_hash_index_t *arg1 = (switch_hash_index_t *) 0 ; - void **arg2 = (void **) 0 ; - switch_ssize_t *arg3 = (switch_ssize_t *) 0 ; - void **arg4 = (void **) 0 ; - - arg1 = (switch_hash_index_t *)jarg1; - arg2 = (void **)jarg2; - arg3 = (switch_ssize_t *)jarg3; - arg4 = (void **)jarg4; - switch_core_hash_this(arg1,(void const **)arg2,arg3,arg4); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_init(void * jarg1, char * jarg2, int jarg3, int jarg4, void * jarg5) { - int jresult ; - switch_timer_t *arg1 = (switch_timer_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - switch_memory_pool_t *arg5 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_timer_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (switch_memory_pool_t *)jarg5; - result = (switch_status_t)switch_core_timer_init(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_calibrate_clock() { - switch_time_calibrate_clock(); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_next(void * jarg1) { - int jresult ; - switch_timer_t *arg1 = (switch_timer_t *) 0 ; - switch_status_t result; - - arg1 = (switch_timer_t *)jarg1; - result = (switch_status_t)switch_core_timer_next(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_step(void * jarg1) { - int jresult ; - switch_timer_t *arg1 = (switch_timer_t *) 0 ; - switch_status_t result; - - arg1 = (switch_timer_t *)jarg1; - result = (switch_status_t)switch_core_timer_step(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_sync(void * jarg1) { - int jresult ; - switch_timer_t *arg1 = (switch_timer_t *) 0 ; - switch_status_t result; - - arg1 = (switch_timer_t *)jarg1; - result = (switch_status_t)switch_core_timer_sync(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_check(void * jarg1, int jarg2) { - int jresult ; - switch_timer_t *arg1 = (switch_timer_t *) 0 ; - switch_bool_t arg2 ; - switch_status_t result; - - arg1 = (switch_timer_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_status_t)switch_core_timer_check(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_destroy(void * jarg1) { - int jresult ; - switch_timer_t *arg1 = (switch_timer_t *) 0 ; - switch_status_t result; - - arg1 = (switch_timer_t *)jarg1; - result = (switch_status_t)switch_core_timer_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_init_with_bitrate(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, int jarg5, int jarg6, unsigned long jarg7, unsigned long jarg8, void * jarg9, void * jarg10) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - uint32_t arg4 ; - int arg5 ; - int arg6 ; - uint32_t arg7 ; - uint32_t arg8 ; - switch_codec_settings_t *arg9 = (switch_codec_settings_t *) 0 ; - switch_memory_pool_t *arg10 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_codec_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (int)jarg5; - arg6 = (int)jarg6; - arg7 = (uint32_t)jarg7; - arg8 = (uint32_t)jarg8; - arg9 = (switch_codec_settings_t *)jarg9; - arg10 = (switch_memory_pool_t *)jarg10; - result = (switch_status_t)switch_core_codec_init_with_bitrate(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,(switch_codec_settings const *)arg9,arg10); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_copy(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_codec_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - arg3 = (switch_memory_pool_t *)jarg3; - result = (switch_status_t)switch_core_codec_copy(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_parse_fmtp(char * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_codec_fmtp_t *arg4 = (switch_codec_fmtp_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (switch_codec_fmtp_t *)jarg4; - result = (switch_status_t)switch_core_codec_parse_fmtp((char const *)arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_reset(void * jarg1) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_codec_t *)jarg1; - result = (switch_status_t)switch_core_codec_reset(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_encode(void * jarg1, void * jarg2, void * jarg3, unsigned long jarg4, unsigned long jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - void *arg3 = (void *) 0 ; - uint32_t arg4 ; - uint32_t arg5 ; - void *arg6 = (void *) 0 ; - uint32_t *arg7 = (uint32_t *) 0 ; - uint32_t *arg8 = (uint32_t *) 0 ; - unsigned int *arg9 = (unsigned int *) 0 ; - switch_status_t result; - - arg1 = (switch_codec_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - arg3 = (void *)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (void *)jarg6; - arg7 = (uint32_t *)jarg7; - arg8 = (uint32_t *)jarg8; - arg9 = (unsigned int *)jarg9; - result = (switch_status_t)switch_core_codec_encode(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_decode(void * jarg1, void * jarg2, void * jarg3, unsigned long jarg4, unsigned long jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - void *arg3 = (void *) 0 ; - uint32_t arg4 ; - uint32_t arg5 ; - void *arg6 = (void *) 0 ; - uint32_t *arg7 = (uint32_t *) 0 ; - uint32_t *arg8 = (uint32_t *) 0 ; - unsigned int *arg9 = (unsigned int *) 0 ; - switch_status_t result; - - arg1 = (switch_codec_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - arg3 = (void *)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (void *)jarg6; - arg7 = (uint32_t *)jarg7; - arg8 = (uint32_t *)jarg8; - arg9 = (unsigned int *)jarg9; - result = (switch_status_t)switch_core_codec_decode(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_destroy(void * jarg1) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_codec_t *)jarg1; - result = (switch_status_t)switch_core_codec_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_read_codec(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - result = (switch_status_t)switch_core_session_set_read_codec(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_real_read_codec(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - result = (switch_status_t)switch_core_session_set_real_read_codec(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unset_read_codec(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_unset_read_codec(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unset_write_codec(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_unset_write_codec(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_lock_codec_write(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_lock_codec_write(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unlock_codec_write(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_unlock_codec_write(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_lock_codec_read(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_lock_codec_read(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unlock_codec_read(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_session_unlock_codec_read(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_read_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_get_read_impl(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_real_read_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_get_real_read_impl(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_write_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_get_write_impl(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_video_read_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_get_video_read_impl(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_video_write_impl(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - result = (switch_status_t)switch_core_session_get_video_write_impl(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_read_codec(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_codec_t *)switch_core_session_get_read_codec(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_effective_read_codec(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_codec_t *)switch_core_session_get_effective_read_codec(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_write_codec(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - result = (switch_status_t)switch_core_session_set_write_codec(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_write_codec(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_codec_t *)switch_core_session_get_write_codec(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_effective_write_codec(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_codec_t *)switch_core_session_get_effective_write_codec(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_read_codec(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - result = (switch_status_t)switch_core_session_set_video_read_codec(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_video_read_codec(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_codec_t *)switch_core_session_get_video_read_codec(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_write_codec(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_codec_t *)jarg2; - result = (switch_status_t)switch_core_session_set_video_write_codec(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_video_write_codec(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_codec_t *)switch_core_session_get_video_write_codec(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_db_open_file(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_core_db_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_core_db_t *)switch_core_db_open_file((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_persistant_execute(void * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - result = (switch_status_t)switch_core_db_persistant_execute(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_persistant_execute_trans(void * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - result = (switch_status_t)switch_core_db_persistant_execute_trans(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_db_test_reactive(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - - arg1 = (switch_core_db_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - switch_core_db_test_reactive(arg1,arg2,arg3,arg4); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_perform_file_open(char * jarg1, char * jarg2, int jarg3, void * jarg4, char * jarg5, unsigned long jarg6, unsigned long jarg7, unsigned int jarg8, void * jarg9) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - switch_file_handle_t *arg4 = (switch_file_handle_t *) 0 ; - char *arg5 = (char *) 0 ; - uint32_t arg6 ; - uint32_t arg7 ; - unsigned int arg8 ; - switch_memory_pool_t *arg9 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (switch_file_handle_t *)jarg4; - arg5 = (char *)jarg5; - arg6 = (uint32_t)jarg6; - arg7 = (uint32_t)jarg7; - arg8 = (unsigned int)jarg8; - arg9 = (switch_memory_pool_t *)jarg9; - result = (switch_status_t)switch_core_perform_file_open((char const *)arg1,(char const *)arg2,arg3,arg4,(char const *)arg5,arg6,arg7,arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_read(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_size_t *)jarg3; - result = (switch_status_t)switch_core_file_read(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_size_t *)jarg3; - result = (switch_status_t)switch_core_file_write(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write_video(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_size_t *)jarg3; - result = (switch_status_t)switch_core_file_write_video(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_seek(void * jarg1, void * jarg2, long long jarg3, int jarg4) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - unsigned int *arg2 = (unsigned int *) 0 ; - int64_t arg3 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (unsigned int *)jarg2; - arg3 = (int64_t)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_core_file_seek(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_set_string(void * jarg1, int jarg2, char * jarg3) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - switch_audio_col_t arg2 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (switch_audio_col_t)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_file_set_string(arg1,arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_get_string(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - switch_audio_col_t arg2 ; - char **arg3 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (switch_audio_col_t)jarg2; - arg3 = (char **)jarg3; - result = (switch_status_t)switch_core_file_get_string(arg1,arg2,(char const **)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_close(void * jarg1) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - result = (switch_status_t)switch_core_file_close(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_truncate(void * jarg1, long long jarg2) { - int jresult ; - switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - int64_t arg2 ; - switch_status_t result; - - arg1 = (switch_file_handle_t *)jarg1; - arg2 = (int64_t)jarg2; - result = (switch_status_t)switch_core_file_truncate(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_open(void * jarg1, char * jarg2, char * jarg3, unsigned int jarg4, unsigned int jarg5, unsigned int jarg6, void * jarg7, void * jarg8) { - int jresult ; - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - unsigned int arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - switch_speech_flag_t *arg7 = (switch_speech_flag_t *) 0 ; - switch_memory_pool_t *arg8 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (unsigned int)jarg4; - arg5 = (unsigned int)jarg5; - arg6 = (unsigned int)jarg6; - arg7 = (switch_speech_flag_t *)jarg7; - arg8 = (switch_memory_pool_t *)jarg8; - result = (switch_status_t)switch_core_speech_open(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_feed_tts(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_speech_flag_t *arg3 = (switch_speech_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_speech_flag_t *)jarg3; - result = (switch_status_t)switch_core_speech_feed_tts(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_flush_tts(void * jarg1) { - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - - arg1 = (switch_speech_handle_t *)jarg1; - switch_core_speech_flush_tts(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_text_param_tts(void * jarg1, char * jarg2, char * jarg3) { - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - switch_core_speech_text_param_tts(arg1,arg2,(char const *)arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_numeric_param_tts(void * jarg1, char * jarg2, int jarg3) { - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - switch_core_speech_numeric_param_tts(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_float_param_tts(void * jarg1, char * jarg2, double jarg3) { - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - double arg3 ; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (double)jarg3; - switch_core_speech_float_param_tts(arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_read_tts(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_speech_flag_t *arg4 = (switch_speech_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_size_t *)jarg3; - arg4 = (switch_speech_flag_t *)jarg4; - result = (switch_status_t)switch_core_speech_read_tts(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_close(void * jarg1, void * jarg2) { - int jresult ; - switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; - switch_speech_flag_t *arg2 = (switch_speech_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_speech_handle_t *)jarg1; - arg2 = (switch_speech_flag_t *)jarg2; - result = (switch_status_t)switch_core_speech_close(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_open(void * jarg1, char * jarg2, char * jarg3, int jarg4, char * jarg5, void * jarg6, void * jarg7) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - switch_asr_flag_t *arg6 = (switch_asr_flag_t *) 0 ; - switch_memory_pool_t *arg7 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (char *)jarg5; - arg6 = (switch_asr_flag_t *)jarg6; - arg7 = (switch_memory_pool_t *)jarg7; - result = (switch_status_t)switch_core_asr_open(arg1,(char const *)arg2,(char const *)arg3,arg4,(char const *)arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_close(void * jarg1, void * jarg2) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_asr_flag_t *arg2 = (switch_asr_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (switch_asr_flag_t *)jarg2; - result = (switch_status_t)switch_core_asr_close(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_feed(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - void *arg2 = (void *) 0 ; - unsigned int arg3 ; - switch_asr_flag_t *arg4 = (switch_asr_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (unsigned int)jarg3; - arg4 = (switch_asr_flag_t *)jarg4; - result = (switch_status_t)switch_core_asr_feed(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_feed_dtmf(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_asr_flag_t *arg3 = (switch_asr_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - arg3 = (switch_asr_flag_t *)jarg3; - result = (switch_status_t)switch_core_asr_feed_dtmf(arg1,(switch_dtmf_t const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_check_results(void * jarg1, void * jarg2) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_asr_flag_t *arg2 = (switch_asr_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (switch_asr_flag_t *)jarg2; - result = (switch_status_t)switch_core_asr_check_results(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_get_results(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char **arg2 = (char **) 0 ; - switch_asr_flag_t *arg3 = (switch_asr_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char **)jarg2; - arg3 = (switch_asr_flag_t *)jarg3; - result = (switch_status_t)switch_core_asr_get_results(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_get_result_headers(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_asr_flag_t *arg3 = (switch_asr_flag_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - arg3 = (switch_asr_flag_t *)jarg3; - result = (switch_status_t)switch_core_asr_get_result_headers(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_load_grammar(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_asr_load_grammar(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_unload_grammar(void * jarg1, char * jarg2) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_asr_unload_grammar(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_enable_grammar(void * jarg1, char * jarg2) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_asr_enable_grammar(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_disable_grammar(void * jarg1, char * jarg2) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_asr_disable_grammar(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_disable_all_grammars(void * jarg1) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - result = (switch_status_t)switch_core_asr_disable_all_grammars(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_pause(void * jarg1) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - result = (switch_status_t)switch_core_asr_pause(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_resume(void * jarg1) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - result = (switch_status_t)switch_core_asr_resume(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_start_input_timers(void * jarg1) { - int jresult ; - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_asr_handle_t *)jarg1; - result = (switch_status_t)switch_core_asr_start_input_timers(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_asr_text_param(void * jarg1, char * jarg2, char * jarg3) { - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - switch_core_asr_text_param(arg1,arg2,(char const *)arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_asr_numeric_param(void * jarg1, char * jarg2, int jarg3) { - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - switch_core_asr_numeric_param(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_asr_float_param(void * jarg1, char * jarg2, double jarg3) { - switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - double arg3 ; - - arg1 = (switch_asr_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (double)jarg3; - switch_core_asr_float_param(arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_open(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6) { - int jresult ; - switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - switch_memory_pool_t *arg6 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_directory_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (switch_memory_pool_t *)jarg6; - result = (switch_status_t)switch_core_directory_open(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_query(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_directory_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_directory_query(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_next(void * jarg1) { - int jresult ; - switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_directory_handle_t *)jarg1; - result = (switch_status_t)switch_core_directory_next(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_next_pair(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; - char **arg2 = (char **) 0 ; - char **arg3 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_directory_handle_t *)jarg1; - arg2 = (char **)jarg2; - arg3 = (char **)jarg3; - result = (switch_status_t)switch_core_directory_next_pair(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_close(void * jarg1) { - int jresult ; - switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_directory_handle_t *)jarg1; - result = (switch_status_t)switch_core_directory_close(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_data_channel(int jarg1) { - void * jresult ; - switch_text_channel_t arg1 ; - FILE *result = 0 ; - - arg1 = (switch_text_channel_t)jarg1; - result = (FILE *)switch_core_data_channel(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready() { - int jresult ; - switch_bool_t result; - - result = (switch_bool_t)switch_core_ready(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_running() { - int jresult ; - switch_bool_t result; - - result = (switch_bool_t)switch_core_running(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready_inbound() { - int jresult ; - switch_bool_t result; - - result = (switch_bool_t)switch_core_ready_inbound(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready_outbound() { - int jresult ; - switch_bool_t result; - - result = (switch_bool_t)switch_core_ready_outbound(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_flags() { - unsigned long jresult ; - switch_core_flag_t result; - - result = (switch_core_flag_t)switch_core_flags(); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_management_exec(char * jarg1, int jarg2, char * jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_management_action_t arg2 ; - char *arg3 = (char *) 0 ; - switch_size_t arg4 ; - switch_size_t *argp4 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_management_action_t)jarg2; - arg3 = (char *)jarg3; - argp4 = (switch_size_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg4 = *argp4; - result = (switch_status_t)switch_core_management_exec(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_set_normal_priority() { - int jresult ; - int32_t result; - - result = (int32_t)set_normal_priority(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_set_auto_priority() { - int jresult ; - int32_t result; - - result = (int32_t)set_auto_priority(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_set_realtime_priority() { - int jresult ; - int32_t result; - - result = (int32_t)set_realtime_priority(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_set_low_priority() { - int jresult ; - int32_t result; - - result = (int32_t)set_low_priority(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_change_user_group(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int32_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (int32_t)change_user_group((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_runtime_loop(int jarg1) { - int arg1 ; - - arg1 = (int)jarg1; - switch_core_runtime_loop(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_set_console(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - result = (switch_status_t)switch_core_set_console((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_measure_time(void * jarg1, void * jarg2) { - switch_time_t arg1 ; - switch_core_time_duration_t *arg2 = (switch_core_time_duration_t *) 0 ; - switch_time_t *argp1 ; - - argp1 = (switch_time_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg1 = *argp1; - arg2 = (switch_core_time_duration_t *)jarg2; - switch_core_measure_time(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_uptime() { - void * jresult ; - switch_time_t result; - - result = switch_core_uptime(); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_ctl(int jarg1, void * jarg2) { - int jresult ; - switch_session_ctl_t arg1 ; - void *arg2 = (void *) 0 ; - int32_t result; - - arg1 = (switch_session_ctl_t)jarg1; - arg2 = (void *)jarg2; - result = (int32_t)switch_core_session_ctl(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_get_console() { - void * jresult ; - FILE *result = 0 ; - - result = (FILE *)switch_core_get_console(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_set_globals() { - switch_core_set_globals(); -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_core_session_compare(void * jarg1, void * jarg2) { - unsigned char jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - uint8_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - result = (uint8_t)switch_core_session_compare(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_core_session_check_interface(void * jarg1, void * jarg2) { - unsigned char jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_endpoint_interface_t *arg2 = (switch_endpoint_interface_t *) 0 ; - uint8_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_endpoint_interface_t *)jarg2; - result = (uint8_t)switch_core_session_check_interface(arg1,(switch_endpoint_interface const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_mime_index() { - void * jresult ; - switch_hash_index_t *result = 0 ; - - result = (switch_hash_index_t *)switch_core_mime_index(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_mime_ext2type(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_core_mime_ext2type((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_mime_add_type(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_mime_add_type((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_create_module_interface(void * jarg1, char * jarg2) { - void * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_loadable_module_interface_t *)switch_loadable_module_create_module_interface(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_create_interface(void * jarg1, int jarg2) { - void * jresult ; - switch_loadable_module_interface_t *arg1 = (switch_loadable_module_interface_t *) 0 ; - switch_module_interface_name_t arg2 ; - void *result = 0 ; - - arg1 = (switch_loadable_module_interface_t *)jarg1; - arg2 = (switch_module_interface_name_t)jarg2; - result = (void *)switch_loadable_module_create_interface(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_micro_time_now() { - void * jresult ; - switch_time_t result; - - result = switch_micro_time_now(); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_mono_micro_time_now() { - void * jresult ; - switch_time_t result; - - result = switch_mono_micro_time_now(); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim() { - switch_core_memory_reclaim(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim_events() { - switch_core_memory_reclaim_events(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim_logger() { - switch_core_memory_reclaim_logger(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim_all() { - switch_core_memory_reclaim_all(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_setrlimits() { - switch_core_setrlimits(); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_time_ref() { - void * jresult ; - switch_time_t result; - - result = switch_time_ref(); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_sync() { - switch_time_sync(); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_epoch_time_now(void * jarg1) { - void * jresult ; - time_t *arg1 = (time_t *) 0 ; - time_t result; - - arg1 = (time_t *)jarg1; - result = switch_epoch_time_now(arg1); - jresult = new time_t((const time_t &)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_lookup_timezone(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_lookup_timezone((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_strftime_tz(char * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, void * jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - size_t arg4 ; - switch_time_t arg5 ; - switch_time_t *argp5 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (size_t)jarg4; - argp5 = (switch_time_t *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return 0; - } - arg5 = *argp5; - result = (switch_status_t)switch_strftime_tz((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_time_exp_tz_name(char * jarg1, void * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_time_exp_t *arg2 = (switch_time_exp_t *) 0 ; - switch_time_t arg3 ; - switch_time_t *argp3 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_time_exp_t *)jarg2; - argp3 = (switch_time_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_status_t)switch_time_exp_tz_name((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_load_network_lists(int jarg1) { - switch_bool_t arg1 ; - - arg1 = (switch_bool_t)jarg1; - switch_load_network_lists(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_check_network_list_ip_token(char * jarg1, char * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char **arg3 = (char **) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char **)jarg3; - result = (switch_bool_t)switch_check_network_list_ip_token((char const *)arg1,(char const *)arg2,(char const **)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_monotonic(int jarg1) { - switch_bool_t arg1 ; - - arg1 = (switch_bool_t)jarg1; - switch_time_set_monotonic(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_timerfd(int jarg1) { - int arg1 ; - - arg1 = (int)jarg1; - switch_time_set_timerfd(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_nanosleep(int jarg1) { - switch_bool_t arg1 ; - - arg1 = (switch_bool_t)jarg1; - switch_time_set_nanosleep(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_matrix(int jarg1) { - switch_bool_t arg1 ; - - arg1 = (switch_bool_t)jarg1; - switch_time_set_matrix(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_cond_yield(int jarg1) { - switch_bool_t arg1 ; - - arg1 = (switch_bool_t)jarg1; - switch_time_set_cond_yield(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_use_system_time(int jarg1) { - switch_bool_t arg1 ; - - arg1 = (switch_bool_t)jarg1; - switch_time_set_use_system_time(arg1); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_min_dtmf_duration(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_core_min_dtmf_duration(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_max_dtmf_duration(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_core_max_dtmf_duration(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_core_min_idle_cpu(double jarg1) { - double jresult ; - double arg1 ; - double result; - - arg1 = (double)jarg1; - result = (double)switch_core_min_idle_cpu(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_core_idle_cpu() { - double jresult ; - double result; - - result = (double)switch_core_idle_cpu(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_default_dtmf_duration(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_core_default_dtmf_duration(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_set_complete(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - result = (switch_status_t)switch_console_set_complete((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_set_alias(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - result = (switch_status_t)switch_console_set_alias((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_system(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t arg2 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (int)switch_system((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_system(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_stream_handle_t *arg2 = (switch_stream_handle_t *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (switch_stream_handle_t *)jarg2; - result = (int)switch_stream_system((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_yield(void * jarg1) { - switch_interval_time_t arg1 ; - switch_interval_time_t *argp1 ; - - argp1 = (switch_interval_time_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_interval_time_t", 0); - return ; - } - arg1 = *argp1; - switch_cond_yield(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_next() { - switch_cond_next(); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_chat_send_args(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, int jarg9) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - switch_bool_t arg9 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (switch_bool_t)jarg9; - result = (switch_status_t)switch_core_chat_send_args((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_chat_send(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_t *)jarg2; - result = (switch_status_t)switch_core_chat_send((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_chat_deliver(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_core_chat_deliver((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_preprocess_session(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_preprocess_session(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_pause() { - switch_core_sqldb_pause(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_resume() { - switch_core_sqldb_resume(); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CACHE_DB_LEN_get() { - int jresult ; - int result; - - result = (int)(256); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_core_db_dbh_set(void * jarg1, void * jarg2) { - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - switch_core_db_t *arg2 = (switch_core_db_t *) 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - arg2 = (switch_core_db_t *)jarg2; - if (arg1) (arg1)->core_db_dbh = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_core_db_dbh_get(void * jarg1) { - void * jresult ; - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - switch_core_db_t *result = 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - result = (switch_core_db_t *) ((arg1)->core_db_dbh); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_odbc_dbh_set(void * jarg1, void * jarg2) { - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - switch_odbc_handle_t *arg2 = (switch_odbc_handle_t *) 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - arg2 = (switch_odbc_handle_t *)jarg2; - if (arg1) (arg1)->odbc_dbh = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_odbc_dbh_get(void * jarg1) { - void * jresult ; - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - switch_odbc_handle_t *result = 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - result = (switch_odbc_handle_t *) ((arg1)->odbc_dbh); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_pgsql_dbh_set(void * jarg1, void * jarg2) { - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - switch_pgsql_handle_t *arg2 = (switch_pgsql_handle_t *) 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - arg2 = (switch_pgsql_handle_t *)jarg2; - if (arg1) (arg1)->pgsql_dbh = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_pgsql_dbh_get(void * jarg1) { - void * jresult ; - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - switch_pgsql_handle_t *result = 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - result = (switch_pgsql_handle_t *) ((arg1)->pgsql_dbh); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_native_handle_t() { - void * jresult ; - switch_cache_db_native_handle_t *result = 0 ; - - result = (switch_cache_db_native_handle_t *)new switch_cache_db_native_handle_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_native_handle_t(void * jarg1) { - switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; - - arg1 = (switch_cache_db_native_handle_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_core_db_options_t_db_path_set(void * jarg1, char * jarg2) { - switch_cache_db_core_db_options_t *arg1 = (switch_cache_db_core_db_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_cache_db_core_db_options_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->db_path; - if (arg2) { - arg1->db_path = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->db_path, (const char *)arg2); - } else { - arg1->db_path = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_core_db_options_t_db_path_get(void * jarg1) { - char * jresult ; - switch_cache_db_core_db_options_t *arg1 = (switch_cache_db_core_db_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_core_db_options_t *)jarg1; - result = (char *) ((arg1)->db_path); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_core_db_options_t() { - void * jresult ; - switch_cache_db_core_db_options_t *result = 0 ; - - result = (switch_cache_db_core_db_options_t *)new switch_cache_db_core_db_options_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_core_db_options_t(void * jarg1) { - switch_cache_db_core_db_options_t *arg1 = (switch_cache_db_core_db_options_t *) 0 ; - - arg1 = (switch_cache_db_core_db_options_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_dsn_set(void * jarg1, char * jarg2) { - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->dsn; - if (arg2) { - arg1->dsn = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->dsn, (const char *)arg2); - } else { - arg1->dsn = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_dsn_get(void * jarg1) { - char * jresult ; - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - result = (char *) ((arg1)->dsn); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_user_set(void * jarg1, char * jarg2) { - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->user; - if (arg2) { - arg1->user = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->user, (const char *)arg2); - } else { - arg1->user = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_user_get(void * jarg1) { - char * jresult ; - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - result = (char *) ((arg1)->user); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_pass_set(void * jarg1, char * jarg2) { - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->pass; - if (arg2) { - arg1->pass = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->pass, (const char *)arg2); - } else { - arg1->pass = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_pass_get(void * jarg1) { - char * jresult ; - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - result = (char *) ((arg1)->pass); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_odbc_options_t() { - void * jresult ; - switch_cache_db_odbc_options_t *result = 0 ; - - result = (switch_cache_db_odbc_options_t *)new switch_cache_db_odbc_options_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_odbc_options_t(void * jarg1) { - switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; - - arg1 = (switch_cache_db_odbc_options_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_pgsql_options_t_dsn_set(void * jarg1, char * jarg2) { - switch_cache_db_pgsql_options_t *arg1 = (switch_cache_db_pgsql_options_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_cache_db_pgsql_options_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->dsn; - if (arg2) { - arg1->dsn = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->dsn, (const char *)arg2); - } else { - arg1->dsn = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_pgsql_options_t_dsn_get(void * jarg1) { - char * jresult ; - switch_cache_db_pgsql_options_t *arg1 = (switch_cache_db_pgsql_options_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_pgsql_options_t *)jarg1; - result = (char *) ((arg1)->dsn); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_pgsql_options_t() { - void * jresult ; - switch_cache_db_pgsql_options_t *result = 0 ; - - result = (switch_cache_db_pgsql_options_t *)new switch_cache_db_pgsql_options_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_pgsql_options_t(void * jarg1) { - switch_cache_db_pgsql_options_t *arg1 = (switch_cache_db_pgsql_options_t *) 0 ; - - arg1 = (switch_cache_db_pgsql_options_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_core_db_options_set(void * jarg1, void * jarg2) { - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - switch_cache_db_core_db_options_t *arg2 = (switch_cache_db_core_db_options_t *) 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - arg2 = (switch_cache_db_core_db_options_t *)jarg2; - if (arg1) (arg1)->core_db_options = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_core_db_options_get(void * jarg1) { - void * jresult ; - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - switch_cache_db_core_db_options_t *result = 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - result = (switch_cache_db_core_db_options_t *)& ((arg1)->core_db_options); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_odbc_options_set(void * jarg1, void * jarg2) { - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - switch_cache_db_odbc_options_t *arg2 = (switch_cache_db_odbc_options_t *) 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - arg2 = (switch_cache_db_odbc_options_t *)jarg2; - if (arg1) (arg1)->odbc_options = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_odbc_options_get(void * jarg1) { - void * jresult ; - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - switch_cache_db_odbc_options_t *result = 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - result = (switch_cache_db_odbc_options_t *)& ((arg1)->odbc_options); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_pgsql_options_set(void * jarg1, void * jarg2) { - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - switch_cache_db_pgsql_options_t *arg2 = (switch_cache_db_pgsql_options_t *) 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - arg2 = (switch_cache_db_pgsql_options_t *)jarg2; - if (arg1) (arg1)->pgsql_options = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_pgsql_options_get(void * jarg1) { - void * jresult ; - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - switch_cache_db_pgsql_options_t *result = 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - result = (switch_cache_db_pgsql_options_t *)& ((arg1)->pgsql_options); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_connection_options_t() { - void * jresult ; - switch_cache_db_connection_options_t *result = 0 ; - - result = (switch_cache_db_connection_options_t *)new switch_cache_db_connection_options_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_connection_options_t(void * jarg1) { - switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; - - arg1 = (switch_cache_db_connection_options_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_type_name(int jarg1) { - char * jresult ; - switch_cache_db_handle_type_t arg1 ; - char *result = 0 ; - - arg1 = (switch_cache_db_handle_type_t)jarg1; - result = (char *)switch_cache_db_type_name(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_get_type(void * jarg1) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_cache_db_handle_type_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (switch_cache_db_handle_type_t)switch_cache_db_get_type(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_dismiss_db_handle(void * jarg1) { - switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; - - arg1 = (switch_cache_db_handle_t **)jarg1; - switch_cache_db_dismiss_db_handle(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_release_db_handle(void * jarg1) { - switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; - - arg1 = (switch_cache_db_handle_t **)jarg1; - switch_cache_db_release_db_handle(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp__switch_cache_db_get_db_handle(void * jarg1, int jarg2, void * jarg3, char * jarg4, char * jarg5, int jarg6) { - int jresult ; - switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; - switch_cache_db_handle_type_t arg2 ; - switch_cache_db_connection_options_t *arg3 = (switch_cache_db_connection_options_t *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - int arg6 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t **)jarg1; - arg2 = (switch_cache_db_handle_type_t)jarg2; - arg3 = (switch_cache_db_connection_options_t *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (int)jarg6; - result = (switch_status_t)_switch_cache_db_get_db_handle(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp__switch_cache_db_get_db_handle_dsn(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_status_t)_switch_cache_db_get_db_handle_dsn(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_execute_sql2str(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, void * jarg5) { - char * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - size_t arg4 ; - char **arg5 = (char **) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (size_t)jarg4; - arg5 = (char **)jarg5; - result = (char *)switch_cache_db_execute_sql2str(arg1,arg2,arg3,arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char **arg3 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char **)jarg3; - result = (switch_status_t)switch_cache_db_execute_sql(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; - void *arg4 = (void *) 0 ; - char **arg5 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_callback_func_t)jarg3; - arg4 = (void *)jarg4; - arg5 = (char **)jarg5; - result = (switch_status_t)switch_cache_db_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; - switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ; - void *arg5 = (void *) 0 ; - char **arg6 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_callback_func_t)jarg3; - arg4 = (switch_core_db_err_callback_func_t)jarg4; - arg5 = (void *)jarg5; - arg6 = (char **)jarg6; - result = (switch_status_t)switch_cache_db_execute_sql_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_affected_rows(void * jarg1) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - int result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (int)switch_cache_db_affected_rows(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_load_extension(void * jarg1, char * jarg2) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - result = (int)switch_cache_db_load_extension(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_status(void * jarg1) { - switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; - - arg1 = (switch_stream_handle_t *)jarg1; - switch_cache_db_status(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp__switch_core_db_handle(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)_switch_core_db_handle(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_test_reactive(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_bool_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_bool_t)switch_cache_db_test_reactive(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_persistant_execute(void * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - result = (switch_status_t)switch_cache_db_persistant_execute(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_persistant_execute_trans_full(void * jarg1, char * jarg2, unsigned long jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - result = (switch_status_t)switch_cache_db_persistant_execute_trans_full(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_set_signal_handlers() { - switch_core_set_signal_handlers(); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_debug_level() { - unsigned long jresult ; - uint32_t result; - - result = (uint32_t)switch_core_debug_level(); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_flush_handles() { - switch_cache_db_flush_handles(); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_banner() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_core_banner(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_in_thread(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_bool_t)switch_core_session_in_thread(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_default_ptime(char * jarg1, unsigned long jarg2) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - uint32_t arg2 ; - uint32_t result; - - arg1 = (char *)jarg1; - arg2 = (uint32_t)jarg2; - result = (uint32_t)switch_default_ptime((char const *)arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_default_rate(char * jarg1, unsigned long jarg2) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - uint32_t arg2 ; - uint32_t result; - - arg1 = (char *)jarg1; - arg2 = (uint32_t)jarg2; - result = (uint32_t)switch_default_rate((char const *)arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_registration(char * jarg1, char * jarg2, char * jarg3, char * jarg4, unsigned long jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - uint32_t arg5 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - result = (switch_status_t)switch_core_add_registration((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_del_registration(char * jarg1, char * jarg2, char * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_del_registration((char const *)arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_expire_registration(int jarg1) { - int jresult ; - int arg1 ; - switch_status_t result; - - arg1 = (int)jarg1; - result = (switch_status_t)switch_core_expire_registration(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_file_handle_get_variable(void * jarg1, char * jarg2) { - char * jresult ; - switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_say_file_handle_t *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_say_file_handle_get_variable(arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_file_handle_get_path(void * jarg1) { - char * jresult ; - switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_say_file_handle_t *)jarg1; - result = (char *)switch_say_file_handle_get_path(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_file_handle_detach_path(void * jarg1) { - char * jresult ; - switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_say_file_handle_t *)jarg1; - result = (char *)switch_say_file_handle_detach_path(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_file_handle_destroy(void * jarg1) { - switch_say_file_handle_t **arg1 = (switch_say_file_handle_t **) 0 ; - - arg1 = (switch_say_file_handle_t **)jarg1; - switch_say_file_handle_destroy(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_file_handle_create(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_say_file_handle_t **arg1 = (switch_say_file_handle_t **) 0 ; - char *arg2 = (char *) 0 ; - switch_event_t **arg3 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_say_file_handle_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_event_t **)jarg3; - result = (switch_status_t)switch_say_file_handle_create(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_file(void * jarg1, char * jarg2) { - switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - - arg1 = (switch_say_file_handle_t *)jarg1; - arg2 = (char *)jarg2; - switch_say_file(arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_max_file_desc() { - int jresult ; - int result; - - result = (int)switch_max_file_desc(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_close_extra_files(void * jarg1, int jarg2) { - int *arg1 = (int *) 0 ; - int arg2 ; - - arg1 = (int *)jarg1; - arg2 = (int)jarg2; - switch_close_extra_files(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_thread_set_cpu_affinity(int jarg1) { - int jresult ; - int arg1 ; - switch_status_t result; - - arg1 = (int)jarg1; - result = (switch_status_t)switch_core_thread_set_cpu_affinity(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_os_yield() { - switch_os_yield(); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_get_stacksizes(void * jarg1, void * jarg2) { - int jresult ; - switch_size_t *arg1 = (switch_size_t *) 0 ; - switch_size_t *arg2 = (switch_size_t *) 0 ; - switch_status_t result; - - arg1 = (switch_size_t *)jarg1; - arg2 = (switch_size_t *)jarg2; - result = (switch_status_t)switch_core_get_stacksizes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_gen_encoded_silence(void * jarg1, void * jarg2, void * jarg3) { - unsigned char *arg1 = (unsigned char *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - - arg1 = (unsigned char *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg3 = *argp3; - switch_core_gen_encoded_silence(arg1,(switch_codec_implementation const *)arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_dbtype() { - int jresult ; - switch_cache_db_handle_type_t result; - - result = (switch_cache_db_handle_type_t)switch_core_dbtype(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sql_exec(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - switch_core_sql_exec((char const *)arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_recovery_recover(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (int)switch_core_recovery_recover((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_untrack(void * jarg1, int jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - switch_core_recovery_untrack(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_track(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_core_recovery_track(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_flush(char * jarg1, char * jarg2) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - switch_core_recovery_flush((char const *)arg1,(char const *)arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_pause(void * jarg1, int jarg2) { - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - switch_sql_queue_manager_pause(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_resume(void * jarg1) { - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - switch_sql_queue_manager_resume(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_size(void * jarg1, unsigned long jarg2) { - int jresult ; - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - uint32_t arg2 ; - int result; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (int)switch_sql_queue_manager_size(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_push_confirm(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) { - int jresult ; - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_bool_t arg4 ; - switch_status_t result; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_sql_queue_manager_push_confirm(arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_push(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) { - int jresult ; - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_bool_t arg4 ; - switch_status_t result; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_sql_queue_manager_push(arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_destroy(void * jarg1) { - int jresult ; - switch_sql_queue_manager_t **arg1 = (switch_sql_queue_manager_t **) 0 ; - switch_status_t result; - - arg1 = (switch_sql_queue_manager_t **)jarg1; - result = (switch_status_t)switch_sql_queue_manager_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_init_name(char * jarg1, void * jarg2, unsigned long jarg3, char * jarg4, unsigned long jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_sql_queue_manager_t **arg2 = (switch_sql_queue_manager_t **) 0 ; - uint32_t arg3 ; - char *arg4 = (char *) 0 ; - uint32_t arg5 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_sql_queue_manager_t **)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (char *)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - result = (switch_status_t)switch_sql_queue_manager_init_name((char const *)arg1,arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_start(void * jarg1) { - int jresult ; - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - switch_status_t result; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - result = (switch_status_t)switch_sql_queue_manager_start(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_stop(void * jarg1) { - int jresult ; - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - switch_status_t result; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - result = (switch_status_t)switch_sql_queue_manager_stop(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; - void *arg4 = (void *) 0 ; - char **arg5 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_event_callback_func_t)jarg3; - arg4 = (void *)jarg4; - arg5 = (char **)jarg5; - result = (switch_status_t)switch_cache_db_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; - void *arg4 = (void *) 0 ; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_callback_func_t)jarg3; - arg4 = (void *)jarg4; - switch_sql_queue_manager_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; - switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ; - void *arg5 = (void *) 0 ; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_callback_func_t)jarg3; - arg4 = (switch_core_db_err_callback_func_t)jarg4; - arg5 = (void *)jarg5; - switch_sql_queue_manager_execute_sql_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; - void *arg4 = (void *) 0 ; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_event_callback_func_t)jarg3; - arg4 = (void *)jarg4; - switch_sql_queue_manager_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_event_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; - switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ; - void *arg5 = (void *) 0 ; - - arg1 = (switch_sql_queue_manager_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_db_event_callback_func_t)jarg3; - arg4 = (switch_core_db_err_callback_func_t)jarg4; - arg5 = (void *)jarg5; - switch_sql_queue_manager_execute_sql_event_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fork() { - void * jresult ; - pid_t result; - - result = switch_fork(); - jresult = new pid_t((const pid_t &)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_gen_certs(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_core_gen_certs((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_cert_gen_fingerprint(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - dtls_fingerprint_t *arg2 = (dtls_fingerprint_t *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (dtls_fingerprint_t *)jarg2; - result = (int)switch_core_cert_gen_fingerprint((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_cert_expand_fingerprint(void * jarg1, char * jarg2) { - int jresult ; - dtls_fingerprint_t *arg1 = (dtls_fingerprint_t *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (dtls_fingerprint_t *)jarg1; - arg2 = (char *)jarg2; - result = (int)switch_core_cert_expand_fingerprint(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_cert_verify(void * jarg1) { - int jresult ; - dtls_fingerprint_t *arg1 = (dtls_fingerprint_t *) 0 ; - int result; - - arg1 = (dtls_fingerprint_t *)jarg1; - result = (int)switch_core_cert_verify(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_refresh_video(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_core_session_refresh_video(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_system_fork(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_stream_handle_t *arg2 = (switch_stream_handle_t *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (switch_stream_handle_t *)jarg2; - result = (int)switch_stream_system_fork((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ice_direction(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_call_direction_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_call_direction_t)switch_ice_direction(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_debug_pool(void * jarg1) { - switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; - - arg1 = (switch_stream_handle_t *)jarg1; - switch_core_session_debug_pool(arg1); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_major() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_major(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_minor() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_minor(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_micro() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_micro(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_revision(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision_human() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_revision_human(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_full(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full_human() { - char * jresult ; - char *result = 0 ; - - result = (char *)switch_version_full_human(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_module_name_set(void * jarg1, char * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->module_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->module_name, (const char *)arg2); - } else { - arg1->module_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_loadable_module_interface_module_name_get(void * jarg1) { - char * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (char *) ((arg1)->module_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_endpoint_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_endpoint_interface_t *arg2 = (switch_endpoint_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_endpoint_interface_t *)jarg2; - if (arg1) (arg1)->endpoint_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_endpoint_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_endpoint_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_endpoint_interface_t *) ((arg1)->endpoint_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_timer_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_timer_interface_t *arg2 = (switch_timer_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_timer_interface_t *)jarg2; - if (arg1) (arg1)->timer_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_timer_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_timer_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_timer_interface_t *) ((arg1)->timer_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_dialplan_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_dialplan_interface_t *arg2 = (switch_dialplan_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_dialplan_interface_t *)jarg2; - if (arg1) (arg1)->dialplan_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_dialplan_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_dialplan_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_dialplan_interface_t *) ((arg1)->dialplan_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_codec_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_codec_interface_t *)jarg2; - if (arg1) (arg1)->codec_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_codec_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_codec_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_codec_interface_t *) ((arg1)->codec_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_application_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_application_interface_t *arg2 = (switch_application_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_application_interface_t *)jarg2; - if (arg1) (arg1)->application_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_application_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_application_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_application_interface_t *) ((arg1)->application_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_application_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_chat_application_interface_t *arg2 = (switch_chat_application_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_chat_application_interface_t *)jarg2; - if (arg1) (arg1)->chat_application_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_application_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_chat_application_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_chat_application_interface_t *) ((arg1)->chat_application_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_api_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_api_interface_t *arg2 = (switch_api_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_api_interface_t *)jarg2; - if (arg1) (arg1)->api_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_api_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_api_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_api_interface_t *) ((arg1)->api_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_json_api_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_json_api_interface_t *arg2 = (switch_json_api_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_json_api_interface_t *)jarg2; - if (arg1) (arg1)->json_api_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_json_api_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_json_api_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_json_api_interface_t *) ((arg1)->json_api_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_file_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_file_interface_t *arg2 = (switch_file_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_file_interface_t *)jarg2; - if (arg1) (arg1)->file_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_file_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_file_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_file_interface_t *) ((arg1)->file_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_speech_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_speech_interface_t *arg2 = (switch_speech_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_speech_interface_t *)jarg2; - if (arg1) (arg1)->speech_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_speech_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_speech_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_speech_interface_t *) ((arg1)->speech_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_directory_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_directory_interface_t *arg2 = (switch_directory_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_directory_interface_t *)jarg2; - if (arg1) (arg1)->directory_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_directory_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_directory_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_directory_interface_t *) ((arg1)->directory_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_chat_interface_t *arg2 = (switch_chat_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_chat_interface_t *)jarg2; - if (arg1) (arg1)->chat_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_chat_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_chat_interface_t *) ((arg1)->chat_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_say_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_say_interface_t *arg2 = (switch_say_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_say_interface_t *)jarg2; - if (arg1) (arg1)->say_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_say_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_say_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_say_interface_t *) ((arg1)->say_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_asr_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_asr_interface_t *arg2 = (switch_asr_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_asr_interface_t *)jarg2; - if (arg1) (arg1)->asr_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_asr_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_asr_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_asr_interface_t *) ((arg1)->asr_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_management_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_management_interface_t *arg2 = (switch_management_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_management_interface_t *)jarg2; - if (arg1) (arg1)->management_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_management_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_management_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_management_interface_t *) ((arg1)->management_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_limit_interface_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_limit_interface_t *arg2 = (switch_limit_interface_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_limit_interface_t *)jarg2; - if (arg1) (arg1)->limit_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_limit_interface_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_limit_interface_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_limit_interface_t *) ((arg1)->limit_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_refs_set(void * jarg1, int jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - int arg2 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_interface_refs_get(void * jarg1) { - int jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - int result; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_pool_set(void * jarg1, void * jarg2) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_pool_get(void * jarg1) { - void * jresult ; - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_loadable_module_interface() { - void * jresult ; - switch_loadable_module_interface *result = 0 ; - - result = (switch_loadable_module_interface *)new switch_loadable_module_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_loadable_module_interface(void * jarg1) { - switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; - - arg1 = (switch_loadable_module_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_init(int jarg1) { - int jresult ; - switch_bool_t arg1 ; - switch_status_t result; - - arg1 = (switch_bool_t)jarg1; - result = (switch_status_t)switch_loadable_module_init(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_shutdown() { - switch_loadable_module_shutdown(); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_endpoint_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_endpoint_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_endpoint_interface_t *)switch_loadable_module_get_endpoint_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_codec_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_codec_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_codec_interface_t *)switch_loadable_module_get_codec_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { - char * jresult ; - char *arg1 = (char *) 0 ; - uint32_t *arg2 = (uint32_t *) 0 ; - uint32_t *arg3 = (uint32_t *) 0 ; - uint32_t *arg4 = (uint32_t *) 0 ; - uint32_t *arg5 = (uint32_t *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (uint32_t *)jarg2; - arg3 = (uint32_t *)jarg3; - arg4 = (uint32_t *)jarg4; - arg5 = (uint32_t *)jarg5; - result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_dialplan_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_dialplan_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_dialplan_interface_t *)switch_loadable_module_get_dialplan_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_enumerate_available(char * jarg1, void * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_modulename_callback_func_t arg2 = (switch_modulename_callback_func_t) 0 ; - void *arg3 = (void *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_modulename_callback_func_t)jarg2; - arg3 = (void *)jarg3; - result = (switch_status_t)switch_loadable_module_enumerate_available((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_enumerate_loaded(void * jarg1, void * jarg2) { - int jresult ; - switch_modulename_callback_func_t arg1 = (switch_modulename_callback_func_t) 0 ; - void *arg2 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_modulename_callback_func_t)jarg1; - arg2 = (void *)jarg2; - result = (switch_status_t)switch_loadable_module_enumerate_loaded(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_build_dynamic(char * jarg1, void * jarg2, void * jarg3, void * jarg4, int jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_module_load_t arg2 = (switch_module_load_t) 0 ; - switch_module_runtime_t arg3 = (switch_module_runtime_t) 0 ; - switch_module_shutdown_t arg4 = (switch_module_shutdown_t) 0 ; - switch_bool_t arg5 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_module_load_t)jarg2; - arg3 = (switch_module_runtime_t)jarg3; - arg4 = (switch_module_shutdown_t)jarg4; - arg5 = (switch_bool_t)jarg5; - result = (switch_status_t)switch_loadable_module_build_dynamic(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_timer_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_timer_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_timer_interface_t *)switch_loadable_module_get_timer_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_application_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_application_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_application_interface_t *)switch_loadable_module_get_application_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_chat_application_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_chat_application_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_chat_application_interface_t *)switch_loadable_module_get_chat_application_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_execute_chat_app(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_core_execute_chat_app(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_api_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_api_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_api_interface_t *)switch_loadable_module_get_api_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_json_api_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_json_api_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_json_api_interface_t *)switch_loadable_module_get_json_api_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_file_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_file_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_file_interface_t *)switch_loadable_module_get_file_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_speech_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_speech_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_speech_interface_t *)switch_loadable_module_get_speech_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_asr_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_asr_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_asr_interface_t *)switch_loadable_module_get_asr_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_directory_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_directory_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_directory_interface_t *)switch_loadable_module_get_directory_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_chat_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_chat_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_chat_interface_t *)switch_loadable_module_get_chat_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_say_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_say_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_say_interface_t *)switch_loadable_module_get_say_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_management_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_management_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_management_interface_t *)switch_loadable_module_get_management_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_limit_interface(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_limit_interface_t *result = 0 ; - - arg1 = (char *)jarg1; - result = (switch_limit_interface_t *)switch_loadable_module_get_limit_interface((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs(void * jarg1, int jarg2) { - int jresult ; - switch_codec_implementation_t **arg1 = (switch_codec_implementation_t **) 0 ; - int arg2 ; - int result; - - arg1 = (switch_codec_implementation_t **)jarg1; - arg2 = (int)jarg2; - result = (int)switch_loadable_module_get_codecs((switch_codec_implementation const **)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs_sorted(void * jarg1, int jarg2, void * jarg3, int jarg4) { - int jresult ; - switch_codec_implementation_t **arg1 = (switch_codec_implementation_t **) 0 ; - int arg2 ; - char **arg3 = (char **) 0 ; - int arg4 ; - int result; - - arg1 = (switch_codec_implementation_t **)jarg1; - arg2 = (int)jarg2; - arg3 = (char **)jarg3; - arg4 = (int)jarg4; - result = (int)switch_loadable_module_get_codecs_sorted((switch_codec_implementation const **)arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_api_execute(char * jarg1, char * jarg2, void * jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_core_session_t *arg3 = (switch_core_session_t *) 0 ; - switch_stream_handle_t *arg4 = (switch_stream_handle_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_core_session_t *)jarg3; - arg4 = (switch_stream_handle_t *)jarg4; - result = (switch_status_t)switch_api_execute((char const *)arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_json_api_execute(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - cJSON *arg1 = (cJSON *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - cJSON **arg3 = (cJSON **) 0 ; - switch_status_t result; - - arg1 = (cJSON *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - arg3 = (cJSON **)jarg3; - result = (switch_status_t)switch_json_api_execute(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_load_module(char * jarg1, char * jarg2, int jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - char **arg4 = (char **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (char **)jarg4; - result = (switch_status_t)switch_loadable_module_load_module(arg1,arg2,arg3,(char const **)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_exists(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - result = (switch_status_t)switch_loadable_module_exists((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_unload_module(char * jarg1, char * jarg2, int jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - char **arg4 = (char **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (char **)jarg4; - result = (switch_status_t)switch_loadable_module_unload_module(arg1,arg2,arg3,(char const **)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_codec_next_id() { - unsigned long jresult ; - uint32_t result; - - result = (uint32_t)switch_core_codec_next_id(); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_check_interval(unsigned long jarg1, unsigned long jarg2) { - int jresult ; - uint32_t arg1 ; - uint32_t arg2 ; - int result; - - arg1 = (uint32_t)jarg1; - arg2 = (uint32_t)jarg2; - result = (int)switch_check_interval(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_codec_add_implementation(void * jarg1, void * jarg2, int jarg3, unsigned char jarg4, char * jarg5, char * jarg6, unsigned long jarg7, unsigned long jarg8, int jarg9, int jarg10, unsigned long jarg11, unsigned long jarg12, unsigned long jarg13, unsigned char jarg14, int jarg15, void * jarg16, void * jarg17, void * jarg18, void * jarg19) { - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; - switch_codec_type_t arg3 ; - switch_payload_t arg4 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - uint32_t arg7 ; - uint32_t arg8 ; - int arg9 ; - int arg10 ; - uint32_t arg11 ; - uint32_t arg12 ; - uint32_t arg13 ; - uint8_t arg14 ; - int arg15 ; - switch_core_codec_init_func_t arg16 = (switch_core_codec_init_func_t) 0 ; - switch_core_codec_encode_func_t arg17 = (switch_core_codec_encode_func_t) 0 ; - switch_core_codec_decode_func_t arg18 = (switch_core_codec_decode_func_t) 0 ; - switch_core_codec_destroy_func_t arg19 = (switch_core_codec_destroy_func_t) 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (switch_codec_interface_t *)jarg2; - arg3 = (switch_codec_type_t)jarg3; - arg4 = (switch_payload_t)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (uint32_t)jarg7; - arg8 = (uint32_t)jarg8; - arg9 = (int)jarg9; - arg10 = (int)jarg10; - arg11 = (uint32_t)jarg11; - arg12 = (uint32_t)jarg12; - arg13 = (uint32_t)jarg13; - arg14 = (uint8_t)jarg14; - arg15 = (int)jarg15; - arg16 = (switch_core_codec_init_func_t)jarg16; - arg17 = (switch_core_codec_encode_func_t)jarg17; - arg18 = (switch_core_codec_decode_func_t)jarg18; - arg19 = (switch_core_codec_destroy_func_t)jarg19; - switch_core_codec_add_implementation(arg1,arg2,arg3,arg4,(char const *)arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_ready(void * jarg1) { - int jresult ; - switch_codec_t *arg1 = (switch_codec_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_codec_t *)jarg1; - result = (switch_bool_t)switch_core_codec_ready(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_get_secondary_recover_callback(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_core_recover_callback_t result; - - arg1 = (char *)jarg1; - result = (switch_core_recover_callback_t)switch_core_get_secondary_recover_callback((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_register_secondary_recover_callback(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_core_recover_callback_t arg2 = (switch_core_recover_callback_t) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_core_recover_callback_t)jarg2; - result = (switch_status_t)switch_core_register_secondary_recover_callback((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_unregister_secondary_recover_callback(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - switch_core_unregister_secondary_recover_callback((char const *)arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CMD_CHUNK_LEN_get() { - int jresult ; - int result; - - result = (int)(1024); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_loop() { - switch_console_loop(); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_stream_raw_write(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_status_t result; - - arg1 = (switch_stream_handle_t *)jarg1; - arg2 = (uint8_t *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_status_t)switch_console_stream_raw_write(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_write_file_contents(void * jarg1, char * jarg2) { - int jresult ; - switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_stream_handle_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_stream_write_file_contents(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_init(void * jarg1) { - int jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t *)jarg1; - result = (switch_status_t)switch_console_init(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_shutdown() { - int jresult ; - switch_status_t result; - - result = (switch_status_t)switch_console_shutdown(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_add_complete_func(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_console_complete_callback_t arg2 = (switch_console_complete_callback_t) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_console_complete_callback_t)jarg2; - result = (switch_status_t)switch_console_add_complete_func((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_del_complete_func(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - result = (switch_status_t)switch_console_del_complete_func((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_run_complete_func(char * jarg1, char * jarg2, char * jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_console_callback_match_t **arg4 = (switch_console_callback_match_t **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_console_callback_match_t **)jarg4; - result = (switch_status_t)switch_console_run_complete_func((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_push_match_unique(void * jarg1, char * jarg2) { - switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_console_callback_match_t **)jarg1; - arg2 = (char *)jarg2; - switch_console_push_match_unique(arg1,(char const *)arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_push_match(void * jarg1, char * jarg2) { - switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_console_callback_match_t **)jarg1; - arg2 = (char *)jarg2; - switch_console_push_match(arg1,(char const *)arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_free_matches(void * jarg1) { - switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; - - arg1 = (switch_console_callback_match_t **)jarg1; - switch_console_free_matches(arg1); -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_console_complete(char * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - unsigned char jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - FILE *arg3 = (FILE *) 0 ; - switch_stream_handle_t *arg4 = (switch_stream_handle_t *) 0 ; - switch_xml_t arg5 = (switch_xml_t) 0 ; - unsigned char result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (FILE *)jarg3; - arg4 = (switch_stream_handle_t *)jarg4; - arg5 = (switch_xml_t)jarg5; - result = (unsigned char)switch_console_complete((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_sort_matches(void * jarg1) { - switch_console_callback_match_t *arg1 = (switch_console_callback_match_t *) 0 ; - - arg1 = (switch_console_callback_match_t *)jarg1; - switch_console_sort_matches(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_save_history() { - switch_console_save_history(); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_console_expand_alias(char * jarg1, char * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_console_expand_alias(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_execute(char * jarg1, int jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - switch_stream_handle_t *arg3 = (switch_stream_handle_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - arg3 = (switch_stream_handle_t *)jarg3; - result = (switch_status_t)switch_console_execute(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_toupper(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_toupper(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_tolower(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_tolower(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_toupper_max(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - switch_toupper_max(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_tolower_max(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - switch_tolower_max(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_old_switch_toupper(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)old_switch_toupper(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_old_switch_tolower(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)old_switch_tolower(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isalnum(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isalnum(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isalpha(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isalpha(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_iscntrl(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_iscntrl(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isdigit(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isdigit(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isgraph(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isgraph(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_islower(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_islower(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isprint(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isprint(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ispunct(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_ispunct(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isspace(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isspace(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isupper(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isupper(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_isxdigit(int jarg1) { - int jresult ; - int arg1 ; - int result; - - arg1 = (int)jarg1; - result = (int)switch_isxdigit(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ip_t_v4_set(void * jarg1, unsigned long jarg2) { - ip_t *arg1 = (ip_t *) 0 ; - uint32_t arg2 ; - - arg1 = (ip_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->v4 = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_ip_t_v4_get(void * jarg1) { - unsigned long jresult ; - ip_t *arg1 = (ip_t *) 0 ; - uint32_t result; - - arg1 = (ip_t *)jarg1; - result = (uint32_t) ((arg1)->v4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ip_t_v6_set(void * jarg1, void * jarg2) { - ip_t *arg1 = (ip_t *) 0 ; - in6_addr arg2 ; - in6_addr *argp2 ; - - arg1 = (ip_t *)jarg1; - argp2 = (in6_addr *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null in6_addr", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->v6 = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_ip_t_v6_get(void * jarg1) { - void * jresult ; - ip_t *arg1 = (ip_t *) 0 ; - in6_addr result; - - arg1 = (ip_t *)jarg1; - result = ((arg1)->v6); - jresult = new in6_addr((const in6_addr &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_ip_t() { - void * jresult ; - ip_t *result = 0 ; - - result = (ip_t *)new ip_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_ip_t(void * jarg1) { - ip_t *arg1 = (ip_t *) 0 ; - - arg1 = (ip_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_testv6_subnet(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - ip_t arg1 ; - ip_t arg2 ; - ip_t arg3 ; - ip_t *argp1 ; - ip_t *argp2 ; - ip_t *argp3 ; - switch_bool_t result; - - argp1 = (ip_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); - return 0; - } - arg1 = *argp1; - argp2 = (ip_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); - return 0; - } - arg2 = *argp2; - argp3 = (ip_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_bool_t)switch_testv6_subnet(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_print_host(void * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - char *result = 0 ; - - arg1 = (switch_sockaddr_t *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_print_host(arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SMAX_get() { - int jresult ; - int result; - - result = (int)(32767); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SMIN_get() { - int jresult ; - int result; - - result = (int)(-32768); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp__zstr(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)_zstr((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_moh(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_is_moh((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strchr_strict(char * jarg1, char jarg2, char * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char arg2 ; - char *arg3 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char)jarg2; - arg3 = (char *)jarg3; - result = (char *)switch_strchr_strict((char const *)arg1,arg2,(char const *)arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_has_escaped_data(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_string_has_escaped_data((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_b64_encode(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - unsigned char *arg1 = (unsigned char *) 0 ; - switch_size_t arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - switch_size_t arg4 ; - switch_size_t *argp2 ; - switch_size_t *argp4 ; - switch_status_t result; - - arg1 = (unsigned char *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (unsigned char *)jarg3; - argp4 = (switch_size_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg4 = *argp4; - result = (switch_status_t)switch_b64_encode(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_b64_decode(char * jarg1, char * jarg2, void * jarg3) { - void * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_b64_decode(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_amp_encode(char * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_amp_encode(arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_digit_string(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_is_digit_string((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_switch_itodtmf(char jarg1) { - char jresult ; - char arg1 ; - char result; - - arg1 = (char)jarg1; - result = (char)switch_itodtmf(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmftoi(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_dtmftoi(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_known_bitrate(unsigned char jarg1) { - unsigned long jresult ; - switch_payload_t arg1 ; - uint32_t result; - - arg1 = (switch_payload_t)jarg1; - result = (uint32_t)switch_known_bitrate(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fd_read_line(int jarg1, char * jarg2, void * jarg3) { - void * jresult ; - int arg1 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (int)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_fd_read_line(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fd_read_dline(int jarg1, void * jarg2, void * jarg3) { - void * jresult ; - int arg1 ; - char **arg2 = (char **) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_size_t result; - - arg1 = (int)jarg1; - arg2 = (char **)jarg2; - arg3 = (switch_size_t *)jarg3; - result = switch_fd_read_dline(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fp_read_dline(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - FILE *arg1 = (FILE *) 0 ; - char **arg2 = (char **) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_size_t result; - - arg1 = (FILE *)jarg1; - arg2 = (char **)jarg2; - arg3 = (switch_size_t *)jarg3; - result = switch_fp_read_dline(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_alloc(void * jarg1, void * jarg2) { - int jresult ; - switch_frame_t **arg1 = (switch_frame_t **) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - switch_status_t result; - - arg1 = (switch_frame_t **)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - result = (switch_status_t)switch_frame_alloc(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_dup(void * jarg1, void * jarg2) { - int jresult ; - switch_frame_t *arg1 = (switch_frame_t *) 0 ; - switch_frame_t **arg2 = (switch_frame_t **) 0 ; - switch_status_t result; - - arg1 = (switch_frame_t *)jarg1; - arg2 = (switch_frame_t **)jarg2; - result = (switch_status_t)switch_frame_dup(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_free(void * jarg1) { - int jresult ; - switch_frame_t **arg1 = (switch_frame_t **) 0 ; - switch_status_t result; - - arg1 = (switch_frame_t **)jarg1; - result = (switch_status_t)switch_frame_free(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_number(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_is_number((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_find_parameter(char * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_memory_pool_t *)jarg3; - result = (char *)switch_find_parameter((char const *)arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_true(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_true((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_true_byte(char * jarg1) { - unsigned char jresult ; - char *arg1 = (char *) 0 ; - switch_byte_t result; - - arg1 = (char *)jarg1; - result = (switch_byte_t)switch_true_byte((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_false(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_false((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_resolve_host(char * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (size_t)jarg3; - result = (switch_status_t)switch_resolve_host((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_find_local_ip(char * jarg1, int jarg2, void * jarg3, int jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - arg3 = (int *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_find_local_ip(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_find_interface_ip(char * jarg1, int jarg2, void * jarg3, char * jarg4, int jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - arg3 = (int *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_status_t)switch_find_interface_ip(arg1,arg2,arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_get_addr(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_size_t arg2 ; - sockaddr *arg3 = (sockaddr *) 0 ; - socklen_t arg4 ; - switch_size_t *argp2 ; - socklen_t *argp4 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (sockaddr *)jarg3; - argp4 = (socklen_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null socklen_t", 0); - return 0; - } - arg4 = *argp4; - result = (char *)get_addr(arg1,arg2,arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_get_addr6(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_size_t arg2 ; - sockaddr_in6 *arg3 = (sockaddr_in6 *) 0 ; - socklen_t arg4 ; - switch_size_t *argp2 ; - socklen_t *argp4 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (sockaddr_in6 *)jarg3; - argp4 = (socklen_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null socklen_t", 0); - return 0; - } - arg4 = *argp4; - result = (char *)get_addr6(arg1,arg2,arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_get_addr_int(void * jarg1) { - int jresult ; - switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; - int result; - - arg1 = (switch_sockaddr_t *)jarg1; - result = (int)get_addr_int(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cmp_addr(void * jarg1, void * jarg2) { - int jresult ; - switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; - switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; - int result; - - arg1 = (switch_sockaddr_t *)jarg1; - arg2 = (switch_sockaddr_t *)jarg2; - result = (int)switch_cmp_addr(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_get_port(void * jarg1) { - unsigned short jresult ; - sockaddr *arg1 = (sockaddr *) 0 ; - unsigned short result; - - arg1 = (sockaddr *)jarg1; - result = (unsigned short)get_port(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_build_uri(char * jarg1, void * jarg2, char * jarg3, char * jarg4, void * jarg5, int jarg6) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_size_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_sockaddr_t *arg5 = (switch_sockaddr_t *) 0 ; - int arg6 ; - switch_size_t *argp2 ; - int result; - - arg1 = (char *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_sockaddr_t *)jarg5; - arg6 = (int)jarg6; - result = (int)switch_build_uri(arg1,arg2,(char const *)arg3,(char const *)arg4,(switch_sockaddr_t const *)arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_priority_name(int jarg1) { - char * jresult ; - switch_priority_t arg1 ; - char *result = 0 ; - - arg1 = (switch_priority_t)jarg1; - result = (char *)switch_priority_name(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_switch_rfc2833_to_char(int jarg1) { - char jresult ; - int arg1 ; - char result; - - arg1 = (int)jarg1; - result = (char)switch_rfc2833_to_char(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_char_to_rfc2833(char jarg1) { - unsigned char jresult ; - char arg1 ; - unsigned char result; - - arg1 = (char)jarg1; - result = (unsigned char)switch_char_to_rfc2833(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_sanitize_number(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_sanitize_number(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_var_check(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t arg2 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_bool_t)switch_string_var_check(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_var_check_const(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_string_var_check_const((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_var_clean_string(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_var_clean_string(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_clean_string(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_clean_string(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_clean_name_string(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_clean_name_string(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_safe_atoi(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - result = (int)switch_safe_atoi((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_safe_strdup(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_safe_strdup((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_lc_strdup(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_lc_strdup((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_uc_strdup(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_uc_strdup((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_strstr(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_bool_t)switch_strstr(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_str_time(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_time_t result; - - arg1 = (char *)jarg1; - result = switch_str_time((char const *)arg1); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_separate_string(char * jarg1, char jarg2, void * jarg3, unsigned int jarg4) { - unsigned int jresult ; - char *arg1 = (char *) 0 ; - char arg2 ; - char **arg3 = (char **) 0 ; - unsigned int arg4 ; - unsigned int result; - - arg1 = (char *)jarg1; - arg2 = (char)jarg2; - arg3 = (char **)jarg3; - arg4 = (unsigned int)jarg4; - result = (unsigned int)switch_separate_string(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_separate_string_string(char * jarg1, char * jarg2, void * jarg3, unsigned int jarg4) { - unsigned int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char **arg3 = (char **) 0 ; - unsigned int arg4 ; - unsigned int result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char **)jarg3; - arg4 = (unsigned int)jarg4; - result = (unsigned int)switch_separate_string_string(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_spaces(char * jarg1, int jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t arg2 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (char *)switch_strip_spaces(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_whitespace(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_strip_whitespace((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_commas(char * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_strip_commas(arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_nonnumerics(char * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_strip_nonnumerics(arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_separate_paren_args(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_separate_paren_args(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_stristr(char * jarg1, char * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_stristr((char const *)arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_lan_addr(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_is_lan_addr((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_replace_char(char * jarg1, char jarg2, char jarg3, int jarg4) { - char * jresult ; - char *arg1 = (char *) 0 ; - char arg2 ; - char arg3 ; - switch_bool_t arg4 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char)jarg2; - arg3 = (char)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (char *)switch_replace_char(arg1,arg2,arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ast2regex(char * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (size_t)jarg3; - result = (switch_bool_t)switch_ast2regex((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_escape_char(void * jarg1, char * jarg2, char * jarg3, char jarg4) { - char * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char arg4 ; - char *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char)jarg4; - result = (char *)switch_escape_char(arg1,arg2,(char const *)arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_escape_string(char * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_escape_string((char const *)arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_escape_string_pool(char * jarg1, void * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - result = (char *)switch_escape_string_pool((char const *)arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_socket_waitfor(void * jarg1, int jarg2) { - int jresult ; - switch_pollfd_t *arg1 = (switch_pollfd_t *) 0 ; - int arg2 ; - int result; - - arg1 = (switch_pollfd_t *)jarg1; - arg2 = (int)jarg2; - result = (int)switch_socket_waitfor(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cut_path(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_cut_path((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_string_replace(char * jarg1, char * jarg2, char * jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (char *)switch_string_replace((char const *)arg1,(char const *)arg2,(char const *)arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_match(char * jarg1, unsigned long jarg2, char * jarg3, unsigned long jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - size_t arg2 ; - char *arg3 = (char *) 0 ; - size_t arg4 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (size_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (size_t)jarg4; - result = (switch_status_t)switch_string_match((char const *)arg1,arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_strcasecmp_any(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - void *arg2 = 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_strcasecmp_any((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_util_quote_shell_arg((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg_pool(char * jarg1, void * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - result = (char *)switch_util_quote_shell_arg_pool((char const *)arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_encode(char * jarg1, char * jarg2, unsigned long jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (size_t)jarg3; - result = (char *)switch_url_encode((char const *)arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_decode(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_url_decode(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_simple_email(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - result = (switch_bool_t)switch_simple_email((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_find_end_paren(char * jarg1, char jarg2, char jarg3) { - char * jresult ; - char *arg1 = (char *) 0 ; - char arg2 ; - char arg3 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char)jarg2; - arg3 = (char)jarg3; - result = (char *)switch_find_end_paren((char const *)arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_separate_file_params(char * jarg1, void * jarg2, void * jarg3) { - char *arg1 = (char *) 0 ; - char **arg2 = (char **) 0 ; - char **arg3 = (char **) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char **)jarg2; - arg3 = (char **)jarg3; - switch_separate_file_params((char const *)arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_file_path(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_is_file_path((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_parse_cidr(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - ip_t *arg2 = (ip_t *) 0 ; - ip_t *arg3 = (ip_t *) 0 ; - uint32_t *arg4 = (uint32_t *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (ip_t *)jarg2; - arg3 = (ip_t *)jarg3; - arg4 = (uint32_t *)jarg4; - result = (int)switch_parse_cidr((char const *)arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_create(void * jarg1, char * jarg2, int jarg3, void * jarg4) { - int jresult ; - switch_network_list_t **arg1 = (switch_network_list_t **) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - switch_memory_pool_t *arg4 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_network_list_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (switch_memory_pool_t *)jarg4; - result = (switch_status_t)switch_network_list_create(arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_add_cidr_token(void * jarg1, char * jarg2, int jarg3, char * jarg4) { - int jresult ; - switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_network_list_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_network_list_add_cidr_token(arg1,(char const *)arg2,arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_add_host_mask(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t arg4 ; - switch_status_t result; - - arg1 = (switch_network_list_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_network_list_add_host_mask(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip_token(void * jarg1, unsigned long jarg2, void * jarg3) { - int jresult ; - switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; - uint32_t arg2 ; - char **arg3 = (char **) 0 ; - switch_bool_t result; - - arg1 = (switch_network_list_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (char **)jarg3; - result = (switch_bool_t)switch_network_list_validate_ip_token(arg1,arg2,(char const **)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip6_token(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; - ip_t arg2 ; - char **arg3 = (char **) 0 ; - ip_t *argp2 ; - switch_bool_t result; - - arg1 = (switch_network_list_t *)jarg1; - argp2 = (ip_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); - return 0; - } - arg2 = *argp2; - arg3 = (char **)jarg3; - result = (switch_bool_t)switch_network_list_validate_ip6_token(arg1,arg2,(char const **)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_dow_int2str(int jarg1) { - char * jresult ; - int arg1 ; - char *result = 0 ; - - arg1 = (int)jarg1; - result = (char *)switch_dow_int2str(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_dow_str2int(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - result = (int)switch_dow_str2int((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_dow_cmp(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - result = (switch_bool_t)switch_dow_cmp((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_number_cmp(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - result = (int)switch_number_cmp((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_tod_cmp(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - result = (int)switch_tod_cmp((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_fulldate_cmp(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_time_t *arg2 = (switch_time_t *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (switch_time_t *)jarg2; - result = (int)switch_fulldate_cmp((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_split_date(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int *)jarg3; - arg4 = (int *)jarg4; - switch_split_date((char const *)arg1,arg2,arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_split_time(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int *)jarg3; - arg4 = (int *)jarg4; - switch_split_time((char const *)arg1,arg2,arg3,arg4); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_split_user_domain(char * jarg1, void * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char **arg2 = (char **) 0 ; - char **arg3 = (char **) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (char **)jarg2; - arg3 = (char **)jarg3; - result = (int)switch_split_user_domain(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_uuid_str(char * jarg1, void * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - result = (char *)switch_uuid_str(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_format_number(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)switch_format_number((char const *)arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_atoui(char * jarg1) { - unsigned int jresult ; - char *arg1 = (char *) 0 ; - unsigned int result; - - arg1 = (char *)jarg1; - result = (unsigned int)switch_atoui((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_atoul(char * jarg1) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - unsigned long result; - - arg1 = (char *)jarg1; - result = (unsigned long)switch_atoul((char const *)arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strerror_r(int jarg1, char * jarg2, void * jarg3) { - char * jresult ; - int arg1 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - char *result = 0 ; - - arg1 = (int)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_strerror_r(arg1,arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_wait_sock(int jarg1, unsigned long jarg2, int jarg3) { - int jresult ; - switch_os_socket_t arg1 ; - uint32_t arg2 ; - switch_poll_t arg3 ; - int result; - - arg1 = (switch_os_socket_t)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (switch_poll_t)jarg3; - result = (int)switch_wait_sock(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_wait_socklist(void * jarg1, unsigned long jarg2, unsigned long jarg3) { - int jresult ; - switch_waitlist_t *arg1 = (switch_waitlist_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - int result; - - arg1 = (switch_waitlist_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - result = (int)switch_wait_socklist(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_method_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->method = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->method, (const char *)arg2); - } else { - arg1->method = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_method_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->method); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_uri_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->uri = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uri, (const char *)arg2); - } else { - arg1->uri = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_uri_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->uri); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_qs_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->qs = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->qs, (const char *)arg2); - } else { - arg1->qs = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_qs_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->qs); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_host_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->host = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->host, (const char *)arg2); - } else { - arg1->host = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_host_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->host); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_port_set(void * jarg1, unsigned short jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_port_t arg2 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (switch_port_t)jarg2; - if (arg1) (arg1)->port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_http_request_t_port_get(void * jarg1) { - unsigned short jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_port_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = (switch_port_t) ((arg1)->port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_from_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->from = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->from, (const char *)arg2); - } else { - arg1->from = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_from_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->from); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_user_agent_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->user_agent = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->user_agent, (const char *)arg2); - } else { - arg1->user_agent = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_user_agent_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->user_agent); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_referer_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->referer = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->referer, (const char *)arg2); - } else { - arg1->referer = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_referer_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->referer); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_user_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->user = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->user, (const char *)arg2); - } else { - arg1->user = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_user_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->user); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_keepalive_set(void * jarg1, int jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->keepalive = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_request_t_keepalive_get(void * jarg1) { - int jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_bool_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = (switch_bool_t) ((arg1)->keepalive); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_content_type_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->content_type = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->content_type, (const char *)arg2); - } else { - arg1->content_type = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_content_type_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->content_type); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_content_length_set(void * jarg1, void * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_http_request_s *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->content_length = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_content_length_get(void * jarg1) { - void * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = ((arg1)->content_length); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_header_set(void * jarg1, void * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_http_request_s *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->bytes_header = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_header_get(void * jarg1) { - void * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = ((arg1)->bytes_header); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_read_set(void * jarg1, void * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_http_request_s *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->bytes_read = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_read_get(void * jarg1) { - void * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = ((arg1)->bytes_read); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_buffered_set(void * jarg1, void * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_http_request_s *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->bytes_buffered = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_buffered_get(void * jarg1) { - void * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_size_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = ((arg1)->bytes_buffered); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_headers_set(void * jarg1, void * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (switch_event_t *)jarg2; - if (arg1) (arg1)->headers = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_headers_get(void * jarg1) { - void * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_event_t *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (switch_event_t *) ((arg1)->headers); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_user_data_set(void * jarg1, void * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_user_data_get(void * jarg1) { - void * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - void *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (void *) ((arg1)->user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__buffer_set(void * jarg1, char * jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->_buffer; - if (arg2) { - arg1->_buffer = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->_buffer, (const char *)arg2); - } else { - arg1->_buffer = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t__buffer_get(void * jarg1) { - char * jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_s *)jarg1; - result = (char *) ((arg1)->_buffer); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__destroy_headers_set(void * jarg1, int jarg2) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_http_request_s *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->_destroy_headers = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_request_t__destroy_headers_get(void * jarg1) { - int jresult ; - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - switch_bool_t result; - - arg1 = (switch_http_request_s *)jarg1; - result = (switch_bool_t) ((arg1)->_destroy_headers); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_http_request_t() { - void * jresult ; - switch_http_request_s *result = 0 ; - - result = (switch_http_request_s *)new switch_http_request_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_http_request_t(void * jarg1) { - switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; - - arg1 = (switch_http_request_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_parse_header(char * jarg1, unsigned long jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - uint32_t arg2 ; - switch_http_request_t *arg3 = (switch_http_request_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (switch_http_request_t *)jarg3; - result = (switch_status_t)switch_http_parse_header(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_free_request(void * jarg1) { - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - - arg1 = (switch_http_request_t *)jarg1; - switch_http_free_request(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_dump_request(void * jarg1) { - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - - arg1 = (switch_http_request_t *)jarg1; - switch_http_dump_request(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_parse_qs(void * jarg1, char * jarg2) { - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_t *)jarg1; - arg2 = (char *)jarg2; - switch_http_parse_qs(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_var_set(void * jarg1, char * jarg2) { - profile_node_s *arg1 = (profile_node_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (profile_node_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->var; - if (arg2) { - arg1->var = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->var, (const char *)arg2); - } else { - arg1->var = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_var_get(void * jarg1) { - char * jresult ; - profile_node_s *arg1 = (profile_node_s *) 0 ; - char *result = 0 ; - - arg1 = (profile_node_s *)jarg1; - result = (char *) ((arg1)->var); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_val_set(void * jarg1, char * jarg2) { - profile_node_s *arg1 = (profile_node_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (profile_node_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->val; - if (arg2) { - arg1->val = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->val, (const char *)arg2); - } else { - arg1->val = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_val_get(void * jarg1) { - char * jresult ; - profile_node_s *arg1 = (profile_node_s *) 0 ; - char *result = 0 ; - - arg1 = (profile_node_s *)jarg1; - result = (char *) ((arg1)->val); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_next_set(void * jarg1, void * jarg2) { - profile_node_s *arg1 = (profile_node_s *) 0 ; - profile_node_s *arg2 = (profile_node_s *) 0 ; - - arg1 = (profile_node_s *)jarg1; - arg2 = (profile_node_s *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_profile_node_t_next_get(void * jarg1) { - void * jresult ; - profile_node_s *arg1 = (profile_node_s *) 0 ; - profile_node_s *result = 0 ; - - arg1 = (profile_node_s *)jarg1; - result = (profile_node_s *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_profile_node_t() { - void * jresult ; - profile_node_s *result = 0 ; - - result = (profile_node_s *)new profile_node_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_profile_node_t(void * jarg1) { - profile_node_s *arg1 = (profile_node_s *) 0 ; - - arg1 = (profile_node_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_username_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->username = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->username, (const char *)arg2); - } else { - arg1->username = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_username_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->username); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_dialplan_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->dialplan = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->dialplan, (const char *)arg2); - } else { - arg1->dialplan = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_dialplan_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->dialplan); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_id_name_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->caller_id_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->caller_id_name, (const char *)arg2); - } else { - arg1->caller_id_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_caller_id_name_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->caller_id_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_id_number_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->caller_id_number = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->caller_id_number, (const char *)arg2); - } else { - arg1->caller_id_number = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_caller_id_number_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->caller_id_number); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_name_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->orig_caller_id_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->orig_caller_id_name, (const char *)arg2); - } else { - arg1->orig_caller_id_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_name_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->orig_caller_id_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_number_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->orig_caller_id_number = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->orig_caller_id_number, (const char *)arg2); - } else { - arg1->orig_caller_id_number = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_number_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->orig_caller_id_number); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_callee_id_name_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->callee_id_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->callee_id_name, (const char *)arg2); - } else { - arg1->callee_id_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_callee_id_name_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->callee_id_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_callee_id_number_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->callee_id_number = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->callee_id_number, (const char *)arg2); - } else { - arg1->callee_id_number = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_callee_id_number_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->callee_id_number); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_ton_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->caller_ton = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_caller_ton_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->caller_ton); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_numplan_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->caller_numplan = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_caller_numplan_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->caller_numplan); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_network_addr_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->network_addr = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->network_addr, (const char *)arg2); - } else { - arg1->network_addr = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_network_addr_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->network_addr); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_ani_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->ani = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->ani, (const char *)arg2); - } else { - arg1->ani = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_ani_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->ani); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_ani_ton_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->ani_ton = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_ani_ton_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->ani_ton); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_ani_numplan_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->ani_numplan = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_ani_numplan_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->ani_numplan); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_aniii_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->aniii = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->aniii, (const char *)arg2); - } else { - arg1->aniii = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_aniii_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->aniii); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_rdnis_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->rdnis = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->rdnis, (const char *)arg2); - } else { - arg1->rdnis = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_rdnis_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->rdnis); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_rdnis_ton_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->rdnis_ton = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_rdnis_ton_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->rdnis_ton); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_rdnis_numplan_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->rdnis_numplan = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_rdnis_numplan_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->rdnis_numplan); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_destination_number_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->destination_number; - if (arg2) { - arg1->destination_number = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->destination_number, (const char *)arg2); - } else { - arg1->destination_number = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_destination_number_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->destination_number); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_destination_number_ton_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->destination_number_ton = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_destination_number_ton_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->destination_number_ton); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_destination_number_numplan_set(void * jarg1, unsigned char jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->destination_number_numplan = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_destination_number_numplan_get(void * jarg1) { - unsigned char jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - uint8_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (uint8_t) ((arg1)->destination_number_numplan); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_source_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->source = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->source, (const char *)arg2); - } else { - arg1->source = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_source_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->source); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_chan_name_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->chan_name; - if (arg2) { - arg1->chan_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->chan_name, (const char *)arg2); - } else { - arg1->chan_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_chan_name_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->chan_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_uuid_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->uuid; - if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); - } else { - arg1->uuid = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_uuid_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->uuid); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_context_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->context = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->context, (const char *)arg2); - } else { - arg1->context = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_context_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->context); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_profile_index_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->profile_index = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->profile_index, (const char *)arg2); - } else { - arg1->profile_index = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_profile_index_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->profile_index); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_flags_set(void * jarg1, unsigned long jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile_flag_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_profile_flag_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_caller_profile_flags_get(void * jarg1) { - unsigned long jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile_flag_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_profile_flag_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_originator_caller_profile_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_profile *)jarg2; - if (arg1) (arg1)->originator_caller_profile = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_originator_caller_profile_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_profile *) ((arg1)->originator_caller_profile); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_originatee_caller_profile_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_profile *)jarg2; - if (arg1) (arg1)->originatee_caller_profile = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_originatee_caller_profile_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_profile *) ((arg1)->originatee_caller_profile); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_origination_caller_profile_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_profile *)jarg2; - if (arg1) (arg1)->origination_caller_profile = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_origination_caller_profile_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_profile *) ((arg1)->origination_caller_profile); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_hunt_caller_profile_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_profile *)jarg2; - if (arg1) (arg1)->hunt_caller_profile = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_hunt_caller_profile_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_profile *) ((arg1)->hunt_caller_profile); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_times_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_channel_timetable *)jarg2; - if (arg1) (arg1)->times = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_times_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_channel_timetable *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_channel_timetable *) ((arg1)->times); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_old_times_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_channel_timetable *)jarg2; - if (arg1) (arg1)->old_times = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_old_times_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_channel_timetable *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_channel_timetable *) ((arg1)->old_times); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_extension_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_extension *arg2 = (switch_caller_extension *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_extension *)jarg2; - if (arg1) (arg1)->caller_extension = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_caller_extension_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_extension *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_extension *) ((arg1)->caller_extension); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_pool_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_pool_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_next_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_caller_profile *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_next_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_caller_profile *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_caller_profile *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_direction_set(void * jarg1, int jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_call_direction_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_call_direction_t)jarg2; - if (arg1) (arg1)->direction = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_direction_get(void * jarg1) { - int jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_call_direction_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_call_direction_t) ((arg1)->direction); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_logical_direction_set(void * jarg1, int jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_call_direction_t arg2 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (switch_call_direction_t)jarg2; - if (arg1) (arg1)->logical_direction = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_logical_direction_get(void * jarg1) { - int jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - switch_call_direction_t result; - - arg1 = (switch_caller_profile *)jarg1; - result = (switch_call_direction_t) ((arg1)->logical_direction); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_soft_set(void * jarg1, void * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - profile_node_t *arg2 = (profile_node_t *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (profile_node_t *)jarg2; - if (arg1) (arg1)->soft = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_soft_get(void * jarg1) { - void * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - profile_node_t *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (profile_node_t *) ((arg1)->soft); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_uuid_str_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->uuid_str; - if (arg2) { - arg1->uuid_str = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid_str, (const char *)arg2); - } else { - arg1->uuid_str = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_uuid_str_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->uuid_str); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_clone_of_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->clone_of; - if (arg2) { - arg1->clone_of = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->clone_of, (const char *)arg2); - } else { - arg1->clone_of = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_clone_of_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->clone_of); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_transfer_source_set(void * jarg1, char * jarg2) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->transfer_source; - if (arg2) { - arg1->transfer_source = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->transfer_source, (const char *)arg2); - } else { - arg1->transfer_source = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_transfer_source_get(void * jarg1) { - char * jresult ; - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile *)jarg1; - result = (char *) ((arg1)->transfer_source); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_profile() { - void * jresult ; - switch_caller_profile *result = 0 ; - - result = (switch_caller_profile *)new switch_caller_profile(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_caller_profile(void * jarg1) { - switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_profile *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_application_name_set(void * jarg1, char * jarg2) { - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_application *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->application_name; - if (arg2) { - arg1->application_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->application_name, (const char *)arg2); - } else { - arg1->application_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_application_application_name_get(void * jarg1) { - char * jresult ; - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_application *)jarg1; - result = (char *) ((arg1)->application_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_application_data_set(void * jarg1, char * jarg2) { - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_application *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->application_data; - if (arg2) { - arg1->application_data = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->application_data, (const char *)arg2); - } else { - arg1->application_data = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_application_application_data_get(void * jarg1) { - char * jresult ; - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_application *)jarg1; - result = (char *) ((arg1)->application_data); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_application_function_set(void * jarg1, void * jarg2) { - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - switch_application_function_t arg2 = (switch_application_function_t) 0 ; - - arg1 = (switch_caller_application *)jarg1; - arg2 = (switch_application_function_t)jarg2; - if (arg1) (arg1)->application_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_application_application_function_get(void * jarg1) { - void * jresult ; - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - switch_application_function_t result; - - arg1 = (switch_caller_application *)jarg1; - result = (switch_application_function_t) ((arg1)->application_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_next_set(void * jarg1, void * jarg2) { - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - switch_caller_application *arg2 = (switch_caller_application *) 0 ; - - arg1 = (switch_caller_application *)jarg1; - arg2 = (switch_caller_application *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_application_next_get(void * jarg1) { - void * jresult ; - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - switch_caller_application *result = 0 ; - - arg1 = (switch_caller_application *)jarg1; - result = (switch_caller_application *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_application() { - void * jresult ; - switch_caller_application *result = 0 ; - - result = (switch_caller_application *)new switch_caller_application(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_caller_application(void * jarg1) { - switch_caller_application *arg1 = (switch_caller_application *) 0 ; - - arg1 = (switch_caller_application *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_extension_name_set(void * jarg1, char * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->extension_name; - if (arg2) { - arg1->extension_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->extension_name, (const char *)arg2); - } else { - arg1->extension_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_extension_extension_name_get(void * jarg1) { - char * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (char *) ((arg1)->extension_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_extension_number_set(void * jarg1, char * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->extension_number; - if (arg2) { - arg1->extension_number = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->extension_number, (const char *)arg2); - } else { - arg1->extension_number = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_extension_extension_number_get(void * jarg1) { - char * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (char *) ((arg1)->extension_number); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_current_application_set(void * jarg1, void * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_application_t *arg2 = (switch_caller_application_t *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (switch_caller_application_t *)jarg2; - if (arg1) (arg1)->current_application = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_current_application_get(void * jarg1) { - void * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_application_t *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (switch_caller_application_t *) ((arg1)->current_application); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_last_application_set(void * jarg1, void * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_application_t *arg2 = (switch_caller_application_t *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (switch_caller_application_t *)jarg2; - if (arg1) (arg1)->last_application = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_last_application_get(void * jarg1) { - void * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_application_t *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (switch_caller_application_t *) ((arg1)->last_application); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_applications_set(void * jarg1, void * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_application_t *arg2 = (switch_caller_application_t *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (switch_caller_application_t *)jarg2; - if (arg1) (arg1)->applications = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_applications_get(void * jarg1) { - void * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_application_t *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (switch_caller_application_t *) ((arg1)->applications); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_children_set(void * jarg1, void * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (switch_caller_profile *)jarg2; - if (arg1) (arg1)->children = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_children_get(void * jarg1) { - void * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_profile *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (switch_caller_profile *) ((arg1)->children); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_next_set(void * jarg1, void * jarg2) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_extension *arg2 = (switch_caller_extension *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - arg2 = (switch_caller_extension *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_next_get(void * jarg1) { - void * jresult ; - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - switch_caller_extension *result = 0 ; - - arg1 = (switch_caller_extension *)jarg1; - result = (switch_caller_extension *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_extension() { - void * jresult ; - switch_caller_extension *result = 0 ; - - result = (switch_caller_extension *)new switch_caller_extension(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_caller_extension(void * jarg1) { - switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; - - arg1 = (switch_caller_extension *)jarg1; - delete arg1; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_new(void * jarg1, char * jarg2, char * jarg3) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_caller_extension_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_caller_extension_t *)switch_caller_extension_new(arg1,(char const *)arg2,(char const *)arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_extension_clone(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_caller_extension_t **arg1 = (switch_caller_extension_t **) 0 ; - switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; - switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_caller_extension_t **)jarg1; - arg2 = (switch_caller_extension_t *)jarg2; - arg3 = (switch_memory_pool_t *)jarg3; - result = (switch_status_t)switch_caller_extension_clone(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_add_application(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_caller_extension_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - switch_caller_extension_add_application(arg1,arg2,(char const *)arg3,(char const *)arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_add_application_printf(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *arg5 = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_caller_extension_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - switch_caller_extension_add_application_printf(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_get_field_by_name(void * jarg1, char * jarg2) { - char * jresult ; - switch_caller_profile_t *arg1 = (switch_caller_profile_t *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_caller_profile_t *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_caller_get_field_by_name(arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_new(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, char * jarg11, char * jarg12) { - void * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - char *arg10 = (char *) 0 ; - char *arg11 = (char *) 0 ; - char *arg12 = (char *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char *)jarg10; - arg11 = (char *)jarg11; - arg12 = (char *)jarg12; - result = (switch_caller_profile_t *)switch_caller_profile_new(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,(char const *)arg12); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_clone(void * jarg1, void * jarg2) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - result = (switch_caller_profile_t *)switch_caller_profile_clone(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_dup(void * jarg1, void * jarg2) { - void * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - result = (switch_caller_profile_t *)switch_caller_profile_dup(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_event_set_data(void * jarg1, char * jarg2, void * jarg3) { - switch_caller_profile_t *arg1 = (switch_caller_profile_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_event_t *arg3 = (switch_event_t *) 0 ; - - arg1 = (switch_caller_profile_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_event_t *)jarg3; - switch_caller_profile_event_set_data(arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_codec_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (switch_codec_t *)jarg2; - if (arg1) (arg1)->codec = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_codec_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (switch_codec_t *) ((arg1)->codec); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_source_set(void * jarg1, char * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->source = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->source, (const char *)arg2); - } else { - arg1->source = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_frame_source_get(void * jarg1) { - char * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - char *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (char *) ((arg1)->source); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_packet_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->packet = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_packet_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - void *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (void *) ((arg1)->packet); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_packetlen_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->packetlen = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_packetlen_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->packetlen); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_extra_data_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->extra_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_extra_data_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - void *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (void *) ((arg1)->extra_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_data_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_data_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - void *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (void *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_datalen_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->datalen = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_datalen_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->datalen); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_buflen_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->buflen = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_buflen_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->buflen); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_samples_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samples = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_samples_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->samples); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_rate_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_rate_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_channels_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->channels = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_channels_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->channels); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_payload_set(void * jarg1, unsigned char jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (switch_payload_t)jarg2; - if (arg1) (arg1)->payload = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_frame_payload_get(void * jarg1) { - unsigned char jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - switch_payload_t result; - - arg1 = (switch_frame *)jarg1; - result = (switch_payload_t) ((arg1)->payload); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_timestamp_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_frame *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->timestamp = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_timestamp_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - switch_size_t result; - - arg1 = (switch_frame *)jarg1; - result = ((arg1)->timestamp); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_seq_set(void * jarg1, unsigned short jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint16_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint16_t)jarg2; - if (arg1) (arg1)->seq = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_frame_seq_get(void * jarg1) { - unsigned short jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint16_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint16_t) ((arg1)->seq); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_ssrc_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->ssrc = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_ssrc_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - uint32_t result; - - arg1 = (switch_frame *)jarg1; - result = (uint32_t) ((arg1)->ssrc); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_m_set(void * jarg1, int jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->m = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_m_get(void * jarg1) { - int jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - switch_bool_t result; - - arg1 = (switch_frame *)jarg1; - result = (switch_bool_t) ((arg1)->m); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_flags_set(void * jarg1, unsigned long jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - switch_frame_flag_t arg2 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (switch_frame_flag_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_flags_get(void * jarg1) { - unsigned long jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - switch_frame_flag_t result; - - arg1 = (switch_frame *)jarg1; - result = (switch_frame_flag_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_user_data_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_user_data_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - void *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (void *) ((arg1)->user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_pmap_set(void * jarg1, void * jarg2) { - switch_frame *arg1 = (switch_frame *) 0 ; - payload_map_t *arg2 = (payload_map_t *) 0 ; - - arg1 = (switch_frame *)jarg1; - arg2 = (payload_map_t *)jarg2; - if (arg1) (arg1)->pmap = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_pmap_get(void * jarg1) { - void * jresult ; - switch_frame *arg1 = (switch_frame *) 0 ; - payload_map_t *result = 0 ; - - arg1 = (switch_frame *)jarg1; - result = (payload_map_t *) ((arg1)->pmap); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_frame() { - void * jresult ; - switch_frame *result = 0 ; - - result = (switch_frame *)new switch_frame(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_frame(void * jarg1) { - switch_frame *arg1 = (switch_frame *) 0 ; - - arg1 = (switch_frame *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_init_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_init = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_init_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_init); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_routing_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_routing = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_routing_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_routing); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_execute_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_execute = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_execute_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_execute); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_hangup_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_hangup = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_hangup_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_hangup); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_exchange_media_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_exchange_media = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_exchange_media_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_exchange_media); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_soft_execute_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_soft_execute = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_soft_execute_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_soft_execute); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_consume_media_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_consume_media = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_consume_media_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_consume_media); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_hibernate_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_hibernate = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_hibernate_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_hibernate); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_reset_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_reset = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_reset_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_reset); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_park_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_park = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_park_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_park); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_reporting_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_reporting = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_reporting_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_reporting); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_destroy_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (switch_state_handler_t)jarg2; - if (arg1) (arg1)->on_destroy = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_destroy_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - switch_state_handler_t result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (switch_state_handler_t) ((arg1)->on_destroy); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_flags_set(void * jarg1, int jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - int arg2 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_state_handler_table_flags_get(void * jarg1) { - int jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - int result; - - arg1 = (switch_state_handler_table *)jarg1; - result = (int) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_padding_set(void * jarg1, void * jarg2) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - void **arg2 ; - - arg1 = (switch_state_handler_table *)jarg1; - arg2 = (void **)jarg2; - { - size_t ii; - void * *b = (void * *) arg1->padding; - for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((void * *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_padding_get(void * jarg1) { - void * jresult ; - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - void **result = 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - result = (void **)(void **) ((arg1)->padding); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_state_handler_table() { - void * jresult ; - switch_state_handler_table *result = 0 ; - - result = (switch_state_handler_table *)new switch_state_handler_table(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_state_handler_table(void * jarg1) { - switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; - - arg1 = (switch_state_handler_table *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_read_function_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_stream_handle_read_function_t arg2 = (switch_stream_handle_read_function_t) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - arg2 = (switch_stream_handle_read_function_t)jarg2; - if (arg1) (arg1)->read_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_read_function_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_stream_handle_read_function_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = (switch_stream_handle_read_function_t) ((arg1)->read_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_write_function_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_stream_handle_write_function_t arg2 = (switch_stream_handle_write_function_t) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - arg2 = (switch_stream_handle_write_function_t)jarg2; - if (arg1) (arg1)->write_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_write_function_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_stream_handle_write_function_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = (switch_stream_handle_write_function_t) ((arg1)->write_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_raw_write_function_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_stream_handle_raw_write_function_t arg2 = (switch_stream_handle_raw_write_function_t) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - arg2 = (switch_stream_handle_raw_write_function_t)jarg2; - if (arg1) (arg1)->raw_write_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_raw_write_function_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_stream_handle_raw_write_function_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = (switch_stream_handle_raw_write_function_t) ((arg1)->raw_write_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_data_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_data_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - void *result = 0 ; - - arg1 = (switch_stream_handle *)jarg1; - result = (void *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_end_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->end = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_end_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - void *result = 0 ; - - arg1 = (switch_stream_handle *)jarg1; - result = (void *) ((arg1)->end); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_data_size_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_stream_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->data_size = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_data_size_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = ((arg1)->data_size); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_data_len_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_stream_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->data_len = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_data_len_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = ((arg1)->data_len); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_alloc_len_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_stream_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->alloc_len = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_alloc_len_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = ((arg1)->alloc_len); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_alloc_chunk_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_stream_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->alloc_chunk = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_alloc_chunk_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_stream_handle *)jarg1; - result = ((arg1)->alloc_chunk); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_param_event_set(void * jarg1, void * jarg2) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - arg2 = (switch_event_t *)jarg2; - if (arg1) (arg1)->param_event = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_param_event_get(void * jarg1) { - void * jresult ; - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - switch_event_t *result = 0 ; - - arg1 = (switch_stream_handle *)jarg1; - result = (switch_event_t *) ((arg1)->param_event); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_stream_handle() { - void * jresult ; - switch_stream_handle *result = 0 ; - - result = (switch_stream_handle *)new switch_stream_handle(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_stream_handle(void * jarg1) { - switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; - - arg1 = (switch_stream_handle *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_outgoing_channel_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_outgoing_channel_t arg2 = (switch_io_outgoing_channel_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_outgoing_channel_t)jarg2; - if (arg1) (arg1)->outgoing_channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_outgoing_channel_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_outgoing_channel_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_outgoing_channel_t) ((arg1)->outgoing_channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_read_frame_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_read_frame_t arg2 = (switch_io_read_frame_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_read_frame_t)jarg2; - if (arg1) (arg1)->read_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_read_frame_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_read_frame_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_read_frame_t) ((arg1)->read_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_write_frame_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_write_frame_t arg2 = (switch_io_write_frame_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_write_frame_t)jarg2; - if (arg1) (arg1)->write_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_write_frame_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_write_frame_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_write_frame_t) ((arg1)->write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_kill_channel_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_kill_channel_t arg2 = (switch_io_kill_channel_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_kill_channel_t)jarg2; - if (arg1) (arg1)->kill_channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_kill_channel_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_kill_channel_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_kill_channel_t) ((arg1)->kill_channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_send_dtmf_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_send_dtmf_t arg2 = (switch_io_send_dtmf_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_send_dtmf_t)jarg2; - if (arg1) (arg1)->send_dtmf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_send_dtmf_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_send_dtmf_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_send_dtmf_t) ((arg1)->send_dtmf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_receive_message_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_receive_message_t arg2 = (switch_io_receive_message_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_receive_message_t)jarg2; - if (arg1) (arg1)->receive_message = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_receive_message_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_receive_message_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_receive_message_t) ((arg1)->receive_message); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_receive_event_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_receive_event_t arg2 = (switch_io_receive_event_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_receive_event_t)jarg2; - if (arg1) (arg1)->receive_event = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_receive_event_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_receive_event_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_receive_event_t) ((arg1)->receive_event); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_state_change_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_state_change_t arg2 = (switch_io_state_change_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_state_change_t)jarg2; - if (arg1) (arg1)->state_change = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_state_change_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_state_change_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_state_change_t) ((arg1)->state_change); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_read_video_frame_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_read_video_frame_t arg2 = (switch_io_read_video_frame_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_read_video_frame_t)jarg2; - if (arg1) (arg1)->read_video_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_read_video_frame_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_read_video_frame_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_read_video_frame_t) ((arg1)->read_video_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_write_video_frame_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_write_video_frame_t arg2 = (switch_io_write_video_frame_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_write_video_frame_t)jarg2; - if (arg1) (arg1)->write_video_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_write_video_frame_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_write_video_frame_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_write_video_frame_t) ((arg1)->write_video_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_state_run_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_state_run_t arg2 = (switch_io_state_run_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_state_run_t)jarg2; - if (arg1) (arg1)->state_run = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_state_run_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_state_run_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_state_run_t) ((arg1)->state_run); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_get_jb_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_get_jb_t arg2 = (switch_io_get_jb_t) 0 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (switch_io_get_jb_t)jarg2; - if (arg1) (arg1)->get_jb = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_get_jb_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - switch_io_get_jb_t result; - - arg1 = (switch_io_routines *)jarg1; - result = (switch_io_get_jb_t) ((arg1)->get_jb); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_padding_set(void * jarg1, void * jarg2) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - void **arg2 ; - - arg1 = (switch_io_routines *)jarg1; - arg2 = (void **)jarg2; - { - size_t ii; - void * *b = (void * *) arg1->padding; - for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((void * *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_padding_get(void * jarg1) { - void * jresult ; - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - void **result = 0 ; - - arg1 = (switch_io_routines *)jarg1; - result = (void **)(void **) ((arg1)->padding); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_routines() { - void * jresult ; - switch_io_routines *result = 0 ; - - result = (switch_io_routines *)new switch_io_routines(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_routines(void * jarg1) { - switch_io_routines *arg1 = (switch_io_routines *) 0 ; - - arg1 = (switch_io_routines *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_endpoint_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_io_routines_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_io_routines_t *arg2 = (switch_io_routines_t *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_io_routines_t *)jarg2; - if (arg1) (arg1)->io_routines = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_io_routines_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_io_routines_t *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_io_routines_t *) ((arg1)->io_routines); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_state_handler_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_state_handler_table_t *arg2 = (switch_state_handler_table_t *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_state_handler_table_t *)jarg2; - if (arg1) (arg1)->state_handler = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_state_handler_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_state_handler_table_t *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_state_handler_table_t *) ((arg1)->state_handler); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_private_info_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_private_info_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - void *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_refs_set(void * jarg1, int jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - int arg2 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_endpoint_interface_refs_get(void * jarg1) { - int jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - int result; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_reflock_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_parent_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_parent_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_next_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_endpoint_interface *arg2 = (switch_endpoint_interface *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_endpoint_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_next_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_endpoint_interface *result = 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_endpoint_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_recover_callback_set(void * jarg1, void * jarg2) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_core_recover_callback_t arg2 = (switch_core_recover_callback_t) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - arg2 = (switch_core_recover_callback_t)jarg2; - if (arg1) (arg1)->recover_callback = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_recover_callback_get(void * jarg1) { - void * jresult ; - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - switch_core_recover_callback_t result; - - arg1 = (switch_endpoint_interface *)jarg1; - result = (switch_core_recover_callback_t) ((arg1)->recover_callback); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_endpoint_interface() { - void * jresult ; - switch_endpoint_interface *result = 0 ; - - result = (switch_endpoint_interface *)new switch_endpoint_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_endpoint_interface(void * jarg1) { - switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; - - arg1 = (switch_endpoint_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interval_set(void * jarg1, int jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - int arg2 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->interval = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_timer_interval_get(void * jarg1) { - int jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - int result; - - arg1 = (switch_timer *)jarg1; - result = (int) ((arg1)->interval); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_flags_set(void * jarg1, unsigned long jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_timer_flags_get(void * jarg1) { - unsigned long jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - uint32_t result; - - arg1 = (switch_timer *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_samples_set(void * jarg1, unsigned int jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->samples = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_timer_samples_get(void * jarg1) { - unsigned int jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - unsigned int result; - - arg1 = (switch_timer *)jarg1; - result = (unsigned int) ((arg1)->samples); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_samplecount_set(void * jarg1, unsigned long jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samplecount = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_timer_samplecount_get(void * jarg1) { - unsigned long jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - uint32_t result; - - arg1 = (switch_timer *)jarg1; - result = (uint32_t) ((arg1)->samplecount); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_timer_interface_set(void * jarg1, void * jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - switch_timer_interface_t *arg2 = (switch_timer_interface_t *) 0 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (switch_timer_interface_t *)jarg2; - if (arg1) (arg1)->timer_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_timer_interface_get(void * jarg1) { - void * jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - switch_timer_interface_t *result = 0 ; - - arg1 = (switch_timer *)jarg1; - result = (switch_timer_interface_t *) ((arg1)->timer_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_memory_pool_set(void * jarg1, void * jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->memory_pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_memory_pool_get(void * jarg1) { - void * jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_timer *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->memory_pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_private_info_set(void * jarg1, void * jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_timer *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_private_info_get(void * jarg1) { - void * jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - void *result = 0 ; - - arg1 = (switch_timer *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_diff_set(void * jarg1, void * jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_timer *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->diff = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_diff_get(void * jarg1) { - void * jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - switch_size_t result; - - arg1 = (switch_timer *)jarg1; - result = ((arg1)->diff); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_tick_set(void * jarg1, void * jarg2) { - switch_timer *arg1 = (switch_timer *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_timer *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->tick = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_tick_get(void * jarg1) { - void * jresult ; - switch_timer *arg1 = (switch_timer *) 0 ; - switch_size_t result; - - arg1 = (switch_timer *)jarg1; - result = ((arg1)->tick); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_timer() { - void * jresult ; - switch_timer *result = 0 ; - - result = (switch_timer *)new switch_timer(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_timer(void * jarg1) { - switch_timer *arg1 = (switch_timer *) 0 ; - - arg1 = (switch_timer *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_timer_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_init_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; - if (arg1) (arg1)->timer_init = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_init_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*result)(switch_timer_t *) = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_init); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_next_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; - if (arg1) (arg1)->timer_next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_next_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*result)(switch_timer_t *) = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_step_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; - if (arg1) (arg1)->timer_step = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_step_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*result)(switch_timer_t *) = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_step); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_sync_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; - if (arg1) (arg1)->timer_sync = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_sync_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*result)(switch_timer_t *) = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_sync); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_check_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*arg2)(switch_timer_t *,switch_bool_t) = (switch_status_t (*)(switch_timer_t *,switch_bool_t)) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_timer_t *,switch_bool_t))jarg2; - if (arg1) (arg1)->timer_check = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_check_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*result)(switch_timer_t *,switch_bool_t) = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_status_t (*)(switch_timer_t *,switch_bool_t)) ((arg1)->timer_check); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_destroy_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; - if (arg1) (arg1)->timer_destroy = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_destroy_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_status_t (*result)(switch_timer_t *) = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_destroy); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_refs_set(void * jarg1, int jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - int arg2 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_timer_interface_refs_get(void * jarg1) { - int jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - int result; - - arg1 = (switch_timer_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_reflock_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_parent_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_parent_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_next_set(void * jarg1, void * jarg2) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_timer_interface *arg2 = (switch_timer_interface *) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - arg2 = (switch_timer_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_next_get(void * jarg1) { - void * jresult ; - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - switch_timer_interface *result = 0 ; - - arg1 = (switch_timer_interface *)jarg1; - result = (switch_timer_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_timer_interface() { - void * jresult ; - switch_timer_interface *result = 0 ; - - result = (switch_timer_interface *)new switch_timer_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_timer_interface(void * jarg1) { - switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; - - arg1 = (switch_timer_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_dialplan_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_hunt_function_set(void * jarg1, void * jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_dialplan_hunt_function_t arg2 = (switch_dialplan_hunt_function_t) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (switch_dialplan_hunt_function_t)jarg2; - if (arg1) (arg1)->hunt_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_hunt_function_get(void * jarg1) { - void * jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_dialplan_hunt_function_t result; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (switch_dialplan_hunt_function_t) ((arg1)->hunt_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_refs_set(void * jarg1, int jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - int arg2 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_dialplan_interface_refs_get(void * jarg1) { - int jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - int result; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_reflock_set(void * jarg1, void * jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_parent_set(void * jarg1, void * jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_parent_get(void * jarg1) { - void * jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_next_set(void * jarg1, void * jarg2) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_dialplan_interface *arg2 = (switch_dialplan_interface *) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - arg2 = (switch_dialplan_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_next_get(void * jarg1) { - void * jresult ; - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - switch_dialplan_interface *result = 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - result = (switch_dialplan_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_dialplan_interface() { - void * jresult ; - switch_dialplan_interface *result = 0 ; - - result = (switch_dialplan_interface *)new switch_dialplan_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_dialplan_interface(void * jarg1) { - switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; - - arg1 = (switch_dialplan_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_open_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,char const *) = (switch_status_t (*)(switch_file_handle_t *,char const *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,char const *))jarg2; - if (arg1) (arg1)->file_open = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_open_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,char const *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,char const *)) ((arg1)->file_open); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_close_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *) = (switch_status_t (*)(switch_file_handle_t *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *))jarg2; - if (arg1) (arg1)->file_close = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_close_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *)) ((arg1)->file_close); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_truncate_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,int64_t) = (switch_status_t (*)(switch_file_handle_t *,int64_t)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,int64_t))jarg2; - if (arg1) (arg1)->file_truncate = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_truncate_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,int64_t) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,int64_t)) ((arg1)->file_truncate); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_read_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; - if (arg1) (arg1)->file_read = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_read_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_read); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_write_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; - if (arg1) (arg1)->file_write = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_write_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_write); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_read_video_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; - if (arg1) (arg1)->file_read_video = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_read_video_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_read_video); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_write_video_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; - if (arg1) (arg1)->file_write_video = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_write_video_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_write_video); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_seek_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,unsigned int *,int64_t,int) = (switch_status_t (*)(switch_file_handle_t *,unsigned int *,int64_t,int)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,unsigned int *,int64_t,int))jarg2; - if (arg1) (arg1)->file_seek = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_seek_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,unsigned int *,int64_t,int) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,unsigned int *,int64_t,int)) ((arg1)->file_seek); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_set_string_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,switch_audio_col_t,char const *) = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const *)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const *))jarg2; - if (arg1) (arg1)->file_set_string = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_set_string_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,switch_audio_col_t,char const *) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const *)) ((arg1)->file_set_string); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_get_string_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,switch_audio_col_t,char const **) = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const **)) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const **))jarg2; - if (arg1) (arg1)->file_get_string = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_get_string_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,switch_audio_col_t,char const **) = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const **)) ((arg1)->file_get_string); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_extens_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - char **arg2 = (char **) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (char **)jarg2; - if (arg1) (arg1)->extens = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_extens_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - char **result = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (char **) ((arg1)->extens); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_refs_set(void * jarg1, int jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - int arg2 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_interface_refs_get(void * jarg1) { - int jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - int result; - - arg1 = (switch_file_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_reflock_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_parent_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_parent_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_next_set(void * jarg1, void * jarg2) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_file_interface *arg2 = (switch_file_interface *) 0 ; - - arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_file_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_next_get(void * jarg1) { - void * jresult ; - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_file_interface *result = 0 ; - - arg1 = (switch_file_interface *)jarg1; - result = (switch_file_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_file_interface() { - void * jresult ; - switch_file_interface *result = 0 ; - - result = (switch_file_interface *)new switch_file_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_file_interface(void * jarg1) { - switch_file_interface *arg1 = (switch_file_interface *) 0 ; - - arg1 = (switch_file_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_interface_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_file_interface_t *arg2 = (switch_file_interface_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_file_interface_t *)jarg2; - if (arg1) (arg1)->file_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_file_interface_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_file_interface_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_file_interface_t *) ((arg1)->file_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_flags_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_flags_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_fd_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_file_t *arg2 = (switch_file_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_file_t *)jarg2; - if (arg1) (arg1)->fd = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_fd_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_file_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_file_t *) ((arg1)->fd); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samples_set(void * jarg1, unsigned int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->samples = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_file_handle_samples_get(void * jarg1) { - unsigned int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned int result; - - arg1 = (switch_file_handle *)jarg1; - result = (unsigned int) ((arg1)->samples); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samplerate_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samplerate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_samplerate_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->samplerate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_native_rate_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->native_rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_native_rate_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->native_rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_channels_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->channels = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_channels_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->channels); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_real_channels_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->real_channels = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_real_channels_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->real_channels); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_format_set(void * jarg1, unsigned int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->format = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_file_handle_format_get(void * jarg1) { - unsigned int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned int result; - - arg1 = (switch_file_handle *)jarg1; - result = (unsigned int) ((arg1)->format); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_sections_set(void * jarg1, unsigned int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->sections = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_file_handle_sections_get(void * jarg1) { - unsigned int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned int result; - - arg1 = (switch_file_handle *)jarg1; - result = (unsigned int) ((arg1)->sections); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_seekable_set(void * jarg1, int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->seekable = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_seekable_get(void * jarg1) { - int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int result; - - arg1 = (switch_file_handle *)jarg1; - result = (int) ((arg1)->seekable); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_sample_count_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_file_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->sample_count = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_sample_count_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_file_handle *)jarg1; - result = ((arg1)->sample_count); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_speed_set(void * jarg1, int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->speed = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_speed_get(void * jarg1) { - int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int result; - - arg1 = (switch_file_handle *)jarg1; - result = (int) ((arg1)->speed); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_memory_pool_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->memory_pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_memory_pool_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->memory_pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_prebuf_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->prebuf = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_prebuf_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->prebuf); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_interval_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->interval = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_interval_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->interval); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_private_info_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_private_info_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - void *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_handler_set(void * jarg1, char * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->handler; - if (arg2) { - arg1->handler = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->handler, (const char *)arg2); - } else { - arg1->handler = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_handler_get(void * jarg1) { - char * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (char *) ((arg1)->handler); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pos_set(void * jarg1, long long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int64_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->pos = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_file_handle_pos_get(void * jarg1) { - long long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int64_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (int64_t) ((arg1)->pos); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_audio_buffer_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_buffer_t *)jarg2; - if (arg1) (arg1)->audio_buffer = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_audio_buffer_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_buffer_t *) ((arg1)->audio_buffer); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_sp_audio_buffer_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_buffer_t *)jarg2; - if (arg1) (arg1)->sp_audio_buffer = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_sp_audio_buffer_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_buffer_t *) ((arg1)->sp_audio_buffer); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_thresh_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->thresh = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_thresh_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->thresh); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_silence_hits_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->silence_hits = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_silence_hits_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->silence_hits); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_offset_pos_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->offset_pos = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_offset_pos_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->offset_pos); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samples_in_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_file_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->samples_in = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_samples_in_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_file_handle *)jarg1; - result = ((arg1)->samples_in); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samples_out_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_file_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->samples_out = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_samples_out_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_file_handle *)jarg1; - result = ((arg1)->samples_out); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_vol_set(void * jarg1, int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (int32_t)jarg2; - if (arg1) (arg1)->vol = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_vol_get(void * jarg1) { - int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (int32_t) ((arg1)->vol); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_resampler_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_audio_resampler_t *)jarg2; - if (arg1) (arg1)->resampler = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_resampler_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_audio_resampler_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_audio_resampler_t *) ((arg1)->resampler); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_buffer_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_buffer_t *)jarg2; - if (arg1) (arg1)->buffer = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_buffer_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_buffer_t *) ((arg1)->buffer); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_dbuf_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_byte_t *arg2 = (switch_byte_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_byte_t *)jarg2; - if (arg1) (arg1)->dbuf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_dbuf_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_byte_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_byte_t *) ((arg1)->dbuf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_dbuflen_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_file_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->dbuflen = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_dbuflen_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_file_handle *)jarg1; - result = ((arg1)->dbuflen); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_buffer_t *)jarg2; - if (arg1) (arg1)->pre_buffer = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_buffer_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_buffer_t *) ((arg1)->pre_buffer); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_data_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (unsigned char *)jarg2; - if (arg1) (arg1)->pre_buffer_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_data_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - unsigned char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (unsigned char *) ((arg1)->pre_buffer_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_datalen_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_file_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->pre_buffer_datalen = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_datalen_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_file_handle *)jarg1; - result = ((arg1)->pre_buffer_datalen); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_set(void * jarg1, char * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->file = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->file, (const char *)arg2); - } else { - arg1->file = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_file_get(void * jarg1) { - char * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (char *) ((arg1)->file); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_func_set(void * jarg1, char * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->func = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->func, (const char *)arg2); - } else { - arg1->func = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_func_get(void * jarg1) { - char * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (char *) ((arg1)->func); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_line_set(void * jarg1, int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->line = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_line_get(void * jarg1) { - int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int result; - - arg1 = (switch_file_handle *)jarg1; - result = (int) ((arg1)->line); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_path_set(void * jarg1, char * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->file_path; - if (arg2) { - arg1->file_path = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->file_path, (const char *)arg2); - } else { - arg1->file_path = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_file_path_get(void * jarg1) { - char * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (char *) ((arg1)->file_path); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_spool_path_set(void * jarg1, char * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->spool_path; - if (arg2) { - arg1->spool_path = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->spool_path, (const char *)arg2); - } else { - arg1->spool_path = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_spool_path_get(void * jarg1) { - char * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (char *) ((arg1)->spool_path); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_prefix_set(void * jarg1, char * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->prefix = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->prefix, (const char *)arg2); - } else { - arg1->prefix = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_prefix_get(void * jarg1) { - char * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (char *) ((arg1)->prefix); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_max_samples_set(void * jarg1, int jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->max_samples = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_max_samples_get(void * jarg1) { - int jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - int result; - - arg1 = (switch_file_handle *)jarg1; - result = (int) ((arg1)->max_samples); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle__params_set(void * jarg1, void * jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (switch_event_t *)jarg2; - if (arg1) (arg1)->params = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle__params_get(void * jarg1) { - void * jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - switch_event_t *result = 0 ; - - arg1 = (switch_file_handle *)jarg1; - result = (switch_event_t *) ((arg1)->params); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_cur_channels_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->cur_channels = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_cur_channels_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->cur_channels); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_cur_samplerate_set(void * jarg1, unsigned long jarg2) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_file_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->cur_samplerate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_cur_samplerate_get(void * jarg1) { - unsigned long jresult ; - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - uint32_t result; - - arg1 = (switch_file_handle *)jarg1; - result = (uint32_t) ((arg1)->cur_samplerate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_file_handle() { - void * jresult ; - switch_file_handle *result = 0 ; - - result = (switch_file_handle *)new switch_file_handle(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_file_handle(void * jarg1) { - switch_file_handle *arg1 = (switch_file_handle *) 0 ; - - arg1 = (switch_file_handle *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_open_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_open = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_open_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *)) ((arg1)->asr_open); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_load_grammar_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,char const *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *,char const *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *,char const *))jarg2; - if (arg1) (arg1)->asr_load_grammar = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_load_grammar_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,char const *,char const *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,char const *,char const *)) ((arg1)->asr_load_grammar); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_unload_grammar_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *))jarg2; - if (arg1) (arg1)->asr_unload_grammar = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_unload_grammar_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,char const *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,char const *)) ((arg1)->asr_unload_grammar); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_close_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_close = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_close_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) ((arg1)->asr_close); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_feed = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *)) ((arg1)->asr_feed); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_resume_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; - if (arg1) (arg1)->asr_resume = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_resume_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_resume); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_pause_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; - if (arg1) (arg1)->asr_pause = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_pause_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_pause); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_check_results_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_check_results = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_check_results_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) ((arg1)->asr_check_results); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_get_results_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,char **,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,char **,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,char **,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_get_results = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_get_results_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,char **,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,char **,switch_asr_flag_t *)) ((arg1)->asr_get_results); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_get_result_headers_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_get_result_headers = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_get_result_headers_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *)) ((arg1)->asr_get_result_headers); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_start_input_timers_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; - if (arg1) (arg1)->asr_start_input_timers = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_start_input_timers_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_start_input_timers); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_text_param_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - void (*arg2)(switch_asr_handle_t *,char *,char const *) = (void (*)(switch_asr_handle_t *,char *,char const *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (void (*)(switch_asr_handle_t *,char *,char const *))jarg2; - if (arg1) (arg1)->asr_text_param = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_text_param_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - void (*result)(switch_asr_handle_t *,char *,char const *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (void (*)(switch_asr_handle_t *,char *,char const *)) ((arg1)->asr_text_param); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_numeric_param_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - void (*arg2)(switch_asr_handle_t *,char *,int) = (void (*)(switch_asr_handle_t *,char *,int)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (void (*)(switch_asr_handle_t *,char *,int))jarg2; - if (arg1) (arg1)->asr_numeric_param = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_numeric_param_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - void (*result)(switch_asr_handle_t *,char *,int) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (void (*)(switch_asr_handle_t *,char *,int)) ((arg1)->asr_numeric_param); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_float_param_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - void (*arg2)(switch_asr_handle_t *,char *,double) = (void (*)(switch_asr_handle_t *,char *,double)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (void (*)(switch_asr_handle_t *,char *,double))jarg2; - if (arg1) (arg1)->asr_float_param = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_float_param_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - void (*result)(switch_asr_handle_t *,char *,double) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (void (*)(switch_asr_handle_t *,char *,double)) ((arg1)->asr_float_param); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_refs_set(void * jarg1, int jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - int arg2 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_asr_interface_refs_get(void * jarg1) { - int jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - int result; - - arg1 = (switch_asr_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_reflock_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_parent_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_parent_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_next_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_asr_interface *arg2 = (switch_asr_interface *) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_asr_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_next_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_asr_interface *result = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_asr_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_enable_grammar_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *))jarg2; - if (arg1) (arg1)->asr_enable_grammar = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_enable_grammar_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,char const *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,char const *)) ((arg1)->asr_enable_grammar); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_grammar_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *))jarg2; - if (arg1) (arg1)->asr_disable_grammar = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_grammar_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,char const *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,char const *)) ((arg1)->asr_disable_grammar); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_all_grammars_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; - if (arg1) (arg1)->asr_disable_all_grammars = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_all_grammars_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_disable_all_grammars); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_dtmf_set(void * jarg1, void * jarg2) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*arg2)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *)) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *))jarg2; - if (arg1) (arg1)->asr_feed_dtmf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_dtmf_get(void * jarg1) { - void * jresult ; - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - switch_status_t (*result)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *) = 0 ; - - arg1 = (switch_asr_interface *)jarg1; - result = (switch_status_t (*)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *)) ((arg1)->asr_feed_dtmf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_asr_interface() { - void * jresult ; - switch_asr_interface *result = 0 ; - - result = (switch_asr_interface *)new switch_asr_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_asr_interface(void * jarg1) { - switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; - - arg1 = (switch_asr_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_asr_interface_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_asr_interface_t *arg2 = (switch_asr_interface_t *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (switch_asr_interface_t *)jarg2; - if (arg1) (arg1)->asr_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_asr_interface_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_asr_interface_t *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (switch_asr_interface_t *) ((arg1)->asr_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_flags_set(void * jarg1, unsigned long jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_flags_get(void * jarg1) { - unsigned long jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t result; - - arg1 = (switch_asr_handle *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_name_set(void * jarg1, char * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->name; - if (arg2) { - arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->name, (const char *)arg2); - } else { - arg1->name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_name_get(void * jarg1) { - char * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_codec_set(void * jarg1, char * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->codec; - if (arg2) { - arg1->codec = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->codec, (const char *)arg2); - } else { - arg1->codec = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_codec_get(void * jarg1) { - char * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (char *) ((arg1)->codec); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_rate_set(void * jarg1, unsigned long jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_rate_get(void * jarg1) { - unsigned long jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t result; - - arg1 = (switch_asr_handle *)jarg1; - result = (uint32_t) ((arg1)->rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_grammar_set(void * jarg1, char * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->grammar; - if (arg2) { - arg1->grammar = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->grammar, (const char *)arg2); - } else { - arg1->grammar = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_grammar_get(void * jarg1) { - char * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (char *) ((arg1)->grammar); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_param_set(void * jarg1, char * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->param; - if (arg2) { - arg1->param = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->param, (const char *)arg2); - } else { - arg1->param = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_param_get(void * jarg1) { - char * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (char *) ((arg1)->param); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_memory_pool_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->memory_pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_memory_pool_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->memory_pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_buffer_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (switch_buffer_t *)jarg2; - if (arg1) (arg1)->buffer = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_buffer_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_buffer_t *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (switch_buffer_t *) ((arg1)->buffer); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_dbuf_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_byte_t *arg2 = (switch_byte_t *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (switch_byte_t *)jarg2; - if (arg1) (arg1)->dbuf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_dbuf_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_byte_t *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (switch_byte_t *) ((arg1)->dbuf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_dbuflen_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_asr_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->dbuflen = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_dbuflen_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_asr_handle *)jarg1; - result = ((arg1)->dbuflen); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_resampler_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (switch_audio_resampler_t *)jarg2; - if (arg1) (arg1)->resampler = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_resampler_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - switch_audio_resampler_t *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (switch_audio_resampler_t *) ((arg1)->resampler); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_samplerate_set(void * jarg1, unsigned long jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samplerate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_samplerate_get(void * jarg1) { - unsigned long jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t result; - - arg1 = (switch_asr_handle *)jarg1; - result = (uint32_t) ((arg1)->samplerate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_native_rate_set(void * jarg1, unsigned long jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->native_rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_native_rate_get(void * jarg1) { - unsigned long jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - uint32_t result; - - arg1 = (switch_asr_handle *)jarg1; - result = (uint32_t) ((arg1)->native_rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_private_info_set(void * jarg1, void * jarg2) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_private_info_get(void * jarg1) { - void * jresult ; - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - void *result = 0 ; - - arg1 = (switch_asr_handle *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_asr_handle() { - void * jresult ; - switch_asr_handle *result = 0 ; - - result = (switch_asr_handle *)new switch_asr_handle(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_asr_handle(void * jarg1) { - switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; - - arg1 = (switch_asr_handle *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_open_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*arg2)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *))jarg2; - if (arg1) (arg1)->speech_open = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_open_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*result)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_status_t (*)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *)) ((arg1)->speech_open); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_close_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*arg2)(switch_speech_handle_t *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,switch_speech_flag_t *)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_speech_handle_t *,switch_speech_flag_t *))jarg2; - if (arg1) (arg1)->speech_close = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_close_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*result)(switch_speech_handle_t *,switch_speech_flag_t *) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_status_t (*)(switch_speech_handle_t *,switch_speech_flag_t *)) ((arg1)->speech_close); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_feed_tts_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*arg2)(switch_speech_handle_t *,char *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,char *,switch_speech_flag_t *)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_speech_handle_t *,char *,switch_speech_flag_t *))jarg2; - if (arg1) (arg1)->speech_feed_tts = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_feed_tts_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*result)(switch_speech_handle_t *,char *,switch_speech_flag_t *) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_status_t (*)(switch_speech_handle_t *,char *,switch_speech_flag_t *)) ((arg1)->speech_feed_tts); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*arg2)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *))jarg2; - if (arg1) (arg1)->speech_read_tts = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_status_t (*result)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *)) ((arg1)->speech_read_tts); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_flush_tts_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*arg2)(switch_speech_handle_t *) = (void (*)(switch_speech_handle_t *)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (void (*)(switch_speech_handle_t *))jarg2; - if (arg1) (arg1)->speech_flush_tts = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_flush_tts_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*result)(switch_speech_handle_t *) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (void (*)(switch_speech_handle_t *)) ((arg1)->speech_flush_tts); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_text_param_tts_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*arg2)(switch_speech_handle_t *,char *,char const *) = (void (*)(switch_speech_handle_t *,char *,char const *)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (void (*)(switch_speech_handle_t *,char *,char const *))jarg2; - if (arg1) (arg1)->speech_text_param_tts = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_text_param_tts_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*result)(switch_speech_handle_t *,char *,char const *) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (void (*)(switch_speech_handle_t *,char *,char const *)) ((arg1)->speech_text_param_tts); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_numeric_param_tts_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*arg2)(switch_speech_handle_t *,char *,int) = (void (*)(switch_speech_handle_t *,char *,int)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (void (*)(switch_speech_handle_t *,char *,int))jarg2; - if (arg1) (arg1)->speech_numeric_param_tts = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_numeric_param_tts_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*result)(switch_speech_handle_t *,char *,int) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (void (*)(switch_speech_handle_t *,char *,int)) ((arg1)->speech_numeric_param_tts); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_float_param_tts_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*arg2)(switch_speech_handle_t *,char *,double) = (void (*)(switch_speech_handle_t *,char *,double)) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (void (*)(switch_speech_handle_t *,char *,double))jarg2; - if (arg1) (arg1)->speech_float_param_tts = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_float_param_tts_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - void (*result)(switch_speech_handle_t *,char *,double) = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (void (*)(switch_speech_handle_t *,char *,double)) ((arg1)->speech_float_param_tts); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_refs_set(void * jarg1, int jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - int arg2 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_speech_interface_refs_get(void * jarg1) { - int jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - int result; - - arg1 = (switch_speech_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_reflock_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_parent_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_parent_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_next_set(void * jarg1, void * jarg2) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_speech_interface *arg2 = (switch_speech_interface *) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - arg2 = (switch_speech_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_next_get(void * jarg1) { - void * jresult ; - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - switch_speech_interface *result = 0 ; - - arg1 = (switch_speech_interface *)jarg1; - result = (switch_speech_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_speech_interface() { - void * jresult ; - switch_speech_interface *result = 0 ; - - result = (switch_speech_interface *)new switch_speech_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_speech_interface(void * jarg1) { - switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; - - arg1 = (switch_speech_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_speech_interface_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_speech_interface_t *arg2 = (switch_speech_interface_t *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (switch_speech_interface_t *)jarg2; - if (arg1) (arg1)->speech_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_speech_interface_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_speech_interface_t *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (switch_speech_interface_t *) ((arg1)->speech_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_flags_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_flags_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_name_set(void * jarg1, char * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->name; - if (arg2) { - arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->name, (const char *)arg2); - } else { - arg1->name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_name_get(void * jarg1) { - char * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_rate_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_rate_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_speed_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->speed = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_speed_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->speed); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_samples_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samples = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_samples_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->samples); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_channels_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->channels = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_channels_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->channels); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_real_channels_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->real_channels = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_real_channels_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->real_channels); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_voice_set(void * jarg1, char * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->voice, (const char *)arg2, 80-1); - arg1->voice[80-1] = 0; - } else { - arg1->voice[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_voice_get(void * jarg1) { - char * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (char *)(char *) ((arg1)->voice); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_engine_set(void * jarg1, char * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->engine; - if (arg2) { - arg1->engine = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->engine, (const char *)arg2); - } else { - arg1->engine = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_engine_get(void * jarg1) { - char * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (char *) ((arg1)->engine); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_param_set(void * jarg1, char * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->param; - if (arg2) { - arg1->param = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->param, (const char *)arg2); - } else { - arg1->param = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_param_get(void * jarg1) { - char * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - char *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (char *) ((arg1)->param); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_memory_pool_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->memory_pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_memory_pool_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->memory_pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_resampler_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (switch_audio_resampler_t *)jarg2; - if (arg1) (arg1)->resampler = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_resampler_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_audio_resampler_t *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (switch_audio_resampler_t *) ((arg1)->resampler); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_buffer_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (switch_buffer_t *)jarg2; - if (arg1) (arg1)->buffer = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_buffer_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_buffer_t *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (switch_buffer_t *) ((arg1)->buffer); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_dbuf_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_byte_t *arg2 = (switch_byte_t *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (switch_byte_t *)jarg2; - if (arg1) (arg1)->dbuf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_dbuf_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_byte_t *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (switch_byte_t *) ((arg1)->dbuf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_dbuflen_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_speech_handle *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->dbuflen = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_dbuflen_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - switch_size_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = ((arg1)->dbuflen); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_samplerate_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samplerate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_samplerate_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->samplerate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_native_rate_set(void * jarg1, unsigned long jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->native_rate = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_native_rate_get(void * jarg1) { - unsigned long jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - uint32_t result; - - arg1 = (switch_speech_handle *)jarg1; - result = (uint32_t) ((arg1)->native_rate); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_private_info_set(void * jarg1, void * jarg2) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_private_info_get(void * jarg1) { - void * jresult ; - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - void *result = 0 ; - - arg1 = (switch_speech_handle *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_speech_handle() { - void * jresult ; - switch_speech_handle *result = 0 ; - - result = (switch_speech_handle *)new switch_speech_handle(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_speech_handle(void * jarg1) { - switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; - - arg1 = (switch_speech_handle *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_say_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_say_function_set(void * jarg1, void * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_say_callback_t arg2 = (switch_say_callback_t) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (switch_say_callback_t)jarg2; - if (arg1) (arg1)->say_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_say_function_get(void * jarg1) { - void * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_say_callback_t result; - - arg1 = (switch_say_interface *)jarg1; - result = (switch_say_callback_t) ((arg1)->say_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_say_string_function_set(void * jarg1, void * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_say_string_callback_t arg2 = (switch_say_string_callback_t) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (switch_say_string_callback_t)jarg2; - if (arg1) (arg1)->say_string_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_say_string_function_get(void * jarg1) { - void * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_say_string_callback_t result; - - arg1 = (switch_say_interface *)jarg1; - result = (switch_say_string_callback_t) ((arg1)->say_string_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_say_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_refs_set(void * jarg1, int jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - int arg2 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_interface_refs_get(void * jarg1) { - int jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - int result; - - arg1 = (switch_say_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_reflock_set(void * jarg1, void * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_say_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_parent_set(void * jarg1, void * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_parent_get(void * jarg1) { - void * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_say_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_next_set(void * jarg1, void * jarg2) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_say_interface *arg2 = (switch_say_interface *) 0 ; - - arg1 = (switch_say_interface *)jarg1; - arg2 = (switch_say_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_next_get(void * jarg1) { - void * jresult ; - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - switch_say_interface *result = 0 ; - - arg1 = (switch_say_interface *)jarg1; - result = (switch_say_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_say_interface() { - void * jresult ; - switch_say_interface *result = 0 ; - - result = (switch_say_interface *)new switch_say_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_say_interface(void * jarg1) { - switch_say_interface *arg1 = (switch_say_interface *) 0 ; - - arg1 = (switch_say_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_chat_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_chat_send_set(void * jarg1, void * jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_status_t (*arg2)(switch_event_t *) = (switch_status_t (*)(switch_event_t *)) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_event_t *))jarg2; - if (arg1) (arg1)->chat_send = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_chat_send_get(void * jarg1) { - void * jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_status_t (*result)(switch_event_t *) = 0 ; - - arg1 = (switch_chat_interface *)jarg1; - result = (switch_status_t (*)(switch_event_t *)) ((arg1)->chat_send); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_chat_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_refs_set(void * jarg1, int jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - int arg2 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_chat_interface_refs_get(void * jarg1) { - int jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - int result; - - arg1 = (switch_chat_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_reflock_set(void * jarg1, void * jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_chat_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_parent_set(void * jarg1, void * jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_parent_get(void * jarg1) { - void * jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_chat_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_next_set(void * jarg1, void * jarg2) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_chat_interface *arg2 = (switch_chat_interface *) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - arg2 = (switch_chat_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_next_get(void * jarg1) { - void * jresult ; - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - switch_chat_interface *result = 0 ; - - arg1 = (switch_chat_interface *)jarg1; - result = (switch_chat_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_chat_interface() { - void * jresult ; - switch_chat_interface *result = 0 ; - - result = (switch_chat_interface *)new switch_chat_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_chat_interface(void * jarg1) { - switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; - - arg1 = (switch_chat_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_relative_oid_set(void * jarg1, char * jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->relative_oid = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->relative_oid, (const char *)arg2); - } else { - arg1->relative_oid = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_management_interface_relative_oid_get(void * jarg1) { - char * jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_management_interface *)jarg1; - result = (char *) ((arg1)->relative_oid); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_management_function_set(void * jarg1, void * jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_status_t (*arg2)(char *,switch_management_action_t,char *,switch_size_t) = (switch_status_t (*)(char *,switch_management_action_t,char *,switch_size_t)) 0 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (switch_status_t (*)(char *,switch_management_action_t,char *,switch_size_t))jarg2; - if (arg1) (arg1)->management_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_management_function_get(void * jarg1) { - void * jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_status_t (*result)(char *,switch_management_action_t,char *,switch_size_t) = 0 ; - - arg1 = (switch_management_interface *)jarg1; - result = (switch_status_t (*)(char *,switch_management_action_t,char *,switch_size_t)) ((arg1)->management_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_management_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_refs_set(void * jarg1, int jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - int arg2 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_management_interface_refs_get(void * jarg1) { - int jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - int result; - - arg1 = (switch_management_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_reflock_set(void * jarg1, void * jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_management_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_parent_set(void * jarg1, void * jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_parent_get(void * jarg1) { - void * jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_management_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_next_set(void * jarg1, void * jarg2) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_management_interface *arg2 = (switch_management_interface *) 0 ; - - arg1 = (switch_management_interface *)jarg1; - arg2 = (switch_management_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_next_get(void * jarg1) { - void * jresult ; - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - switch_management_interface *result = 0 ; - - arg1 = (switch_management_interface *)jarg1; - result = (switch_management_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_management_interface() { - void * jresult ; - switch_management_interface *result = 0 ; - - result = (switch_management_interface *)new switch_management_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_management_interface(void * jarg1) { - switch_management_interface *arg1 = (switch_management_interface *) 0 ; - - arg1 = (switch_management_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_limit_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_incr_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*arg2)(switch_core_session_t *,char const *,char const *,int const,int const) = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const)) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const))jarg2; - if (arg1) (arg1)->incr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_incr_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*result)(switch_core_session_t *,char const *,char const *,int const,int const) = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const)) ((arg1)->incr); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_release_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*arg2)(switch_core_session_t *,char const *,char const *) = (switch_status_t (*)(switch_core_session_t *,char const *,char const *)) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_core_session_t *,char const *,char const *))jarg2; - if (arg1) (arg1)->release = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_release_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*result)(switch_core_session_t *,char const *,char const *) = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_status_t (*)(switch_core_session_t *,char const *,char const *)) ((arg1)->release); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_usage_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - int (*arg2)(char const *,char const *,uint32_t *) = (int (*)(char const *,char const *,uint32_t *)) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (int (*)(char const *,char const *,uint32_t *))jarg2; - if (arg1) (arg1)->usage = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_usage_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - int (*result)(char const *,char const *,uint32_t *) = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (int (*)(char const *,char const *,uint32_t *)) ((arg1)->usage); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_reset_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*arg2)(void) = (switch_status_t (*)(void)) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_status_t (*)(void))jarg2; - if (arg1) (arg1)->reset = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_reset_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*result)(void) = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_status_t (*)(void)) ((arg1)->reset); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_status_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - char *(*arg2)(void) = (char *(*)(void)) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (char *(*)(void))jarg2; - if (arg1) (arg1)->status = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_status_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - char *(*result)(void) = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (char *(*)(void)) ((arg1)->status); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_interval_reset_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*arg2)(char const *,char const *) = (switch_status_t (*)(char const *,char const *)) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_status_t (*)(char const *,char const *))jarg2; - if (arg1) (arg1)->interval_reset = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_interval_reset_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_status_t (*result)(char const *,char const *) = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_status_t (*)(char const *,char const *)) ((arg1)->interval_reset); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_refs_set(void * jarg1, int jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - int arg2 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_limit_interface_refs_get(void * jarg1) { - int jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - int result; - - arg1 = (switch_limit_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_reflock_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_parent_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_parent_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_next_set(void * jarg1, void * jarg2) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_limit_interface *arg2 = (switch_limit_interface *) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - arg2 = (switch_limit_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_next_get(void * jarg1) { - void * jresult ; - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - switch_limit_interface *result = 0 ; - - arg1 = (switch_limit_interface *)jarg1; - result = (switch_limit_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_limit_interface() { - void * jresult ; - switch_limit_interface *result = 0 ; - - result = (switch_limit_interface *)new switch_limit_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_limit_interface(void * jarg1) { - switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; - - arg1 = (switch_limit_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directory_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_open_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*arg2)(switch_directory_handle_t *,char *,char *,char *) = (switch_status_t (*)(switch_directory_handle_t *,char *,char *,char *)) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_directory_handle_t *,char *,char *,char *))jarg2; - if (arg1) (arg1)->directory_open = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_open_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*result)(switch_directory_handle_t *,char *,char *,char *) = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_status_t (*)(switch_directory_handle_t *,char *,char *,char *)) ((arg1)->directory_open); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_close_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*arg2)(switch_directory_handle_t *) = (switch_status_t (*)(switch_directory_handle_t *)) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_directory_handle_t *))jarg2; - if (arg1) (arg1)->directory_close = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_close_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*result)(switch_directory_handle_t *) = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_status_t (*)(switch_directory_handle_t *)) ((arg1)->directory_close); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_query_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*arg2)(switch_directory_handle_t *,char *,char *) = (switch_status_t (*)(switch_directory_handle_t *,char *,char *)) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_directory_handle_t *,char *,char *))jarg2; - if (arg1) (arg1)->directory_query = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_query_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*result)(switch_directory_handle_t *,char *,char *) = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_status_t (*)(switch_directory_handle_t *,char *,char *)) ((arg1)->directory_query); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_next_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*arg2)(switch_directory_handle_t *) = (switch_status_t (*)(switch_directory_handle_t *)) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_directory_handle_t *))jarg2; - if (arg1) (arg1)->directory_next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_next_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*result)(switch_directory_handle_t *) = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_status_t (*)(switch_directory_handle_t *)) ((arg1)->directory_next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_next_pair_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*arg2)(switch_directory_handle_t *,char **,char **) = (switch_status_t (*)(switch_directory_handle_t *,char **,char **)) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_directory_handle_t *,char **,char **))jarg2; - if (arg1) (arg1)->directory_next_pair = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_next_pair_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_status_t (*result)(switch_directory_handle_t *,char **,char **) = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_status_t (*)(switch_directory_handle_t *,char **,char **)) ((arg1)->directory_next_pair); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_refs_set(void * jarg1, int jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - int arg2 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_directory_interface_refs_get(void * jarg1) { - int jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - int result; - - arg1 = (switch_directory_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_reflock_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_parent_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_parent_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_next_set(void * jarg1, void * jarg2) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_directory_interface *arg2 = (switch_directory_interface *) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - arg2 = (switch_directory_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_next_get(void * jarg1) { - void * jresult ; - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - switch_directory_interface *result = 0 ; - - arg1 = (switch_directory_interface *)jarg1; - result = (switch_directory_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directory_interface() { - void * jresult ; - switch_directory_interface *result = 0 ; - - result = (switch_directory_interface *)new switch_directory_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directory_interface(void * jarg1) { - switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; - - arg1 = (switch_directory_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_directory_interface_set(void * jarg1, void * jarg2) { - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - switch_directory_interface_t *arg2 = (switch_directory_interface_t *) 0 ; - - arg1 = (switch_directory_handle *)jarg1; - arg2 = (switch_directory_interface_t *)jarg2; - if (arg1) (arg1)->directory_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_handle_directory_interface_get(void * jarg1) { - void * jresult ; - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - switch_directory_interface_t *result = 0 ; - - arg1 = (switch_directory_handle *)jarg1; - result = (switch_directory_interface_t *) ((arg1)->directory_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_flags_set(void * jarg1, unsigned long jarg2) { - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_directory_handle *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_directory_handle_flags_get(void * jarg1) { - unsigned long jresult ; - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - uint32_t result; - - arg1 = (switch_directory_handle *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_memory_pool_set(void * jarg1, void * jarg2) { - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_directory_handle *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->memory_pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_handle_memory_pool_get(void * jarg1) { - void * jresult ; - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_directory_handle *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->memory_pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_private_info_set(void * jarg1, void * jarg2) { - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_directory_handle *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_handle_private_info_get(void * jarg1) { - void * jresult ; - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - void *result = 0 ; - - arg1 = (switch_directory_handle *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directory_handle() { - void * jresult ; - switch_directory_handle *result = 0 ; - - result = (switch_directory_handle *)new switch_directory_handle(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directory_handle(void * jarg1) { - switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; - - arg1 = (switch_directory_handle *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_settings_unused_set(void * jarg1, int jarg2) { - switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; - int arg2 ; - - arg1 = (switch_codec_settings *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->unused = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_settings_unused_get(void * jarg1) { - int jresult ; - switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; - int result; - - arg1 = (switch_codec_settings *)jarg1; - result = (int) ((arg1)->unused); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_settings() { - void * jresult ; - switch_codec_settings *result = 0 ; - - result = (switch_codec_settings *)new switch_codec_settings(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_settings(void * jarg1) { - switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; - - arg1 = (switch_codec_settings *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_actual_samples_per_second_set(void * jarg1, unsigned long jarg2) { - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_fmtp *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->actual_samples_per_second = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_fmtp_actual_samples_per_second_get(void * jarg1) { - unsigned long jresult ; - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - uint32_t result; - - arg1 = (switch_codec_fmtp *)jarg1; - result = (uint32_t) ((arg1)->actual_samples_per_second); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_bits_per_second_set(void * jarg1, int jarg2) { - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - int arg2 ; - - arg1 = (switch_codec_fmtp *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->bits_per_second = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_fmtp_bits_per_second_get(void * jarg1) { - int jresult ; - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - int result; - - arg1 = (switch_codec_fmtp *)jarg1; - result = (int) ((arg1)->bits_per_second); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_microseconds_per_packet_set(void * jarg1, int jarg2) { - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - int arg2 ; - - arg1 = (switch_codec_fmtp *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->microseconds_per_packet = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_fmtp_microseconds_per_packet_get(void * jarg1) { - int jresult ; - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - int result; - - arg1 = (switch_codec_fmtp *)jarg1; - result = (int) ((arg1)->microseconds_per_packet); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_stereo_set(void * jarg1, int jarg2) { - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - int arg2 ; - - arg1 = (switch_codec_fmtp *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->stereo = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_fmtp_stereo_get(void * jarg1) { - int jresult ; - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - int result; - - arg1 = (switch_codec_fmtp *)jarg1; - result = (int) ((arg1)->stereo); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_private_info_set(void * jarg1, void * jarg2) { - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_codec_fmtp *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_fmtp_private_info_get(void * jarg1) { - void * jresult ; - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - void *result = 0 ; - - arg1 = (switch_codec_fmtp *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_fmtp() { - void * jresult ; - switch_codec_fmtp *result = 0 ; - - result = (switch_codec_fmtp *)new switch_codec_fmtp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_fmtp(void * jarg1) { - switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; - - arg1 = (switch_codec_fmtp *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_codec_interface_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_codec_interface_t *)jarg2; - if (arg1) (arg1)->codec_interface = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_codec_interface_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_codec_interface_t *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_codec_interface_t *) ((arg1)->codec_interface); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - if (arg1) (arg1)->implementation = (switch_codec_implementation_t const *)arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_codec_implementation_t *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_codec_implementation_t *) ((arg1)->implementation); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_in_set(void * jarg1, char * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->fmtp_in; - if (arg2) { - arg1->fmtp_in = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->fmtp_in, (const char *)arg2); - } else { - arg1->fmtp_in = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_fmtp_in_get(void * jarg1) { - char * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - char *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (char *) ((arg1)->fmtp_in); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_out_set(void * jarg1, char * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->fmtp_out; - if (arg2) { - arg1->fmtp_out = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->fmtp_out, (const char *)arg2); - } else { - arg1->fmtp_out = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_fmtp_out_get(void * jarg1) { - char * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - char *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (char *) ((arg1)->fmtp_out); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_flags_set(void * jarg1, unsigned long jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_flags_get(void * jarg1) { - unsigned long jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - uint32_t result; - - arg1 = (switch_codec *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_memory_pool_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->memory_pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_memory_pool_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->memory_pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_private_info_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->private_info = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_private_info_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - void *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (void *) ((arg1)->private_info); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_agreed_pt_set(void * jarg1, unsigned char jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_payload_t)jarg2; - if (arg1) (arg1)->agreed_pt = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_codec_agreed_pt_get(void * jarg1) { - unsigned char jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_payload_t result; - - arg1 = (switch_codec *)jarg1; - result = (switch_payload_t) ((arg1)->agreed_pt); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_mutex_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->mutex = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_mutex_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_mutex_t *) ((arg1)->mutex); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_next_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_codec *arg2 = (switch_codec *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_codec *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_next_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_codec *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_codec *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_session_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - if (arg1) (arg1)->session = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_session_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_core_session_t *) ((arg1)->session); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_cur_frame_set(void * jarg1, void * jarg2) { - switch_codec *arg1 = (switch_codec *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - - arg1 = (switch_codec *)jarg1; - arg2 = (switch_frame_t *)jarg2; - if (arg1) (arg1)->cur_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_cur_frame_get(void * jarg1) { - void * jresult ; - switch_codec *arg1 = (switch_codec *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_codec *)jarg1; - result = (switch_frame_t *) ((arg1)->cur_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec() { - void * jresult ; - switch_codec *result = 0 ; - - result = (switch_codec *)new switch_codec(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec(void * jarg1) { - switch_codec *arg1 = (switch_codec *) 0 ; - - arg1 = (switch_codec *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_type_set(void * jarg1, int jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_codec_type_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_codec_type_t)jarg2; - if (arg1) (arg1)->codec_type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_codec_type_get(void * jarg1) { - int jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_codec_type_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_codec_type_t) ((arg1)->codec_type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_ianacode_set(void * jarg1, unsigned char jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_payload_t)jarg2; - if (arg1) (arg1)->ianacode = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_codec_implementation_ianacode_get(void * jarg1) { - unsigned char jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_payload_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_payload_t) ((arg1)->ianacode); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_iananame_set(void * jarg1, char * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->iananame; - if (arg2) { - arg1->iananame = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->iananame, (const char *)arg2); - } else { - arg1->iananame = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_implementation_iananame_get(void * jarg1) { - char * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - char *result = 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - result = (char *) ((arg1)->iananame); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_fmtp_set(void * jarg1, char * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->fmtp; - if (arg2) { - arg1->fmtp = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->fmtp, (const char *)arg2); - } else { - arg1->fmtp = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_implementation_fmtp_get(void * jarg1) { - char * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - char *result = 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - result = (char *) ((arg1)->fmtp); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_second_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samples_per_second = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_second_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->samples_per_second); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_actual_samples_per_second_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->actual_samples_per_second = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_actual_samples_per_second_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->actual_samples_per_second); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_bits_per_second_set(void * jarg1, int jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - int arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->bits_per_second = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_bits_per_second_get(void * jarg1) { - int jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - int result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (int) ((arg1)->bits_per_second); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_microseconds_per_packet_set(void * jarg1, int jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - int arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->microseconds_per_packet = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_microseconds_per_packet_get(void * jarg1) { - int jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - int result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (int) ((arg1)->microseconds_per_packet); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_packet_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->samples_per_packet = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_packet_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->samples_per_packet); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_decoded_bytes_per_packet_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->decoded_bytes_per_packet = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_decoded_bytes_per_packet_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->decoded_bytes_per_packet); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_encoded_bytes_per_packet_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->encoded_bytes_per_packet = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_encoded_bytes_per_packet_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->encoded_bytes_per_packet); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_number_of_channels_set(void * jarg1, unsigned char jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->number_of_channels = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_codec_implementation_number_of_channels_get(void * jarg1) { - unsigned char jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint8_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint8_t) ((arg1)->number_of_channels); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_frames_per_packet_set(void * jarg1, int jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - int arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->codec_frames_per_packet = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_codec_frames_per_packet_get(void * jarg1) { - int jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - int result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (int) ((arg1)->codec_frames_per_packet); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_init_set(void * jarg1, void * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_init_func_t arg2 = (switch_core_codec_init_func_t) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_core_codec_init_func_t)jarg2; - if (arg1) (arg1)->init = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_init_get(void * jarg1) { - void * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_init_func_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_core_codec_init_func_t) ((arg1)->init); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_encode_set(void * jarg1, void * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_encode_func_t arg2 = (switch_core_codec_encode_func_t) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_core_codec_encode_func_t)jarg2; - if (arg1) (arg1)->encode = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_encode_get(void * jarg1) { - void * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_encode_func_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_core_codec_encode_func_t) ((arg1)->encode); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_decode_set(void * jarg1, void * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_decode_func_t arg2 = (switch_core_codec_decode_func_t) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_core_codec_decode_func_t)jarg2; - if (arg1) (arg1)->decode = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_decode_get(void * jarg1) { - void * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_decode_func_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_core_codec_decode_func_t) ((arg1)->decode); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_destroy_set(void * jarg1, void * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_destroy_func_t arg2 = (switch_core_codec_destroy_func_t) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_core_codec_destroy_func_t)jarg2; - if (arg1) (arg1)->destroy = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_destroy_get(void * jarg1) { - void * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_core_codec_destroy_func_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_core_codec_destroy_func_t) ((arg1)->destroy); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_id_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->codec_id = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_codec_id_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->codec_id); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_impl_id_set(void * jarg1, unsigned long jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->impl_id = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_impl_id_get(void * jarg1) { - unsigned long jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - uint32_t result; - - arg1 = (switch_codec_implementation *)jarg1; - result = (uint32_t) ((arg1)->impl_id); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_next_set(void * jarg1, void * jarg2) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_codec_implementation *arg2 = (switch_codec_implementation *) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - arg2 = (switch_codec_implementation *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_next_get(void * jarg1) { - void * jresult ; - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - switch_codec_implementation *result = 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - result = (switch_codec_implementation *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_implementation() { - void * jresult ; - switch_codec_implementation *result = 0 ; - - result = (switch_codec_implementation *)new switch_codec_implementation(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_implementation(void * jarg1) { - switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; - - arg1 = (switch_codec_implementation *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_codec_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_implementations_set(void * jarg1, void * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (switch_codec_implementation_t *)jarg2; - if (arg1) (arg1)->implementations = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_implementations_get(void * jarg1) { - void * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_codec_implementation_t *result = 0 ; - - arg1 = (switch_codec_interface *)jarg1; - result = (switch_codec_implementation_t *) ((arg1)->implementations); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_parse_fmtp_set(void * jarg1, void * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_core_codec_fmtp_parse_func_t arg2 = (switch_core_codec_fmtp_parse_func_t) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (switch_core_codec_fmtp_parse_func_t)jarg2; - if (arg1) (arg1)->parse_fmtp = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_parse_fmtp_get(void * jarg1) { - void * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_core_codec_fmtp_parse_func_t result; - - arg1 = (switch_codec_interface *)jarg1; - result = (switch_core_codec_fmtp_parse_func_t) ((arg1)->parse_fmtp); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_codec_id_set(void * jarg1, unsigned long jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->codec_id = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_interface_codec_id_get(void * jarg1) { - unsigned long jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - uint32_t result; - - arg1 = (switch_codec_interface *)jarg1; - result = (uint32_t) ((arg1)->codec_id); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_codec_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_refs_set(void * jarg1, int jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - int arg2 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_interface_refs_get(void * jarg1) { - int jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - int result; - - arg1 = (switch_codec_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_reflock_set(void * jarg1, void * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_codec_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_parent_set(void * jarg1, void * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_parent_get(void * jarg1) { - void * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_codec_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_next_set(void * jarg1, void * jarg2) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_codec_interface *arg2 = (switch_codec_interface *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - arg2 = (switch_codec_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_next_get(void * jarg1) { - void * jresult ; - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - switch_codec_interface *result = 0 ; - - arg1 = (switch_codec_interface *)jarg1; - result = (switch_codec_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_interface() { - void * jresult ; - switch_codec_interface *result = 0 ; - - result = (switch_codec_interface *)new switch_codec_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_interface(void * jarg1) { - switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; - - arg1 = (switch_codec_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_application_function_set(void * jarg1, void * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_application_function_t arg2 = (switch_application_function_t) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (switch_application_function_t)jarg2; - if (arg1) (arg1)->application_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_application_function_get(void * jarg1) { - void * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_application_function_t result; - - arg1 = (switch_application_interface *)jarg1; - result = (switch_application_function_t) ((arg1)->application_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_long_desc_set(void * jarg1, char * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->long_desc = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->long_desc, (const char *)arg2); - } else { - arg1->long_desc = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_long_desc_get(void * jarg1) { - char * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (char *) ((arg1)->long_desc); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_short_desc_set(void * jarg1, char * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->short_desc = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->short_desc, (const char *)arg2); - } else { - arg1->short_desc = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_short_desc_get(void * jarg1) { - char * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (char *) ((arg1)->short_desc); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_syntax_set(void * jarg1, char * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->syntax, (const char *)arg2); - } else { - arg1->syntax = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_syntax_get(void * jarg1) { - char * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (char *) ((arg1)->syntax); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_flags_set(void * jarg1, unsigned long jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_application_interface_flags_get(void * jarg1) { - unsigned long jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - uint32_t result; - - arg1 = (switch_application_interface *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_refs_set(void * jarg1, int jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - int arg2 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_application_interface_refs_get(void * jarg1) { - int jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - int result; - - arg1 = (switch_application_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_reflock_set(void * jarg1, void * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_parent_set(void * jarg1, void * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_parent_get(void * jarg1) { - void * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_next_set(void * jarg1, void * jarg2) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_application_interface *arg2 = (switch_application_interface *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - arg2 = (switch_application_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_next_get(void * jarg1) { - void * jresult ; - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - switch_application_interface *result = 0 ; - - arg1 = (switch_application_interface *)jarg1; - result = (switch_application_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_application_interface() { - void * jresult ; - switch_application_interface *result = 0 ; - - result = (switch_application_interface *)new switch_application_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_application_interface(void * jarg1) { - switch_application_interface *arg1 = (switch_application_interface *) 0 ; - - arg1 = (switch_application_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_chat_application_function_set(void * jarg1, void * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_chat_application_function_t arg2 = (switch_chat_application_function_t) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (switch_chat_application_function_t)jarg2; - if (arg1) (arg1)->chat_application_function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_chat_application_function_get(void * jarg1) { - void * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_chat_application_function_t result; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (switch_chat_application_function_t) ((arg1)->chat_application_function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_long_desc_set(void * jarg1, char * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->long_desc = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->long_desc, (const char *)arg2); - } else { - arg1->long_desc = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_long_desc_get(void * jarg1) { - char * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (char *) ((arg1)->long_desc); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_short_desc_set(void * jarg1, char * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->short_desc = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->short_desc, (const char *)arg2); - } else { - arg1->short_desc = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_short_desc_get(void * jarg1) { - char * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (char *) ((arg1)->short_desc); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_syntax_set(void * jarg1, char * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->syntax, (const char *)arg2); - } else { - arg1->syntax = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_syntax_get(void * jarg1) { - char * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (char *) ((arg1)->syntax); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_flags_set(void * jarg1, unsigned long jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_chat_application_interface_flags_get(void * jarg1) { - unsigned long jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - uint32_t result; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_refs_set(void * jarg1, int jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - int arg2 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_chat_application_interface_refs_get(void * jarg1) { - int jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - int result; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_reflock_set(void * jarg1, void * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_parent_set(void * jarg1, void * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_parent_get(void * jarg1) { - void * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_next_set(void * jarg1, void * jarg2) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_chat_application_interface *arg2 = (switch_chat_application_interface *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - arg2 = (switch_chat_application_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_next_get(void * jarg1) { - void * jresult ; - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - switch_chat_application_interface *result = 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - result = (switch_chat_application_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_chat_application_interface() { - void * jresult ; - switch_chat_application_interface *result = 0 ; - - result = (switch_chat_application_interface *)new switch_chat_application_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_chat_application_interface(void * jarg1) { - switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; - - arg1 = (switch_chat_application_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_api_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_desc_set(void * jarg1, char * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->desc = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->desc, (const char *)arg2); - } else { - arg1->desc = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_api_interface_desc_get(void * jarg1) { - char * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (char *) ((arg1)->desc); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_function_set(void * jarg1, void * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_api_function_t arg2 = (switch_api_function_t) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (switch_api_function_t)jarg2; - if (arg1) (arg1)->function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_function_get(void * jarg1) { - void * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_api_function_t result; - - arg1 = (switch_api_interface *)jarg1; - result = (switch_api_function_t) ((arg1)->function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_syntax_set(void * jarg1, char * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->syntax, (const char *)arg2); - } else { - arg1->syntax = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_api_interface_syntax_get(void * jarg1) { - char * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (char *) ((arg1)->syntax); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_refs_set(void * jarg1, int jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - int arg2 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_api_interface_refs_get(void * jarg1) { - int jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - int result; - - arg1 = (switch_api_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_reflock_set(void * jarg1, void * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_parent_set(void * jarg1, void * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_parent_get(void * jarg1) { - void * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_next_set(void * jarg1, void * jarg2) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_api_interface *arg2 = (switch_api_interface *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - arg2 = (switch_api_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_next_get(void * jarg1) { - void * jresult ; - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - switch_api_interface *result = 0 ; - - arg1 = (switch_api_interface *)jarg1; - result = (switch_api_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_api_interface() { - void * jresult ; - switch_api_interface *result = 0 ; - - result = (switch_api_interface *)new switch_api_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_api_interface(void * jarg1) { - switch_api_interface *arg1 = (switch_api_interface *) 0 ; - - arg1 = (switch_api_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_interface_name_set(void * jarg1, char * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->interface_name, (const char *)arg2); - } else { - arg1->interface_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_json_api_interface_interface_name_get(void * jarg1) { - char * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (char *) ((arg1)->interface_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_desc_set(void * jarg1, char * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->desc = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->desc, (const char *)arg2); - } else { - arg1->desc = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_json_api_interface_desc_get(void * jarg1) { - char * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (char *) ((arg1)->desc); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_function_set(void * jarg1, void * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_json_api_function_t arg2 = (switch_json_api_function_t) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (switch_json_api_function_t)jarg2; - if (arg1) (arg1)->function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_function_get(void * jarg1) { - void * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_json_api_function_t result; - - arg1 = (switch_json_api_interface *)jarg1; - result = (switch_json_api_function_t) ((arg1)->function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_syntax_set(void * jarg1, char * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->syntax, (const char *)arg2); - } else { - arg1->syntax = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_json_api_interface_syntax_get(void * jarg1) { - char * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - char *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (char *) ((arg1)->syntax); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_rwlock_set(void * jarg1, void * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (switch_thread_rwlock_t *)jarg2; - if (arg1) (arg1)->rwlock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_rwlock_get(void * jarg1) { - void * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_thread_rwlock_t *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (switch_thread_rwlock_t *) ((arg1)->rwlock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_refs_set(void * jarg1, int jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - int arg2 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_json_api_interface_refs_get(void * jarg1) { - int jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - int result; - - arg1 = (switch_json_api_interface *)jarg1; - result = (int) ((arg1)->refs); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_reflock_set(void * jarg1, void * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->reflock = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_reflock_get(void * jarg1) { - void * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (switch_mutex_t *) ((arg1)->reflock); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_parent_set(void * jarg1, void * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (switch_loadable_module_interface_t *)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_parent_get(void * jarg1) { - void * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_loadable_module_interface_t *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (switch_loadable_module_interface_t *) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_next_set(void * jarg1, void * jarg2) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_json_api_interface *arg2 = (switch_json_api_interface *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - arg2 = (switch_json_api_interface *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_next_get(void * jarg1) { - void * jresult ; - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - switch_json_api_interface *result = 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - result = (switch_json_api_interface *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_json_api_interface() { - void * jresult ; - switch_json_api_interface *result = 0 ; - - result = (switch_json_api_interface *)new switch_json_api_interface(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_json_api_interface(void * jarg1) { - switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; - - arg1 = (switch_json_api_interface *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_session_set(void * jarg1, void * jarg2) { - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - - arg1 = (switch_slin_data *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - if (arg1) (arg1)->session = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_slin_data_session_get(void * jarg1) { - void * jresult ; - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_slin_data *)jarg1; - result = (switch_core_session_t *) ((arg1)->session); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_write_frame_set(void * jarg1, void * jarg2) { - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - - arg1 = (switch_slin_data *)jarg1; - arg2 = (switch_frame_t *)jarg2; - if (arg1) (arg1)->write_frame = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_slin_data_write_frame_get(void * jarg1) { - void * jresult ; - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_slin_data *)jarg1; - result = (switch_frame_t *)& ((arg1)->write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_codec_set(void * jarg1, void * jarg2) { - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - - arg1 = (switch_slin_data *)jarg1; - arg2 = (switch_codec_t *)jarg2; - if (arg1) (arg1)->codec = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_slin_data_codec_get(void * jarg1) { - void * jresult ; - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_slin_data *)jarg1; - result = (switch_codec_t *)& ((arg1)->codec); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_frame_data_set(void * jarg1, char * jarg2) { - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - char *arg2 ; - - arg1 = (switch_slin_data *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->frame_data, (const char *)arg2, 8192-1); - arg1->frame_data[8192-1] = 0; - } else { - arg1->frame_data[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_slin_data_frame_data_get(void * jarg1) { - char * jresult ; - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - char *result = 0 ; - - arg1 = (switch_slin_data *)jarg1; - result = (char *)(char *) ((arg1)->frame_data); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_slin_data() { - void * jresult ; - switch_slin_data *result = 0 ; - - result = (switch_slin_data *)new switch_slin_data(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_slin_data(void * jarg1) { - switch_slin_data *arg1 = (switch_slin_data *) 0 ; - - arg1 = (switch_slin_data *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_profile_created_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->profile_created = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_profile_created_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->profile_created); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_created_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->created = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_created_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->created); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_answered_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->answered = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_answered_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->answered); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_progress_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->progress = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_progress_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->progress); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_progress_media_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->progress_media = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_progress_media_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->progress_media); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_hungup_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->hungup = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_hungup_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->hungup); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_transferred_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->transferred = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_transferred_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->transferred); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_resurrected_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->resurrected = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_resurrected_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->resurrected); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_bridged_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->bridged = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_bridged_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->bridged); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_last_hold_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->last_hold = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_last_hold_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->last_hold); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_hold_accum_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_channel_timetable *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->hold_accum = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_hold_accum_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_time_t result; - - arg1 = (switch_channel_timetable *)jarg1; - result = ((arg1)->hold_accum); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_next_set(void * jarg1, void * jarg2) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ; - - arg1 = (switch_channel_timetable *)jarg1; - arg2 = (switch_channel_timetable *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_next_get(void * jarg1) { - void * jresult ; - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - switch_channel_timetable *result = 0 ; - - arg1 = (switch_channel_timetable *)jarg1; - result = (switch_channel_timetable *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_channel_timetable() { - void * jresult ; - switch_channel_timetable *result = 0 ; - - result = (switch_channel_timetable *)new switch_channel_timetable(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_channel_timetable(void * jarg1) { - switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; - - arg1 = (switch_channel_timetable *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_state(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_state_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_channel_state_t)switch_channel_get_state(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_running_state(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_state_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_channel_state_t)switch_channel_get_running_state(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_check_signal(void * jarg1, int jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_bool_t arg2 ; - int result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (int)switch_channel_check_signal(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_ready(void * jarg1, int jarg2, int jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_bool_t arg2 ; - switch_bool_t arg3 ; - int result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (int)switch_channel_test_ready(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_wait_for_state(void * jarg1, void * jarg2, int jarg3) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - switch_channel_state_t arg3 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (switch_channel_state_t)jarg3; - switch_channel_wait_for_state(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_wait_for_state_timeout(void * jarg1, int jarg2, unsigned long jarg3) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_state_t arg2 ; - uint32_t arg3 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_state_t)jarg2; - arg3 = (uint32_t)jarg3; - switch_channel_wait_for_state_timeout(arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_wait_for_flag(void * jarg1, int jarg2, int jarg3, unsigned long jarg4, void * jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - switch_bool_t arg3 ; - uint32_t arg4 ; - switch_channel_t *arg5 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (switch_channel_t *)jarg5; - result = (switch_status_t)switch_channel_wait_for_flag(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_set_state(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_channel_state_t arg5 ; - switch_channel_state_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (switch_channel_state_t)jarg5; - result = (switch_channel_state_t)switch_channel_perform_set_state(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_set_running_state(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_state_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_channel_state_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_state_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_channel_state_t)switch_channel_perform_set_running_state(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_str2cause(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_call_cause_t result; - - arg1 = (char *)jarg1; - result = (switch_call_cause_t)switch_channel_str2cause((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_cause(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_cause_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_call_cause_t)switch_channel_get_cause(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_cause_q850(int jarg1) { - int jresult ; - switch_call_cause_t arg1 ; - switch_call_cause_t result; - - arg1 = (switch_call_cause_t)jarg1; - result = (switch_call_cause_t)switch_channel_cause_q850(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_cause_q850(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_cause_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_call_cause_t)switch_channel_get_cause_q850(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_cause_ptr(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_cause_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_call_cause_t *)switch_channel_get_cause_ptr(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_cause2str(int jarg1) { - char * jresult ; - switch_call_cause_t arg1 ; - char *result = 0 ; - - arg1 = (switch_call_cause_t)jarg1; - result = (char *)switch_channel_cause2str(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_timetable(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_timetable_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_channel_timetable_t *)switch_channel_get_timetable(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_alloc(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - switch_channel_t **arg1 = (switch_channel_t **) 0 ; - switch_call_direction_t arg2 ; - switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t **)jarg1; - arg2 = (switch_call_direction_t)jarg2; - arg3 = (switch_memory_pool_t *)jarg3; - result = (switch_status_t)switch_channel_alloc(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_init(void * jarg1, void * jarg2, int jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_channel_state_t arg3 ; - switch_channel_flag_t arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - arg3 = (switch_channel_state_t)jarg3; - arg4 = (switch_channel_flag_t)jarg4; - result = (switch_status_t)switch_channel_init(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_presence_data_vals(void * jarg1, char * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - switch_channel_set_presence_data_vals(arg1,(char const *)arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_presence(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, int jarg7) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - int arg7 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (int)jarg7; - switch_channel_perform_presence(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_uninit(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_uninit(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_caller_profile(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - switch_channel_set_caller_profile(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_step_caller_profile(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_step_caller_profile(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_caller_profile(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_caller_profile_t *)switch_channel_get_caller_profile(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_originator_caller_profile(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - switch_channel_set_originator_caller_profile(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_hunt_caller_profile(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - switch_channel_set_hunt_caller_profile(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_originator_caller_profile(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_caller_profile_t *)switch_channel_get_originator_caller_profile(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_originatee_caller_profile(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - switch_channel_set_originatee_caller_profile(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_originatee_caller_profile(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_caller_profile_t *)switch_channel_get_originatee_caller_profile(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_origination_caller_profile(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - switch_channel_set_origination_caller_profile(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_origination_caller_profile(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_caller_profile_t *)switch_channel_get_origination_caller_profile(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_uuid(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_uuid(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_profile_var(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_channel_set_profile_var(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_var_check(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_channel_set_variable_var_check(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_add_variable_var_check(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t arg4 ; - switch_stack_t arg5 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_bool_t)jarg4; - arg5 = (switch_stack_t)jarg5; - result = (switch_status_t)switch_channel_add_variable_var_check(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_printf(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_channel_set_variable_printf(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_name_printf(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_channel_set_variable_name_printf(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_partner_var_check(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_channel_set_variable_partner_var_check(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable_partner(void * jarg1, char * jarg2) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_channel_get_variable_partner(arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_hold_music(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_hold_music(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_hold_music_partner(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_hold_music_partner(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_del_variable_prefix(void * jarg1, char * jarg2) { - unsigned long jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (uint32_t)switch_channel_del_variable_prefix(arg1,(char const *)arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_transfer_variable_prefix(void * jarg1, void * jarg2, char * jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_channel_transfer_variable_prefix(arg1,arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_export_variable_var_check(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_bool_t arg5 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_bool_t)jarg5; - result = (switch_status_t)switch_channel_export_variable_var_check(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_process_export(void * jarg1, void * jarg2, void * jarg3, char * jarg4) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - switch_event_t *arg3 = (switch_event_t *) 0 ; - char *arg4 = (char *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (switch_event_t *)jarg3; - arg4 = (char *)jarg4; - switch_channel_process_export(arg1,arg2,arg3,(char const *)arg4); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_export_variable_printf(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *arg5 = 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_channel_export_variable_printf(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_scope_variables(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - switch_channel_set_scope_variables(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_scope_variables(void * jarg1, void * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_channel_get_scope_variables(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable_dup(void * jarg1, char * jarg2, int jarg3, int jarg4) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - int arg4 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (int)jarg4; - result = (char *)switch_channel_get_variable_dup(arg1,(char const *)arg2,arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_variables(void * jarg1, void * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t **arg2 = (switch_event_t **) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t **)jarg2; - result = (switch_status_t)switch_channel_get_variables(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_pass_callee_id(void * jarg1, void * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_t *)jarg2; - result = (switch_status_t)switch_channel_pass_callee_id(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_variable_first(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_header_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_event_header_t *)switch_channel_variable_first(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_variable_last(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_variable_last(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_restart(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_restart(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_caller_extension_masquerade(void * jarg1, void * jarg2, unsigned long jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - uint32_t arg3 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (uint32_t)jarg3; - result = (switch_status_t)switch_channel_caller_extension_masquerade(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_caller_extension(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_extension_t *)jarg2; - switch_channel_set_caller_extension(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_invert_cid(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_invert_cid(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_flip_cid(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_flip_cid(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_sort_cid(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_sort_cid(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_caller_extension(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_extension_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_caller_extension_t *)switch_channel_get_caller_extension(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_flag(void * jarg1, int jarg2) { - unsigned long jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - uint32_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - result = (uint32_t)switch_channel_test_flag(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag_value(void * jarg1, int jarg2, unsigned long jarg3) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - uint32_t arg3 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - arg3 = (uint32_t)jarg3; - switch_channel_set_flag_value(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag_recursive(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - switch_channel_set_flag_recursive(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_cap_value(void * jarg1, int jarg2, unsigned long jarg3) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_cap_t arg2 ; - uint32_t arg3 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_cap_t)jarg2; - arg3 = (uint32_t)jarg3; - switch_channel_set_cap_value(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_cap(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_cap_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_cap_t)jarg2; - switch_channel_clear_cap(arg1,arg2); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_cap(void * jarg1, int jarg2) { - unsigned long jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_cap_t arg2 ; - uint32_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_cap_t)jarg2; - result = (uint32_t)switch_channel_test_cap(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_cap_partner(void * jarg1, int jarg2) { - unsigned long jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_cap_t arg2 ; - uint32_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_cap_t)jarg2; - result = (uint32_t)switch_channel_test_cap_partner(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_flag_partner(void * jarg1, int jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - switch_bool_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - result = (switch_bool_t)switch_channel_set_flag_partner(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_clear_flag_partner(void * jarg1, int jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - switch_bool_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - result = (switch_bool_t)switch_channel_clear_flag_partner(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_flag_partner(void * jarg1, int jarg2) { - unsigned long jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - uint32_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - result = (uint32_t)switch_channel_test_flag_partner(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_state_flag(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - switch_channel_set_state_flag(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_state_flag(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - switch_channel_clear_state_flag(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_flag(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - switch_channel_clear_flag(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_flag_recursive(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_flag_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_flag_t)jarg2; - switch_channel_clear_flag_recursive(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_answer(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_channel_perform_answer(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_mark_answered(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_channel_perform_mark_answered(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_check_zrtp(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_check_zrtp(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_ring_ready_value(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_ring_ready_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_ring_ready_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_status_t)switch_channel_perform_ring_ready_value(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_pre_answer(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_channel_perform_pre_answer(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_mark_pre_answered(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_channel_perform_mark_pre_answered(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_mark_ring_ready_value(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_ring_ready_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_ring_ready_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - result = (switch_status_t)switch_channel_perform_mark_ring_ready_value(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_add_state_handler(void * jarg1, void * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_state_handler_table_t *arg2 = (switch_state_handler_table_t *) 0 ; - int result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_state_handler_table_t *)jarg2; - result = (int)switch_channel_add_state_handler(arg1,(switch_state_handler_table const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_state_handler(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_state_handler_table_t *arg2 = (switch_state_handler_table_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_state_handler_table_t *)jarg2; - switch_channel_clear_state_handler(arg1,(switch_state_handler_table const *)arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_state_handler(void * jarg1, int jarg2) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - int arg2 ; - switch_state_handler_table_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (int)jarg2; - result = (switch_state_handler_table_t *)switch_channel_get_state_handler(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_private(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - result = (switch_status_t)switch_channel_set_private(arg1,(char const *)arg2,(void const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_private(void * jarg1, char * jarg2) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - void *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (void *)switch_channel_get_private(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_private_partner(void * jarg1, char * jarg2) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - void *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (void *)switch_channel_get_private_partner(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_name(void * jarg1, char * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_channel_set_name(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_name(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_name(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_hangup(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_call_cause_t arg5 ; - switch_channel_state_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (switch_call_cause_t)jarg5; - result = (switch_channel_state_t)switch_channel_perform_hangup(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_has_dtmf(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_size_t result; - - arg1 = (switch_channel_t *)jarg1; - result = switch_channel_has_dtmf(arg1); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dtmf_lock(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_status_t)switch_channel_dtmf_lock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_try_dtmf_lock(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_status_t)switch_channel_try_dtmf_lock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dtmf_unlock(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_status_t)switch_channel_dtmf_unlock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_queue_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = (switch_status_t)switch_channel_queue_dtmf(arg1,(switch_dtmf_t const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_queue_dtmf_string(void * jarg1, char * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_channel_queue_dtmf_string(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dequeue_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = (switch_status_t)switch_channel_dequeue_dtmf(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_flush_dtmf(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_flush_dtmf(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_dequeue_dtmf_string(void * jarg1, char * jarg2, void * jarg3) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_channel_dequeue_dtmf_string(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_state_name(int jarg1) { - char * jresult ; - switch_channel_state_t arg1 ; - char *result = 0 ; - - arg1 = (switch_channel_state_t)jarg1; - result = (char *)switch_channel_state_name(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_name_state(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_channel_state_t result; - - arg1 = (char *)jarg1; - result = (switch_channel_state_t)switch_channel_name_state((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_event_set_data(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - switch_channel_event_set_data(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_event_set_basic_data(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - switch_channel_event_set_basic_data(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_event_set_extended_data(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - switch_channel_event_set_extended_data(arg1,arg2); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_expand_variables_check(void * jarg1, char * jarg2, void * jarg3, void * jarg4, unsigned long jarg5) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_event_t *arg3 = (switch_event_t *) 0 ; - switch_event_t *arg4 = (switch_event_t *) 0 ; - uint32_t arg5 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_event_t *)jarg3; - arg4 = (switch_event_t *)jarg4; - arg5 = (uint32_t)jarg5; - result = (char *)switch_channel_expand_variables_check(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_build_param_string(void * jarg1, void * jarg2, char * jarg3) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - char *arg3 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - arg3 = (char *)jarg3; - result = (char *)switch_channel_build_param_string(arg1,arg2,(char const *)arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_timestamps(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_status_t)switch_channel_set_timestamps(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_audio_sync(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - switch_channel_perform_audio_sync(arg1,(char const *)arg2,(char const *)arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_private_flag(void * jarg1, unsigned long jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_channel_set_private_flag(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_private_flag(void * jarg1, unsigned long jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_channel_clear_private_flag(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_private_flag(void * jarg1, unsigned long jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - uint32_t arg2 ; - int result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (int)switch_channel_test_private_flag(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { - char *arg1 = (char *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - uint32_t arg3 ; - - arg1 = (char *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (uint32_t)jarg3; - switch_channel_set_app_flag_key((char const *)arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { - char *arg1 = (char *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - uint32_t arg3 ; - - arg1 = (char *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (uint32_t)jarg3; - switch_channel_clear_app_flag_key((char const *)arg1,arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - uint32_t arg3 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (uint32_t)jarg3; - result = (int)switch_channel_test_app_flag_key((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_bridge_time(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_set_bridge_time(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_hangup_time(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_set_hangup_time(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_direction(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_direction_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_call_direction_t)switch_channel_direction(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_logical_direction(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_direction_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_call_direction_t)switch_channel_logical_direction(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_direction(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_direction_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_call_direction_t)jarg2; - switch_channel_set_direction(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_session(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_core_session_t *)switch_channel_get_session(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_flag_string(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_flag_string(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_cap_string(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_cap_string(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_state_change_pending(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - int result; - - arg1 = (switch_channel_t *)jarg1; - result = (int)switch_channel_state_change_pending(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_set_callstate(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_callstate_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_channel_callstate_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - switch_channel_perform_set_callstate(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_callstate(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_channel_callstate_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_channel_callstate_t)switch_channel_get_callstate(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_callstate2str(int jarg1) { - char * jresult ; - switch_channel_callstate_t arg1 ; - char *result = 0 ; - - arg1 = (switch_channel_callstate_t)jarg1; - result = (char *)switch_channel_callstate2str(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_str2callstate(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_channel_callstate_t result; - - arg1 = (char *)jarg1; - result = (switch_channel_callstate_t)switch_channel_str2callstate((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_mark_hold(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - switch_channel_mark_hold(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_execute_on(void * jarg1, char * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_channel_execute_on(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_api_on(void * jarg1, char * jarg2) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_channel_api_on(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_process_device_hangup(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_process_device_hangup(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_queued_extension(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_extension_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_caller_extension_t *)switch_channel_get_queued_extension(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_transfer_to_extension(void * jarg1, void * jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_caller_extension_t *)jarg2; - switch_channel_transfer_to_extension(arg1,arg2); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_partner_uuid(void * jarg1) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (char *)switch_channel_get_partner_uuid(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_hold_record(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_hold_record_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_hold_record_t *)switch_channel_get_hold_record(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_state_thread_lock(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_state_thread_lock(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_state_thread_unlock(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_state_thread_unlock(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_state_thread_trylock(void * jarg1) { - int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_status_t result; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_status_t)switch_channel_state_thread_trylock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_handle_cause(void * jarg1, int jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_call_cause_t arg2 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_call_cause_t)jarg2; - switch_channel_handle_cause(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_global_init(void * jarg1) { - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - switch_channel_global_init(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_global_uninit() { - switch_channel_global_uninit(); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_set_device_id(void * jarg1, char * jarg2) { - char * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_channel_set_device_id(arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_device_record(void * jarg1) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - switch_channel_clear_device_record(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_device_record(void * jarg1) { - void * jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_device_record_t *result = 0 ; - - arg1 = (switch_channel_t *)jarg1; - result = (switch_device_record_t *)switch_channel_get_device_record(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_release_device_record(void * jarg1) { - switch_device_record_t **arg1 = (switch_device_record_t **) 0 ; - - arg1 = (switch_device_record_t **)jarg1; - switch_channel_release_device_record(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_bind_device_state_handler(void * jarg1, void * jarg2) { - int jresult ; - switch_device_state_function_t arg1 = (switch_device_state_function_t) 0 ; - void *arg2 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_device_state_function_t)jarg1; - arg2 = (void *)jarg2; - result = (switch_status_t)switch_channel_bind_device_state_handler(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_unbind_device_state_handler(void * jarg1) { - int jresult ; - switch_device_state_function_t arg1 = (switch_device_state_function_t) 0 ; - switch_status_t result; - - arg1 = (switch_device_state_function_t)jarg1; - result = (switch_status_t)switch_channel_unbind_device_state_handler(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_device_state2str(int jarg1) { - char * jresult ; - switch_device_state_t arg1 ; - char *result = 0 ; - - arg1 = (switch_device_state_t)jarg1; - result = (char *)switch_channel_device_state2str(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_buffer_t **arg2 = (switch_buffer_t **) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (switch_buffer_t **)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_status_t)switch_buffer_create(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create_dynamic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_buffer_t **arg1 = (switch_buffer_t **) 0 ; - switch_size_t arg2 ; - switch_size_t arg3 ; - switch_size_t arg4 ; - switch_size_t *argp2 ; - switch_size_t *argp3 ; - switch_size_t *argp4 ; - switch_status_t result; - - arg1 = (switch_buffer_t **)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - argp4 = (switch_size_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg4 = *argp4; - result = (switch_status_t)switch_buffer_create_dynamic(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_add_mutex(void * jarg1, void * jarg2) { - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - switch_buffer_add_mutex(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_lock(void * jarg1) { - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - - arg1 = (switch_buffer_t *)jarg1; - switch_buffer_lock(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_trylock(void * jarg1) { - int jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - switch_status_t result; - - arg1 = (switch_buffer_t *)jarg1; - result = (switch_status_t)switch_buffer_trylock(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_unlock(void * jarg1) { - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - - arg1 = (switch_buffer_t *)jarg1; - switch_buffer_unlock(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_len(void * jarg1) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - result = switch_buffer_len(arg1); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_freespace(void * jarg1) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - result = switch_buffer_freespace(arg1); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_inuse(void * jarg1) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - result = switch_buffer_inuse(arg1); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_read(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_buffer_read(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_peek(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_buffer_peek(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_peek_zerocopy(void * jarg1, void * jarg2) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void **arg2 = (void **) 0 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void **)jarg2; - result = switch_buffer_peek_zerocopy(arg1,(void const **)arg2); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_read_loop(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_buffer_read_loop(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_set_loops(void * jarg1, int jarg2) { - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - int32_t arg2 ; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (int32_t)jarg2; - switch_buffer_set_loops(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_write(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_buffer_write(arg1,(void const *)arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_toss(void * jarg1, void * jarg2) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - result = switch_buffer_toss(arg1,arg2); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_zero(void * jarg1) { - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - - arg1 = (switch_buffer_t *)jarg1; - switch_buffer_zero(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_slide_write(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_buffer_slide_write(arg1,(void const *)arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_destroy(void * jarg1) { - switch_buffer_t **arg1 = (switch_buffer_t **) 0 ; - - arg1 = (switch_buffer_t **)jarg1; - switch_buffer_destroy(arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_zwrite(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (switch_buffer_t *)jarg1; - arg2 = (void *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_buffer_zwrite(arg1,(void const *)arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_name_set(void * jarg1, char * jarg2) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_event_header *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->name; - if (arg2) { - arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->name, (const char *)arg2); - } else { - arg1->name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_header_name_get(void * jarg1) { - char * jresult ; - switch_event_header *arg1 = (switch_event_header *) 0 ; - char *result = 0 ; - - arg1 = (switch_event_header *)jarg1; - result = (char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_value_set(void * jarg1, char * jarg2) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_event_header *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->value; - if (arg2) { - arg1->value = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->value, (const char *)arg2); - } else { - arg1->value = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_header_value_get(void * jarg1) { - char * jresult ; - switch_event_header *arg1 = (switch_event_header *) 0 ; - char *result = 0 ; - - arg1 = (switch_event_header *)jarg1; - result = (char *) ((arg1)->value); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_array_set(void * jarg1, void * jarg2) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - char **arg2 = (char **) 0 ; - - arg1 = (switch_event_header *)jarg1; - arg2 = (char **)jarg2; - if (arg1) (arg1)->array = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_header_array_get(void * jarg1) { - void * jresult ; - switch_event_header *arg1 = (switch_event_header *) 0 ; - char **result = 0 ; - - arg1 = (switch_event_header *)jarg1; - result = (char **) ((arg1)->array); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_idx_set(void * jarg1, int jarg2) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - int arg2 ; - - arg1 = (switch_event_header *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->idx = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_header_idx_get(void * jarg1) { - int jresult ; - switch_event_header *arg1 = (switch_event_header *) 0 ; - int result; - - arg1 = (switch_event_header *)jarg1; - result = (int) ((arg1)->idx); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_hash_set(void * jarg1, unsigned long jarg2) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - unsigned long arg2 ; - - arg1 = (switch_event_header *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->hash = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_header_hash_get(void * jarg1) { - unsigned long jresult ; - switch_event_header *arg1 = (switch_event_header *) 0 ; - unsigned long result; - - arg1 = (switch_event_header *)jarg1; - result = (unsigned long) ((arg1)->hash); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_next_set(void * jarg1, void * jarg2) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - switch_event_header *arg2 = (switch_event_header *) 0 ; - - arg1 = (switch_event_header *)jarg1; - arg2 = (switch_event_header *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_header_next_get(void * jarg1) { - void * jresult ; - switch_event_header *arg1 = (switch_event_header *) 0 ; - switch_event_header *result = 0 ; - - arg1 = (switch_event_header *)jarg1; - result = (switch_event_header *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_event_header() { - void * jresult ; - switch_event_header *result = 0 ; - - result = (switch_event_header *)new switch_event_header(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_event_header(void * jarg1) { - switch_event_header *arg1 = (switch_event_header *) 0 ; - - arg1 = (switch_event_header *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_event_id_set(void * jarg1, int jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - switch_event_types_t arg2 ; - - arg1 = (switch_event *)jarg1; - arg2 = (switch_event_types_t)jarg2; - if (arg1) (arg1)->event_id = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_event_id_get(void * jarg1) { - int jresult ; - switch_event *arg1 = (switch_event *) 0 ; - switch_event_types_t result; - - arg1 = (switch_event *)jarg1; - result = (switch_event_types_t) ((arg1)->event_id); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_priority_set(void * jarg1, int jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - switch_priority_t arg2 ; - - arg1 = (switch_event *)jarg1; - arg2 = (switch_priority_t)jarg2; - if (arg1) (arg1)->priority = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_priority_get(void * jarg1) { - int jresult ; - switch_event *arg1 = (switch_event *) 0 ; - switch_priority_t result; - - arg1 = (switch_event *)jarg1; - result = (switch_priority_t) ((arg1)->priority); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_owner_set(void * jarg1, char * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->owner; - if (arg2) { - arg1->owner = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->owner, (const char *)arg2); - } else { - arg1->owner = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_owner_get(void * jarg1) { - char * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - char *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (char *) ((arg1)->owner); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_subclass_name_set(void * jarg1, char * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->subclass_name; - if (arg2) { - arg1->subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->subclass_name, (const char *)arg2); - } else { - arg1->subclass_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_subclass_name_get(void * jarg1) { - char * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - char *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (char *) ((arg1)->subclass_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_headers_set(void * jarg1, void * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - switch_event_header_t *arg2 = (switch_event_header_t *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (switch_event_header_t *)jarg2; - if (arg1) (arg1)->headers = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_headers_get(void * jarg1) { - void * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - switch_event_header_t *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (switch_event_header_t *) ((arg1)->headers); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_last_header_set(void * jarg1, void * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - switch_event_header_t *arg2 = (switch_event_header_t *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (switch_event_header_t *)jarg2; - if (arg1) (arg1)->last_header = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_last_header_get(void * jarg1) { - void * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - switch_event_header_t *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (switch_event_header_t *) ((arg1)->last_header); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_body_set(void * jarg1, char * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->body; - if (arg2) { - arg1->body = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->body, (const char *)arg2); - } else { - arg1->body = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_body_get(void * jarg1) { - char * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - char *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (char *) ((arg1)->body); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_bind_user_data_set(void * jarg1, void * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->bind_user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_bind_user_data_get(void * jarg1) { - void * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - void *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (void *) ((arg1)->bind_user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_event_user_data_set(void * jarg1, void * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->event_user_data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_event_user_data_get(void * jarg1) { - void * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - void *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (void *) ((arg1)->event_user_data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_key_set(void * jarg1, unsigned long jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - unsigned long arg2 ; - - arg1 = (switch_event *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->key = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_key_get(void * jarg1) { - unsigned long jresult ; - switch_event *arg1 = (switch_event *) 0 ; - unsigned long result; - - arg1 = (switch_event *)jarg1; - result = (unsigned long) ((arg1)->key); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_next_set(void * jarg1, void * jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - switch_event *arg2 = (switch_event *) 0 ; - - arg1 = (switch_event *)jarg1; - arg2 = (switch_event *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_next_get(void * jarg1) { - void * jresult ; - switch_event *arg1 = (switch_event *) 0 ; - switch_event *result = 0 ; - - arg1 = (switch_event *)jarg1; - result = (switch_event *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_flags_set(void * jarg1, int jarg2) { - switch_event *arg1 = (switch_event *) 0 ; - int arg2 ; - - arg1 = (switch_event *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_flags_get(void * jarg1) { - int jresult ; - switch_event *arg1 = (switch_event *) 0 ; - int result; - - arg1 = (switch_event *)jarg1; - result = (int) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_event() { - void * jresult ; - switch_event *result = 0 ; - - result = (switch_event *)new switch_event(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_event(void * jarg1) { - switch_event *arg1 = (switch_event *) 0 ; - - arg1 = (switch_event *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_event_id_set(void * jarg1, int jarg2) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - int arg2 ; - - arg1 = (switch_serial_event_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->event_id = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_serial_event_t_event_id_get(void * jarg1) { - int jresult ; - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - int result; - - arg1 = (switch_serial_event_s *)jarg1; - result = (int) ((arg1)->event_id); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_priority_set(void * jarg1, int jarg2) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - int arg2 ; - - arg1 = (switch_serial_event_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->priority = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_serial_event_t_priority_get(void * jarg1) { - int jresult ; - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - int result; - - arg1 = (switch_serial_event_s *)jarg1; - result = (int) ((arg1)->priority); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_flags_set(void * jarg1, int jarg2) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - int arg2 ; - - arg1 = (switch_serial_event_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_serial_event_t_flags_get(void * jarg1) { - int jresult ; - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - int result; - - arg1 = (switch_serial_event_s *)jarg1; - result = (int) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_owner_set(void * jarg1, char * jarg2) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->owner; - if (arg2) { - arg1->owner = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->owner, (const char *)arg2); - } else { - arg1->owner = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_t_owner_get(void * jarg1) { - char * jresult ; - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - result = (char *) ((arg1)->owner); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_subclass_name_set(void * jarg1, char * jarg2) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->subclass_name; - if (arg2) { - arg1->subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->subclass_name, (const char *)arg2); - } else { - arg1->subclass_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_t_subclass_name_get(void * jarg1) { - char * jresult ; - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - result = (char *) ((arg1)->subclass_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_body_set(void * jarg1, char * jarg2) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->body; - if (arg2) { - arg1->body = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->body, (const char *)arg2); - } else { - arg1->body = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_t_body_get(void * jarg1) { - char * jresult ; - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - result = (char *) ((arg1)->body); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_serial_event_t() { - void * jresult ; - switch_serial_event_s *result = 0 ; - - result = (switch_serial_event_s *)new switch_serial_event_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_serial_event_t(void * jarg1) { - switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; - - arg1 = (switch_serial_event_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_header_t_name_set(void * jarg1, char * jarg2) { - switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_serial_event_header_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->name; - if (arg2) { - arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->name, (const char *)arg2); - } else { - arg1->name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_header_t_name_get(void * jarg1) { - char * jresult ; - switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_serial_event_header_s *)jarg1; - result = (char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_header_t_value_set(void * jarg1, char * jarg2) { - switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_serial_event_header_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->value; - if (arg2) { - arg1->value = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->value, (const char *)arg2); - } else { - arg1->value = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_header_t_value_get(void * jarg1) { - char * jresult ; - switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_serial_event_header_s *)jarg1; - result = (char *) ((arg1)->value); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_serial_event_header_t() { - void * jresult ; - switch_serial_event_header_s *result = 0 ; - - result = (switch_serial_event_header_s *)new switch_serial_event_header_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_serial_event_header_t(void * jarg1) { - switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; - - arg1 = (switch_serial_event_header_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_init(void * jarg1) { - int jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t *)jarg1; - result = (switch_status_t)switch_event_init(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_shutdown() { - int jresult ; - switch_status_t result; - - result = (switch_status_t)switch_event_shutdown(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_subclass_detailed(char * jarg1, char * jarg2, int jarg3, void * jarg4, int jarg5, char * jarg6) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - switch_event_t **arg4 = (switch_event_t **) 0 ; - switch_event_types_t arg5 ; - char *arg6 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (switch_event_t **)jarg4; - arg5 = (switch_event_types_t)jarg5; - arg6 = (char *)jarg6; - result = (switch_status_t)switch_event_create_subclass_detailed((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,(char const *)arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_set_priority(void * jarg1, int jarg2) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - switch_priority_t arg2 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (switch_priority_t)jarg2; - result = (switch_status_t)switch_event_set_priority(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_get_header_ptr(void * jarg1, char * jarg2) { - void * jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_event_header_t *result = 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_event_header_t *)switch_event_get_header_ptr(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_get_header_idx(void * jarg1, char * jarg2, int jarg3) { - char * jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - char *result = 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - result = (char *)switch_event_get_header_idx(arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_rename_header(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_event_rename_header(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_get_body(void * jarg1) { - char * jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_event_t *)jarg1; - result = (char *)switch_event_get_body(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_set_subclass_name(void * jarg1, char * jarg2) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_event_set_subclass_name(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_add_header_string(void * jarg1, int jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - switch_stack_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (switch_stack_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_event_add_header_string(arg1,arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_del_header_val(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_event_del_header_val(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_add_array(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (int)switch_event_add_array(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_destroy(void * jarg1) { - switch_event_t **arg1 = (switch_event_t **) 0 ; - - arg1 = (switch_event_t **)jarg1; - switch_event_destroy(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_dup(void * jarg1, void * jarg2) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (switch_event_t *)jarg2; - result = (switch_status_t)switch_event_dup(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_merge(void * jarg1, void * jarg2) { - switch_event_t *arg1 = (switch_event_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - switch_event_merge(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_dup_reply(void * jarg1, void * jarg2) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (switch_event_t *)jarg2; - result = (switch_status_t)switch_event_dup_reply(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_fire_detailed(char * jarg1, char * jarg2, int jarg3, void * jarg4, void * jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - switch_event_t **arg4 = (switch_event_t **) 0 ; - void *arg5 = (void *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (switch_event_t **)jarg4; - arg5 = (void *)jarg5; - result = (switch_status_t)switch_event_fire_detailed((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_prep_for_delivery_detailed(char * jarg1, char * jarg2, int jarg3, void * jarg4) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - switch_event_t *arg4 = (switch_event_t *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (switch_event_t *)jarg4; - switch_event_prep_for_delivery_detailed((char const *)arg1,(char const *)arg2,arg3,arg4); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_bind(char * jarg1, int jarg2, char * jarg3, void * jarg4, void * jarg5) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_types_t arg2 ; - char *arg3 = (char *) 0 ; - switch_event_callback_t arg4 = (switch_event_callback_t) 0 ; - void *arg5 = (void *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_types_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_event_callback_t)jarg4; - arg5 = (void *)jarg5; - result = (switch_status_t)switch_event_bind((char const *)arg1,arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_bind_removable(char * jarg1, int jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_types_t arg2 ; - char *arg3 = (char *) 0 ; - switch_event_callback_t arg4 = (switch_event_callback_t) 0 ; - void *arg5 = (void *) 0 ; - switch_event_node_t **arg6 = (switch_event_node_t **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_types_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_event_callback_t)jarg4; - arg5 = (void *)jarg5; - arg6 = (switch_event_node_t **)jarg6; - result = (switch_status_t)switch_event_bind_removable((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_unbind(void * jarg1) { - int jresult ; - switch_event_node_t **arg1 = (switch_event_node_t **) 0 ; - switch_status_t result; - - arg1 = (switch_event_node_t **)jarg1; - result = (switch_status_t)switch_event_unbind(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_unbind_callback(void * jarg1) { - int jresult ; - switch_event_callback_t arg1 = (switch_event_callback_t) 0 ; - switch_status_t result; - - arg1 = (switch_event_callback_t)jarg1; - result = (switch_status_t)switch_event_unbind_callback(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_name(int jarg1) { - char * jresult ; - switch_event_types_t arg1 ; - char *result = 0 ; - - arg1 = (switch_event_types_t)jarg1; - result = (char *)switch_event_name(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_name_event(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_types_t *arg2 = (switch_event_types_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_types_t *)jarg2; - result = (switch_status_t)switch_name_event((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_reserve_subclass_detailed(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_event_reserve_subclass_detailed((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_free_subclass_detailed(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_event_free_subclass_detailed((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_binary_deserialize(void * jarg1, void * jarg2, void * jarg3, int jarg4) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - void **arg2 = (void **) 0 ; - switch_size_t arg3 ; - switch_bool_t arg4 ; - switch_size_t *argp3 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (void **)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_event_binary_deserialize(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_binary_serialize(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - void **arg2 = (void **) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (void **)jarg2; - arg3 = (switch_size_t *)jarg3; - result = (switch_status_t)switch_event_binary_serialize(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_serialize(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char **arg2 = (char **) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char **)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_event_serialize(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_serialize_json(void * jarg1, void * jarg2) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char **arg2 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char **)jarg2; - result = (switch_status_t)switch_event_serialize_json(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_serialize_json_obj(void * jarg1, void * jarg2) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - cJSON **arg2 = (cJSON **) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (cJSON **)jarg2; - result = (switch_status_t)switch_event_serialize_json_obj(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_json(void * jarg1, char * jarg2) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_event_create_json(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_brackets(char * jarg1, char jarg2, char jarg3, char jarg4, void * jarg5, void * jarg6, int jarg7) { - int jresult ; - char *arg1 = (char *) 0 ; - char arg2 ; - char arg3 ; - char arg4 ; - switch_event_t **arg5 = (switch_event_t **) 0 ; - char **arg6 = (char **) 0 ; - switch_bool_t arg7 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char)jarg2; - arg3 = (char)jarg3; - arg4 = (char)jarg4; - arg5 = (switch_event_t **)jarg5; - arg6 = (char **)jarg6; - arg7 = (switch_bool_t)jarg7; - result = (switch_status_t)switch_event_create_brackets(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_array_pair(void * jarg1, void * jarg2, void * jarg3, int jarg4) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - char **arg2 = (char **) 0 ; - char **arg3 = (char **) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (char **)jarg2; - arg3 = (char **)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_event_create_array_pair(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_running() { - int jresult ; - switch_status_t result; - - result = (switch_status_t)switch_event_running(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_set_body(void * jarg1, char * jarg2) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_event_set_body(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_expand_headers_check(void * jarg1, char * jarg2, void * jarg3, void * jarg4, unsigned long jarg5) { - char * jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_event_t *arg3 = (switch_event_t *) 0 ; - switch_event_t *arg4 = (switch_event_t *) 0 ; - uint32_t arg5 ; - char *result = 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_event_t *)jarg3; - arg4 = (switch_event_t *)jarg4; - arg5 = (uint32_t)jarg5; - result = (char *)switch_event_expand_headers_check(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_pres_in_detailed(char * jarg1, char * jarg2, int jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, int jarg11, char * jarg12, char * jarg13, char * jarg14, char * jarg15) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - char *arg10 = (char *) 0 ; - int arg11 ; - char *arg12 = (char *) 0 ; - char *arg13 = (char *) 0 ; - char *arg14 = (char *) 0 ; - char *arg15 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char *)jarg10; - arg11 = (int)jarg11; - arg12 = (char *)jarg12; - arg13 = (char *)jarg13; - arg14 = (char *)jarg14; - arg15 = (char *)jarg15; - result = (switch_status_t)switch_event_create_pres_in_detailed(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,arg11,(char const *)arg12,(char const *)arg13,(char const *)arg14,(char const *)arg15); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_plain(void * jarg1, int jarg2) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - switch_event_types_t arg2 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (switch_event_types_t)jarg2; - result = (switch_status_t)switch_event_create_plain(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_deliver(void * jarg1) { - switch_event_t **arg1 = (switch_event_t **) 0 ; - - arg1 = (switch_event_t **)jarg1; - switch_event_deliver(arg1); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_build_param_string(void * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_hash_t *arg3 = (switch_hash_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_hash_t *)jarg3; - result = (char *)switch_event_build_param_string(arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_check_permission_list(void * jarg1, char * jarg2) { - int jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (switch_event_t *)jarg1; - arg2 = (char *)jarg2; - result = (int)switch_event_check_permission_list(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_add_presence_data_cols(void * jarg1, void * jarg2, char * jarg3) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (switch_channel_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - arg3 = (char *)jarg3; - switch_event_add_presence_data_cols(arg1,arg2,(char const *)arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_add_presence_data_cols(void * jarg1, void * jarg2, char * jarg3) { - switch_event_t *arg1 = (switch_event_t *) 0 ; - cJSON *arg2 = (cJSON *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (cJSON *)jarg2; - arg3 = (char *)jarg3; - switch_json_add_presence_data_cols(arg1,arg2,(char const *)arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_launch_dispatch_threads(unsigned long jarg1) { - uint32_t arg1 ; - - arg1 = (uint32_t)jarg1; - switch_event_launch_dispatch_threads(arg1); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_channel_broadcast(char * jarg1, void * jarg2, char * jarg3, unsigned long jarg4) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - cJSON **arg2 = (cJSON **) 0 ; - char *arg3 = (char *) 0 ; - switch_event_channel_id_t arg4 ; - uint32_t result; - - arg1 = (char *)jarg1; - arg2 = (cJSON **)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_event_channel_id_t)jarg4; - result = (uint32_t)switch_event_channel_broadcast((char const *)arg1,arg2,(char const *)arg3,arg4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_channel_unbind(char * jarg1, void * jarg2) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - switch_event_channel_func_t arg2 = (switch_event_channel_func_t) 0 ; - uint32_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_channel_func_t)jarg2; - result = (uint32_t)switch_event_channel_unbind((char const *)arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_channel_bind(char * jarg1, void * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_channel_func_t arg2 = (switch_event_channel_func_t) 0 ; - switch_event_channel_id_t *arg3 = (switch_event_channel_id_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_channel_func_t)jarg2; - arg3 = (switch_event_channel_id_t *)jarg3; - result = (switch_status_t)switch_event_channel_bind((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_NO_EVENT_CHANNEL_ID_get() { - int jresult ; - int result; - - result = (int)(0); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EVENT_CHANNEL_GLOBAL_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("__global__"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_clear(void * jarg1) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - switch_status_t result; - - arg1 = (switch_live_array_t *)jarg1; - result = (switch_status_t)switch_live_array_clear(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_bootstrap(void * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_event_channel_id_t arg3 ; - switch_status_t result; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_event_channel_id_t)jarg3; - result = (switch_status_t)switch_live_array_bootstrap(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_destroy(void * jarg1) { - int jresult ; - switch_live_array_t **arg1 = (switch_live_array_t **) 0 ; - switch_status_t result; - - arg1 = (switch_live_array_t **)jarg1; - result = (switch_status_t)switch_live_array_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_create(char * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_event_channel_id_t arg3 ; - switch_live_array_t **arg4 = (switch_live_array_t **) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_event_channel_id_t)jarg3; - arg4 = (switch_live_array_t **)jarg4; - result = (switch_status_t)switch_live_array_create((char const *)arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_live_array_get(void * jarg1, char * jarg2) { - void * jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - char *arg2 = (char *) 0 ; - cJSON *result = 0 ; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (char *)jarg2; - result = (cJSON *)switch_live_array_get(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_live_array_get_idx(void * jarg1, int jarg2) { - void * jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - int arg2 ; - cJSON *result = 0 ; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (int)jarg2; - result = (cJSON *)switch_live_array_get_idx(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_del(void * jarg1, char * jarg2) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_live_array_del(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_add(void * jarg1, char * jarg2, int jarg3, void * jarg4, int jarg5) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - cJSON **arg4 = (cJSON **) 0 ; - switch_bool_t arg5 ; - switch_status_t result; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (cJSON **)jarg4; - arg5 = (switch_bool_t)jarg5; - result = (switch_status_t)switch_live_array_add(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_visible(void * jarg1, int jarg2, int jarg3) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - switch_bool_t arg2 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_live_array_visible(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_isnew(void * jarg1) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_live_array_t *)jarg1; - result = (switch_bool_t)switch_live_array_isnew(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_lock(void * jarg1) { - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - - arg1 = (switch_live_array_t *)jarg1; - switch_live_array_lock(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_unlock(void * jarg1) { - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - - arg1 = (switch_live_array_t *)jarg1; - switch_live_array_unlock(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_set_user_data(void * jarg1, void * jarg2) { - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (void *)jarg2; - switch_live_array_set_user_data(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_set_command_handler(void * jarg1, void * jarg2) { - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - switch_live_array_command_handler_t arg2 = (switch_live_array_command_handler_t) 0 ; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (switch_live_array_command_handler_t)jarg2; - switch_live_array_set_command_handler(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_parse_json(void * jarg1, unsigned long jarg2) { - cJSON *arg1 = (cJSON *) 0 ; - switch_event_channel_id_t arg2 ; - - arg1 = (cJSON *)jarg1; - arg2 = (switch_event_channel_id_t)jarg2; - switch_live_array_parse_json(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_add_alias(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t result; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_bool_t)switch_live_array_add_alias(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_clear_alias(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_bool_t result; - - arg1 = (switch_live_array_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_bool_t)switch_live_array_clear_alias(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_channel_permission_verify(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_bool_t)switch_event_channel_permission_verify((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_channel_permission_modify(char * jarg1, char * jarg2, int jarg3) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - switch_event_channel_permission_modify((char const *)arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_channel_permission_clear(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - switch_event_channel_permission_clear((char const *)arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RESAMPLE_QUALITY_get() { - int jresult ; - int result; - - result = (int)(2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_resampler_set(void * jarg1, void * jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->resampler = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_audio_resampler_t_resampler_get(void * jarg1) { - void * jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (void *) ((arg1)->resampler); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_from_rate_set(void * jarg1, int jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->from_rate = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_resampler_t_from_rate_get(void * jarg1) { - int jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (int) ((arg1)->from_rate); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_rate_set(void * jarg1, int jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->to_rate = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_resampler_t_to_rate_get(void * jarg1) { - int jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (int) ((arg1)->to_rate); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_factor_set(void * jarg1, double jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - double arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->factor = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_audio_resampler_t_factor_get(void * jarg1) { - double jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - double result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (double) ((arg1)->factor); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_rfactor_set(void * jarg1, double jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - double arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (double)jarg2; - if (arg1) (arg1)->rfactor = arg2; -} - - -SWIGEXPORT double SWIGSTDCALL CSharp_switch_audio_resampler_t_rfactor_get(void * jarg1) { - double jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - double result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (double) ((arg1)->rfactor); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_set(void * jarg1, void * jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int16_t *arg2 = (int16_t *) 0 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (int16_t *)jarg2; - if (arg1) (arg1)->to = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_audio_resampler_t_to_get(void * jarg1) { - void * jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int16_t *result = 0 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (int16_t *) ((arg1)->to); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_len_set(void * jarg1, unsigned long jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->to_len = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_audio_resampler_t_to_len_get(void * jarg1) { - unsigned long jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - uint32_t result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (uint32_t) ((arg1)->to_len); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_size_set(void * jarg1, unsigned long jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->to_size = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_audio_resampler_t_to_size_get(void * jarg1) { - unsigned long jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - uint32_t result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (uint32_t) ((arg1)->to_size); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_channels_set(void * jarg1, int jarg2) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int arg2 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->channels = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_resampler_t_channels_get(void * jarg1) { - int jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int result; - - arg1 = (switch_audio_resampler_t *)jarg1; - result = (int) ((arg1)->channels); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_audio_resampler_t() { - void * jresult ; - switch_audio_resampler_t *result = 0 ; - - result = (switch_audio_resampler_t *)new switch_audio_resampler_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_audio_resampler_t(void * jarg1) { - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - - arg1 = (switch_audio_resampler_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_resample_perform_create(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, int jarg5, unsigned long jarg6, char * jarg7, char * jarg8, int jarg9) { - int jresult ; - switch_audio_resampler_t **arg1 = (switch_audio_resampler_t **) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - int arg5 ; - uint32_t arg6 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - int arg9 ; - switch_status_t result; - - arg1 = (switch_audio_resampler_t **)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (int)jarg5; - arg6 = (uint32_t)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (int)jarg9; - result = (switch_status_t)switch_resample_perform_create(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7,(char const *)arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_resample_destroy(void * jarg1) { - switch_audio_resampler_t **arg1 = (switch_audio_resampler_t **) 0 ; - - arg1 = (switch_audio_resampler_t **)jarg1; - switch_resample_destroy(arg1); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_resample_process(void * jarg1, void * jarg2, unsigned long jarg3) { - unsigned long jresult ; - switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; - int16_t *arg2 = (int16_t *) 0 ; - uint32_t arg3 ; - uint32_t result; - - arg1 = (switch_audio_resampler_t *)jarg1; - arg2 = (int16_t *)jarg2; - arg3 = (uint32_t)jarg3; - result = (uint32_t)switch_resample_process(arg1,arg2,arg3); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_float_to_short(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - float *arg1 = (float *) 0 ; - short *arg2 = (short *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_size_t result; - - arg1 = (float *)jarg1; - arg2 = (short *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = switch_float_to_short(arg1,arg2,arg3); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_char_to_float(char * jarg1, void * jarg2, int jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - float *arg2 = (float *) 0 ; - int arg3 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (float *)jarg2; - arg3 = (int)jarg3; - result = (int)switch_char_to_float(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_float_to_char(void * jarg1, char * jarg2, int jarg3) { - int jresult ; - float *arg1 = (float *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int result; - - arg1 = (float *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - result = (int)switch_float_to_char(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_short_to_float(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - short *arg1 = (short *) 0 ; - float *arg2 = (float *) 0 ; - int arg3 ; - int result; - - arg1 = (short *)jarg1; - arg2 = (float *)jarg2; - arg3 = (int)jarg3; - result = (int)switch_short_to_float(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_swap_linear(void * jarg1, int jarg2) { - int16_t *arg1 = (int16_t *) 0 ; - int arg2 ; - - arg1 = (int16_t *)jarg1; - arg2 = (int)jarg2; - switch_swap_linear(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_generate_sln_silence(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4) { - int16_t *arg1 = (int16_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - - arg1 = (int16_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - switch_generate_sln_silence(arg1,arg2,arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_change_sln_volume(void * jarg1, unsigned long jarg2, int jarg3) { - int16_t *arg1 = (int16_t *) 0 ; - uint32_t arg2 ; - int32_t arg3 ; - - arg1 = (int16_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (int32_t)jarg3; - switch_change_sln_volume(arg1,arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_change_sln_volume_granular(void * jarg1, unsigned long jarg2, int jarg3) { - int16_t *arg1 = (int16_t *) 0 ; - uint32_t arg2 ; - int32_t arg3 ; - - arg1 = (int16_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (int32_t)jarg3; - switch_change_sln_volume_granular(arg1,arg2,arg3); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_merge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4) { - unsigned long jresult ; - int16_t *arg1 = (int16_t *) 0 ; - uint32_t arg2 ; - int16_t *arg3 = (int16_t *) 0 ; - uint32_t arg4 ; - uint32_t result; - - arg1 = (int16_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (int16_t *)jarg3; - arg4 = (uint32_t)jarg4; - result = (uint32_t)switch_merge_sln(arg1,arg2,arg3,arg4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_unmerge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4) { - unsigned long jresult ; - int16_t *arg1 = (int16_t *) 0 ; - uint32_t arg2 ; - int16_t *arg3 = (int16_t *) 0 ; - uint32_t arg4 ; - uint32_t result; - - arg1 = (int16_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (int16_t *)jarg3; - arg4 = (uint32_t)jarg4; - result = (uint32_t)switch_unmerge_sln(arg1,arg2,arg3,arg4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_mux_channels(void * jarg1, void * jarg2, unsigned long jarg3, unsigned long jarg4) { - int16_t *arg1 = (int16_t *) 0 ; - switch_size_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - switch_size_t *argp2 ; - - arg1 = (int16_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - switch_mux_channels(arg1,arg2,arg3,arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_session_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - if (arg1) (arg1)->session = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_session_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_core_session_t *) ((arg1)->session); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_read_codec_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_codec_t *arg2 = (switch_codec_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_codec_t *)jarg2; - if (arg1) (arg1)->read_codec = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_read_codec_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_codec_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_codec_t *)& ((arg1)->read_codec); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_frame_t *)jarg2; - if (arg1) (arg1)->write_frame = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_frame_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_frame_t *)& ((arg1)->write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_data_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_byte_t *arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_byte_t *)jarg2; - { - size_t ii; - switch_byte_t *b = (switch_byte_t *) arg1->write_frame_data; - for (ii = 0; ii < (size_t)8192; ii++) b[ii] = *((switch_byte_t *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_data_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_byte_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_byte_t *)(switch_byte_t *) ((arg1)->write_frame_data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_socket_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_socket_t *arg2 = (switch_socket_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_socket_t *)jarg2; - if (arg1) (arg1)->socket = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_socket_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_socket_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_socket_t *) ((arg1)->socket); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_local_ip_set(void * jarg1, char * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->local_ip; - if (arg2) { - arg1->local_ip = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->local_ip, (const char *)arg2); - } else { - arg1->local_ip = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_unicast_conninfo_local_ip_get(void * jarg1) { - char * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - char *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (char *) ((arg1)->local_ip); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_local_port_set(void * jarg1, unsigned short jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_port_t arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_port_t)jarg2; - if (arg1) (arg1)->local_port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_unicast_conninfo_local_port_get(void * jarg1) { - unsigned short jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_port_t result; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_port_t) ((arg1)->local_port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_ip_set(void * jarg1, char * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->remote_ip; - if (arg2) { - arg1->remote_ip = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->remote_ip, (const char *)arg2); - } else { - arg1->remote_ip = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_ip_get(void * jarg1) { - char * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - char *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (char *) ((arg1)->remote_ip); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_port_set(void * jarg1, unsigned short jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_port_t arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_port_t)jarg2; - if (arg1) (arg1)->remote_port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_port_get(void * jarg1) { - unsigned short jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_port_t result; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_port_t) ((arg1)->remote_port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_local_addr_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_sockaddr_t *)jarg2; - if (arg1) (arg1)->local_addr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_local_addr_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_sockaddr_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_sockaddr_t *) ((arg1)->local_addr); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_addr_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_sockaddr_t *)jarg2; - if (arg1) (arg1)->remote_addr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_addr_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_sockaddr_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_sockaddr_t *) ((arg1)->remote_addr); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_flag_mutex_set(void * jarg1, void * jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->flag_mutex = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_flag_mutex_get(void * jarg1) { - void * jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (switch_mutex_t *) ((arg1)->flag_mutex); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_flags_set(void * jarg1, int jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int32_t arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (int32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_flags_get(void * jarg1) { - int jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int32_t result; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (int32_t) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_type_set(void * jarg1, int jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_type_get(void * jarg1) { - int jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int result; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (int) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_transport_set(void * jarg1, int jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->transport = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_transport_get(void * jarg1) { - int jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int result; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (int) ((arg1)->transport); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_stream_id_set(void * jarg1, int jarg2) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int arg2 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->stream_id = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_stream_id_get(void * jarg1) { - int jresult ; - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - int result; - - arg1 = (switch_unicast_conninfo *)jarg1; - result = (int) ((arg1)->stream_id); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_unicast_conninfo() { - void * jresult ; - switch_unicast_conninfo *result = 0 ; - - result = (switch_unicast_conninfo *)new switch_unicast_conninfo(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_unicast_conninfo(void * jarg1) { - switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; - - arg1 = (switch_unicast_conninfo *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_deactivate_unicast(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_deactivate_unicast(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_activate_unicast(void * jarg1, char * jarg2, unsigned short jarg3, char * jarg4, unsigned short jarg5, char * jarg6, char * jarg7) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_port_t arg3 ; - char *arg4 = (char *) 0 ; - switch_port_t arg5 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_port_t)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_port_t)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - result = (switch_status_t)switch_ivr_activate_unicast(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_generate_json_cdr(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - cJSON **arg2 = (cJSON **) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (cJSON **)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_ivr_generate_json_cdr(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_generate_xml_cdr(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_xml_t *arg2 = (switch_xml_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_xml_t *)jarg2; - result = (switch_status_t)switch_ivr_generate_xml_cdr(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_xml_profile_data(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; - int arg3 ; - int result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_caller_profile_t *)jarg2; - arg3 = (int)jarg3; - result = (int)switch_ivr_set_xml_profile_data(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_xml_chan_vars(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - int arg3 ; - int result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (int)jarg3; - result = (int)switch_ivr_set_xml_chan_vars(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_event(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_event_t *)jarg2; - result = (switch_status_t)switch_ivr_parse_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_events(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_parse_all_events(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_next_event(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_parse_next_event(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_messages(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_parse_all_messages(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_signal_data(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_parse_all_signal_data(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_process_indications(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_message_t *)jarg2; - result = (switch_status_t)switch_ivr_process_indications(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_sleep(void * jarg1, unsigned long jarg2, int jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - switch_bool_t arg3 ; - switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (switch_bool_t)jarg3; - arg4 = (switch_input_args_t *)jarg4; - result = (switch_status_t)switch_ivr_sleep(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_park(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_input_args_t *arg2 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_input_args_t *)jarg2; - result = (switch_status_t)switch_ivr_park(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_collect_digits_callback(void * jarg1, void * jarg2, unsigned long jarg3, unsigned long jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_input_args_t *arg2 = (switch_input_args_t *) 0 ; - uint32_t arg3 ; - uint32_t arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_input_args_t *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - result = (switch_status_t)switch_ivr_collect_digits_callback(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_collect_digits_count(void * jarg1, char * jarg2, void * jarg3, void * jarg4, char * jarg5, char * jarg6, unsigned long jarg7, unsigned long jarg8, unsigned long jarg9) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t arg4 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - uint32_t arg7 ; - uint32_t arg8 ; - uint32_t arg9 ; - switch_size_t *argp3 ; - switch_size_t *argp4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - argp4 = (switch_size_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg4 = *argp4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (uint32_t)jarg7; - arg8 = (uint32_t)jarg8; - arg9 = (uint32_t)jarg9; - result = (switch_status_t)switch_ivr_collect_digits_count(arg1,arg2,arg3,arg4,(char const *)arg5,arg6,arg7,arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_play_and_detect_speech(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, unsigned long jarg6, void * jarg7) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char **arg5 = (char **) 0 ; - uint32_t arg6 ; - switch_input_args_t *arg7 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char **)jarg5; - arg6 = (uint32_t)jarg6; - arg7 = (switch_input_args_t *)jarg7; - result = (switch_status_t)switch_ivr_play_and_detect_speech(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_init(void * jarg1, char * jarg2, char * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_asr_handle_t *arg4 = (switch_asr_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_asr_handle_t *)jarg4; - result = (switch_status_t)switch_ivr_detect_speech_init(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - switch_asr_handle_t *arg6 = (switch_asr_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (switch_asr_handle_t *)jarg6; - result = (switch_status_t)switch_ivr_detect_speech(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_detect_speech(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_stop_detect_speech(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_pause_detect_speech(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_pause_detect_speech(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_resume_detect_speech(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_resume_detect_speech(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_load_grammar(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_ivr_detect_speech_load_grammar(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_unload_grammar(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_detect_speech_unload_grammar(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_enable_grammar(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_detect_speech_enable_grammar(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_disable_grammar(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_detect_speech_disable_grammar(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_disable_all_grammars(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_detect_speech_disable_all_grammars(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_param_detect_speech(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_ivr_set_param_detect_speech(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_start_input_timers(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_detect_speech_start_input_timers(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_session(void * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - switch_file_handle_t *arg4 = (switch_file_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (switch_file_handle_t *)jarg4; - result = (switch_status_t)switch_ivr_record_session(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_transfer_recordings(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - result = (switch_status_t)switch_ivr_transfer_recordings(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_pop_eavesdropper(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t **)jarg2; - result = (switch_status_t)switch_ivr_eavesdrop_pop_eavesdropper(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_exec_all(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_ivr_eavesdrop_exec_all(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_update_display(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_ivr_eavesdrop_update_display(arg1,(char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_session(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_eavesdrop_flag_t arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_eavesdrop_flag_t)jarg4; - result = (switch_status_t)switch_ivr_eavesdrop_session(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_displace_session(void * jarg1, char * jarg2, unsigned long jarg3, char * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - uint32_t arg3 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_ivr_displace_session(arg1,(char const *)arg2,arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_displace_session(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_stop_displace_session(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_record_session(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_stop_record_session(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_audio(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (switch_status_t)switch_ivr_session_audio(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_session_audio(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_stop_session_audio(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_inband_dtmf_session(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_inband_dtmf_session(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_inband_dtmf_session(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_stop_inband_dtmf_session(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_inband_dtmf_generate_session(void * jarg1, int jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_status_t)switch_ivr_inband_dtmf_generate_session(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_inband_dtmf_generate_session(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_stop_inband_dtmf_generate_session(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_echo(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_input_args_t *arg2 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_input_args_t *)jarg2; - result = (switch_status_t)switch_ivr_session_echo(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_tone_detect_session(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_stop_tone_detect_session(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_tone_detect_session(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, int jarg6, char * jarg7, char * jarg8, void * jarg9) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - time_t arg5 ; - int arg6 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - switch_tone_detect_callback_t arg9 = (switch_tone_detect_callback_t) 0 ; - time_t *argp5 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - argp5 = (time_t *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return 0; - } - arg5 = *argp5; - arg6 = (int)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (switch_tone_detect_callback_t)jarg9; - result = (switch_status_t)switch_ivr_tone_detect_session(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,(char const *)arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_play_file(void * jarg1, void * jarg2, char * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_file_handle_t *arg2 = (switch_file_handle_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_file_handle_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_input_args_t *)jarg4; - result = (switch_status_t)switch_ivr_play_file(arg1,arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_wait_for_silence(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, char * jarg6) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - char *arg6 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (char *)jarg6; - result = (switch_status_t)switch_ivr_wait_for_silence(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_gentones(void * jarg1, char * jarg2, int jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - int32_t arg3 ; - switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int32_t)jarg3; - arg4 = (switch_input_args_t *)jarg4; - result = (switch_status_t)switch_ivr_gentones(arg1,(char const *)arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_file(void * jarg1, void * jarg2, char * jarg3, void * jarg4, unsigned long jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_file_handle_t *arg2 = (switch_file_handle_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; - uint32_t arg5 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_file_handle_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_input_args_t *)jarg4; - arg5 = (uint32_t)jarg5; - result = (switch_status_t)switch_ivr_record_file(arg1,arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_play_and_get_digits(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, unsigned long jarg11, char * jarg12, unsigned long jarg13, char * jarg14) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - char *arg10 = (char *) 0 ; - uint32_t arg11 ; - char *arg12 = (char *) 0 ; - uint32_t arg13 ; - char *arg14 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char *)jarg10; - arg11 = (uint32_t)jarg11; - arg12 = (char *)jarg12; - arg13 = (uint32_t)jarg13; - arg14 = (char *)jarg14; - result = (switch_status_t)switch_play_and_get_digits(arg1,arg2,arg3,arg4,arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,arg10,arg11,(char const *)arg12,arg13,(char const *)arg14); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_speak_text_handle(void * jarg1, void * jarg2, void * jarg3, void * jarg4, char * jarg5, void * jarg6) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_speech_handle_t *arg2 = (switch_speech_handle_t *) 0 ; - switch_codec_t *arg3 = (switch_codec_t *) 0 ; - switch_timer_t *arg4 = (switch_timer_t *) 0 ; - char *arg5 = (char *) 0 ; - switch_input_args_t *arg6 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_speech_handle_t *)jarg2; - arg3 = (switch_codec_t *)jarg3; - arg4 = (switch_timer_t *)jarg4; - arg5 = (char *)jarg5; - arg6 = (switch_input_args_t *)jarg6; - result = (switch_status_t)switch_ivr_speak_text_handle(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_clear_speech_cache(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_ivr_clear_speech_cache(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_speak_text(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_input_args_t *arg5 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_input_args_t *)jarg5; - result = (switch_status_t)switch_ivr_speak_text(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_originate(void * jarg1, void * jarg2, void * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, char * jarg7, char * jarg8, void * jarg9, void * jarg10, unsigned long jarg11, void * jarg12) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; - switch_call_cause_t *arg3 = (switch_call_cause_t *) 0 ; - char *arg4 = (char *) 0 ; - uint32_t arg5 ; - switch_state_handler_table_t *arg6 = (switch_state_handler_table_t *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - switch_caller_profile_t *arg9 = (switch_caller_profile_t *) 0 ; - switch_event_t *arg10 = (switch_event_t *) 0 ; - switch_originate_flag_t arg11 ; - switch_call_cause_t *arg12 = (switch_call_cause_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t **)jarg2; - arg3 = (switch_call_cause_t *)jarg3; - arg4 = (char *)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (switch_state_handler_table_t *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (switch_caller_profile_t *)jarg9; - arg10 = (switch_event_t *)jarg10; - arg11 = (switch_originate_flag_t)jarg11; - arg12 = (switch_call_cause_t *)jarg12; - result = (switch_status_t)switch_ivr_originate(arg1,arg2,arg3,(char const *)arg4,arg5,(switch_state_handler_table const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,arg11,arg12); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_enterprise_originate(void * jarg1, void * jarg2, void * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, char * jarg7, char * jarg8, void * jarg9, void * jarg10, unsigned long jarg11, void * jarg12) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; - switch_call_cause_t *arg3 = (switch_call_cause_t *) 0 ; - char *arg4 = (char *) 0 ; - uint32_t arg5 ; - switch_state_handler_table_t *arg6 = (switch_state_handler_table_t *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - switch_caller_profile_t *arg9 = (switch_caller_profile_t *) 0 ; - switch_event_t *arg10 = (switch_event_t *) 0 ; - switch_originate_flag_t arg11 ; - switch_call_cause_t *arg12 = (switch_call_cause_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t **)jarg2; - arg3 = (switch_call_cause_t *)jarg3; - arg4 = (char *)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (switch_state_handler_table_t *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (switch_caller_profile_t *)jarg9; - arg10 = (switch_event_t *)jarg10; - arg11 = (switch_originate_flag_t)jarg11; - arg12 = (switch_call_cause_t *)jarg12; - result = (switch_status_t)switch_ivr_enterprise_originate(arg1,arg2,arg3,(char const *)arg4,arg5,(switch_state_handler_table const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,arg11,arg12); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_bridge_display(void * jarg1, void * jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - switch_ivr_bridge_display(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_multi_threaded_bridge(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_input_callback_function_t arg3 = (switch_input_callback_function_t) 0 ; - void *arg4 = (void *) 0 ; - void *arg5 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - arg3 = (switch_input_callback_function_t)jarg3; - arg4 = (void *)jarg4; - arg5 = (void *)jarg5; - result = (switch_status_t)switch_ivr_multi_threaded_bridge(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_signal_bridge(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - result = (switch_status_t)switch_ivr_signal_bridge(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_ivr_session_transfer(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_ivr_schedule_transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5) { - unsigned long jresult ; - time_t arg1 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - time_t *argp1 ; - uint32_t result; - - argp1 = (time_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return 0; - } - arg1 = *argp1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - result = (uint32_t)switch_ivr_schedule_transfer(arg1,(char const *)arg2,arg3,arg4,arg5); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_ivr_schedule_hangup(void * jarg1, char * jarg2, int jarg3, int jarg4) { - unsigned long jresult ; - time_t arg1 ; - char *arg2 = (char *) 0 ; - switch_call_cause_t arg3 ; - switch_bool_t arg4 ; - time_t *argp1 ; - uint32_t result; - - argp1 = (time_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return 0; - } - arg1 = *argp1; - arg2 = (char *)jarg2; - arg3 = (switch_call_cause_t)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (uint32_t)switch_ivr_schedule_hangup(arg1,(char const *)arg2,arg3,arg4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_uuid_bridge(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_uuid_bridge((char const *)arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_media(char * jarg1, unsigned long jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_media_flag_t arg2 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_media_flag_t)jarg2; - result = (switch_status_t)switch_ivr_media((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_nomedia(char * jarg1, unsigned long jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_media_flag_t arg2 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_media_flag_t)jarg2; - result = (switch_status_t)switch_ivr_nomedia((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_hold_uuid(char * jarg1, char * jarg2, int jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_ivr_hold_uuid((char const *)arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_hold_toggle_uuid(char * jarg1, char * jarg2, int jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_ivr_hold_toggle_uuid((char const *)arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unhold_uuid(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - result = (switch_status_t)switch_ivr_unhold_uuid((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_hold(void * jarg1, char * jarg2, int jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_ivr_hold(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unhold(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_unhold(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_ivr_schedule_broadcast(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4) { - unsigned long jresult ; - time_t arg1 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_media_flag_t arg4 ; - time_t *argp1 ; - uint32_t result; - - argp1 = (time_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return 0; - } - arg1 = *argp1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_media_flag_t)jarg4; - result = (uint32_t)switch_ivr_schedule_broadcast(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_broadcast(char * jarg1, char * jarg2, unsigned long jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_media_flag_t arg3 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_media_flag_t)jarg3; - result = (switch_status_t)switch_ivr_broadcast((char const *)arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_broadcast_in_thread(void * jarg1, char * jarg2, int jarg3) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - switch_ivr_broadcast_in_thread(arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_transfer_variable(void * jarg1, void * jarg2, char * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_ivr_transfer_variable(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_new(void * jarg1, void * jarg2) { - int jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_ivr_digit_stream_parser_t **arg2 = (switch_ivr_digit_stream_parser_t **) 0 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (switch_ivr_digit_stream_parser_t **)jarg2; - result = (switch_status_t)switch_ivr_digit_stream_parser_new(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_destroy(void * jarg1) { - int jresult ; - switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; - result = (switch_status_t)switch_ivr_digit_stream_parser_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_new(void * jarg1, void * jarg2) { - int jresult ; - switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; - switch_ivr_digit_stream_t **arg2 = (switch_ivr_digit_stream_t **) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; - arg2 = (switch_ivr_digit_stream_t **)jarg2; - result = (switch_status_t)switch_ivr_digit_stream_new(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_destroy(void * jarg1) { - int jresult ; - switch_ivr_digit_stream_t **arg1 = (switch_ivr_digit_stream_t **) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_t **)jarg1; - result = (switch_status_t)switch_ivr_digit_stream_destroy(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_set_event(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - result = (switch_status_t)switch_ivr_digit_stream_parser_set_event(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_del_event(void * jarg1, char * jarg2) { - int jresult ; - switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_digit_stream_parser_del_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_feed(void * jarg1, void * jarg2, char jarg3) { - void * jresult ; - switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; - switch_ivr_digit_stream_t *arg2 = (switch_ivr_digit_stream_t *) 0 ; - char arg3 ; - void *result = 0 ; - - arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; - arg2 = (switch_ivr_digit_stream_t *)jarg2; - arg3 = (char)jarg3; - result = (void *)switch_ivr_digit_stream_parser_feed(arg1,arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_reset(void * jarg1) { - int jresult ; - switch_ivr_digit_stream_t *arg1 = (switch_ivr_digit_stream_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_t *)jarg1; - result = (switch_status_t)switch_ivr_digit_stream_reset(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_set_terminator(void * jarg1, char jarg2) { - int jresult ; - switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; - char arg2 ; - switch_status_t result; - - arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; - arg2 = (char)jarg2; - result = (switch_status_t)switch_ivr_digit_stream_parser_set_terminator(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_init(void * jarg1, void * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, char * jarg11, char * jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17, int jarg18, void * jarg19) { - int jresult ; - switch_ivr_menu_t **arg1 = (switch_ivr_menu_t **) 0 ; - switch_ivr_menu_t *arg2 = (switch_ivr_menu_t *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - char *arg10 = (char *) 0 ; - char *arg11 = (char *) 0 ; - char *arg12 = (char *) 0 ; - int arg13 ; - int arg14 ; - int arg15 ; - int arg16 ; - int arg17 ; - int arg18 ; - switch_memory_pool_t *arg19 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_t **)jarg1; - arg2 = (switch_ivr_menu_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char *)jarg10; - arg11 = (char *)jarg11; - arg12 = (char *)jarg12; - arg13 = (int)jarg13; - arg14 = (int)jarg14; - arg15 = (int)jarg15; - arg16 = (int)jarg16; - arg17 = (int)jarg17; - arg18 = (int)jarg18; - arg19 = (switch_memory_pool_t *)jarg19; - result = (switch_status_t)switch_ivr_menu_init(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,(char const *)arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_bind_action(void * jarg1, int jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_ivr_menu_t *arg1 = (switch_ivr_menu_t *) 0 ; - switch_ivr_action_t arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_t *)jarg1; - arg2 = (switch_ivr_action_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_ivr_menu_bind_action(arg1,arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_bind_function(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_ivr_menu_t *arg1 = (switch_ivr_menu_t *) 0 ; - switch_ivr_menu_action_function_t *arg2 = (switch_ivr_menu_action_function_t *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_t *)jarg1; - arg2 = (switch_ivr_menu_action_function_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_ivr_menu_bind_function(arg1,arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_execute(void * jarg1, void * jarg2, char * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_ivr_menu_t *arg2 = (switch_ivr_menu_t *) 0 ; - char *arg3 = (char *) 0 ; - void *arg4 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_ivr_menu_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (void *)jarg4; - result = (switch_status_t)switch_ivr_menu_execute(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_free(void * jarg1) { - int jresult ; - switch_ivr_menu_t *arg1 = (switch_ivr_menu_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_t *)jarg1; - result = (switch_status_t)switch_ivr_menu_stack_free(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_xml_build(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_ivr_menu_xml_ctx_t *arg1 = (switch_ivr_menu_xml_ctx_t *) 0 ; - switch_ivr_menu_t **arg2 = (switch_ivr_menu_t **) 0 ; - switch_xml_t arg3 = (switch_xml_t) 0 ; - switch_xml_t arg4 = (switch_xml_t) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_xml_ctx_t *)jarg1; - arg2 = (switch_ivr_menu_t **)jarg2; - arg3 = (switch_xml_t)jarg3; - arg4 = (switch_xml_t)jarg4; - result = (switch_status_t)switch_ivr_menu_stack_xml_build(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_str2action(char * jarg1, void * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_ivr_action_t *arg2 = (switch_ivr_action_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_ivr_action_t *)jarg2; - result = (switch_status_t)switch_ivr_menu_str2action((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_xml_add_custom(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_ivr_menu_xml_ctx_t *arg1 = (switch_ivr_menu_xml_ctx_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_ivr_menu_action_function_t *arg3 = (switch_ivr_menu_action_function_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_xml_ctx_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_ivr_menu_action_function_t *)jarg3; - result = (switch_status_t)switch_ivr_menu_stack_xml_add_custom(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_xml_init(void * jarg1, void * jarg2) { - int jresult ; - switch_ivr_menu_xml_ctx_t **arg1 = (switch_ivr_menu_xml_ctx_t **) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_menu_xml_ctx_t **)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - result = (switch_status_t)switch_ivr_menu_stack_xml_init(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_phrase_macro_event(void * jarg1, char * jarg2, char * jarg3, void * jarg4, char * jarg5, void * jarg6) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_event_t *arg4 = (switch_event_t *) 0 ; - char *arg5 = (char *) 0 ; - switch_input_args_t *arg6 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_event_t *)jarg4; - arg5 = (char *)jarg5; - arg6 = (switch_input_args_t *)jarg6; - result = (switch_status_t)switch_ivr_phrase_macro_event(arg1,(char const *)arg2,(char const *)arg3,arg4,(char const *)arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_delay_echo(void * jarg1, unsigned long jarg2) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_ivr_delay_echo(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_find_bridged_uuid(char * jarg1, char * jarg2, void * jarg3) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_status_t)switch_ivr_find_bridged_uuid((char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_intercept_session(void * jarg1, char * jarg2, int jarg3) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - switch_ivr_intercept_session(arg1,(char const *)arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_park_session(void * jarg1) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - switch_ivr_park_session(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_wait_for_answer(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - result = (switch_status_t)switch_ivr_wait_for_answer(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_read(void * jarg1, unsigned long jarg2, unsigned long jarg3, char * jarg4, char * jarg5, char * jarg6, void * jarg7, unsigned long jarg8, char * jarg9, unsigned long jarg10) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - switch_size_t arg7 ; - uint32_t arg8 ; - char *arg9 = (char *) 0 ; - uint32_t arg10 ; - switch_size_t *argp7 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - argp7 = (switch_size_t *)jarg7; - if (!argp7) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg7 = *argp7; - arg8 = (uint32_t)jarg8; - arg9 = (char *)jarg9; - arg10 = (uint32_t)jarg10; - result = (switch_status_t)switch_ivr_read(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6,arg7,arg8,(char const *)arg9,arg10); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_block_dtmf_session(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_block_dtmf_session(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unblock_dtmf_session(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_unblock_dtmf_session(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_bind_dtmf_meta_session(void * jarg1, unsigned long jarg2, unsigned long jarg3, char * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - switch_bind_flag_t arg3 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (switch_bind_flag_t)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_ivr_bind_dtmf_meta_session(arg1,arg2,arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unbind_dtmf_meta_session(void * jarg1, unsigned long jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - uint32_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (switch_status_t)switch_ivr_unbind_dtmf_meta_session(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_soft_hold(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_status_t)switch_ivr_soft_hold(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, void * jarg7) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - switch_input_args_t *arg7 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (switch_input_args_t *)jarg7; - result = (switch_status_t)switch_ivr_say(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say_string(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, void * jarg9) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char **arg9 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char **)jarg9; - result = (switch_status_t)switch_ivr_say_string(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_method_by_name(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_say_method_t result; - - arg1 = (char *)jarg1; - result = (switch_say_method_t)switch_ivr_get_say_method_by_name((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_gender_by_name(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_say_gender_t result; - - arg1 = (char *)jarg1; - result = (switch_say_gender_t)switch_ivr_get_say_gender_by_name((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_type_by_name(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_say_type_t result; - - arg1 = (char *)jarg1; - result = (switch_say_type_t)switch_ivr_get_say_type_by_name((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say_spell(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_say_args_t *arg3 = (switch_say_args_t *) 0 ; - switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_say_args_t *)jarg3; - arg4 = (switch_input_args_t *)jarg4; - result = (switch_status_t)switch_ivr_say_spell(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say_ip(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_say_callback_t arg3 = (switch_say_callback_t) 0 ; - switch_say_args_t *arg4 = (switch_say_args_t *) 0 ; - switch_input_args_t *arg5 = (switch_input_args_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_say_callback_t)jarg3; - arg4 = (switch_say_args_t *)jarg4; - arg5 = (switch_input_args_t *)jarg5; - result = (switch_status_t)switch_ivr_say_ip(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_user(void * jarg1, char * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_set_user(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_user_xml(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_xml_t arg5 = (switch_xml_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_xml_t)jarg5; - result = (switch_status_t)switch_ivr_set_user_xml(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_sound_test(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)switch_ivr_sound_test(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_process_import(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_channel_t *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - switch_process_import(arg1,arg2,(char const *)arg3,(char const *)arg4); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_uuid_exists(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_ivr_uuid_exists((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_uuid_force_exists(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t result; - - arg1 = (char *)jarg1; - result = (switch_bool_t)switch_ivr_uuid_force_exists((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_is_parsing(void * jarg1) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_bool_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (switch_bool_t)switch_ivr_dmachine_is_parsing(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_last_ping(void * jarg1) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (switch_status_t)switch_ivr_dmachine_last_ping(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_dmachine_get_name(void * jarg1) { - char * jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (char *)switch_ivr_dmachine_get_name(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_match_callback(void * jarg1, void * jarg2) { - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_ivr_dmachine_callback_t arg2 = (switch_ivr_dmachine_callback_t) 0 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (switch_ivr_dmachine_callback_t)jarg2; - switch_ivr_dmachine_set_match_callback(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_nonmatch_callback(void * jarg1, void * jarg2) { - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_ivr_dmachine_callback_t arg2 = (switch_ivr_dmachine_callback_t) 0 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (switch_ivr_dmachine_callback_t)jarg2; - switch_ivr_dmachine_set_nonmatch_callback(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_create(void * jarg1, char * jarg2, void * jarg3, unsigned long jarg4, unsigned long jarg5, void * jarg6, void * jarg7, void * jarg8) { - int jresult ; - switch_ivr_dmachine_t **arg1 = (switch_ivr_dmachine_t **) 0 ; - char *arg2 = (char *) 0 ; - switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; - uint32_t arg4 ; - uint32_t arg5 ; - switch_ivr_dmachine_callback_t arg6 = (switch_ivr_dmachine_callback_t) 0 ; - switch_ivr_dmachine_callback_t arg7 = (switch_ivr_dmachine_callback_t) 0 ; - void *arg8 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t **)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_memory_pool_t *)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (switch_ivr_dmachine_callback_t)jarg6; - arg7 = (switch_ivr_dmachine_callback_t)jarg7; - arg8 = (void *)jarg8; - result = (switch_status_t)switch_ivr_dmachine_create(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_destroy(void * jarg1) { - switch_ivr_dmachine_t **arg1 = (switch_ivr_dmachine_t **) 0 ; - - arg1 = (switch_ivr_dmachine_t **)jarg1; - switch_ivr_dmachine_destroy(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_bind(void * jarg1, char * jarg2, char * jarg3, int jarg4, void * jarg5, void * jarg6) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int32_t arg4 ; - switch_ivr_dmachine_callback_t arg5 = (switch_ivr_dmachine_callback_t) 0 ; - void *arg6 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int32_t)jarg4; - arg5 = (switch_ivr_dmachine_callback_t)jarg5; - arg6 = (void *)jarg6; - result = (switch_status_t)switch_ivr_dmachine_bind(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_feed(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_ivr_dmachine_match_t **arg3 = (switch_ivr_dmachine_match_t **) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_ivr_dmachine_match_t **)jarg3; - result = (switch_status_t)switch_ivr_dmachine_feed(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_clear(void * jarg1) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (switch_status_t)switch_ivr_dmachine_clear(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_ping(void * jarg1, void * jarg2) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_ivr_dmachine_match_t **arg2 = (switch_ivr_dmachine_match_t **) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (switch_ivr_dmachine_match_t **)jarg2; - result = (switch_status_t)switch_ivr_dmachine_ping(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_dmachine_get_match(void * jarg1) { - void * jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - switch_ivr_dmachine_match_t *result = 0 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (switch_ivr_dmachine_match_t *)switch_ivr_dmachine_get_match(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_dmachine_get_failed_digits(void * jarg1) { - char * jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - result = (char *)switch_ivr_dmachine_get_failed_digits(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_digit_timeout_ms(void * jarg1, unsigned long jarg2) { - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_ivr_dmachine_set_digit_timeout_ms(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_input_timeout_ms(void * jarg1, unsigned long jarg2) { - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_ivr_dmachine_set_input_timeout_ms(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_clear_realm(void * jarg1, char * jarg2) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_dmachine_clear_realm(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_set_realm(void * jarg1, char * jarg2) { - int jresult ; - switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_ivr_dmachine_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_ivr_dmachine_set_realm(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_file_handle(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_file_handle_t **arg2 = (switch_file_handle_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_file_handle_t **)jarg2; - result = (switch_status_t)switch_ivr_get_file_handle(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_release_file_handle(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_file_handle_t **arg2 = (switch_file_handle_t **) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_file_handle_t **)jarg2; - result = (switch_status_t)switch_ivr_release_file_handle(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_process_fh(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_file_handle_t *arg3 = (switch_file_handle_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_file_handle_t *)jarg3; - result = (switch_status_t)switch_ivr_process_fh(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_insert_file(void * jarg1, char * jarg2, char * jarg3, void * jarg4) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_size_t arg4 ; - switch_size_t *argp4 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - argp4 = (switch_size_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg4 = *argp4; - result = (switch_status_t)switch_ivr_insert_file(arg1,(char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_create_message_reply(void * jarg1, void * jarg2, char * jarg3) { - int jresult ; - switch_event_t **arg1 = (switch_event_t **) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - char *arg3 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_event_t **)jarg1; - arg2 = (switch_event_t *)jarg2; - arg3 = (char *)jarg3; - result = (switch_status_t)switch_ivr_create_message_reply(arg1,arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_check_presence_mapping(char * jarg1, char * jarg2) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_ivr_check_presence_mapping((char const *)arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_kill_uuid(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_call_cause_t arg2 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_call_cause_t)jarg2; - result = (switch_status_t)switch_ivr_kill_uuid((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_blind_transfer_ack(void * jarg1, int jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_bool_t arg2 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_status_t)switch_ivr_blind_transfer_ack(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_session_mask(void * jarg1, char * jarg2, int jarg3) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_ivr_record_session_mask(arg1,(char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_BUF_LEN_get() { - int jresult ; - int result; - - result = (int)(16384); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTCP_MAX_BUF_LEN_get() { - int jresult ; - int result; - - result = (int)(16384); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_BUF_LEN_WORDS_get() { - int jresult ; - int result; - - result = (int)(4094); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_CRYPTO_LEN_get() { - int jresult ; - int result; - - result = (int)(64); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTP_CRYPTO_KEY_80_get() { - char * jresult ; - char *result = 0 ; - - result = (char *)("AES_CM_128_HMAC_SHA1_80"); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_name_set(void * jarg1, char * jarg2) { - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->name; - if (arg2) { - arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->name, (const char *)arg2); - } else { - arg1->name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_name_get(void * jarg1) { - char * jresult ; - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - char *result = 0 ; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - result = (char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_type_set(void * jarg1, int jarg2) { - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - switch_rtp_crypto_key_type_t arg2 ; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - arg2 = (switch_rtp_crypto_key_type_t)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_type_get(void * jarg1) { - int jresult ; - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - switch_rtp_crypto_key_type_t result; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - result = (switch_rtp_crypto_key_type_t) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_keylen_set(void * jarg1, int jarg2) { - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - int arg2 ; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->keylen = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_keylen_get(void * jarg1) { - int jresult ; - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - int result; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - result = (int) ((arg1)->keylen); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_srtp_crypto_suite_t() { - void * jresult ; - switch_srtp_crypto_suite_s *result = 0 ; - - result = (switch_srtp_crypto_suite_s *)new switch_srtp_crypto_suite_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_srtp_crypto_suite_t(void * jarg1) { - switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; - - arg1 = (switch_srtp_crypto_suite_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_index_set(void * jarg1, unsigned long jarg2) { - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->index = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_crypto_key_index_get(void * jarg1) { - unsigned long jresult ; - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - uint32_t result; - - arg1 = (switch_rtp_crypto_key *)jarg1; - result = (uint32_t) ((arg1)->index); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_type_set(void * jarg1, int jarg2) { - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - switch_rtp_crypto_key_type_t arg2 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - arg2 = (switch_rtp_crypto_key_type_t)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_crypto_key_type_get(void * jarg1) { - int jresult ; - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - switch_rtp_crypto_key_type_t result; - - arg1 = (switch_rtp_crypto_key *)jarg1; - result = (switch_rtp_crypto_key_type_t) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_key_set(void * jarg1, void * jarg2) { - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - unsigned char *arg2 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - arg2 = (unsigned char *)jarg2; - { - size_t ii; - unsigned char *b = (unsigned char *) arg1->key; - for (ii = 0; ii < (size_t)64; ii++) b[ii] = *((unsigned char *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_crypto_key_key_get(void * jarg1) { - void * jresult ; - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - unsigned char *result = 0 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - result = (unsigned char *)(unsigned char *) ((arg1)->key); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_keylen_set(void * jarg1, void * jarg2) { - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->keylen = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_crypto_key_keylen_get(void * jarg1) { - void * jresult ; - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_crypto_key *)jarg1; - result = ((arg1)->keylen); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_next_set(void * jarg1, void * jarg2) { - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - switch_rtp_crypto_key *arg2 = (switch_rtp_crypto_key *) 0 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - arg2 = (switch_rtp_crypto_key *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_crypto_key_next_get(void * jarg1) { - void * jresult ; - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - switch_rtp_crypto_key *result = 0 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - result = (switch_rtp_crypto_key *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_crypto_key() { - void * jresult ; - switch_rtp_crypto_key *result = 0 ; - - result = (switch_rtp_crypto_key *)new switch_rtp_crypto_key(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_crypto_key(void * jarg1) { - switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; - - arg1 = (switch_rtp_crypto_key *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_foundation_set(void * jarg1, char * jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (icand_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->foundation; - if (arg2) { - arg1->foundation = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->foundation, (const char *)arg2); - } else { - arg1->foundation = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_foundation_get(void * jarg1) { - char * jresult ; - icand_s *arg1 = (icand_s *) 0 ; - char *result = 0 ; - - arg1 = (icand_s *)jarg1; - result = (char *) ((arg1)->foundation); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_component_id_set(void * jarg1, int jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - int arg2 ; - - arg1 = (icand_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->component_id = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_icand_t_component_id_get(void * jarg1) { - int jresult ; - icand_s *arg1 = (icand_s *) 0 ; - int result; - - arg1 = (icand_s *)jarg1; - result = (int) ((arg1)->component_id); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_transport_set(void * jarg1, char * jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (icand_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->transport; - if (arg2) { - arg1->transport = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->transport, (const char *)arg2); - } else { - arg1->transport = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_transport_get(void * jarg1) { - char * jresult ; - icand_s *arg1 = (icand_s *) 0 ; - char *result = 0 ; - - arg1 = (icand_s *)jarg1; - result = (char *) ((arg1)->transport); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_priority_set(void * jarg1, unsigned long jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - uint32_t arg2 ; - - arg1 = (icand_s *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->priority = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_icand_t_priority_get(void * jarg1) { - unsigned long jresult ; - icand_s *arg1 = (icand_s *) 0 ; - uint32_t result; - - arg1 = (icand_s *)jarg1; - result = (uint32_t) ((arg1)->priority); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_con_addr_set(void * jarg1, char * jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (icand_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->con_addr; - if (arg2) { - arg1->con_addr = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->con_addr, (const char *)arg2); - } else { - arg1->con_addr = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_con_addr_get(void * jarg1) { - char * jresult ; - icand_s *arg1 = (icand_s *) 0 ; - char *result = 0 ; - - arg1 = (icand_s *)jarg1; - result = (char *) ((arg1)->con_addr); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_con_port_set(void * jarg1, unsigned short jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - switch_port_t arg2 ; - - arg1 = (icand_s *)jarg1; - arg2 = (switch_port_t)jarg2; - if (arg1) (arg1)->con_port = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_icand_t_con_port_get(void * jarg1) { - unsigned short jresult ; - icand_s *arg1 = (icand_s *) 0 ; - switch_port_t result; - - arg1 = (icand_s *)jarg1; - result = (switch_port_t) ((arg1)->con_port); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_cand_type_set(void * jarg1, char * jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (icand_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->cand_type; - if (arg2) { - arg1->cand_type = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->cand_type, (const char *)arg2); - } else { - arg1->cand_type = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_cand_type_get(void * jarg1) { - char * jresult ; - icand_s *arg1 = (icand_s *) 0 ; - char *result = 0 ; - - arg1 = (icand_s *)jarg1; - result = (char *) ((arg1)->cand_type); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_raddr_set(void * jarg1, char * jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (icand_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->raddr; - if (arg2) { - arg1->raddr = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->raddr, (const char *)arg2); - } else { - arg1->raddr = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_raddr_get(void * jarg1) { - char * jresult ; - icand_s *arg1 = (icand_s *) 0 ; - char *result = 0 ; - - arg1 = (icand_s *)jarg1; - result = (char *) ((arg1)->raddr); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_rport_set(void * jarg1, unsigned short jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - switch_port_t arg2 ; - - arg1 = (icand_s *)jarg1; - arg2 = (switch_port_t)jarg2; - if (arg1) (arg1)->rport = arg2; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_icand_t_rport_get(void * jarg1) { - unsigned short jresult ; - icand_s *arg1 = (icand_s *) 0 ; - switch_port_t result; - - arg1 = (icand_s *)jarg1; - result = (switch_port_t) ((arg1)->rport); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_generation_set(void * jarg1, char * jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (icand_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->generation; - if (arg2) { - arg1->generation = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->generation, (const char *)arg2); - } else { - arg1->generation = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_generation_get(void * jarg1) { - char * jresult ; - icand_s *arg1 = (icand_s *) 0 ; - char *result = 0 ; - - arg1 = (icand_s *)jarg1; - result = (char *) ((arg1)->generation); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_ready_set(void * jarg1, unsigned char jarg2) { - icand_s *arg1 = (icand_s *) 0 ; - uint8_t arg2 ; - - arg1 = (icand_s *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->ready = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_icand_t_ready_get(void * jarg1) { - unsigned char jresult ; - icand_s *arg1 = (icand_s *) 0 ; - uint8_t result; - - arg1 = (icand_s *)jarg1; - result = (uint8_t) ((arg1)->ready); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_icand_t() { - void * jresult ; - icand_s *result = 0 ; - - result = (icand_s *)new icand_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_icand_t(void * jarg1) { - icand_s *arg1 = (icand_s *) 0 ; - - arg1 = (icand_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_MAX_CAND_get() { - int jresult ; - int result; - - result = (int)(50); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_cands_set(void * jarg1, void * jarg2) { - ice_s *arg1 = (ice_s *) 0 ; - icand_t (*arg2)[2] ; - - arg1 = (ice_s *)jarg1; - arg2 = (icand_t (*)[2])jarg2; - { - icand_t (*inp)[2] = (icand_t (*)[2])(arg2); - icand_t (*dest)[2] = (icand_t (*)[2])(arg1->cands); - size_t ii = 0; - for (; ii < 50; ++ii) { - icand_t *ip = inp[ii]; - icand_t *dp = dest[ii]; - size_t jj = 0; - for (; jj < 2; ++jj) dp[jj] = ip[jj]; - } - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_ice_t_cands_get(void * jarg1) { - void * jresult ; - ice_s *arg1 = (ice_s *) 0 ; - icand_t (*result)[2] = 0 ; - - arg1 = (ice_s *)jarg1; - result = (icand_t (*)[2])(icand_t (*)[2]) ((arg1)->cands); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_cand_idx_set(void * jarg1, int jarg2) { - ice_s *arg1 = (ice_s *) 0 ; - int arg2 ; - - arg1 = (ice_s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->cand_idx = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_ice_t_cand_idx_get(void * jarg1) { - int jresult ; - ice_s *arg1 = (ice_s *) 0 ; - int result; - - arg1 = (ice_s *)jarg1; - result = (int) ((arg1)->cand_idx); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_chosen_set(void * jarg1, void * jarg2) { - ice_s *arg1 = (ice_s *) 0 ; - int *arg2 ; - - arg1 = (ice_s *)jarg1; - arg2 = (int *)jarg2; - { - size_t ii; - int *b = (int *) arg1->chosen; - for (ii = 0; ii < (size_t)2; ii++) b[ii] = *((int *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_ice_t_chosen_get(void * jarg1) { - void * jresult ; - ice_s *arg1 = (ice_s *) 0 ; - int *result = 0 ; - - arg1 = (ice_s *)jarg1; - result = (int *)(int *) ((arg1)->chosen); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_ufrag_set(void * jarg1, char * jarg2) { - ice_s *arg1 = (ice_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (ice_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->ufrag; - if (arg2) { - arg1->ufrag = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->ufrag, (const char *)arg2); - } else { - arg1->ufrag = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_ice_t_ufrag_get(void * jarg1) { - char * jresult ; - ice_s *arg1 = (ice_s *) 0 ; - char *result = 0 ; - - arg1 = (ice_s *)jarg1; - result = (char *) ((arg1)->ufrag); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_pwd_set(void * jarg1, char * jarg2) { - ice_s *arg1 = (ice_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (ice_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->pwd; - if (arg2) { - arg1->pwd = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->pwd, (const char *)arg2); - } else { - arg1->pwd = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_ice_t_pwd_get(void * jarg1) { - char * jresult ; - ice_s *arg1 = (ice_s *) 0 ; - char *result = 0 ; - - arg1 = (ice_s *)jarg1; - result = (char *) ((arg1)->pwd); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_options_set(void * jarg1, char * jarg2) { - ice_s *arg1 = (ice_s *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (ice_s *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->options; - if (arg2) { - arg1->options = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->options, (const char *)arg2); - } else { - arg1->options = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_ice_t_options_get(void * jarg1) { - char * jresult ; - ice_s *arg1 = (ice_s *) 0 ; - char *result = 0 ; - - arg1 = (ice_s *)jarg1; - result = (char *) ((arg1)->options); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_ice_t() { - void * jresult ; - ice_s *result = 0 ; - - result = (ice_s *)new ice_s(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_ice_t(void * jarg1) { - ice_s *arg1 = (ice_s *) 0 ; - - arg1 = (ice_s *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_add_crypto_key(void * jarg1, int jarg2, unsigned long jarg3, int jarg4, void * jarg5, void * jarg6) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_crypto_direction_t arg2 ; - uint32_t arg3 ; - switch_rtp_crypto_key_type_t arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - switch_size_t arg6 ; - switch_size_t *argp6 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_crypto_direction_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (switch_rtp_crypto_key_type_t)jarg4; - arg5 = (unsigned char *)jarg5; - argp6 = (switch_size_t *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg6 = *argp6; - result = (switch_status_t)switch_rtp_add_crypto_key(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_get_random(void * jarg1, unsigned long jarg2) { - void *arg1 = (void *) 0 ; - uint32_t arg2 ; - - arg1 = (void *)jarg1; - arg2 = (uint32_t)jarg2; - switch_rtp_get_random(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_init(void * jarg1) { - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_memory_pool_t *)jarg1; - switch_rtp_init(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_shutdown() { - switch_rtp_shutdown(); -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_set_start_port(unsigned short jarg1) { - unsigned short jresult ; - switch_port_t arg1 ; - switch_port_t result; - - arg1 = (switch_port_t)jarg1; - result = (switch_port_t)switch_rtp_set_start_port(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_ssrc(void * jarg1, unsigned long jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (switch_status_t)switch_rtp_set_ssrc(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_remote_ssrc(void * jarg1, unsigned long jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (switch_status_t)switch_rtp_set_remote_ssrc(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_set_end_port(unsigned short jarg1) { - unsigned short jresult ; - switch_port_t arg1 ; - switch_port_t result; - - arg1 = (switch_port_t)jarg1; - result = (switch_port_t)switch_rtp_set_end_port(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_request_port(char * jarg1) { - unsigned short jresult ; - char *arg1 = (char *) 0 ; - switch_port_t result; - - arg1 = (char *)jarg1; - result = (switch_port_t)switch_rtp_request_port((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_release_port(char * jarg1, unsigned short jarg2) { - char *arg1 = (char *) 0 ; - switch_port_t arg2 ; - - arg1 = (char *)jarg1; - arg2 = (switch_port_t)jarg2; - switch_rtp_release_port((char const *)arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_interval(void * jarg1, unsigned long jarg2, unsigned long jarg3) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - result = (switch_status_t)switch_rtp_set_interval(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_change_interval(void * jarg1, unsigned long jarg2, unsigned long jarg3) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - result = (switch_status_t)switch_rtp_change_interval(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_create(void * jarg1, unsigned char jarg2, unsigned long jarg3, unsigned long jarg4, void * jarg5, char * jarg6, void * jarg7, void * jarg8) { - int jresult ; - switch_rtp_t **arg1 = (switch_rtp_t **) 0 ; - switch_payload_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - switch_rtp_flag_t *arg5 ; - char *arg6 = (char *) 0 ; - char **arg7 = (char **) 0 ; - switch_memory_pool_t *arg8 = (switch_memory_pool_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t **)jarg1; - arg2 = (switch_payload_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (switch_rtp_flag_t *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char **)jarg7; - arg8 = (switch_memory_pool_t *)jarg8; - result = (switch_status_t)switch_rtp_create(arg1,arg2,arg3,arg4,arg5,arg6,(char const **)arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_new(char * jarg1, unsigned short jarg2, char * jarg3, unsigned short jarg4, unsigned char jarg5, unsigned long jarg6, unsigned long jarg7, void * jarg8, char * jarg9, void * jarg10, void * jarg11) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_port_t arg2 ; - char *arg3 = (char *) 0 ; - switch_port_t arg4 ; - switch_payload_t arg5 ; - uint32_t arg6 ; - uint32_t arg7 ; - switch_rtp_flag_t *arg8 ; - char *arg9 = (char *) 0 ; - char **arg10 = (char **) 0 ; - switch_memory_pool_t *arg11 = (switch_memory_pool_t *) 0 ; - switch_rtp_t *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (switch_port_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (switch_port_t)jarg4; - arg5 = (switch_payload_t)jarg5; - arg6 = (uint32_t)jarg6; - arg7 = (uint32_t)jarg7; - arg8 = (switch_rtp_flag_t *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char **)jarg10; - arg11 = (switch_memory_pool_t *)jarg11; - result = (switch_rtp_t *)switch_rtp_new((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const **)arg10,arg11); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_remote_address(void * jarg1, char * jarg2, unsigned short jarg3, unsigned short jarg4, int jarg5, void * jarg6) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_port_t arg3 ; - switch_port_t arg4 ; - switch_bool_t arg5 ; - char **arg6 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_port_t)jarg3; - arg4 = (switch_port_t)jarg4; - arg5 = (switch_bool_t)jarg5; - arg6 = (char **)jarg6; - result = (switch_status_t)switch_rtp_set_remote_address(arg1,(char const *)arg2,arg3,arg4,arg5,(char const **)arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtp_get_remote_host(void * jarg1) { - char * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_rtp_t *)jarg1; - result = (char *)switch_rtp_get_remote_host(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_get_remote_port(void * jarg1) { - unsigned short jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_port_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (switch_port_t)switch_rtp_get_remote_port(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset_media_timer(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_reset_media_timer(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_max_missed_packets(void * jarg1, unsigned long jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_rtp_set_max_missed_packets(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_udptl_mode(void * jarg1) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (switch_status_t)switch_rtp_udptl_mode(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_reset(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_local_address(void * jarg1, char * jarg2, unsigned short jarg3, void * jarg4) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_port_t arg3 ; - char **arg4 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_port_t)jarg3; - arg4 = (char **)jarg4; - result = (switch_status_t)switch_rtp_set_local_address(arg1,(char const *)arg2,arg3,(char const **)arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_kill_socket(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_kill_socket(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_break(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_break(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_flush(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_flush(arg1); -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_rtp_ready(void * jarg1) { - unsigned char jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint8_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (uint8_t)switch_rtp_ready(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_destroy(void * jarg1) { - switch_rtp_t **arg1 = (switch_rtp_t **) 0 ; - - arg1 = (switch_rtp_t **)jarg1; - switch_rtp_destroy(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_ice(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, int jarg6, int jarg7, void * jarg8) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - ice_proto_t arg6 ; - switch_core_media_ice_type_t arg7 ; - ice_t *arg8 = (ice_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (ice_proto_t)jarg6; - arg7 = (switch_core_media_ice_type_t)jarg7; - arg8 = (ice_t *)jarg8; - result = (switch_status_t)switch_rtp_activate_ice(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_rtcp(void * jarg1, int jarg2, unsigned short jarg3, int jarg4) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - int arg2 ; - switch_port_t arg3 ; - switch_bool_t arg4 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (int)jarg2; - arg3 = (switch_port_t)jarg3; - arg4 = (switch_bool_t)jarg4; - result = (switch_status_t)switch_rtp_activate_rtcp(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_jitter_buffer(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, unsigned long jarg6) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - uint32_t arg6 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (uint32_t)jarg6; - result = (switch_status_t)switch_rtp_activate_jitter_buffer(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_debug_jitter_buffer(void * jarg1, char * jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - char *arg2 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (char *)jarg2; - result = (switch_status_t)switch_rtp_debug_jitter_buffer(arg1,(char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_deactivate_jitter_buffer(void * jarg1) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (switch_status_t)switch_rtp_deactivate_jitter_buffer(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_pause_jitter_buffer(void * jarg1, int jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_bool_t arg2 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_status_t)switch_rtp_pause_jitter_buffer(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_jitter_buffer(void * jarg1) { - void * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - stfu_instance_t *result = 0 ; - - arg1 = (switch_rtp_t *)jarg1; - result = (stfu_instance_t *)switch_rtp_get_jitter_buffer(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_flag(void * jarg1, int jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_flag_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_flag_t)jarg2; - switch_rtp_set_flag(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_flags(void * jarg1, void * jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_flag_t *arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_flag_t *)jarg2; - switch_rtp_set_flags(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_clear_flags(void * jarg1, void * jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_flag_t *arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_flag_t *)jarg2; - switch_rtp_clear_flags(arg1,arg2); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_test_flag(void * jarg1, int jarg2) { - unsigned long jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_flag_t arg2 ; - uint32_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_flag_t)jarg2; - result = (uint32_t)switch_rtp_test_flag(arg1,arg2); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_clear_flag(void * jarg1, int jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_flag_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_flag_t)jarg2; - switch_rtp_clear_flag(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_rtp_socket(void * jarg1) { - void * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_socket_t *result = 0 ; - - arg1 = (switch_rtp_t *)jarg1; - result = (switch_socket_t *)switch_rtp_get_rtp_socket(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_ping(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_ping(arg1); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_default_samples_per_interval(void * jarg1) { - unsigned long jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (uint32_t)switch_rtp_get_default_samples_per_interval(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_default_payload(void * jarg1, unsigned char jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_payload_t)jarg2; - switch_rtp_set_default_payload(arg1,arg2); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_default_payload(void * jarg1) { - unsigned long jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (uint32_t)switch_rtp_get_default_payload(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_invalid_handler(void * jarg1, void * jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_invalid_handler_t arg2 = (switch_rtp_invalid_handler_t) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_invalid_handler_t)jarg2; - switch_rtp_set_invalid_handler(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_read(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, unsigned long jarg6) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - void *arg2 = (void *) 0 ; - uint32_t *arg3 = (uint32_t *) 0 ; - switch_payload_t *arg4 = (switch_payload_t *) 0 ; - switch_frame_flag_t *arg5 = (switch_frame_flag_t *) 0 ; - switch_io_flag_t arg6 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (uint32_t *)jarg3; - arg4 = (switch_payload_t *)jarg4; - arg5 = (switch_frame_flag_t *)jarg5; - arg6 = (switch_io_flag_t)jarg6; - result = (switch_status_t)switch_rtp_read(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_queue_rfc2833(void * jarg1, void * jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = (switch_status_t)switch_rtp_queue_rfc2833(arg1,(switch_dtmf_t const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_queue_rfc2833_in(void * jarg1, void * jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = (switch_status_t)switch_rtp_queue_rfc2833_in(arg1,(switch_dtmf_t const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_has_dtmf(void * jarg1) { - void * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = switch_rtp_has_dtmf(arg1); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_dequeue_dtmf(void * jarg1, void * jarg2) { - void * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; - switch_size_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_dtmf_t *)jarg2; - result = switch_rtp_dequeue_dtmf(arg1,arg2); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_zerocopy_read(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, unsigned long jarg6) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - void **arg2 = (void **) 0 ; - uint32_t *arg3 = (uint32_t *) 0 ; - switch_payload_t *arg4 = (switch_payload_t *) 0 ; - switch_frame_flag_t *arg5 = (switch_frame_flag_t *) 0 ; - switch_io_flag_t arg6 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (void **)jarg2; - arg3 = (uint32_t *)jarg3; - arg4 = (switch_payload_t *)jarg4; - arg5 = (switch_frame_flag_t *)jarg5; - arg6 = (switch_io_flag_t)jarg6; - result = (switch_status_t)switch_rtp_zerocopy_read(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_zerocopy_read_frame(void * jarg1, void * jarg2, unsigned long jarg3) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - switch_io_flag_t arg3 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - arg3 = (switch_io_flag_t)jarg3; - result = (switch_status_t)switch_rtp_zerocopy_read_frame(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtcp_zerocopy_read_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtcp_frame_t *arg2 = (switch_rtcp_frame_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtcp_frame_t *)jarg2; - result = (switch_status_t)switch_rtcp_zerocopy_read_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_rtp_flush_read_buffer(void * jarg1, int jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_flush_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_flush_t)jarg2; - rtp_flush_read_buffer(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_enable_vad(void * jarg1, void * jarg2, void * jarg3, unsigned long jarg4) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - switch_codec_t *arg3 = (switch_codec_t *) 0 ; - switch_vad_flag_t arg4 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - arg3 = (switch_codec_t *)jarg3; - arg4 = (switch_vad_flag_t)jarg4; - result = (switch_status_t)switch_rtp_enable_vad(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_disable_vad(void * jarg1) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (switch_status_t)switch_rtp_disable_vad(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_write_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_frame_t *arg2 = (switch_frame_t *) 0 ; - int result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_frame_t *)jarg2; - result = (int)switch_rtp_write_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_write_manual(void * jarg1, void * jarg2, unsigned long jarg3, unsigned char jarg4, unsigned char jarg5, unsigned long jarg6, void * jarg7) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - void *arg2 = (void *) 0 ; - uint32_t arg3 ; - uint8_t arg4 ; - switch_payload_t arg5 ; - uint32_t arg6 ; - switch_frame_flag_t *arg7 = (switch_frame_flag_t *) 0 ; - int result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (uint32_t)jarg3; - arg4 = (uint8_t)jarg4; - arg5 = (switch_payload_t)jarg5; - arg6 = (uint32_t)jarg6; - arg7 = (switch_frame_flag_t *)jarg7; - result = (int)switch_rtp_write_manual(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_ssrc(void * jarg1) { - unsigned long jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (uint32_t)switch_rtp_get_ssrc(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_private(void * jarg1, void * jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (void *)jarg2; - switch_rtp_set_private(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_telephony_event(void * jarg1, unsigned char jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_payload_t)jarg2; - switch_rtp_set_telephony_event(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_telephony_recv_event(void * jarg1, unsigned char jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_payload_t)jarg2; - switch_rtp_set_telephony_recv_event(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_cng_pt(void * jarg1, unsigned char jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_payload_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_payload_t)jarg2; - switch_rtp_set_cng_pt(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_private(void * jarg1) { - void * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_rtp_t *)jarg1; - result = (void *)switch_rtp_get_private(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_payload_map(void * jarg1, void * jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - payload_map_t **arg2 = (payload_map_t **) 0 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (payload_map_t **)jarg2; - result = (switch_status_t)switch_rtp_set_payload_map(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_intentional_bugs(void * jarg1, int jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_rtp_bug_flag_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_rtp_bug_flag_t)jarg2; - switch_rtp_intentional_bugs(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_stats(void * jarg1, void * jarg2) { - void * jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - switch_rtp_stats_t *result = 0 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - result = (switch_rtp_stats_t *)switch_rtp_get_stats(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_rtp_check_auto_adj(void * jarg1) { - unsigned char jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - switch_byte_t result; - - arg1 = (switch_rtp_t *)jarg1; - result = (switch_byte_t)switch_rtp_check_auto_adj(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_interdigit_delay(void * jarg1, unsigned long jarg2) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_rtp_set_interdigit_delay(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_add_dtls(void * jarg1, void * jarg2, void * jarg3, int jarg4) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - dtls_fingerprint_t *arg2 = (dtls_fingerprint_t *) 0 ; - dtls_fingerprint_t *arg3 = (dtls_fingerprint_t *) 0 ; - dtls_type_t arg4 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (dtls_fingerprint_t *)jarg2; - arg3 = (dtls_fingerprint_t *)jarg3; - arg4 = (dtls_type_t)jarg4; - result = (switch_status_t)switch_rtp_add_dtls(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_del_dtls(void * jarg1, int jarg2) { - int jresult ; - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - dtls_type_t arg2 ; - switch_status_t result; - - arg1 = (switch_rtp_t *)jarg1; - arg2 = (dtls_type_t)jarg2; - result = (switch_status_t)switch_rtp_del_dtls(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_has_dtls() { - int jresult ; - int result; - - result = (int)switch_rtp_has_dtls(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_video_refresh(void * jarg1) { - switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; - - arg1 = (switch_rtp_t *)jarg1; - switch_rtp_video_refresh(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_data_set(void * jarg1, char * jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->data; - if (arg2) { - arg1->data = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->data, (const char *)arg2); - } else { - arg1->data = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_data_get(void * jarg1) { - char * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_log_node_t *)jarg1; - result = (char *) ((arg1)->data); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_file_set(void * jarg1, char * jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *arg2 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->file, (const char *)arg2, 80-1); - arg1->file[80-1] = 0; - } else { - arg1->file[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_file_get(void * jarg1) { - char * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_log_node_t *)jarg1; - result = (char *)(char *) ((arg1)->file); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_line_set(void * jarg1, unsigned long jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->line = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_log_node_t_line_get(void * jarg1) { - unsigned long jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - uint32_t result; - - arg1 = (switch_log_node_t *)jarg1; - result = (uint32_t) ((arg1)->line); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_func_set(void * jarg1, char * jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *arg2 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->func, (const char *)arg2, 80-1); - arg1->func[80-1] = 0; - } else { - arg1->func[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_func_get(void * jarg1) { - char * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_log_node_t *)jarg1; - result = (char *)(char *) ((arg1)->func); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_level_set(void * jarg1, int jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_log_level_t arg2 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (switch_log_level_t)jarg2; - if (arg1) (arg1)->level = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_level_get(void * jarg1) { - int jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_log_level_t result; - - arg1 = (switch_log_node_t *)jarg1; - result = (switch_log_level_t) ((arg1)->level); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_timestamp_set(void * jarg1, void * jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_time_t arg2 ; - switch_time_t *argp2 ; - - arg1 = (switch_log_node_t *)jarg1; - argp2 = (switch_time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->timestamp = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_log_node_t_timestamp_get(void * jarg1) { - void * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_time_t result; - - arg1 = (switch_log_node_t *)jarg1; - result = ((arg1)->timestamp); - jresult = new switch_time_t((const switch_time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_content_set(void * jarg1, char * jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->content; - if (arg2) { - arg1->content = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->content, (const char *)arg2); - } else { - arg1->content = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_content_get(void * jarg1) { - char * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_log_node_t *)jarg1; - result = (char *) ((arg1)->content); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_userdata_set(void * jarg1, char * jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->userdata; - if (arg2) { - arg1->userdata = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->userdata, (const char *)arg2); - } else { - arg1->userdata = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_userdata_get(void * jarg1) { - char * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_log_node_t *)jarg1; - result = (char *) ((arg1)->userdata); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_channel_set(void * jarg1, int jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_text_channel_t arg2 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (switch_text_channel_t)jarg2; - if (arg1) (arg1)->channel = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_channel_get(void * jarg1) { - int jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_text_channel_t result; - - arg1 = (switch_log_node_t *)jarg1; - result = (switch_text_channel_t) ((arg1)->channel); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_slevel_set(void * jarg1, int jarg2) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_log_level_t arg2 ; - - arg1 = (switch_log_node_t *)jarg1; - arg2 = (switch_log_level_t)jarg2; - if (arg1) (arg1)->slevel = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_slevel_get(void * jarg1) { - int jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_log_level_t result; - - arg1 = (switch_log_node_t *)jarg1; - result = (switch_log_level_t) ((arg1)->slevel); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_log_node_t() { - void * jresult ; - switch_log_node_t *result = 0 ; - - result = (switch_log_node_t *)new switch_log_node_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_log_node_t(void * jarg1) { - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - - arg1 = (switch_log_node_t *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_init(void * jarg1, int jarg2) { - int jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - switch_bool_t arg2 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_status_t)switch_log_init(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_shutdown() { - int jresult ; - switch_status_t result; - - result = (switch_status_t)switch_log_shutdown(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_bind_logger(void * jarg1, int jarg2, int jarg3) { - int jresult ; - switch_log_function_t arg1 = (switch_log_function_t) 0 ; - switch_log_level_t arg2 ; - switch_bool_t arg3 ; - switch_status_t result; - - arg1 = (switch_log_function_t)jarg1; - arg2 = (switch_log_level_t)jarg2; - arg3 = (switch_bool_t)jarg3; - result = (switch_status_t)switch_log_bind_logger(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_unbind_logger(void * jarg1) { - int jresult ; - switch_log_function_t arg1 = (switch_log_function_t) 0 ; - switch_status_t result; - - arg1 = (switch_log_function_t)jarg1; - result = (switch_status_t)switch_log_unbind_logger(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_level2str(int jarg1) { - char * jresult ; - switch_log_level_t arg1 ; - char *result = 0 ; - - arg1 = (switch_log_level_t)jarg1; - result = (char *)switch_log_level2str(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_str2level(char * jarg1) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_log_level_t result; - - arg1 = (char *)jarg1; - result = (switch_log_level_t)switch_log_str2level((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_log_str2mask(char * jarg1) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - uint32_t result; - - arg1 = (char *)jarg1; - result = (uint32_t)switch_log_str2mask((char const *)arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_log_node_dup(void * jarg1) { - void * jresult ; - switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; - switch_log_node_t *result = 0 ; - - arg1 = (switch_log_node_t *)jarg1; - result = (switch_log_node_t *)switch_log_node_dup((switch_log_node_t const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_free(void * jarg1) { - switch_log_node_t **arg1 = (switch_log_node_t **) 0 ; - - arg1 = (switch_log_node_t **)jarg1; - switch_log_node_free(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_XML_BUFSIZE_get() { - int jresult ; - int result; - - result = (int)(1024); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_name_set(void * jarg1, char * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->name; - if (arg2) { - arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->name, (const char *)arg2); - } else { - arg1->name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_name_get(void * jarg1) { - char * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - char *result = 0 ; - - arg1 = (switch_xml *)jarg1; - result = (char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_attr_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - char **arg2 = (char **) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (char **)jarg2; - if (arg1) (arg1)->attr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_attr_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - char **result = 0 ; - - arg1 = (switch_xml *)jarg1; - result = (char **) ((arg1)->attr); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_txt_set(void * jarg1, char * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->txt; - if (arg2) { - arg1->txt = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->txt, (const char *)arg2); - } else { - arg1->txt = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_txt_get(void * jarg1) { - char * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - char *result = 0 ; - - arg1 = (switch_xml *)jarg1; - result = (char *) ((arg1)->txt); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_free_path_set(void * jarg1, char * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->free_path; - if (arg2) { - arg1->free_path = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->free_path, (const char *)arg2); - } else { - arg1->free_path = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_free_path_get(void * jarg1) { - char * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - char *result = 0 ; - - arg1 = (switch_xml *)jarg1; - result = (char *) ((arg1)->free_path); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_off_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_xml *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->off = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_off_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_size_t result; - - arg1 = (switch_xml *)jarg1; - result = ((arg1)->off); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_next_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (switch_xml_t)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_next_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml *)jarg1; - result = (switch_xml_t) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_sibling_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (switch_xml_t)jarg2; - if (arg1) (arg1)->sibling = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_sibling_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml *)jarg1; - result = (switch_xml_t) ((arg1)->sibling); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_ordered_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (switch_xml_t)jarg2; - if (arg1) (arg1)->ordered = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_ordered_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml *)jarg1; - result = (switch_xml_t) ((arg1)->ordered); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_child_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (switch_xml_t)jarg2; - if (arg1) (arg1)->child = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_child_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml *)jarg1; - result = (switch_xml_t) ((arg1)->child); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_parent_set(void * jarg1, void * jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (switch_xml_t)jarg2; - if (arg1) (arg1)->parent = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parent_get(void * jarg1) { - void * jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml *)jarg1; - result = (switch_xml_t) ((arg1)->parent); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_flags_set(void * jarg1, unsigned long jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_flags_get(void * jarg1) { - unsigned long jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - uint32_t result; - - arg1 = (switch_xml *)jarg1; - result = (uint32_t) ((arg1)->flags); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_is_switch_xml_root_t_set(void * jarg1, int jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - switch_bool_t arg2 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (switch_bool_t)jarg2; - if (arg1) (arg1)->is_switch_xml_root_t = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_is_switch_xml_root_t_get(void * jarg1) { - int jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - switch_bool_t result; - - arg1 = (switch_xml *)jarg1; - result = (switch_bool_t) ((arg1)->is_switch_xml_root_t); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_refs_set(void * jarg1, unsigned long jarg2) { - switch_xml *arg1 = (switch_xml *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_xml *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->refs = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_refs_get(void * jarg1) { - unsigned long jresult ; - switch_xml *arg1 = (switch_xml *) 0 ; - uint32_t result; - - arg1 = (switch_xml *)jarg1; - result = (uint32_t) ((arg1)->refs); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_xml() { - void * jresult ; - switch_xml *result = 0 ; - - result = (switch_xml *)new switch_xml(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_xml(void * jarg1) { - switch_xml *arg1 = (switch_xml *) 0 ; - - arg1 = (switch_xml *)jarg1; - delete arg1; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_str_dynamic(char * jarg1, int jarg2) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_bool_t arg2 ; - switch_xml_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (switch_xml_t)switch_xml_parse_str_dynamic(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_str(char * jarg1, void * jarg2) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - switch_xml_t result; - - arg1 = (char *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg2 = *argp2; - result = (switch_xml_t)switch_xml_parse_str(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_fd(int jarg1) { - void * jresult ; - int arg1 ; - switch_xml_t result; - - arg1 = (int)jarg1; - result = (switch_xml_t)switch_xml_parse_fd(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_file(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_xml_t result; - - arg1 = (char *)jarg1; - result = (switch_xml_t)switch_xml_parse_file((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_file_simple(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_xml_t result; - - arg1 = (char *)jarg1; - result = (switch_xml_t)switch_xml_parse_file_simple((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_fp(void * jarg1) { - void * jresult ; - FILE *arg1 = (FILE *) 0 ; - switch_xml_t result; - - arg1 = (FILE *)jarg1; - result = (switch_xml_t)switch_xml_parse_fp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_child(void * jarg1, char * jarg2) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - result = (switch_xml_t)switch_xml_child(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_find_child(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (switch_xml_t)switch_xml_find_child(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_find_child_multi(void * jarg1, char * jarg2) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - result = (switch_xml_t)switch_xml_find_child_multi(arg1,(char const *)arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_attr(void * jarg1, char * jarg2) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_xml_attr(arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_attr_soft(void * jarg1, char * jarg2) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - result = (char *)switch_xml_attr_soft(arg1,(char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_get(void * jarg1) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - void *arg2 = 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - result = (switch_xml_t)switch_xml_get(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_toxml(void * jarg1, int jarg2) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_bool_t arg2 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (char *)switch_xml_toxml(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_toxml_nolock(void * jarg1, int jarg2) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_bool_t arg2 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (char *)switch_xml_toxml_nolock(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_tohtml(void * jarg1, int jarg2) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_bool_t arg2 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_bool_t)jarg2; - result = (char *)switch_xml_tohtml(arg1,arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_toxml_buf(void * jarg1, char * jarg2, void * jarg3, void * jarg4, int jarg5) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t arg4 ; - switch_bool_t arg5 ; - switch_size_t *argp3 ; - switch_size_t *argp4 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - argp4 = (switch_size_t *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg4 = *argp4; - arg5 = (switch_bool_t)jarg5; - result = (char *)switch_xml_toxml_buf(arg1,arg2,arg3,arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_free(void * jarg1) { - switch_xml_t arg1 = (switch_xml_t) 0 ; - - arg1 = (switch_xml_t)jarg1; - switch_xml_free(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_free_in_thread(void * jarg1, int jarg2) { - switch_xml_t arg1 = (switch_xml_t) 0 ; - int arg2 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (int)jarg2; - switch_xml_free_in_thread(arg1,arg2); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_error(void * jarg1) { - char * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *result = 0 ; - - arg1 = (switch_xml_t)jarg1; - result = (char *)switch_xml_error(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_new(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_xml_t result; - - arg1 = (char *)jarg1; - result = (switch_xml_t)switch_xml_new((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_add_child(void * jarg1, char * jarg2, void * jarg3) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_xml_t)switch_xml_add_child(arg1,(char const *)arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_set_txt(void * jarg1, char * jarg2) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - result = (switch_xml_t)switch_xml_set_txt(arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_set_attr(void * jarg1, char * jarg2, char * jarg3) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (switch_xml_t)switch_xml_set_attr(arg1,(char const *)arg2,(char const *)arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_set_flag(void * jarg1, int jarg2) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_xml_flag_t arg2 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_xml_flag_t)jarg2; - result = (switch_xml_t)switch_xml_set_flag(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_cut(void * jarg1) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - result = (switch_xml_t)switch_xml_cut(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_insert(void * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - switch_size_t arg3 ; - switch_size_t *argp3 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_xml_t)jarg2; - argp3 = (switch_size_t *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return 0; - } - arg3 = *argp3; - result = (switch_xml_t)switch_xml_insert(arg1,arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_set_root(void * jarg1) { - int jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_status_t result; - - arg1 = (switch_xml_t)jarg1; - result = (switch_status_t)switch_xml_set_root(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_set_open_root_function(void * jarg1, void * jarg2) { - int jresult ; - switch_xml_open_root_function_t arg1 = (switch_xml_open_root_function_t) 0 ; - void *arg2 = (void *) 0 ; - switch_status_t result; - - arg1 = (switch_xml_open_root_function_t)jarg1; - arg2 = (void *)jarg2; - result = (switch_status_t)switch_xml_set_open_root_function(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_open_root(unsigned char jarg1, void * jarg2) { - void * jresult ; - uint8_t arg1 ; - char **arg2 = (char **) 0 ; - switch_xml_t result; - - arg1 = (uint8_t)jarg1; - arg2 = (char **)jarg2; - result = (switch_xml_t)switch_xml_open_root(arg1,(char const **)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_init(void * jarg1, void * jarg2) { - int jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char **arg2 = (char **) 0 ; - switch_status_t result; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char **)jarg2; - result = (switch_status_t)switch_xml_init(arg1,(char const **)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_reload(void * jarg1) { - int jresult ; - char **arg1 = (char **) 0 ; - switch_status_t result; - - arg1 = (char **)jarg1; - result = (switch_status_t)switch_xml_reload((char const **)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_destroy() { - int jresult ; - switch_status_t result; - - result = (switch_status_t)switch_xml_destroy(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_root() { - void * jresult ; - switch_xml_t result; - - result = (switch_xml_t)switch_xml_root(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6, void * jarg7, int jarg8) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_xml_t *arg5 = (switch_xml_t *) 0 ; - switch_xml_t *arg6 = (switch_xml_t *) 0 ; - switch_event_t *arg7 = (switch_event_t *) 0 ; - switch_bool_t arg8 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_xml_t *)jarg5; - arg6 = (switch_xml_t *)jarg6; - arg7 = (switch_event_t *)jarg7; - arg8 = (switch_bool_t)jarg8; - result = (switch_status_t)switch_xml_locate((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_domain(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - switch_xml_t *arg3 = (switch_xml_t *) 0 ; - switch_xml_t *arg4 = (switch_xml_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_event_t *)jarg2; - arg3 = (switch_xml_t *)jarg3; - arg4 = (switch_xml_t *)jarg4; - result = (switch_status_t)switch_xml_locate_domain((char const *)arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_group(char * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - switch_xml_t *arg3 = (switch_xml_t *) 0 ; - switch_xml_t *arg4 = (switch_xml_t *) 0 ; - switch_xml_t *arg5 = (switch_xml_t *) 0 ; - switch_event_t *arg6 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (switch_xml_t *)jarg3; - arg4 = (switch_xml_t *)jarg4; - arg5 = (switch_xml_t *)jarg5; - arg6 = (switch_event_t *)jarg6; - result = (switch_status_t)switch_xml_locate_group((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_xml_t *arg5 = (switch_xml_t *) 0 ; - switch_xml_t *arg6 = (switch_xml_t *) 0 ; - switch_xml_t *arg7 = (switch_xml_t *) 0 ; - switch_xml_t *arg8 = (switch_xml_t *) 0 ; - switch_event_t *arg9 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_xml_t *)jarg5; - arg6 = (switch_xml_t *)jarg6; - arg7 = (switch_xml_t *)jarg7; - arg8 = (switch_xml_t *)jarg8; - arg9 = (switch_event_t *)jarg9; - result = (switch_status_t)switch_xml_locate_user((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user_in_domain(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { - int jresult ; - char *arg1 = (char *) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - switch_xml_t *arg3 = (switch_xml_t *) 0 ; - switch_xml_t *arg4 = (switch_xml_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_xml_t)jarg2; - arg3 = (switch_xml_t *)jarg3; - arg4 = (switch_xml_t *)jarg4; - result = (switch_status_t)switch_xml_locate_user_in_domain((char const *)arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user_merged(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - switch_xml_t *arg5 = (switch_xml_t *) 0 ; - switch_event_t *arg6 = (switch_event_t *) 0 ; - switch_status_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (switch_xml_t *)jarg5; - arg6 = (switch_event_t *)jarg6; - result = (switch_status_t)switch_xml_locate_user_merged((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_clear_user_cache(char * jarg1, char * jarg2, char * jarg3) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - uint32_t result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (uint32_t)switch_xml_clear_user_cache((char const *)arg1,(char const *)arg2,(char const *)arg3); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_merge_user(void * jarg1, void * jarg2, void * jarg3) { - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_xml_t arg2 = (switch_xml_t) 0 ; - switch_xml_t arg3 = (switch_xml_t) 0 ; - - arg1 = (switch_xml_t)jarg1; - arg2 = (switch_xml_t)jarg2; - arg3 = (switch_xml_t)jarg3; - switch_xml_merge_user(arg1,arg2,arg3); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_dup(void * jarg1) { - void * jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - switch_xml_t result; - - arg1 = (switch_xml_t)jarg1; - result = (switch_xml_t)switch_xml_dup(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_open_cfg(char * jarg1, void * jarg2, void * jarg3) { - void * jresult ; - char *arg1 = (char *) 0 ; - switch_xml_t *arg2 = (switch_xml_t *) 0 ; - switch_event_t *arg3 = (switch_event_t *) 0 ; - switch_xml_t result; - - arg1 = (char *)jarg1; - arg2 = (switch_xml_t *)jarg2; - arg3 = (switch_event_t *)jarg3; - result = (switch_xml_t)switch_xml_open_cfg((char const *)arg1,arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_set_binding_sections(void * jarg1, unsigned long jarg2) { - switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; - switch_xml_section_t arg2 ; - - arg1 = (switch_xml_binding_t *)jarg1; - arg2 = (switch_xml_section_t)jarg2; - switch_xml_set_binding_sections(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_set_binding_user_data(void * jarg1, void * jarg2) { - switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_xml_binding_t *)jarg1; - arg2 = (void *)jarg2; - switch_xml_set_binding_user_data(arg1,arg2); -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_get_binding_sections(void * jarg1) { - unsigned long jresult ; - switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; - switch_xml_section_t result; - - arg1 = (switch_xml_binding_t *)jarg1; - result = (switch_xml_section_t)switch_xml_get_binding_sections(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_get_binding_user_data(void * jarg1) { - void * jresult ; - switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; - void *result = 0 ; - - arg1 = (switch_xml_binding_t *)jarg1; - result = (void *)switch_xml_get_binding_user_data(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_bind_search_function_ret(void * jarg1, unsigned long jarg2, void * jarg3, void * jarg4) { - int jresult ; - switch_xml_search_function_t arg1 = (switch_xml_search_function_t) 0 ; - switch_xml_section_t arg2 ; - void *arg3 = (void *) 0 ; - switch_xml_binding_t **arg4 = (switch_xml_binding_t **) 0 ; - switch_status_t result; - - arg1 = (switch_xml_search_function_t)jarg1; - arg2 = (switch_xml_section_t)jarg2; - arg3 = (void *)jarg3; - arg4 = (switch_xml_binding_t **)jarg4; - result = (switch_status_t)switch_xml_bind_search_function_ret(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_unbind_search_function(void * jarg1) { - int jresult ; - switch_xml_binding_t **arg1 = (switch_xml_binding_t **) 0 ; - switch_status_t result; - - arg1 = (switch_xml_binding_t **)jarg1; - result = (switch_status_t)switch_xml_unbind_search_function(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_unbind_search_function_ptr(void * jarg1) { - int jresult ; - switch_xml_search_function_t arg1 = (switch_xml_search_function_t) 0 ; - switch_status_t result; - - arg1 = (switch_xml_search_function_t)jarg1; - result = (switch_status_t)switch_xml_unbind_search_function_ptr(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_parse_section_string(char * jarg1) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - switch_xml_section_t result; - - arg1 = (char *)jarg1; - result = (switch_xml_section_t)switch_xml_parse_section_string((char const *)arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_std_datetime_check(void * jarg1, void * jarg2, char * jarg3) { - int jresult ; - switch_xml_t arg1 = (switch_xml_t) 0 ; - int *arg2 = (int *) 0 ; - char *arg3 = (char *) 0 ; - int result; - - arg1 = (switch_xml_t)jarg1; - arg2 = (int *)jarg2; - arg3 = (char *)jarg3; - result = (int)switch_xml_std_datetime_check(arg1,arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_language(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, char * jarg7) { - int jresult ; - switch_xml_t *arg1 = (switch_xml_t *) 0 ; - switch_xml_t *arg2 = (switch_xml_t *) 0 ; - switch_event_t *arg3 = (switch_event_t *) 0 ; - switch_xml_t *arg4 = (switch_xml_t *) 0 ; - switch_xml_t *arg5 = (switch_xml_t *) 0 ; - switch_xml_t *arg6 = (switch_xml_t *) 0 ; - char *arg7 = (char *) 0 ; - switch_status_t result; - - arg1 = (switch_xml_t *)jarg1; - arg2 = (switch_xml_t *)jarg2; - arg3 = (switch_event_t *)jarg3; - arg4 = (switch_xml_t *)jarg4; - arg5 = (switch_xml_t *)jarg5; - arg6 = (switch_xml_t *)jarg6; - arg7 = (char *)jarg7; - result = (switch_status_t)switch_xml_locate_language(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_set(void * jarg1, void * jarg2) { - switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; - switch_outgoing_channel_hook_t arg2 = (switch_outgoing_channel_hook_t) 0 ; - - arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; - arg2 = (switch_outgoing_channel_hook_t)jarg2; - if (arg1) (arg1)->outgoing_channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; - switch_outgoing_channel_hook_t result; - - arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; - result = (switch_outgoing_channel_hook_t) ((arg1)->outgoing_channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; - switch_io_event_hook_outgoing_channel *arg2 = (switch_io_event_hook_outgoing_channel *) 0 ; - - arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; - arg2 = (switch_io_event_hook_outgoing_channel *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; - switch_io_event_hook_outgoing_channel *result = 0 ; - - arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; - result = (switch_io_event_hook_outgoing_channel *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_outgoing_channel() { - void * jresult ; - switch_io_event_hook_outgoing_channel *result = 0 ; - - result = (switch_io_event_hook_outgoing_channel *)new switch_io_event_hook_outgoing_channel(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_outgoing_channel(void * jarg1) { - switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; - - arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_receive_message_set(void * jarg1, void * jarg2) { - switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; - switch_receive_message_hook_t arg2 = (switch_receive_message_hook_t) 0 ; - - arg1 = (switch_io_event_hook_receive_message *)jarg1; - arg2 = (switch_receive_message_hook_t)jarg2; - if (arg1) (arg1)->receive_message = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_receive_message_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; - switch_receive_message_hook_t result; - - arg1 = (switch_io_event_hook_receive_message *)jarg1; - result = (switch_receive_message_hook_t) ((arg1)->receive_message); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; - switch_io_event_hook_receive_message *arg2 = (switch_io_event_hook_receive_message *) 0 ; - - arg1 = (switch_io_event_hook_receive_message *)jarg1; - arg2 = (switch_io_event_hook_receive_message *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; - switch_io_event_hook_receive_message *result = 0 ; - - arg1 = (switch_io_event_hook_receive_message *)jarg1; - result = (switch_io_event_hook_receive_message *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_receive_message() { - void * jresult ; - switch_io_event_hook_receive_message *result = 0 ; - - result = (switch_io_event_hook_receive_message *)new switch_io_event_hook_receive_message(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_receive_message(void * jarg1) { - switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; - - arg1 = (switch_io_event_hook_receive_message *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_receive_event_set(void * jarg1, void * jarg2) { - switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; - switch_receive_event_hook_t arg2 = (switch_receive_event_hook_t) 0 ; - - arg1 = (switch_io_event_hook_receive_event *)jarg1; - arg2 = (switch_receive_event_hook_t)jarg2; - if (arg1) (arg1)->receive_event = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_receive_event_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; - switch_receive_event_hook_t result; - - arg1 = (switch_io_event_hook_receive_event *)jarg1; - result = (switch_receive_event_hook_t) ((arg1)->receive_event); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; - switch_io_event_hook_receive_event *arg2 = (switch_io_event_hook_receive_event *) 0 ; - - arg1 = (switch_io_event_hook_receive_event *)jarg1; - arg2 = (switch_io_event_hook_receive_event *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; - switch_io_event_hook_receive_event *result = 0 ; - - arg1 = (switch_io_event_hook_receive_event *)jarg1; - result = (switch_io_event_hook_receive_event *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_receive_event() { - void * jresult ; - switch_io_event_hook_receive_event *result = 0 ; - - result = (switch_io_event_hook_receive_event *)new switch_io_event_hook_receive_event(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_receive_event(void * jarg1) { - switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; - - arg1 = (switch_io_event_hook_receive_event *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_read_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; - switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; - - arg1 = (switch_io_event_hook_read_frame *)jarg1; - arg2 = (switch_read_frame_hook_t)jarg2; - if (arg1) (arg1)->read_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_read_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; - switch_read_frame_hook_t result; - - arg1 = (switch_io_event_hook_read_frame *)jarg1; - result = (switch_read_frame_hook_t) ((arg1)->read_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; - switch_io_event_hook_read_frame *arg2 = (switch_io_event_hook_read_frame *) 0 ; - - arg1 = (switch_io_event_hook_read_frame *)jarg1; - arg2 = (switch_io_event_hook_read_frame *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; - switch_io_event_hook_read_frame *result = 0 ; - - arg1 = (switch_io_event_hook_read_frame *)jarg1; - result = (switch_io_event_hook_read_frame *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_read_frame() { - void * jresult ; - switch_io_event_hook_read_frame *result = 0 ; - - result = (switch_io_event_hook_read_frame *)new switch_io_event_hook_read_frame(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_read_frame(void * jarg1) { - switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; - - arg1 = (switch_io_event_hook_read_frame *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_video_read_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; - switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; - - arg1 = (switch_io_event_hook_video_read_frame *)jarg1; - arg2 = (switch_read_frame_hook_t)jarg2; - if (arg1) (arg1)->video_read_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_video_read_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; - switch_read_frame_hook_t result; - - arg1 = (switch_io_event_hook_video_read_frame *)jarg1; - result = (switch_read_frame_hook_t) ((arg1)->video_read_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; - switch_io_event_hook_video_read_frame *arg2 = (switch_io_event_hook_video_read_frame *) 0 ; - - arg1 = (switch_io_event_hook_video_read_frame *)jarg1; - arg2 = (switch_io_event_hook_video_read_frame *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; - switch_io_event_hook_video_read_frame *result = 0 ; - - arg1 = (switch_io_event_hook_video_read_frame *)jarg1; - result = (switch_io_event_hook_video_read_frame *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_video_read_frame() { - void * jresult ; - switch_io_event_hook_video_read_frame *result = 0 ; - - result = (switch_io_event_hook_video_read_frame *)new switch_io_event_hook_video_read_frame(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_video_read_frame(void * jarg1) { - switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; - - arg1 = (switch_io_event_hook_video_read_frame *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_write_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; - switch_write_frame_hook_t arg2 = (switch_write_frame_hook_t) 0 ; - - arg1 = (switch_io_event_hook_write_frame *)jarg1; - arg2 = (switch_write_frame_hook_t)jarg2; - if (arg1) (arg1)->write_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_write_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; - switch_write_frame_hook_t result; - - arg1 = (switch_io_event_hook_write_frame *)jarg1; - result = (switch_write_frame_hook_t) ((arg1)->write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; - switch_io_event_hook_write_frame *arg2 = (switch_io_event_hook_write_frame *) 0 ; - - arg1 = (switch_io_event_hook_write_frame *)jarg1; - arg2 = (switch_io_event_hook_write_frame *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; - switch_io_event_hook_write_frame *result = 0 ; - - arg1 = (switch_io_event_hook_write_frame *)jarg1; - result = (switch_io_event_hook_write_frame *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_write_frame() { - void * jresult ; - switch_io_event_hook_write_frame *result = 0 ; - - result = (switch_io_event_hook_write_frame *)new switch_io_event_hook_write_frame(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_write_frame(void * jarg1) { - switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; - - arg1 = (switch_io_event_hook_write_frame *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_video_write_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; - switch_video_write_frame_hook_t arg2 = (switch_video_write_frame_hook_t) 0 ; - - arg1 = (switch_io_event_hook_video_write_frame *)jarg1; - arg2 = (switch_video_write_frame_hook_t)jarg2; - if (arg1) (arg1)->video_write_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_video_write_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; - switch_video_write_frame_hook_t result; - - arg1 = (switch_io_event_hook_video_write_frame *)jarg1; - result = (switch_video_write_frame_hook_t) ((arg1)->video_write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; - switch_io_event_hook_video_write_frame *arg2 = (switch_io_event_hook_video_write_frame *) 0 ; - - arg1 = (switch_io_event_hook_video_write_frame *)jarg1; - arg2 = (switch_io_event_hook_video_write_frame *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; - switch_io_event_hook_video_write_frame *result = 0 ; - - arg1 = (switch_io_event_hook_video_write_frame *)jarg1; - result = (switch_io_event_hook_video_write_frame *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_video_write_frame() { - void * jresult ; - switch_io_event_hook_video_write_frame *result = 0 ; - - result = (switch_io_event_hook_video_write_frame *)new switch_io_event_hook_video_write_frame(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_video_write_frame(void * jarg1) { - switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; - - arg1 = (switch_io_event_hook_video_write_frame *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_kill_channel_set(void * jarg1, void * jarg2) { - switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; - switch_kill_channel_hook_t arg2 = (switch_kill_channel_hook_t) 0 ; - - arg1 = (switch_io_event_hook_kill_channel *)jarg1; - arg2 = (switch_kill_channel_hook_t)jarg2; - if (arg1) (arg1)->kill_channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_kill_channel_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; - switch_kill_channel_hook_t result; - - arg1 = (switch_io_event_hook_kill_channel *)jarg1; - result = (switch_kill_channel_hook_t) ((arg1)->kill_channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; - switch_io_event_hook_kill_channel *arg2 = (switch_io_event_hook_kill_channel *) 0 ; - - arg1 = (switch_io_event_hook_kill_channel *)jarg1; - arg2 = (switch_io_event_hook_kill_channel *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; - switch_io_event_hook_kill_channel *result = 0 ; - - arg1 = (switch_io_event_hook_kill_channel *)jarg1; - result = (switch_io_event_hook_kill_channel *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_kill_channel() { - void * jresult ; - switch_io_event_hook_kill_channel *result = 0 ; - - result = (switch_io_event_hook_kill_channel *)new switch_io_event_hook_kill_channel(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_kill_channel(void * jarg1) { - switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; - - arg1 = (switch_io_event_hook_kill_channel *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_send_dtmf_set(void * jarg1, void * jarg2) { - switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; - switch_send_dtmf_hook_t arg2 = (switch_send_dtmf_hook_t) 0 ; - - arg1 = (switch_io_event_hook_send_dtmf *)jarg1; - arg2 = (switch_send_dtmf_hook_t)jarg2; - if (arg1) (arg1)->send_dtmf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_send_dtmf_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; - switch_send_dtmf_hook_t result; - - arg1 = (switch_io_event_hook_send_dtmf *)jarg1; - result = (switch_send_dtmf_hook_t) ((arg1)->send_dtmf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; - switch_io_event_hook_send_dtmf *arg2 = (switch_io_event_hook_send_dtmf *) 0 ; - - arg1 = (switch_io_event_hook_send_dtmf *)jarg1; - arg2 = (switch_io_event_hook_send_dtmf *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; - switch_io_event_hook_send_dtmf *result = 0 ; - - arg1 = (switch_io_event_hook_send_dtmf *)jarg1; - result = (switch_io_event_hook_send_dtmf *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_send_dtmf() { - void * jresult ; - switch_io_event_hook_send_dtmf *result = 0 ; - - result = (switch_io_event_hook_send_dtmf *)new switch_io_event_hook_send_dtmf(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_send_dtmf(void * jarg1) { - switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; - - arg1 = (switch_io_event_hook_send_dtmf *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_set(void * jarg1, void * jarg2) { - switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; - switch_recv_dtmf_hook_t arg2 = (switch_recv_dtmf_hook_t) 0 ; - - arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; - arg2 = (switch_recv_dtmf_hook_t)jarg2; - if (arg1) (arg1)->recv_dtmf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; - switch_recv_dtmf_hook_t result; - - arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; - result = (switch_recv_dtmf_hook_t) ((arg1)->recv_dtmf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; - switch_io_event_hook_recv_dtmf *arg2 = (switch_io_event_hook_recv_dtmf *) 0 ; - - arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; - arg2 = (switch_io_event_hook_recv_dtmf *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; - switch_io_event_hook_recv_dtmf *result = 0 ; - - arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; - result = (switch_io_event_hook_recv_dtmf *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_recv_dtmf() { - void * jresult ; - switch_io_event_hook_recv_dtmf *result = 0 ; - - result = (switch_io_event_hook_recv_dtmf *)new switch_io_event_hook_recv_dtmf(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_recv_dtmf(void * jarg1) { - switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; - - arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_change_state_change_set(void * jarg1, void * jarg2) { - switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; - switch_state_change_hook_t arg2 = (switch_state_change_hook_t) 0 ; - - arg1 = (switch_io_event_hook_state_change *)jarg1; - arg2 = (switch_state_change_hook_t)jarg2; - if (arg1) (arg1)->state_change = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_change_state_change_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; - switch_state_change_hook_t result; - - arg1 = (switch_io_event_hook_state_change *)jarg1; - result = (switch_state_change_hook_t) ((arg1)->state_change); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_change_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; - switch_io_event_hook_state_change *arg2 = (switch_io_event_hook_state_change *) 0 ; - - arg1 = (switch_io_event_hook_state_change *)jarg1; - arg2 = (switch_io_event_hook_state_change *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_change_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; - switch_io_event_hook_state_change *result = 0 ; - - arg1 = (switch_io_event_hook_state_change *)jarg1; - result = (switch_io_event_hook_state_change *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_state_change() { - void * jresult ; - switch_io_event_hook_state_change *result = 0 ; - - result = (switch_io_event_hook_state_change *)new switch_io_event_hook_state_change(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_state_change(void * jarg1) { - switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; - - arg1 = (switch_io_event_hook_state_change *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_run_state_run_set(void * jarg1, void * jarg2) { - switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; - switch_state_run_hook_t arg2 = (switch_state_run_hook_t) 0 ; - - arg1 = (switch_io_event_hook_state_run *)jarg1; - arg2 = (switch_state_run_hook_t)jarg2; - if (arg1) (arg1)->state_run = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_run_state_run_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; - switch_state_run_hook_t result; - - arg1 = (switch_io_event_hook_state_run *)jarg1; - result = (switch_state_run_hook_t) ((arg1)->state_run); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_run_next_set(void * jarg1, void * jarg2) { - switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; - switch_io_event_hook_state_run *arg2 = (switch_io_event_hook_state_run *) 0 ; - - arg1 = (switch_io_event_hook_state_run *)jarg1; - arg2 = (switch_io_event_hook_state_run *)jarg2; - if (arg1) (arg1)->next = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_run_next_get(void * jarg1) { - void * jresult ; - switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; - switch_io_event_hook_state_run *result = 0 ; - - arg1 = (switch_io_event_hook_state_run *)jarg1; - result = (switch_io_event_hook_state_run *) ((arg1)->next); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_state_run() { - void * jresult ; - switch_io_event_hook_state_run *result = 0 ; - - result = (switch_io_event_hook_state_run *)new switch_io_event_hook_state_run(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_state_run(void * jarg1) { - switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; - - arg1 = (switch_io_event_hook_state_run *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_outgoing_channel_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_outgoing_channel_t *arg2 = (switch_io_event_hook_outgoing_channel_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_outgoing_channel_t *)jarg2; - if (arg1) (arg1)->outgoing_channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_outgoing_channel_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_outgoing_channel_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_outgoing_channel_t *) ((arg1)->outgoing_channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_receive_message_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_receive_message_t *arg2 = (switch_io_event_hook_receive_message_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_receive_message_t *)jarg2; - if (arg1) (arg1)->receive_message = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_receive_message_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_receive_message_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_receive_message_t *) ((arg1)->receive_message); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_receive_event_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_receive_event_t *arg2 = (switch_io_event_hook_receive_event_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_receive_event_t *)jarg2; - if (arg1) (arg1)->receive_event = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_receive_event_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_receive_event_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_receive_event_t *) ((arg1)->receive_event); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_read_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_read_frame_t *arg2 = (switch_io_event_hook_read_frame_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_read_frame_t *)jarg2; - if (arg1) (arg1)->read_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_read_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_read_frame_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_read_frame_t *) ((arg1)->read_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_video_read_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_video_read_frame_t *arg2 = (switch_io_event_hook_video_read_frame_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_video_read_frame_t *)jarg2; - if (arg1) (arg1)->video_read_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_video_read_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_video_read_frame_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_video_read_frame_t *) ((arg1)->video_read_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_write_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_write_frame_t *arg2 = (switch_io_event_hook_write_frame_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_write_frame_t *)jarg2; - if (arg1) (arg1)->write_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_write_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_write_frame_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_write_frame_t *) ((arg1)->write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_video_write_frame_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_video_write_frame_t *arg2 = (switch_io_event_hook_video_write_frame_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_video_write_frame_t *)jarg2; - if (arg1) (arg1)->video_write_frame = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_video_write_frame_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_video_write_frame_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_video_write_frame_t *) ((arg1)->video_write_frame); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_kill_channel_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_kill_channel_t *arg2 = (switch_io_event_hook_kill_channel_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_kill_channel_t *)jarg2; - if (arg1) (arg1)->kill_channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_kill_channel_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_kill_channel_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_kill_channel_t *) ((arg1)->kill_channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_send_dtmf_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_send_dtmf_t *arg2 = (switch_io_event_hook_send_dtmf_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_send_dtmf_t *)jarg2; - if (arg1) (arg1)->send_dtmf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_send_dtmf_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_send_dtmf_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_send_dtmf_t *) ((arg1)->send_dtmf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_recv_dtmf_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_recv_dtmf_t *arg2 = (switch_io_event_hook_recv_dtmf_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_recv_dtmf_t *)jarg2; - if (arg1) (arg1)->recv_dtmf = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_recv_dtmf_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_recv_dtmf_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_recv_dtmf_t *) ((arg1)->recv_dtmf); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_state_change_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_state_change_t *arg2 = (switch_io_event_hook_state_change_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_state_change_t *)jarg2; - if (arg1) (arg1)->state_change = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_state_change_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_state_change_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_state_change_t *) ((arg1)->state_change); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_state_run_set(void * jarg1, void * jarg2) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_state_run_t *arg2 = (switch_io_event_hook_state_run_t *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - arg2 = (switch_io_event_hook_state_run_t *)jarg2; - if (arg1) (arg1)->state_run = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_state_run_get(void * jarg1) { - void * jresult ; - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - switch_io_event_hook_state_run_t *result = 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - result = (switch_io_event_hook_state_run_t *) ((arg1)->state_run); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hooks() { - void * jresult ; - switch_io_event_hooks *result = 0 ; - - result = (switch_io_event_hooks *)new switch_io_event_hooks(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hooks(void * jarg1) { - switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; - - arg1 = (switch_io_event_hooks *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_outgoing_channel(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_outgoing_channel_hook_t arg2 = (switch_outgoing_channel_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_outgoing_channel_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_outgoing_channel(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_receive_message(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_receive_message_hook_t arg2 = (switch_receive_message_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_receive_message_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_receive_message(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_receive_event(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_receive_event_hook_t arg2 = (switch_receive_event_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_receive_event_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_receive_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_state_change(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_state_change_hook_t arg2 = (switch_state_change_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_state_change_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_state_change(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_state_run(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_state_run_hook_t arg2 = (switch_state_run_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_state_run_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_state_run(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_read_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_read_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_read_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_write_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_write_frame_hook_t arg2 = (switch_write_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_write_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_write_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_video_read_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_video_read_frame_hook_t arg2 = (switch_video_read_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_video_read_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_video_read_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_video_write_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_video_write_frame_hook_t arg2 = (switch_video_write_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_video_write_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_video_write_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_kill_channel(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_kill_channel_hook_t arg2 = (switch_kill_channel_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_kill_channel_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_kill_channel(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_send_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_send_dtmf_hook_t arg2 = (switch_send_dtmf_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_send_dtmf_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_send_dtmf(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_recv_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_recv_dtmf_hook_t arg2 = (switch_recv_dtmf_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_recv_dtmf_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_add_recv_dtmf(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_outgoing_channel(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_outgoing_channel_hook_t arg2 = (switch_outgoing_channel_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_outgoing_channel_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_outgoing_channel(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_receive_message(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_receive_message_hook_t arg2 = (switch_receive_message_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_receive_message_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_receive_message(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_receive_event(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_receive_event_hook_t arg2 = (switch_receive_event_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_receive_event_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_receive_event(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_state_change(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_state_change_hook_t arg2 = (switch_state_change_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_state_change_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_state_change(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_state_run(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_state_run_hook_t arg2 = (switch_state_run_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_state_run_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_state_run(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_read_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_read_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_read_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_write_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_write_frame_hook_t arg2 = (switch_write_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_write_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_write_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_video_read_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_video_read_frame_hook_t arg2 = (switch_video_read_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_video_read_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_video_read_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_video_write_frame(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_video_write_frame_hook_t arg2 = (switch_video_write_frame_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_video_write_frame_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_video_write_frame(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_kill_channel(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_kill_channel_hook_t arg2 = (switch_kill_channel_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_kill_channel_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_kill_channel(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_send_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_send_dtmf_hook_t arg2 = (switch_send_dtmf_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_send_dtmf_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_send_dtmf(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_recv_dtmf(void * jarg1, void * jarg2) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_recv_dtmf_hook_t arg2 = (switch_recv_dtmf_hook_t) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (switch_recv_dtmf_hook_t)jarg2; - result = (switch_status_t)switch_core_event_hook_remove_recv_dtmf(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_created_set(void * jarg1, long long jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - int64_t arg2 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->created = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_scheduler_task_created_get(void * jarg1) { - long long jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - int64_t result; - - arg1 = (switch_scheduler_task *)jarg1; - result = (int64_t) ((arg1)->created); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_runtime_set(void * jarg1, long long jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - int64_t arg2 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (int64_t)jarg2; - if (arg1) (arg1)->runtime = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_switch_scheduler_task_runtime_get(void * jarg1) { - long long jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - int64_t result; - - arg1 = (switch_scheduler_task *)jarg1; - result = (int64_t) ((arg1)->runtime); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_cmd_id_set(void * jarg1, unsigned long jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->cmd_id = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_cmd_id_get(void * jarg1) { - unsigned long jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - uint32_t result; - - arg1 = (switch_scheduler_task *)jarg1; - result = (uint32_t) ((arg1)->cmd_id); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_repeat_set(void * jarg1, unsigned long jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->repeat = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_repeat_get(void * jarg1) { - unsigned long jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - uint32_t result; - - arg1 = (switch_scheduler_task *)jarg1; - result = (uint32_t) ((arg1)->repeat); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_group_set(void * jarg1, char * jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->group; - if (arg2) { - arg1->group = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->group, (const char *)arg2); - } else { - arg1->group = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_scheduler_task_group_get(void * jarg1) { - char * jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - char *result = 0 ; - - arg1 = (switch_scheduler_task *)jarg1; - result = (char *) ((arg1)->group); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_cmd_arg_set(void * jarg1, void * jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->cmd_arg = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_scheduler_task_cmd_arg_get(void * jarg1) { - void * jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - void *result = 0 ; - - arg1 = (switch_scheduler_task *)jarg1; - result = (void *) ((arg1)->cmd_arg); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_task_id_set(void * jarg1, unsigned long jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - uint32_t arg2 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->task_id = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_task_id_get(void * jarg1) { - unsigned long jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - uint32_t result; - - arg1 = (switch_scheduler_task *)jarg1; - result = (uint32_t) ((arg1)->task_id); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_hash_set(void * jarg1, unsigned long jarg2) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - unsigned long arg2 ; - - arg1 = (switch_scheduler_task *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->hash = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_hash_get(void * jarg1) { - unsigned long jresult ; - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - unsigned long result; - - arg1 = (switch_scheduler_task *)jarg1; - result = (unsigned long) ((arg1)->hash); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_scheduler_task() { - void * jresult ; - switch_scheduler_task *result = 0 ; - - result = (switch_scheduler_task *)new switch_scheduler_task(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_scheduler_task(void * jarg1) { - switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; - - arg1 = (switch_scheduler_task *)jarg1; - delete arg1; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_add_task(void * jarg1, void * jarg2, char * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, unsigned long jarg7) { - unsigned long jresult ; - time_t arg1 ; - switch_scheduler_func_t arg2 = (switch_scheduler_func_t) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - uint32_t arg5 ; - void *arg6 = (void *) 0 ; - switch_scheduler_flag_t arg7 ; - time_t *argp1 ; - uint32_t result; - - argp1 = (time_t *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return 0; - } - arg1 = *argp1; - arg2 = (switch_scheduler_func_t)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (uint32_t)jarg5; - arg6 = (void *)jarg6; - arg7 = (switch_scheduler_flag_t)jarg7; - result = (uint32_t)switch_scheduler_add_task(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_del_task_id(unsigned long jarg1) { - unsigned long jresult ; - uint32_t arg1 ; - uint32_t result; - - arg1 = (uint32_t)jarg1; - result = (uint32_t)switch_scheduler_del_task_id(arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_del_task_group(char * jarg1) { - unsigned long jresult ; - char *arg1 = (char *) 0 ; - uint32_t result; - - arg1 = (char *)jarg1; - result = (uint32_t)switch_scheduler_del_task_group((char const *)arg1); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_thread_start() { - switch_scheduler_task_thread_start(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_thread_stop() { - switch_scheduler_task_thread_stop(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_file_set(void * jarg1, void * jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - FILE *arg2 = (FILE *) 0 ; - - arg1 = (switch_config *)jarg1; - arg2 = (FILE *)jarg2; - if (arg1) (arg1)->file = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_config_file_get(void * jarg1) { - void * jresult ; - switch_config *arg1 = (switch_config *) 0 ; - FILE *result = 0 ; - - arg1 = (switch_config *)jarg1; - result = (FILE *) ((arg1)->file); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_path_set(void * jarg1, char * jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - char *arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->path, (const char *)arg2, 512-1); - arg1->path[512-1] = 0; - } else { - arg1->path[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_path_get(void * jarg1) { - char * jresult ; - switch_config *arg1 = (switch_config *) 0 ; - char *result = 0 ; - - arg1 = (switch_config *)jarg1; - result = (char *)(char *) ((arg1)->path); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_category_set(void * jarg1, char * jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - char *arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->category, (const char *)arg2, 256-1); - arg1->category[256-1] = 0; - } else { - arg1->category[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_category_get(void * jarg1) { - char * jresult ; - switch_config *arg1 = (switch_config *) 0 ; - char *result = 0 ; - - arg1 = (switch_config *)jarg1; - result = (char *)(char *) ((arg1)->category); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_section_set(void * jarg1, char * jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - char *arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->section, (const char *)arg2, 256-1); - arg1->section[256-1] = 0; - } else { - arg1->section[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_section_get(void * jarg1) { - char * jresult ; - switch_config *arg1 = (switch_config *) 0 ; - char *result = 0 ; - - arg1 = (switch_config *)jarg1; - result = (char *)(char *) ((arg1)->section); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_buf_set(void * jarg1, char * jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - char *arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->buf, (const char *)arg2, 1024-1); - arg1->buf[1024-1] = 0; - } else { - arg1->buf[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_buf_get(void * jarg1) { - char * jresult ; - switch_config *arg1 = (switch_config *) 0 ; - char *result = 0 ; - - arg1 = (switch_config *)jarg1; - result = (char *)(char *) ((arg1)->buf); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_lineno_set(void * jarg1, int jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - int arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->lineno = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_lineno_get(void * jarg1) { - int jresult ; - switch_config *arg1 = (switch_config *) 0 ; - int result; - - arg1 = (switch_config *)jarg1; - result = (int) ((arg1)->lineno); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_catno_set(void * jarg1, int jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - int arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->catno = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_catno_get(void * jarg1) { - int jresult ; - switch_config *arg1 = (switch_config *) 0 ; - int result; - - arg1 = (switch_config *)jarg1; - result = (int) ((arg1)->catno); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_sectno_set(void * jarg1, int jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - int arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->sectno = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_sectno_get(void * jarg1) { - int jresult ; - switch_config *arg1 = (switch_config *) 0 ; - int result; - - arg1 = (switch_config *)jarg1; - result = (int) ((arg1)->sectno); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_lockto_set(void * jarg1, int jarg2) { - switch_config *arg1 = (switch_config *) 0 ; - int arg2 ; - - arg1 = (switch_config *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->lockto = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_lockto_get(void * jarg1) { - int jresult ; - switch_config *arg1 = (switch_config *) 0 ; - int result; - - arg1 = (switch_config *)jarg1; - result = (int) ((arg1)->lockto); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_config() { - void * jresult ; - switch_config *result = 0 ; - - result = (switch_config *)new switch_config(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_config(void * jarg1) { - switch_config *arg1 = (switch_config *) 0 ; - - arg1 = (switch_config *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_open_file(void * jarg1, char * jarg2) { - int jresult ; - switch_config_t *arg1 = (switch_config_t *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (switch_config_t *)jarg1; - arg2 = (char *)jarg2; - result = (int)switch_config_open_file(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_close_file(void * jarg1) { - switch_config_t *arg1 = (switch_config_t *) 0 ; - - arg1 = (switch_config_t *)jarg1; - switch_config_close_file(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_next_pair(void * jarg1, void * jarg2, void * jarg3) { - int jresult ; - switch_config_t *arg1 = (switch_config_t *) 0 ; - char **arg2 = (char **) 0 ; - char **arg3 = (char **) 0 ; - int result; - - arg1 = (switch_config_t *)jarg1; - arg2 = (char **)jarg2; - arg3 = (char **)jarg3; - result = (int)switch_config_next_pair(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_setGlobalVariable(char * jarg1, char * jarg2) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - setGlobalVariable(arg1,arg2); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_getGlobalVariable(char * jarg1) { - char * jresult ; - char *arg1 = (char *) 0 ; - char *result = 0 ; - - arg1 = (char *)jarg1; - result = (char *)getGlobalVariable(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); - free(result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_consoleLog(char * jarg1, char * jarg2) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - consoleLog(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_consoleLog2(char * jarg1, char * jarg2, char * jarg3, int jarg4, char * jarg5) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (char *)jarg5; - consoleLog2(arg1,arg2,arg3,arg4,arg5); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_consoleCleanLog(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - consoleCleanLog(arg1); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_running() { - unsigned int jresult ; - bool result; - - result = (bool)running(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_email(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { - unsigned int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) NULL ; - char *arg4 = (char *) NULL ; - char *arg5 = (char *) NULL ; - char *arg6 = (char *) NULL ; - char *arg7 = (char *) NULL ; - bool result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_IvrMenu(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, char * jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17) { - void * jresult ; - IVRMenu *arg1 = (IVRMenu *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - char *arg10 = (char *) 0 ; - char *arg11 = (char *) 0 ; - int arg12 ; - int arg13 ; - int arg14 ; - int arg15 ; - int arg16 ; - int arg17 ; - IVRMenu *result = 0 ; - - arg1 = (IVRMenu *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char *)jarg10; - arg11 = (char *)jarg11; - arg12 = (int)jarg12; - arg13 = (int)jarg13; - arg14 = (int)jarg14; - arg15 = (int)jarg15; - arg16 = (int)jarg16; - arg17 = (int)jarg17; - result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_IvrMenu(void * jarg1) { - IVRMenu *arg1 = (IVRMenu *) 0 ; - - arg1 = (IVRMenu *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_IvrMenu_bindAction(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - IVRMenu *arg1 = (IVRMenu *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - - arg1 = (IVRMenu *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_IvrMenu_Execute(void * jarg1, void * jarg2, char * jarg3) { - IVRMenu *arg1 = (IVRMenu *) 0 ; - CoreSession *arg2 = (CoreSession *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (IVRMenu *)jarg1; - arg2 = (CoreSession *)jarg2; - arg3 = (char *)jarg3; - (arg1)->execute(arg2,(char const *)arg3); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_Api(void * jarg1) { - void * jresult ; - CoreSession *arg1 = (CoreSession *) NULL ; - API *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (API *)new API(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_Api(void * jarg1) { - API *arg1 = (API *) 0 ; - - arg1 = (API *)jarg1; - delete arg1; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Api_Execute(void * jarg1, char * jarg2, char * jarg3) { - char * jresult ; - API *arg1 = (API *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) NULL ; - char *result = 0 ; - - arg1 = (API *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - free(result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Api_ExecuteString(void * jarg1, char * jarg2) { - char * jresult ; - API *arg1 = (API *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (API *)jarg1; - arg2 = (char *)jarg2; - result = (char *)(arg1)->executeString((char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - free(result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Api_getTime(void * jarg1) { - char * jresult ; - API *arg1 = (API *) 0 ; - char *result = 0 ; - - arg1 = (API *)jarg1; - result = (char *)(arg1)->getTime(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_function_set(void * jarg1, void * jarg2) { - input_callback_state *arg1 = (input_callback_state *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (input_callback_state *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->function = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_input_callback_state_t_function_get(void * jarg1) { - void * jresult ; - input_callback_state *arg1 = (input_callback_state *) 0 ; - void *result = 0 ; - - arg1 = (input_callback_state *)jarg1; - result = (void *) ((arg1)->function); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_threadState_set(void * jarg1, void * jarg2) { - input_callback_state *arg1 = (input_callback_state *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (input_callback_state *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->threadState = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_input_callback_state_t_threadState_get(void * jarg1) { - void * jresult ; - input_callback_state *arg1 = (input_callback_state *) 0 ; - void *result = 0 ; - - arg1 = (input_callback_state *)jarg1; - result = (void *) ((arg1)->threadState); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_extra_set(void * jarg1, void * jarg2) { - input_callback_state *arg1 = (input_callback_state *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (input_callback_state *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->extra = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_input_callback_state_t_extra_get(void * jarg1) { - void * jresult ; - input_callback_state *arg1 = (input_callback_state *) 0 ; - void *result = 0 ; - - arg1 = (input_callback_state *)jarg1; - result = (void *) ((arg1)->extra); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_funcargs_set(void * jarg1, char * jarg2) { - input_callback_state *arg1 = (input_callback_state *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (input_callback_state *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->funcargs; - if (arg2) { - arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->funcargs, (const char *)arg2); - } else { - arg1->funcargs = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_input_callback_state_t_funcargs_get(void * jarg1) { - char * jresult ; - input_callback_state *arg1 = (input_callback_state *) 0 ; - char *result = 0 ; - - arg1 = (input_callback_state *)jarg1; - result = (char *) ((arg1)->funcargs); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_input_callback_state_t() { - void * jresult ; - input_callback_state *result = 0 ; - - result = (input_callback_state *)new input_callback_state(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_input_callback_state_t(void * jarg1) { - input_callback_state *arg1 = (input_callback_state *) 0 ; - - arg1 = (input_callback_state *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_DTMF_digit_set(void * jarg1, char jarg2) { - DTMF *arg1 = (DTMF *) 0 ; - char arg2 ; - - arg1 = (DTMF *)jarg1; - arg2 = (char)jarg2; - if (arg1) (arg1)->digit = arg2; -} - - -SWIGEXPORT char SWIGSTDCALL CSharp_DTMF_digit_get(void * jarg1) { - char jresult ; - DTMF *arg1 = (DTMF *) 0 ; - char result; - - arg1 = (DTMF *)jarg1; - result = (char) ((arg1)->digit); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_DTMF_duration_set(void * jarg1, unsigned long jarg2) { - DTMF *arg1 = (DTMF *) 0 ; - uint32_t arg2 ; - - arg1 = (DTMF *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->duration = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_DTMF_duration_get(void * jarg1) { - unsigned long jresult ; - DTMF *arg1 = (DTMF *) 0 ; - uint32_t result; - - arg1 = (DTMF *)jarg1; - result = (uint32_t) ((arg1)->duration); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_DTMF(char jarg1, unsigned long jarg2) { - void * jresult ; - char arg1 ; - uint32_t arg2 = (uint32_t) 2000 ; - DTMF *result = 0 ; - - arg1 = (char)jarg1; - arg2 = (uint32_t)jarg2; - result = (DTMF *)new DTMF(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_DTMF(void * jarg1) { - DTMF *arg1 = (DTMF *) 0 ; - - arg1 = (DTMF *)jarg1; - delete arg1; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_Stream__SWIG_0() { - void * jresult ; - Stream *result = 0 ; - - result = (Stream *)new Stream(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_Stream__SWIG_1(void * jarg1) { - void * jresult ; - switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; - Stream *result = 0 ; - - arg1 = (switch_stream_handle_t *)jarg1; - result = (Stream *)new Stream(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_Stream(void * jarg1) { - Stream *arg1 = (Stream *) 0 ; - - arg1 = (Stream *)jarg1; - delete arg1; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Stream_read(void * jarg1, void * jarg2) { - char * jresult ; - Stream *arg1 = (Stream *) 0 ; - int *arg2 = (int *) 0 ; - char *result = 0 ; - - arg1 = (Stream *)jarg1; - arg2 = (int *)jarg2; - result = (char *)(arg1)->read(arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Stream_Write(void * jarg1, char * jarg2) { - Stream *arg1 = (Stream *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (Stream *)jarg1; - arg2 = (char *)jarg2; - (arg1)->write((char const *)arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Stream_raw_write(void * jarg1, char * jarg2, int jarg3) { - Stream *arg1 = (Stream *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - - arg1 = (Stream *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - (arg1)->raw_write((char const *)arg2,arg3); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Stream_get_data(void * jarg1) { - char * jresult ; - Stream *arg1 = (Stream *) 0 ; - char *result = 0 ; - - arg1 = (Stream *)jarg1; - result = (char *)(arg1)->get_data(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Event_InternalEvent_set(void * jarg1, void * jarg2) { - Event *arg1 = (Event *) 0 ; - switch_event_t *arg2 = (switch_event_t *) 0 ; - - arg1 = (Event *)jarg1; - arg2 = (switch_event_t *)jarg2; - if (arg1) (arg1)->event = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Event_InternalEvent_get(void * jarg1) { - void * jresult ; - Event *arg1 = (Event *) 0 ; - switch_event_t *result = 0 ; - - arg1 = (Event *)jarg1; - result = (switch_event_t *) ((arg1)->event); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Event_serialized_string_set(void * jarg1, char * jarg2) { - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->serialized_string; - if (arg2) { - arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->serialized_string, (const char *)arg2); - } else { - arg1->serialized_string = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Event_serialized_string_get(void * jarg1) { - char * jresult ; - Event *arg1 = (Event *) 0 ; - char *result = 0 ; - - arg1 = (Event *)jarg1; - result = (char *) ((arg1)->serialized_string); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Event_mine_set(void * jarg1, int jarg2) { - Event *arg1 = (Event *) 0 ; - int arg2 ; - - arg1 = (Event *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->mine = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Event_mine_get(void * jarg1) { - int jresult ; - Event *arg1 = (Event *) 0 ; - int result; - - arg1 = (Event *)jarg1; - result = (int) ((arg1)->mine); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_Event__SWIG_0(char * jarg1, char * jarg2) { - void * jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) NULL ; - Event *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (Event *)new Event((char const *)arg1,(char const *)arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_Event__SWIG_1(void * jarg1, int jarg2) { - void * jresult ; - switch_event_t *arg1 = (switch_event_t *) 0 ; - int arg2 = (int) 0 ; - Event *result = 0 ; - - arg1 = (switch_event_t *)jarg1; - arg2 = (int)jarg2; - result = (Event *)new Event(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_Event(void * jarg1) { - Event *arg1 = (Event *) 0 ; - - arg1 = (Event *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Event_chat_execute(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) NULL ; - int result; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Event_chat_send(void * jarg1, char * jarg2) { - int jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) NULL ; - int result; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->chat_send((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Event_Serialize(void * jarg1, char * jarg2) { - char * jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) NULL ; - char *result = 0 ; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - result = (char *)(arg1)->serialize((char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_SetPriority(void * jarg1, int jarg2) { - unsigned int jresult ; - Event *arg1 = (Event *) 0 ; - switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; - bool result; - - arg1 = (Event *)jarg1; - arg2 = (switch_priority_t)jarg2; - result = (bool)(arg1)->setPriority(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Event_GetHeader(void * jarg1, char * jarg2) { - char * jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - result = (char *)(arg1)->getHeader((char const *)arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Event_GetBody(void * jarg1) { - char * jresult ; - Event *arg1 = (Event *) 0 ; - char *result = 0 ; - - arg1 = (Event *)jarg1; - result = (char *)(arg1)->getBody(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Event_GetEventType(void * jarg1) { - char * jresult ; - Event *arg1 = (Event *) 0 ; - char *result = 0 ; - - arg1 = (Event *)jarg1; - result = (char *)(arg1)->getType(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_AddBody(void * jarg1, char * jarg2) { - unsigned int jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->addBody((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_AddHeader(void * jarg1, char * jarg2, char * jarg3) { - unsigned int jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - bool result; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_DeleteHeader(void * jarg1, char * jarg2) { - unsigned int jresult ; - Event *arg1 = (Event *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (Event *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->delHeader((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_Fire(void * jarg1) { - unsigned int jresult ; - Event *arg1 = (Event *) 0 ; - bool result; - - arg1 = (Event *)jarg1; - result = (bool)(arg1)->fire(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_events_set(void * jarg1, void * jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - switch_queue_t *arg2 = (switch_queue_t *) 0 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (switch_queue_t *)jarg2; - if (arg1) (arg1)->events = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_events_get(void * jarg1) { - void * jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - switch_queue_t *result = 0 ; - - arg1 = (EventConsumer *)jarg1; - result = (switch_queue_t *) ((arg1)->events); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_event_id_set(void * jarg1, int jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - switch_event_types_t arg2 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (switch_event_types_t)jarg2; - if (arg1) (arg1)->e_event_id = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_EventConsumer_e_event_id_get(void * jarg1) { - int jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - switch_event_types_t result; - - arg1 = (EventConsumer *)jarg1; - result = (switch_event_types_t) ((arg1)->e_event_id); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_callback_set(void * jarg1, char * jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->e_callback; - if (arg2) { - arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_callback, (const char *)arg2); - } else { - arg1->e_callback = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_callback_get(void * jarg1) { - char * jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *result = 0 ; - - arg1 = (EventConsumer *)jarg1; - result = (char *) ((arg1)->e_callback); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_subclass_name_set(void * jarg1, char * jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->e_subclass_name; - if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_subclass_name, (const char *)arg2); - } else { - arg1->e_subclass_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_subclass_name_get(void * jarg1) { - char * jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *result = 0 ; - - arg1 = (EventConsumer *)jarg1; - result = (char *) ((arg1)->e_subclass_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_cb_arg_set(void * jarg1, char * jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->e_cb_arg; - if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_cb_arg, (const char *)arg2); - } else { - arg1->e_cb_arg = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_cb_arg_get(void * jarg1) { - char * jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *result = 0 ; - - arg1 = (EventConsumer *)jarg1; - result = (char *) ((arg1)->e_cb_arg); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_enodes_set(void * jarg1, void * jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - switch_event_node_t **arg2 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (switch_event_node_t **)jarg2; - { - size_t ii; - switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes; - for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_enodes_get(void * jarg1) { - void * jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - switch_event_node_t **result = 0 ; - - arg1 = (EventConsumer *)jarg1; - result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_node_index_set(void * jarg1, unsigned long jarg2) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - uint32_t arg2 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (uint32_t)jarg2; - if (arg1) (arg1)->node_index = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_EventConsumer_node_index_get(void * jarg1) { - unsigned long jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - uint32_t result; - - arg1 = (EventConsumer *)jarg1; - result = (uint32_t) ((arg1)->node_index); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_EventConsumer(char * jarg1, char * jarg2, int jarg3) { - void * jresult ; - char *arg1 = (char *) NULL ; - char *arg2 = (char *) "" ; - int arg3 = (int) 5000 ; - EventConsumer *result = 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_EventConsumer(void * jarg1) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - - arg1 = (EventConsumer *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_EventConsumer_bind(void * jarg1, char * jarg2, char * jarg3) { - int jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) "" ; - int result; - - arg1 = (EventConsumer *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_pop(void * jarg1, int jarg2, int jarg3) { - void * jresult ; - EventConsumer *arg1 = (EventConsumer *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - Event *result = 0 ; - - arg1 = (EventConsumer *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - result = (Event *)(arg1)->pop(arg2,arg3); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_cleanup(void * jarg1) { - EventConsumer *arg1 = (EventConsumer *) 0 ; - - arg1 = (EventConsumer *)jarg1; - (arg1)->cleanup(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_CoreSession(void * jarg1) { - CoreSession *arg1 = (CoreSession *) 0 ; - - arg1 = (CoreSession *)jarg1; - delete arg1; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_InternalSession_set(void * jarg1, void * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (switch_core_session_t *)jarg2; - if (arg1) (arg1)->session = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_InternalSession_get(void * jarg1) { - void * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - switch_core_session_t *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (switch_core_session_t *) ((arg1)->session); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_channel_set(void * jarg1, void * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - switch_channel_t *arg2 = (switch_channel_t *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (switch_channel_t *)jarg2; - if (arg1) (arg1)->channel = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_channel_get(void * jarg1) { - void * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - switch_channel_t *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (switch_channel_t *) ((arg1)->channel); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_flags_set(void * jarg1, unsigned int jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - unsigned int arg2 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (unsigned int)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_flags_get(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - unsigned int result; - - arg1 = (CoreSession *)jarg1; - result = (unsigned int) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_allocated_set(void * jarg1, int jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->allocated = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_allocated_get(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - result = (int) ((arg1)->allocated); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_cb_state_set(void * jarg1, void * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - input_callback_state *arg2 = (input_callback_state *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (input_callback_state *)jarg2; - if (arg1) (arg1)->cb_state = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_cb_state_get(void * jarg1) { - void * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - input_callback_state *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (input_callback_state *)& ((arg1)->cb_state); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_HookState_set(void * jarg1, int jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - switch_channel_state_t arg2 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (switch_channel_state_t)jarg2; - if (arg1) (arg1)->hook_state = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_HookState_get(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - switch_channel_state_t result; - - arg1 = (CoreSession *)jarg1; - result = (switch_channel_state_t) ((arg1)->hook_state); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_cause_set(void * jarg1, int jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - switch_call_cause_t arg2 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (switch_call_cause_t)jarg2; - if (arg1) (arg1)->cause = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_cause_get(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - switch_call_cause_t result; - - arg1 = (CoreSession *)jarg1; - result = (switch_call_cause_t) ((arg1)->cause); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_uuid_set(void * jarg1, char * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->uuid; - if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); - } else { - arg1->uuid = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_uuid_get(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *) ((arg1)->uuid); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_tts_name_set(void * jarg1, char * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->tts_name; - if (arg2) { - arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->tts_name, (const char *)arg2); - } else { - arg1->tts_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_tts_name_get(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *) ((arg1)->tts_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_voice_name_set(void * jarg1, char * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - { - delete [] arg1->voice_name; - if (arg2) { - arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->voice_name, (const char *)arg2); - } else { - arg1->voice_name = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_voice_name_get(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *) ((arg1)->voice_name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_insertFile(void * jarg1, char * jarg2, char * jarg3, int jarg4) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Answer(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - result = (int)(arg1)->answer(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_preAnswer(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - result = (int)(arg1)->preAnswer(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Hangup(void * jarg1, char * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) "normal_clearing" ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - (arg1)->hangup((char const *)arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_hangupState(void * jarg1) { - CoreSession *arg1 = (CoreSession *) 0 ; - - arg1 = (CoreSession *)jarg1; - (arg1)->hangupState(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetVariable(void * jarg1, char * jarg2, char * jarg3) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - (arg1)->setVariable(arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetPrivate(void * jarg1, char * jarg2, void * jarg3) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = (void *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (void *)jarg3; - (arg1)->setPrivate(arg2,arg3); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_GetPrivate(void * jarg1, char * jarg2) { - void * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - void *result = 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - result = (void *)(arg1)->getPrivate(arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetVariable(void * jarg1, char * jarg2) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - result = (char *)(arg1)->getVariable(arg2); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) NULL ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - arg6 = (char *)jarg6; - (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SayPhrase(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) "" ; - char *arg4 = (char *) NULL ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_hangupCause(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *)(arg1)->hangupCause(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_getState(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *)(arg1)->getState(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_RecordFile(void * jarg1, char * jarg2, int jarg3, int jarg4, int jarg5) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (int)jarg5; - result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -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; - arg5 = (switch_state_handler_table_t *)jarg5; - result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_destroy(void * jarg1) { - CoreSession *arg1 = (CoreSession *) 0 ; - - arg1 = (CoreSession *)jarg1; - (arg1)->destroy(); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Speak(void * jarg1, char * jarg2) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->speak(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetTtsParameters(void * jarg1, char * jarg2, char * jarg3) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - (arg1)->set_tts_parms(arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_set_tts_params(void * jarg1, char * jarg2, char * jarg3) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - (arg1)->set_tts_params(arg2,arg3); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_CollectDigits__SWIG_0(void * jarg1, int jarg2) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - result = (int)(arg1)->collectDigits(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_CollectDigits__SWIG_1(void * jarg1, int jarg2, int jarg3) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - int arg3 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - result = (int)(arg1)->collectDigits(arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetDigits__SWIG_0(void * jarg1, int jarg2, char * jarg3, int jarg4) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetDigits__SWIG_1(void * jarg1, int jarg2, char * jarg3, int jarg4, int jarg5) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (int)jarg5; - result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) NULL ; - char *arg4 = (char *) NULL ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (int)(arg1)->transfer(arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_read(void * jarg1, int jarg2, int jarg3, char * jarg4, int jarg5, char * jarg6, int jarg7) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - char *arg6 = (char *) 0 ; - int arg7 = (int) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - arg6 = (char *)jarg6; - arg7 = (int)jarg7; - result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_PlayAndGetDigits(void * jarg1, int jarg2, int jarg3, int jarg4, int jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, int jarg11, char * jarg12) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - char *arg10 = (char *) NULL ; - int arg11 = (int) 0 ; - char *arg12 = (char *) NULL ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (int)jarg5; - arg6 = (char *)jarg6; - arg7 = (char *)jarg7; - arg8 = (char *)jarg8; - arg9 = (char *)jarg9; - arg10 = (char *)jarg10; - arg11 = (int)jarg11; - arg12 = (char *)jarg12; - result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_StreamFile(void * jarg1, char * jarg2, int jarg3) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 = (int) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (int)jarg3; - result = (int)(arg1)->streamFile(arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_sleep(void * jarg1, int jarg2, int jarg3) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int arg2 ; - int arg3 = (int) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - result = (int)(arg1)->sleep(arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_flushEvents(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - result = (int)(arg1)->flushEvents(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_flushDigits(void * jarg1) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - int result; - - arg1 = (CoreSession *)jarg1; - result = (int)(arg1)->flushDigits(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_SetAutoHangup(void * jarg1, unsigned int jarg2) { - int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool arg2 ; - int result; - - arg1 = (CoreSession *)jarg1; - arg2 = jarg2 ? true : false; - result = (int)(arg1)->setAutoHangup(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_Ready(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool result; - - arg1 = (CoreSession *)jarg1; - result = (bool)(arg1)->ready(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_bridged(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool result; - - arg1 = (CoreSession *)jarg1; - result = (bool)(arg1)->bridged(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_answered(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool result; - - arg1 = (CoreSession *)jarg1; - result = (bool)(arg1)->answered(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_mediaReady(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool result; - - arg1 = (CoreSession *)jarg1; - result = (bool)(arg1)->mediaReady(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_waitForAnswer(void * jarg1, void * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - CoreSession *arg2 = (CoreSession *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (CoreSession *)jarg2; - (arg1)->waitForAnswer(arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Execute(void * jarg1, char * jarg2, char * jarg3) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) NULL ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - (arg1)->execute((char const *)arg2,(char const *)arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_sendEvent(void * jarg1, void * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - Event *arg2 = (Event *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (Event *)jarg2; - (arg1)->sendEvent(arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_setEventData(void * jarg1, void * jarg2) { - CoreSession *arg1 = (CoreSession *) 0 ; - Event *arg2 = (Event *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (Event *)jarg2; - (arg1)->setEventData(arg2); -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_getXMLCDR(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *)(arg1)->getXMLCDR(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_begin_allow_threads(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool result; - - arg1 = (CoreSession *)jarg1; - result = (bool)(arg1)->begin_allow_threads(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_end_allow_threads(void * jarg1) { - unsigned int jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - bool result; - - arg1 = (CoreSession *)jarg1; - result = (bool)(arg1)->end_allow_threads(); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetUuid(void * jarg1) { - char * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - char *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (char *)((CoreSession const *)arg1)->get_uuid(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_get_cb_args(void * jarg1) { - void * jresult ; - CoreSession *arg1 = (CoreSession *) 0 ; - switch_input_args_t *result = 0 ; - - arg1 = (CoreSession *)jarg1; - result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_check_hangup_hook(void * jarg1) { - CoreSession *arg1 = (CoreSession *) 0 ; - - arg1 = (CoreSession *)jarg1; - (arg1)->check_hangup_hook(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_consoleLog(void * jarg1, char * jarg2, char * jarg3) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - (arg1)->consoleLog(arg2,arg3); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_consoleLog2(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5, char * jarg6) { - CoreSession *arg1 = (CoreSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - char *arg6 = (char *) 0 ; - - arg1 = (CoreSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - arg5 = (int)jarg5; - arg6 = (char *)jarg6; - (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_console_log(char * jarg1, char * jarg2) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - console_log(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_console_log2(char * jarg1, char * jarg2, char * jarg3, int jarg4, char * jarg5) { - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (int)jarg4; - arg5 = (char *)jarg5; - console_log2(arg1,arg2,arg3,arg4,arg5); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_console_clean_log(char * jarg1) { - char *arg1 = (char *) 0 ; - - arg1 = (char *)jarg1; - console_clean_log(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_msleep(unsigned int jarg1) { - unsigned int arg1 ; - - arg1 = (unsigned int)jarg1; - switch_msleep(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_bridge(void * jarg1, void * jarg2) { - CoreSession *arg1 = 0 ; - CoreSession *arg2 = 0 ; - - arg1 = (CoreSession *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "CoreSession & type is null", 0); - return ; - } - arg2 = (CoreSession *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "CoreSession & type is null", 0); - return ; - } - bridge(*arg1,*arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_hanguphook(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_status_t)hanguphook(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_dtmf_callback(void * jarg1, void * jarg2, int jarg3, void * jarg4, unsigned int jarg5) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_input_type_t arg3 ; - void *arg4 = (void *) 0 ; - unsigned int arg5 ; - switch_status_t result; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_input_type_t)jarg3; - arg4 = (void *)jarg4; - arg5 = (unsigned int)jarg5; - result = (switch_status_t)dtmf_callback(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_ManagedSession__SWIG_0() { - void * jresult ; - ManagedSession *result = 0 ; - - result = (ManagedSession *)new ManagedSession(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_ManagedSession__SWIG_1(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - ManagedSession *result = 0 ; - - arg1 = (char *)jarg1; - result = (ManagedSession *)new ManagedSession(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_ManagedSession__SWIG_2(void * jarg1) { - void * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - ManagedSession *result = 0 ; - - arg1 = (switch_core_session_t *)jarg1; - result = (ManagedSession *)new ManagedSession(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_ManagedSession(void * jarg1) { - ManagedSession *arg1 = (ManagedSession *) 0 ; - - arg1 = (ManagedSession *)jarg1; - delete arg1; -} - - -SWIGEXPORT CoreSession * SWIGSTDCALL CSharp_ManagedSession_SWIGUpcast(ManagedSession *jarg1) { - return (CoreSession *)jarg1; -} - -#ifdef __cplusplus -} -#endif - diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs deleted file mode 100644 index 2329ca5861..0000000000 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ /dev/null @@ -1,40483 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class Api : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Api(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(Api obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~Api() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_Api(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public Api(CoreSession s) : this(freeswitchPINVOKE.new_Api(CoreSession.getCPtr(s)), true) { - } - - public string Execute(string command, string data) { - string ret = freeswitchPINVOKE.Api_Execute(swigCPtr, command, data); - return ret; - } - - public string ExecuteString(string command) { - string ret = freeswitchPINVOKE.Api_ExecuteString(swigCPtr, command); - return ret; - } - - public string getTime() { - string ret = freeswitchPINVOKE.Api_getTime(swigCPtr); - return ret; - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class audio_buffer_header_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal audio_buffer_header_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(audio_buffer_header_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~audio_buffer_header_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_audio_buffer_header_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint ts { - set { - freeswitchPINVOKE.audio_buffer_header_t_ts_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.audio_buffer_header_t_ts_get(swigCPtr); - return ret; - } - } - - public uint len { - set { - freeswitchPINVOKE.audio_buffer_header_t_len_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.audio_buffer_header_t_len_get(swigCPtr); - return ret; - } - } - - public audio_buffer_header_t() : this(freeswitchPINVOKE.new_audio_buffer_header_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum cache_db_flag_t { - CDF_INUSE = (1 << 0), - CDF_PRUNE = (1 << 1) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class CoreSession : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal CoreSession(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(CoreSession obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~CoreSession() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_CoreSession(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_core_session InternalSession { - set { - freeswitchPINVOKE.CoreSession_InternalSession_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.CoreSession_InternalSession_get(swigCPtr); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_channel channel { - set { - freeswitchPINVOKE.CoreSession_channel_set(swigCPtr, SWIGTYPE_p_switch_channel.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.CoreSession_channel_get(swigCPtr); - SWIGTYPE_p_switch_channel ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_channel(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.CoreSession_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.CoreSession_flags_get(swigCPtr); - return ret; - } - } - - public int allocated { - set { - freeswitchPINVOKE.CoreSession_allocated_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.CoreSession_allocated_get(swigCPtr); - return ret; - } - } - - public input_callback_state_t cb_state { - set { - freeswitchPINVOKE.CoreSession_cb_state_set(swigCPtr, input_callback_state_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.CoreSession_cb_state_get(swigCPtr); - input_callback_state_t ret = (cPtr == IntPtr.Zero) ? null : new input_callback_state_t(cPtr, false); - return ret; - } - } - - public switch_channel_state_t HookState { - set { - freeswitchPINVOKE.CoreSession_HookState_set(swigCPtr, (int)value); - } - get { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.CoreSession_HookState_get(swigCPtr); - return ret; - } - } - - public switch_call_cause_t cause { - set { - freeswitchPINVOKE.CoreSession_cause_set(swigCPtr, (int)value); - } - get { - switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.CoreSession_cause_get(swigCPtr); - return ret; - } - } - - public string uuid { - set { - freeswitchPINVOKE.CoreSession_uuid_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.CoreSession_uuid_get(swigCPtr); - return ret; - } - } - - public string tts_name { - set { - freeswitchPINVOKE.CoreSession_tts_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.CoreSession_tts_name_get(swigCPtr); - return ret; - } - } - - public string voice_name { - set { - freeswitchPINVOKE.CoreSession_voice_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.CoreSession_voice_name_get(swigCPtr); - return ret; - } - } - - public int insertFile(string file, string insert_file, int sample_point) { - int ret = freeswitchPINVOKE.CoreSession_insertFile(swigCPtr, file, insert_file, sample_point); - return ret; - } - - public int Answer() { - int ret = freeswitchPINVOKE.CoreSession_Answer(swigCPtr); - return ret; - } - - public int preAnswer() { - int ret = freeswitchPINVOKE.CoreSession_preAnswer(swigCPtr); - return ret; - } - - public void Hangup(string cause) { - freeswitchPINVOKE.CoreSession_Hangup(swigCPtr, cause); - } - - public void hangupState() { - freeswitchPINVOKE.CoreSession_hangupState(swigCPtr); - } - - public void SetVariable(string var, string val) { - freeswitchPINVOKE.CoreSession_SetVariable(swigCPtr, var, val); - } - - public void SetPrivate(string var, SWIGTYPE_p_void val) { - freeswitchPINVOKE.CoreSession_SetPrivate(swigCPtr, var, SWIGTYPE_p_void.getCPtr(val)); - } - - public SWIGTYPE_p_void GetPrivate(string var) { - IntPtr cPtr = freeswitchPINVOKE.CoreSession_GetPrivate(swigCPtr, var); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public string GetVariable(string var) { - string ret = freeswitchPINVOKE.CoreSession_GetVariable(swigCPtr, var); - return ret; - } - - public void Say(string tosay, string module_name, string say_type, string say_method, string say_gender) { - freeswitchPINVOKE.CoreSession_Say(swigCPtr, tosay, module_name, say_type, say_method, say_gender); - } - - public void SayPhrase(string phrase_name, string phrase_data, string phrase_lang) { - freeswitchPINVOKE.CoreSession_SayPhrase(swigCPtr, phrase_name, phrase_data, phrase_lang); - } - - public string hangupCause() { - string ret = freeswitchPINVOKE.CoreSession_hangupCause(swigCPtr); - return ret; - } - - public string getState() { - string ret = freeswitchPINVOKE.CoreSession_getState(swigCPtr); - return ret; - } - - public int RecordFile(string file_name, int time_limit, int silence_threshold, int silence_hits) { - int ret = freeswitchPINVOKE.CoreSession_RecordFile(swigCPtr, file_name, time_limit, silence_threshold, silence_hits); - return ret; - } - - protected 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; - } - - public virtual void destroy() { - freeswitchPINVOKE.CoreSession_destroy(swigCPtr); - } - - public int Speak(string text) { - int ret = freeswitchPINVOKE.CoreSession_Speak(swigCPtr, text); - return ret; - } - - public void SetTtsParameters(string tts_name, string voice_name) { - freeswitchPINVOKE.CoreSession_SetTtsParameters(swigCPtr, tts_name, voice_name); - } - - public void set_tts_params(string tts_name, string voice_name) { - freeswitchPINVOKE.CoreSession_set_tts_params(swigCPtr, tts_name, voice_name); - } - - public int CollectDigits(int abs_timeout) { - int ret = freeswitchPINVOKE.CoreSession_CollectDigits__SWIG_0(swigCPtr, abs_timeout); - return ret; - } - - public int CollectDigits(int digit_timeout, int abs_timeout) { - int ret = freeswitchPINVOKE.CoreSession_CollectDigits__SWIG_1(swigCPtr, digit_timeout, abs_timeout); - return ret; - } - - public string GetDigits(int maxdigits, string terminators, int timeout) { - string ret = freeswitchPINVOKE.CoreSession_GetDigits__SWIG_0(swigCPtr, maxdigits, terminators, timeout); - return ret; - } - - public string GetDigits(int maxdigits, string terminators, int timeout, int interdigit) { - string ret = freeswitchPINVOKE.CoreSession_GetDigits__SWIG_1(swigCPtr, maxdigits, terminators, timeout, interdigit); - return ret; - } - - public int Transfer(string extension, string dialplan, string context) { - int ret = freeswitchPINVOKE.CoreSession_Transfer(swigCPtr, extension, dialplan, context); - return ret; - } - - public string read(int min_digits, int max_digits, string prompt_audio_file, int timeout, string valid_terminators, int digit_timeout) { - string ret = freeswitchPINVOKE.CoreSession_read(swigCPtr, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout); - return ret; - } - - public string PlayAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, int digit_timeout, string transfer_on_failure) { - string ret = freeswitchPINVOKE.CoreSession_PlayAndGetDigits(swigCPtr, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure); - return ret; - } - - public int StreamFile(string file, int starting_sample_count) { - int ret = freeswitchPINVOKE.CoreSession_StreamFile(swigCPtr, file, starting_sample_count); - return ret; - } - - public int sleep(int ms, int sync) { - int ret = freeswitchPINVOKE.CoreSession_sleep(swigCPtr, ms, sync); - return ret; - } - - public int flushEvents() { - int ret = freeswitchPINVOKE.CoreSession_flushEvents(swigCPtr); - return ret; - } - - public int flushDigits() { - int ret = freeswitchPINVOKE.CoreSession_flushDigits(swigCPtr); - return ret; - } - - public int SetAutoHangup(bool val) { - int ret = freeswitchPINVOKE.CoreSession_SetAutoHangup(swigCPtr, val); - return ret; - } - - public bool Ready() { - bool ret = freeswitchPINVOKE.CoreSession_Ready(swigCPtr); - return ret; - } - - public bool bridged() { - bool ret = freeswitchPINVOKE.CoreSession_bridged(swigCPtr); - return ret; - } - - public bool answered() { - bool ret = freeswitchPINVOKE.CoreSession_answered(swigCPtr); - return ret; - } - - public bool mediaReady() { - bool ret = freeswitchPINVOKE.CoreSession_mediaReady(swigCPtr); - return ret; - } - - public void waitForAnswer(CoreSession calling_session) { - freeswitchPINVOKE.CoreSession_waitForAnswer(swigCPtr, CoreSession.getCPtr(calling_session)); - } - - public void Execute(string app, string data) { - freeswitchPINVOKE.CoreSession_Execute(swigCPtr, app, data); - } - - public void sendEvent(Event sendME) { - freeswitchPINVOKE.CoreSession_sendEvent(swigCPtr, Event.getCPtr(sendME)); - } - - public void setEventData(Event e) { - freeswitchPINVOKE.CoreSession_setEventData(swigCPtr, Event.getCPtr(e)); - } - - public string getXMLCDR() { - string ret = freeswitchPINVOKE.CoreSession_getXMLCDR(swigCPtr); - return ret; - } - - public virtual bool begin_allow_threads() { - bool ret = freeswitchPINVOKE.CoreSession_begin_allow_threads(swigCPtr); - return ret; - } - - public virtual bool end_allow_threads() { - bool ret = freeswitchPINVOKE.CoreSession_end_allow_threads(swigCPtr); - return ret; - } - - public string GetUuid() { - string ret = freeswitchPINVOKE.CoreSession_GetUuid(swigCPtr); - return ret; - } - - public switch_input_args_t get_cb_args() { - switch_input_args_t ret = new switch_input_args_t(freeswitchPINVOKE.CoreSession_get_cb_args(swigCPtr), false); - return ret; - } - - public virtual void check_hangup_hook() { - freeswitchPINVOKE.CoreSession_check_hangup_hook(swigCPtr); - } - - public void consoleLog(string level_str, string msg) { - freeswitchPINVOKE.CoreSession_consoleLog(swigCPtr, level_str, msg); - } - - public void consoleLog2(string level_str, string file, string func, int line, string msg) { - freeswitchPINVOKE.CoreSession_consoleLog2(swigCPtr, level_str, file, func, line, msg); - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum dm_match_type_t { - DM_MATCH_POSITIVE, - DM_MATCH_NEGATIVE -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class dtls_fingerprint_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal dtls_fingerprint_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(dtls_fingerprint_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~dtls_fingerprint_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_dtls_fingerprint_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint len { - set { - freeswitchPINVOKE.dtls_fingerprint_t_len_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.dtls_fingerprint_t_len_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char data { - set { - freeswitchPINVOKE.dtls_fingerprint_t_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.dtls_fingerprint_t_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public string type { - set { - freeswitchPINVOKE.dtls_fingerprint_t_type_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.dtls_fingerprint_t_type_get(swigCPtr); - return ret; - } - } - - public string str { - set { - freeswitchPINVOKE.dtls_fingerprint_t_str_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.dtls_fingerprint_t_str_get(swigCPtr); - return ret; - } - } - - public dtls_fingerprint_t() : this(freeswitchPINVOKE.new_dtls_fingerprint_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum dtls_state_t { - DS_HANDSHAKE, - DS_SETUP, - DS_READY, - DS_FAIL, - DS_INVALID -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum dtls_type_t { - DTLS_TYPE_CLIENT = (1 << 0), - DTLS_TYPE_SERVER = (1 << 1), - DTLS_TYPE_RTP = (1 << 2), - DTLS_TYPE_RTCP = (1 << 3) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class DTMF : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal DTMF(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(DTMF obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~DTMF() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_DTMF(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public char digit { - set { - freeswitchPINVOKE.DTMF_digit_set(swigCPtr, value); - } - get { - char ret = freeswitchPINVOKE.DTMF_digit_get(swigCPtr); - return ret; - } - } - - public uint duration { - set { - freeswitchPINVOKE.DTMF_duration_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.DTMF_duration_get(swigCPtr); - return ret; - } - } - - public DTMF(char idigit, uint iduration) : this(freeswitchPINVOKE.new_DTMF(idigit, iduration), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum dtmf_flag_t { - DTMF_FLAG_SKIP_PROCESS = (1 << 0), - DTMF_FLAG_SENSITIVE = (1 << 1) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class EventConsumer : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal EventConsumer(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(EventConsumer obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~EventConsumer() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_EventConsumer(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_queue_t events { - set { - freeswitchPINVOKE.EventConsumer_events_set(swigCPtr, SWIGTYPE_p_switch_queue_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.EventConsumer_events_get(swigCPtr); - SWIGTYPE_p_switch_queue_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_queue_t(cPtr, false); - return ret; - } - } - - public switch_event_types_t e_event_id { - set { - freeswitchPINVOKE.EventConsumer_e_event_id_set(swigCPtr, (int)value); - } - get { - switch_event_types_t ret = (switch_event_types_t)freeswitchPINVOKE.EventConsumer_e_event_id_get(swigCPtr); - return ret; - } - } - - public string e_callback { - set { - freeswitchPINVOKE.EventConsumer_e_callback_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.EventConsumer_e_callback_get(swigCPtr); - return ret; - } - } - - public string e_subclass_name { - set { - freeswitchPINVOKE.EventConsumer_e_subclass_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.EventConsumer_e_subclass_name_get(swigCPtr); - return ret; - } - } - - public string e_cb_arg { - set { - freeswitchPINVOKE.EventConsumer_e_cb_arg_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.EventConsumer_e_cb_arg_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_p_switch_event_node enodes { - set { - freeswitchPINVOKE.EventConsumer_enodes_set(swigCPtr, SWIGTYPE_p_p_switch_event_node.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.EventConsumer_enodes_get(swigCPtr); - SWIGTYPE_p_p_switch_event_node ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_switch_event_node(cPtr, false); - return ret; - } - } - - public uint node_index { - set { - freeswitchPINVOKE.EventConsumer_node_index_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.EventConsumer_node_index_get(swigCPtr); - return ret; - } - } - - public EventConsumer(string event_name, string subclass_name, int len) : this(freeswitchPINVOKE.new_EventConsumer(event_name, subclass_name, len), true) { - } - - public int bind(string event_name, string subclass_name) { - int ret = freeswitchPINVOKE.EventConsumer_bind(swigCPtr, event_name, subclass_name); - return ret; - } - - public Event pop(int block, int timeout) { - IntPtr cPtr = freeswitchPINVOKE.EventConsumer_pop(swigCPtr, block, timeout); - Event ret = (cPtr == IntPtr.Zero) ? null : new Event(cPtr, true); - return ret; - } - - public void cleanup() { - freeswitchPINVOKE.EventConsumer_cleanup(swigCPtr); - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public partial class Event : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Event(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(Event obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~Event() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_Event(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_event InternalEvent { - set { - freeswitchPINVOKE.Event_InternalEvent_set(swigCPtr, switch_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.Event_InternalEvent_get(swigCPtr); - switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); - return ret; - } - } - - public string serialized_string { - set { - freeswitchPINVOKE.Event_serialized_string_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.Event_serialized_string_get(swigCPtr); - return ret; - } - } - - public int mine { - set { - freeswitchPINVOKE.Event_mine_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.Event_mine_get(swigCPtr); - return ret; - } - } - - public Event(string type, string subclass_name) : this(freeswitchPINVOKE.new_Event__SWIG_0(type, subclass_name), true) { - } - - public Event(switch_event wrap_me, int free_me) : this(freeswitchPINVOKE.new_Event__SWIG_1(switch_event.getCPtr(wrap_me), free_me), true) { - } - - public int chat_execute(string app, string data) { - int ret = freeswitchPINVOKE.Event_chat_execute(swigCPtr, app, data); - return ret; - } - - public int chat_send(string dest_proto) { - int ret = freeswitchPINVOKE.Event_chat_send(swigCPtr, dest_proto); - return ret; - } - - public string Serialize(string format) { - string ret = freeswitchPINVOKE.Event_Serialize(swigCPtr, format); - return ret; - } - - public bool SetPriority(switch_priority_t priority) { - bool ret = freeswitchPINVOKE.Event_SetPriority(swigCPtr, (int)priority); - return ret; - } - - public string GetHeader(string header_name) { - string ret = freeswitchPINVOKE.Event_GetHeader(swigCPtr, header_name); - return ret; - } - - public string GetBody() { - string ret = freeswitchPINVOKE.Event_GetBody(swigCPtr); - return ret; - } - - public string GetEventType() { - string ret = freeswitchPINVOKE.Event_GetEventType(swigCPtr); - return ret; - } - - public bool AddBody(string value) { - bool ret = freeswitchPINVOKE.Event_AddBody(swigCPtr, value); - return ret; - } - - public bool AddHeader(string header_name, string value) { - bool ret = freeswitchPINVOKE.Event_AddHeader(swigCPtr, header_name, value); - return ret; - } - - public bool DeleteHeader(string header_name) { - bool ret = freeswitchPINVOKE.Event_DeleteHeader(swigCPtr, header_name); - return ret; - } - - public bool Fire() { - bool ret = freeswitchPINVOKE.Event_Fire(swigCPtr); - return ret; - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class freeswitch { - public static switch_directories SWITCH_GLOBAL_dirs { - set { - freeswitchPINVOKE.SWITCH_GLOBAL_dirs_set(switch_directories.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.SWITCH_GLOBAL_dirs_get(); - switch_directories ret = (cPtr == IntPtr.Zero) ? null : new switch_directories(cPtr, false); - return ret; - } - } - - public static switch_filenames SWITCH_GLOBAL_filenames { - set { - freeswitchPINVOKE.SWITCH_GLOBAL_filenames_set(switch_filenames.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.SWITCH_GLOBAL_filenames_get(); - switch_filenames ret = (cPtr == IntPtr.Zero) ? null : new switch_filenames(cPtr, false); - return ret; - } - } - - public static int switch_core_db_close(SWIGTYPE_p_sqlite3 db) { - int ret = freeswitchPINVOKE.switch_core_db_close(SWIGTYPE_p_sqlite3.getCPtr(db)); - return ret; - } - - public static int switch_core_db_open(string filename, SWIGTYPE_p_p_sqlite3 ppDb) { - int ret = freeswitchPINVOKE.switch_core_db_open(filename, SWIGTYPE_p_p_sqlite3.getCPtr(ppDb)); - return ret; - } - - public static SWIGTYPE_p_unsigned_char switch_core_db_column_text(SWIGTYPE_p_sqlite3_stmt stmt, int iCol) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_db_column_text(SWIGTYPE_p_sqlite3_stmt.getCPtr(stmt), iCol); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - - public static string switch_core_db_column_name(SWIGTYPE_p_sqlite3_stmt stmt, int N) { - string ret = freeswitchPINVOKE.switch_core_db_column_name(SWIGTYPE_p_sqlite3_stmt.getCPtr(stmt), N); - return ret; - } - - public static int switch_core_db_column_count(SWIGTYPE_p_sqlite3_stmt pStmt) { - int ret = freeswitchPINVOKE.switch_core_db_column_count(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt)); - return ret; - } - - public static string switch_core_db_errmsg(SWIGTYPE_p_sqlite3 db) { - string ret = freeswitchPINVOKE.switch_core_db_errmsg(SWIGTYPE_p_sqlite3.getCPtr(db)); - return ret; - } - - public static int switch_core_db_exec(SWIGTYPE_p_sqlite3 db, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void data, ref string errmsg) { - int ret = freeswitchPINVOKE.switch_core_db_exec(SWIGTYPE_p_sqlite3.getCPtr(db), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(data), ref errmsg); - return ret; - } - - public static int switch_core_db_finalize(SWIGTYPE_p_sqlite3_stmt pStmt) { - int ret = freeswitchPINVOKE.switch_core_db_finalize(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt)); - return ret; - } - - public static int switch_core_db_prepare(SWIGTYPE_p_sqlite3 db, string zSql, int nBytes, SWIGTYPE_p_p_sqlite3_stmt ppStmt, ref string pzTail) { - int ret = freeswitchPINVOKE.switch_core_db_prepare(SWIGTYPE_p_sqlite3.getCPtr(db), zSql, nBytes, SWIGTYPE_p_p_sqlite3_stmt.getCPtr(ppStmt), ref pzTail); - return ret; - } - - public static int switch_core_db_step(SWIGTYPE_p_sqlite3_stmt stmt) { - int ret = freeswitchPINVOKE.switch_core_db_step(SWIGTYPE_p_sqlite3_stmt.getCPtr(stmt)); - return ret; - } - - public static int switch_core_db_reset(SWIGTYPE_p_sqlite3_stmt pStmt) { - int ret = freeswitchPINVOKE.switch_core_db_reset(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt)); - return ret; - } - - public static int switch_core_db_bind_int(SWIGTYPE_p_sqlite3_stmt pStmt, int i, int iValue) { - int ret = freeswitchPINVOKE.switch_core_db_bind_int(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, iValue); - return ret; - } - - public static int switch_core_db_bind_int64(SWIGTYPE_p_sqlite3_stmt pStmt, int i, long iValue) { - int ret = freeswitchPINVOKE.switch_core_db_bind_int64(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, iValue); - return ret; - } - - public static int switch_core_db_bind_text(SWIGTYPE_p_sqlite3_stmt pStmt, int i, string zData, int nData, SWIGTYPE_p_f_p_void__void xDel) { - int ret = freeswitchPINVOKE.switch_core_db_bind_text(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, zData, nData, SWIGTYPE_p_f_p_void__void.getCPtr(xDel)); - return ret; - } - - public static int switch_core_db_bind_double(SWIGTYPE_p_sqlite3_stmt pStmt, int i, double dValue) { - int ret = freeswitchPINVOKE.switch_core_db_bind_double(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, dValue); - return ret; - } - - public static long switch_core_db_last_insert_rowid(SWIGTYPE_p_sqlite3 db) { - long ret = freeswitchPINVOKE.switch_core_db_last_insert_rowid(SWIGTYPE_p_sqlite3.getCPtr(db)); - return ret; - } - - public static int switch_core_db_get_table(SWIGTYPE_p_sqlite3 db, string sql, SWIGTYPE_p_p_p_char resultp, SWIGTYPE_p_int nrow, SWIGTYPE_p_int ncolumn, ref string errmsg) { - int ret = freeswitchPINVOKE.switch_core_db_get_table(SWIGTYPE_p_sqlite3.getCPtr(db), sql, SWIGTYPE_p_p_p_char.getCPtr(resultp), SWIGTYPE_p_int.getCPtr(nrow), SWIGTYPE_p_int.getCPtr(ncolumn), ref errmsg); - return ret; - } - - public static void switch_core_db_free_table(ref string result) { - freeswitchPINVOKE.switch_core_db_free_table(ref result); - } - - public static void switch_core_db_free(string z) { - freeswitchPINVOKE.switch_core_db_free(z); - } - - public static int switch_core_db_changes(SWIGTYPE_p_sqlite3 db) { - int ret = freeswitchPINVOKE.switch_core_db_changes(SWIGTYPE_p_sqlite3.getCPtr(db)); - return ret; - } - - public static int switch_core_db_load_extension(SWIGTYPE_p_sqlite3 db, string extension) { - int ret = freeswitchPINVOKE.switch_core_db_load_extension(SWIGTYPE_p_sqlite3.getCPtr(db), extension); - return ret; - } - - public static string switch_sql_concat() { - string ret = freeswitchPINVOKE.switch_sql_concat(); - return ret; - } - - public static SWIGTYPE_p_real_pcre switch_regex_compile(string pattern, int options, ref string errorptr, SWIGTYPE_p_int erroroffset, SWIGTYPE_p_unsigned_char tables) { - IntPtr cPtr = freeswitchPINVOKE.switch_regex_compile(pattern, options, ref errorptr, SWIGTYPE_p_int.getCPtr(erroroffset), SWIGTYPE_p_unsigned_char.getCPtr(tables)); - SWIGTYPE_p_real_pcre ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_real_pcre(cPtr, false); - return ret; - } - - public static int switch_regex_copy_substring(string subject, SWIGTYPE_p_int ovector, int stringcount, int stringnumber, string buffer, int size) { - int ret = freeswitchPINVOKE.switch_regex_copy_substring(subject, SWIGTYPE_p_int.getCPtr(ovector), stringcount, stringnumber, buffer, size); - return ret; - } - - public static void switch_regex_free(SWIGTYPE_p_void data) { - freeswitchPINVOKE.switch_regex_free(SWIGTYPE_p_void.getCPtr(data)); - } - - public static int switch_regex_perform(string field, string expression, SWIGTYPE_p_p_real_pcre new_re, SWIGTYPE_p_int ovector, uint olen) { - int ret = freeswitchPINVOKE.switch_regex_perform(field, expression, SWIGTYPE_p_p_real_pcre.getCPtr(new_re), SWIGTYPE_p_int.getCPtr(ovector), olen); - return ret; - } - - public static void switch_perform_substitution(SWIGTYPE_p_real_pcre re, int match_count, string data, string field_data, string substituted, SWIGTYPE_p_switch_size_t len, SWIGTYPE_p_int ovector) { - freeswitchPINVOKE.switch_perform_substitution(SWIGTYPE_p_real_pcre.getCPtr(re), match_count, data, field_data, substituted, SWIGTYPE_p_switch_size_t.getCPtr(len), SWIGTYPE_p_int.getCPtr(ovector)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - - public static switch_status_t switch_regex_match(string target, string expression) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_regex_match(target, expression); - return ret; - } - - public static switch_status_t switch_regex_match_partial(string target, string expression, SWIGTYPE_p_int partial_match) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_regex_match_partial(target, expression, SWIGTYPE_p_int.getCPtr(partial_match)); - return ret; - } - - public static void switch_capture_regex(SWIGTYPE_p_real_pcre re, int match_count, string field_data, SWIGTYPE_p_int ovector, string var, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void callback, SWIGTYPE_p_void user_data) { - freeswitchPINVOKE.switch_capture_regex(SWIGTYPE_p_real_pcre.getCPtr(re), match_count, field_data, SWIGTYPE_p_int.getCPtr(ovector), var, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); - } - - public static void switch_regex_set_var_callback(string var, string val, SWIGTYPE_p_void user_data) { - freeswitchPINVOKE.switch_regex_set_var_callback(var, val, SWIGTYPE_p_void.getCPtr(user_data)); - } - - public static void switch_regex_set_event_header_callback(string var, string val, SWIGTYPE_p_void user_data) { - freeswitchPINVOKE.switch_regex_set_event_header_callback(var, val, SWIGTYPE_p_void.getCPtr(user_data)); - } - - public static void switch_core_screen_size(SWIGTYPE_p_int x, SWIGTYPE_p_int y) { - freeswitchPINVOKE.switch_core_screen_size(SWIGTYPE_p_int.getCPtr(x), SWIGTYPE_p_int.getCPtr(y)); - } - - public static void switch_core_session_sched_heartbeat(SWIGTYPE_p_switch_core_session session, uint seconds) { - freeswitchPINVOKE.switch_core_session_sched_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session), seconds); - } - - public static void switch_core_session_unsched_heartbeat(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_unsched_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_enable_heartbeat(SWIGTYPE_p_switch_core_session session, uint seconds) { - freeswitchPINVOKE.switch_core_session_enable_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session), seconds); - } - - public static void switch_core_session_disable_heartbeat(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_disable_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static switch_status_t switch_core_media_bug_pop(SWIGTYPE_p_switch_core_session orig_session, string function, SWIGTYPE_p_p_switch_media_bug pop) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_pop(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function, SWIGTYPE_p_p_switch_media_bug.getCPtr(pop)); - return ret; - } - - public static switch_status_t switch_core_media_bug_exec_all(SWIGTYPE_p_switch_core_session orig_session, string function, SWIGTYPE_p_f_p_switch_media_bug_p_void__void cb, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_exec_all(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function, SWIGTYPE_p_f_p_switch_media_bug_p_void__void.getCPtr(cb), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static uint switch_core_media_bug_count(SWIGTYPE_p_switch_core_session orig_session, string function) { - uint ret = freeswitchPINVOKE.switch_core_media_bug_count(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function); - return ret; - } - - public static switch_status_t switch_core_media_bug_add(SWIGTYPE_p_switch_core_session session, string function, string target, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback, SWIGTYPE_p_void user_data, SWIGTYPE_p_time_t stop_time, uint flags, SWIGTYPE_p_p_switch_media_bug new_bug) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_add(SWIGTYPE_p_switch_core_session.getCPtr(session), function, target, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_time_t.getCPtr(stop_time), flags, SWIGTYPE_p_p_switch_media_bug.getCPtr(new_bug)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_core_media_bug_pause(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_media_bug_pause(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_media_bug_resume(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_media_bug_resume(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_media_bug_inuse(SWIGTYPE_p_switch_media_bug bug, SWIGTYPE_p_switch_size_t readp, SWIGTYPE_p_switch_size_t writep) { - freeswitchPINVOKE.switch_core_media_bug_inuse(SWIGTYPE_p_switch_media_bug.getCPtr(bug), SWIGTYPE_p_switch_size_t.getCPtr(readp), SWIGTYPE_p_switch_size_t.getCPtr(writep)); - } - - public static SWIGTYPE_p_void switch_core_media_bug_get_user_data(SWIGTYPE_p_switch_media_bug bug) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_user_data(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static switch_frame switch_core_media_bug_get_write_replace_frame(SWIGTYPE_p_switch_media_bug bug) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_write_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - - public static switch_frame switch_core_media_bug_get_native_read_frame(SWIGTYPE_p_switch_media_bug bug) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_native_read_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - - public static switch_frame switch_core_media_bug_get_native_write_frame(SWIGTYPE_p_switch_media_bug bug) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_native_write_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - - public static void switch_core_media_bug_set_write_replace_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { - freeswitchPINVOKE.switch_core_media_bug_set_write_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); - } - - public static switch_frame switch_core_media_bug_get_read_replace_frame(SWIGTYPE_p_switch_media_bug bug) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_read_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - - public static void switch_core_media_bug_set_read_demux_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { - freeswitchPINVOKE.switch_core_media_bug_set_read_demux_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); - } - - public static SWIGTYPE_p_switch_core_session switch_core_media_bug_get_session(SWIGTYPE_p_switch_media_bug bug) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_session(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static uint switch_core_media_bug_test_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { - uint ret = freeswitchPINVOKE.switch_core_media_bug_test_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); - return ret; - } - - public static uint switch_core_media_bug_set_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { - uint ret = freeswitchPINVOKE.switch_core_media_bug_set_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); - return ret; - } - - public static uint switch_core_media_bug_clear_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { - uint ret = freeswitchPINVOKE.switch_core_media_bug_clear_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); - return ret; - } - - public static void switch_core_media_bug_set_read_replace_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { - freeswitchPINVOKE.switch_core_media_bug_set_read_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); - } - - public static uint switch_core_cpu_count() { - uint ret = freeswitchPINVOKE.switch_core_cpu_count(); - return ret; - } - - public static switch_status_t switch_core_media_bug_remove(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_media_bug bug) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_media_bug.getCPtr(bug)); - return ret; - } - - public static uint switch_core_media_bug_prune(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_media_bug_prune(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_media_bug_remove_callback(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback)); - return ret; - } - - public static switch_status_t switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug bug) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug.getCPtr(bug)); - return ret; - } - - public static switch_status_t switch_core_media_bug_remove_all_function(SWIGTYPE_p_switch_core_session session, string function) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove_all_function(SWIGTYPE_p_switch_core_session.getCPtr(session), function); - return ret; - } - - public static switch_status_t switch_core_media_bug_enumerate(SWIGTYPE_p_switch_core_session session, switch_stream_handle stream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_enumerate(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_stream_handle.getCPtr(stream)); - return ret; - } - - public static switch_status_t switch_core_media_bug_transfer_recordings(SWIGTYPE_p_switch_core_session orig_session, SWIGTYPE_p_switch_core_session new_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_transfer_recordings(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), SWIGTYPE_p_switch_core_session.getCPtr(new_session)); - return ret; - } - - public static switch_status_t switch_core_media_bug_transfer_callback(SWIGTYPE_p_switch_core_session orig_session, SWIGTYPE_p_switch_core_session new_session, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback, SWIGTYPE_p_f_p_switch_core_session_p_void__p_void user_data_dup_func) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_transfer_callback(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), SWIGTYPE_p_switch_core_session.getCPtr(new_session), SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback), SWIGTYPE_p_f_p_switch_core_session_p_void__p_void.getCPtr(user_data_dup_func)); - return ret; - } - - public static switch_status_t switch_core_media_bug_read(SWIGTYPE_p_switch_media_bug bug, switch_frame frame, switch_bool_t fill) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_read(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame), (int)fill); - return ret; - } - - public static void switch_core_media_bug_flush(SWIGTYPE_p_switch_media_bug bug) { - freeswitchPINVOKE.switch_core_media_bug_flush(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); - } - - public static switch_status_t switch_core_media_bug_flush_all(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_flush_all(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_media_bug_set_pre_buffer_framecount(SWIGTYPE_p_switch_media_bug bug, uint framecount) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_set_pre_buffer_framecount(SWIGTYPE_p_switch_media_bug.getCPtr(bug), framecount); - return ret; - } - - public static switch_status_t switch_core_port_allocator_new(string ip, ushort start, ushort end, uint flags, SWIGTYPE_p_p_switch_core_port_allocator new_allocator) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_new(ip, start, end, flags, SWIGTYPE_p_p_switch_core_port_allocator.getCPtr(new_allocator)); - return ret; - } - - public static switch_status_t switch_core_port_allocator_request_port(SWIGTYPE_p_switch_core_port_allocator alloc, SWIGTYPE_p_unsigned_short port_ptr) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_request_port(SWIGTYPE_p_switch_core_port_allocator.getCPtr(alloc), SWIGTYPE_p_unsigned_short.getCPtr(port_ptr)); - return ret; - } - - public static switch_status_t switch_core_port_allocator_free_port(SWIGTYPE_p_switch_core_port_allocator alloc, ushort port) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_free_port(SWIGTYPE_p_switch_core_port_allocator.getCPtr(alloc), port); - return ret; - } - - public static void switch_core_port_allocator_destroy(SWIGTYPE_p_p_switch_core_port_allocator alloc) { - freeswitchPINVOKE.switch_core_port_allocator_destroy(SWIGTYPE_p_p_switch_core_port_allocator.getCPtr(alloc)); - } - - public static int switch_core_test_flag(int flag) { - int ret = freeswitchPINVOKE.switch_core_test_flag(flag); - return ret; - } - - public static switch_status_t switch_core_init(uint flags, switch_bool_t console, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_init(flags, (int)console, ref err); - return ret; - } - - public static switch_status_t switch_core_init_and_modload(uint flags, switch_bool_t console, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_init_and_modload(flags, (int)console, ref err); - return ret; - } - - public static uint switch_core_session_limit(uint new_limit) { - uint ret = freeswitchPINVOKE.switch_core_session_limit(new_limit); - return ret; - } - - public static uint switch_core_sessions_per_second(uint new_limit) { - uint ret = freeswitchPINVOKE.switch_core_sessions_per_second(new_limit); - return ret; - } - - public static switch_status_t switch_core_destroy() { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_destroy(); - return ret; - } - - public static switch_status_t switch_core_session_io_read_lock(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_read_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_io_write_lock(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_write_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_io_rwunlock(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_rwunlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_read_lock(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_read_lock_hangup(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_lock_hangup(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static void switch_core_session_write_lock(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_write_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_rwunlock(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_rwunlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static int switch_core_add_state_handler(switch_state_handler_table state_handler) { - int ret = freeswitchPINVOKE.switch_core_add_state_handler(switch_state_handler_table.getCPtr(state_handler)); - return ret; - } - - public static void switch_core_remove_state_handler(switch_state_handler_table state_handler) { - freeswitchPINVOKE.switch_core_remove_state_handler(switch_state_handler_table.getCPtr(state_handler)); - } - - public static switch_state_handler_table switch_core_get_state_handler(int index) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_get_state_handler(index); - switch_state_handler_table ret = (cPtr == IntPtr.Zero) ? null : new switch_state_handler_table(cPtr, false); - return ret; - } - - public static void switch_core_memory_pool_tag(SWIGTYPE_p_apr_pool_t pool, string tag) { - freeswitchPINVOKE.switch_core_memory_pool_tag(SWIGTYPE_p_apr_pool_t.getCPtr(pool), tag); - } - - public static switch_status_t switch_core_perform_new_memory_pool(SWIGTYPE_p_p_apr_pool_t pool, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_perform_new_memory_pool(SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), file, func, line); - return ret; - } - - public static int switch_core_session_sync_clock() { - int ret = freeswitchPINVOKE.switch_core_session_sync_clock(); - return ret; - } - - public static switch_status_t switch_core_perform_destroy_memory_pool(SWIGTYPE_p_p_apr_pool_t pool, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_perform_destroy_memory_pool(SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), file, func, line); - return ret; - } - - public static void switch_core_memory_pool_set_data(SWIGTYPE_p_apr_pool_t pool, string key, SWIGTYPE_p_void data) { - freeswitchPINVOKE.switch_core_memory_pool_set_data(SWIGTYPE_p_apr_pool_t.getCPtr(pool), key, SWIGTYPE_p_void.getCPtr(data)); - } - - public static SWIGTYPE_p_void switch_core_memory_pool_get_data(SWIGTYPE_p_apr_pool_t pool, string key) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_memory_pool_get_data(SWIGTYPE_p_apr_pool_t.getCPtr(pool), key); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static void switch_core_session_run(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_run(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static uint switch_core_session_running(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_session_running(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static uint switch_core_session_started(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_session_started(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static SWIGTYPE_p_void switch_core_perform_permanent_alloc(SWIGTYPE_p_switch_size_t memory, string file, string func, int line) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_perform_permanent_alloc(SWIGTYPE_p_switch_size_t.getCPtr(memory), file, func, line); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_void switch_core_perform_alloc(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_switch_size_t memory, string file, string func, int line) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_perform_alloc(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_switch_size_t.getCPtr(memory), file, func, line); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_void switch_core_perform_session_alloc(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_size_t memory, string file, string func, int line) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_perform_session_alloc(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_size_t.getCPtr(memory), file, func, line); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_core_perform_permanent_strdup(string todup, string file, string func, int line) { - string ret = freeswitchPINVOKE.switch_core_perform_permanent_strdup(todup, file, func, line); - return ret; - } - - public static string switch_core_perform_session_strdup(SWIGTYPE_p_switch_core_session session, string todup, string file, string func, int line) { - string ret = freeswitchPINVOKE.switch_core_perform_session_strdup(SWIGTYPE_p_switch_core_session.getCPtr(session), todup, file, func, line); - return ret; - } - - public static string switch_core_perform_strdup(SWIGTYPE_p_apr_pool_t pool, string todup, string file, string func, int line) { - string ret = freeswitchPINVOKE.switch_core_perform_strdup(SWIGTYPE_p_apr_pool_t.getCPtr(pool), todup, file, func, line); - return ret; - } - - public static string switch_core_session_sprintf(SWIGTYPE_p_switch_core_session session, string fmt) { - string ret = freeswitchPINVOKE.switch_core_session_sprintf(SWIGTYPE_p_switch_core_session.getCPtr(session), fmt); - return ret; - } - - public static string switch_core_sprintf(SWIGTYPE_p_apr_pool_t pool, string fmt) { - string ret = freeswitchPINVOKE.switch_core_sprintf(SWIGTYPE_p_apr_pool_t.getCPtr(pool), fmt); - return ret; - } - - public static SWIGTYPE_p_apr_pool_t switch_core_session_get_pool(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_pool(SWIGTYPE_p_switch_core_session.getCPtr(session)); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_switch_core_session switch_core_session_request_xml(switch_endpoint_interface endpoint_interface, SWIGTYPE_p_p_apr_pool_t pool, switch_xml xml) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_xml(switch_endpoint_interface.getCPtr(endpoint_interface), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), switch_xml.getCPtr(xml)); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_switch_core_session switch_core_session_request_uuid(switch_endpoint_interface endpoint_interface, switch_call_direction_t direction, uint originate_flags, SWIGTYPE_p_p_apr_pool_t pool, string use_uuid) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_uuid(switch_endpoint_interface.getCPtr(endpoint_interface), (int)direction, originate_flags, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), use_uuid); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_set_uuid(SWIGTYPE_p_switch_core_session session, string use_uuid) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_uuid(SWIGTYPE_p_switch_core_session.getCPtr(session), use_uuid); - return ret; - } - - public static void switch_core_session_perform_destroy(SWIGTYPE_p_p_switch_core_session session, string file, string func, int line) { - freeswitchPINVOKE.switch_core_session_perform_destroy(SWIGTYPE_p_p_switch_core_session.getCPtr(session), file, func, line); - } - - public static void switch_core_session_destroy_state(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_destroy_state(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_reporting_state(SWIGTYPE_p_switch_core_session session) { - 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, switch_bool_t force) { - freeswitchPINVOKE.switch_core_session_hangup_state(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)force); - } - - public static uint switch_core_session_count() { - uint ret = freeswitchPINVOKE.switch_core_session_count(); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_core_session_get_id(SWIGTYPE_p_switch_core_session session) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_get_id(SWIGTYPE_p_switch_core_session.getCPtr(session)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_core_session_id() { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_id(), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_core_session_id_dec() { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_id_dec(), true); - return ret; - } - - public static SWIGTYPE_p_switch_core_session switch_core_session_request_by_name(string endpoint_name, switch_call_direction_t direction, SWIGTYPE_p_p_apr_pool_t pool) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_by_name(endpoint_name, (int)direction, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool)); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_thread_launch(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_thread_launch(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_thread_pool_launch_thread(SWIGTYPE_p_p_switch_thread_data_s tdp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_thread_pool_launch_thread(SWIGTYPE_p_p_switch_thread_data_s.getCPtr(tdp)); - return ret; - } - - public static switch_status_t switch_core_session_thread_pool_launch(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_thread_pool_launch(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static SWIGTYPE_p_switch_channel switch_core_session_get_channel(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_channel(SWIGTYPE_p_switch_core_session.getCPtr(session)); - SWIGTYPE_p_switch_channel ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_channel(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_switch_mutex_t switch_core_session_get_mutex(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_mutex(SWIGTYPE_p_switch_core_session.getCPtr(session)); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static void switch_core_session_signal_state_change(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_signal_state_change(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static string switch_core_session_get_uuid(SWIGTYPE_p_switch_core_session session) { - string ret = freeswitchPINVOKE.switch_core_session_get_uuid(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_set_loglevel(SWIGTYPE_p_switch_core_session session, switch_log_level_t loglevel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_loglevel(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)loglevel); - return ret; - } - - public static switch_log_level_t switch_core_session_get_loglevel(SWIGTYPE_p_switch_core_session session) { - switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_core_session_get_loglevel(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static SWIGTYPE_p_stfu_instance_t switch_core_session_get_jb(SWIGTYPE_p_switch_core_session session, switch_media_type_t type) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_jb(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)type); - SWIGTYPE_p_stfu_instance_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_stfu_instance_t(cPtr, false); - return ret; - } - - public static void switch_core_session_soft_lock(SWIGTYPE_p_switch_core_session session, uint sec) { - freeswitchPINVOKE.switch_core_session_soft_lock(SWIGTYPE_p_switch_core_session.getCPtr(session), sec); - } - - public static void switch_core_session_soft_unlock(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_soft_unlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_ivr_dmachine dmachine, switch_digit_action_target_t target) { - freeswitchPINVOKE.switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target); - } - - public static SWIGTYPE_p_switch_ivr_dmachine switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session session, switch_digit_action_target_t target) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)target); - SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); - return ret; - } - - public static switch_digit_action_target_t switch_ivr_dmachine_get_target(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - switch_digit_action_target_t ret = (switch_digit_action_target_t)freeswitchPINVOKE.switch_ivr_dmachine_get_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - return ret; - } - - public static void switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine dmachine, switch_digit_action_target_t target) { - freeswitchPINVOKE.switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target); - } - - public static switch_status_t switch_ivr_dmachine_set_terminators(SWIGTYPE_p_switch_ivr_dmachine dmachine, string terminators) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_set_terminators(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), terminators); - return ret; - } - - public static switch_status_t switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session session, switch_slin_data data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_slin_data.getCPtr(data)); - return ret; - } - - public static string switch_core_get_uuid() { - string ret = freeswitchPINVOKE.switch_core_get_uuid(); - return ret; - } - - public static SWIGTYPE_p_switch_core_session switch_core_session_perform_locate(string uuid_str, string file, string func, int line) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_perform_locate(uuid_str, file, func, line); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_switch_core_session switch_core_session_perform_force_locate(string uuid_str, string file, string func, int line) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_perform_force_locate(uuid_str, file, func, line); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static string switch_core_get_variable(string varname) { - string ret = freeswitchPINVOKE.switch_core_get_variable(varname); - return ret; - } - - public static string switch_core_get_variable_dup(string varname) { - string ret = freeswitchPINVOKE.switch_core_get_variable_dup(varname); - return ret; - } - - public static string switch_core_get_variable_pdup(string varname, SWIGTYPE_p_apr_pool_t pool) { - string ret = freeswitchPINVOKE.switch_core_get_variable_pdup(varname, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static string switch_core_get_hostname() { - string ret = freeswitchPINVOKE.switch_core_get_hostname(); - return ret; - } - - public static string switch_core_get_switchname() { - string ret = freeswitchPINVOKE.switch_core_get_switchname(); - return ret; - } - - public static string switch_core_get_domain(switch_bool_t dup) { - string ret = freeswitchPINVOKE.switch_core_get_domain((int)dup); - return ret; - } - - public static void switch_core_set_variable(string varname, string value) { - freeswitchPINVOKE.switch_core_set_variable(varname, value); - } - - public static switch_status_t switch_core_get_variables(SWIGTYPE_p_p_switch_event arg0) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_get_variables(SWIGTYPE_p_p_switch_event.getCPtr(arg0)); - return ret; - } - - public static switch_bool_t switch_core_set_var_conditional(string varname, string value, string val2) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_set_var_conditional(varname, value, val2); - return ret; - } - - public static void switch_core_dump_variables(switch_stream_handle stream) { - freeswitchPINVOKE.switch_core_dump_variables(switch_stream_handle.getCPtr(stream)); - } - - public static void switch_core_session_hupall(switch_call_cause_t cause) { - freeswitchPINVOKE.switch_core_session_hupall((int)cause); - } - - public static uint switch_core_session_hupall_matching_var_ans(string var_name, string var_val, switch_call_cause_t cause, switch_hup_type_t type) { - uint ret = freeswitchPINVOKE.switch_core_session_hupall_matching_var_ans(var_name, var_val, (int)cause, (int)type); - return ret; - } - - public static switch_console_callback_match switch_core_session_findall_matching_var(string var_name, string var_val) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_findall_matching_var(var_name, var_val); - switch_console_callback_match ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match(cPtr, false); - return ret; - } - - public static switch_console_callback_match switch_core_session_findall() { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_findall(); - switch_console_callback_match ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match(cPtr, false); - return ret; - } - - public static void switch_core_session_hupall_endpoint(switch_endpoint_interface endpoint_interface, switch_call_cause_t cause) { - freeswitchPINVOKE.switch_core_session_hupall_endpoint(switch_endpoint_interface.getCPtr(endpoint_interface), (int)cause); - } - - public static switch_status_t switch_core_session_perform_get_partner(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session partner, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_perform_get_partner(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(partner), file, func, line); - return ret; - } - - public static switch_status_t switch_core_session_message_send(string uuid_str, switch_core_session_message message) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_message_send(uuid_str, switch_core_session_message.getCPtr(message)); - return ret; - } - - public static switch_status_t switch_core_session_queue_message(SWIGTYPE_p_switch_core_session session, switch_core_session_message message) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_message(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message)); - return ret; - } - - public static void switch_core_session_free_message(SWIGTYPE_p_p_switch_core_session_message message) { - freeswitchPINVOKE.switch_core_session_free_message(SWIGTYPE_p_p_switch_core_session_message.getCPtr(message)); - } - - public static switch_status_t switch_core_session_queue_signal_data(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void signal_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(signal_data)); - return ret; - } - - public static switch_status_t switch_core_session_dequeue_signal_data(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_void signal_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_void.getCPtr(signal_data)); - return ret; - } - - public static switch_status_t switch_core_session_pass_indication(SWIGTYPE_p_switch_core_session session, switch_core_session_message_types_t indication) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_pass_indication(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)indication); - return ret; - } - - public static switch_status_t switch_core_session_queue_indication(SWIGTYPE_p_switch_core_session session, switch_core_session_message_types_t indication) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_indication(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)indication); - return ret; - } - - public static switch_status_t switch_core_session_dequeue_message(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session_message message) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_message(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session_message.getCPtr(message)); - return ret; - } - - public static switch_status_t switch_core_session_flush_message(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_flush_message(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_event_send(string uuid_str, SWIGTYPE_p_p_switch_event arg1) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_event_send(uuid_str, SWIGTYPE_p_p_switch_event.getCPtr(arg1)); - return ret; - } - - public static switch_app_log switch_core_session_get_app_log(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_app_log(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_app_log ret = (cPtr == IntPtr.Zero) ? null : new switch_app_log(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_exec(SWIGTYPE_p_switch_core_session session, switch_application_interface application_interface, string arg) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_exec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_application_interface.getCPtr(application_interface), arg); - return ret; - } - - public static void switch_core_session_video_reset(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_video_reset(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static switch_status_t switch_core_session_execute_application_get_flags(SWIGTYPE_p_switch_core_session session, string app, string arg, SWIGTYPE_p_int flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_application_get_flags(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg, SWIGTYPE_p_int.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_session_execute_application_async(SWIGTYPE_p_switch_core_session session, string app, string arg) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_application_async(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg); - return ret; - } - - public static switch_status_t switch_core_session_get_app_flags(string app, SWIGTYPE_p_int flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_app_flags(app, SWIGTYPE_p_int.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_session_execute_exten(SWIGTYPE_p_switch_core_session session, string exten, string dialplan, string context) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_exten(SWIGTYPE_p_switch_core_session.getCPtr(session), exten, dialplan, context); - return ret; - } - - public static switch_status_t switch_core_session_receive_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_receive_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); - return ret; - } - - public static SWIGTYPE_p_void switch_core_session_get_private_class(SWIGTYPE_p_switch_core_session session, switch_pvt_class_t index) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_private_class(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)index); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_set_private_class(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void private_info, switch_pvt_class_t index) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_private_class(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(private_info), (int)index); - return ret; - } - - public static int switch_core_session_add_stream(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void private_info) { - int ret = freeswitchPINVOKE.switch_core_session_add_stream(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(private_info)); - return ret; - } - - public static SWIGTYPE_p_void switch_core_session_get_stream(SWIGTYPE_p_switch_core_session session, int index) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_stream(SWIGTYPE_p_switch_core_session.getCPtr(session), index); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static int switch_core_session_get_stream_count(SWIGTYPE_p_switch_core_session session) { - int ret = freeswitchPINVOKE.switch_core_session_get_stream_count(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static void switch_core_session_launch_thread(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void func, SWIGTYPE_p_void obj) { - freeswitchPINVOKE.switch_core_session_launch_thread(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void.getCPtr(func), SWIGTYPE_p_void.getCPtr(obj)); - } - - public static void switch_core_thread_session_end(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_thread_session_end(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_service_session_av(SWIGTYPE_p_switch_core_session session, switch_bool_t audio, switch_bool_t video) { - freeswitchPINVOKE.switch_core_service_session_av(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)audio, (int)video); - } - - public static switch_call_cause_t switch_core_session_outgoing_channel(SWIGTYPE_p_switch_core_session session, switch_event var_event, string endpoint_name, switch_caller_profile caller_profile, SWIGTYPE_p_p_switch_core_session new_session, SWIGTYPE_p_p_apr_pool_t pool, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) { - switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_core_session_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_event.getCPtr(var_event), endpoint_name, switch_caller_profile.getCPtr(caller_profile), SWIGTYPE_p_p_switch_core_session.getCPtr(new_session), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause)); - return ret; - } - - public static switch_status_t switch_core_session_perform_receive_message(SWIGTYPE_p_switch_core_session session, switch_core_session_message message, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_perform_receive_message(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message), file, func, line); - return ret; - } - - public static switch_status_t switch_core_session_queue_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); - return ret; - } - - public static uint switch_core_session_event_count(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_session_event_count(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static uint switch_core_session_messages_waiting(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_session_messages_waiting(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_dequeue_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1, switch_bool_t force) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1), (int)force); - return ret; - } - - public static switch_status_t switch_core_session_queue_private_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1, switch_bool_t priority) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_private_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1), (int)priority); - return ret; - } - - public static uint switch_core_session_private_event_count(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_session_private_event_count(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_dequeue_private_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_private_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); - return ret; - } - - public static uint switch_core_session_flush_private_events(SWIGTYPE_p_switch_core_session session) { - uint ret = freeswitchPINVOKE.switch_core_session_flush_private_events(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_core_session_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_frame.getCPtr(frame), flags, stream_id); - return ret; - } - - public static switch_status_t switch_core_session_read_video_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_video_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_frame.getCPtr(frame), flags, stream_id); - return ret; - } - - public static switch_status_t switch_core_session_write_video_frame(SWIGTYPE_p_switch_core_session session, switch_frame frame, uint flags, int stream_id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_write_video_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_frame.getCPtr(frame), flags, stream_id); - return ret; - } - - public static switch_status_t switch_core_session_set_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_set_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_set_video_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_set_video_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static void switch_core_session_reset(SWIGTYPE_p_switch_core_session session, switch_bool_t flush_dtmf, switch_bool_t reset_read_codec) { - freeswitchPINVOKE.switch_core_session_reset(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)flush_dtmf, (int)reset_read_codec); - } - - public static switch_status_t switch_core_session_write_frame(SWIGTYPE_p_switch_core_session session, switch_frame frame, uint flags, int stream_id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_frame.getCPtr(frame), flags, stream_id); - return ret; - } - - public static switch_status_t switch_core_session_perform_kill_channel(SWIGTYPE_p_switch_core_session session, string file, string func, int line, switch_signal_t sig) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_perform_kill_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), file, func, line, (int)sig); - return ret; - } - - public static switch_status_t switch_core_session_send_dtmf(SWIGTYPE_p_switch_core_session session, switch_dtmf_t dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_send_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_dtmf_t.getCPtr(dtmf)); - return ret; - } - - public static switch_status_t switch_core_session_send_dtmf_string(SWIGTYPE_p_switch_core_session session, string dtmf_string) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_send_dtmf_string(SWIGTYPE_p_switch_core_session.getCPtr(session), dtmf_string); - return ret; - } - - public static switch_status_t switch_core_session_recv_dtmf(SWIGTYPE_p_switch_core_session session, switch_dtmf_t dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_recv_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_dtmf_t.getCPtr(dtmf)); - return ret; - } - - public static switch_status_t switch_core_hash_init_case(SWIGTYPE_p_p_switch_hashtable hash, switch_bool_t case_sensitive) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_init_case(SWIGTYPE_p_p_switch_hashtable.getCPtr(hash), (int)case_sensitive); - return ret; - } - - public static switch_status_t switch_core_hash_destroy(SWIGTYPE_p_p_switch_hashtable hash) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_destroy(SWIGTYPE_p_p_switch_hashtable.getCPtr(hash)); - return ret; - } - - public static switch_status_t switch_core_hash_insert_destructor(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_void data, SWIGTYPE_p_f_p_void__void destructor) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_insert_destructor(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_f_p_void__void.getCPtr(destructor)); - return ret; - } - - public static switch_status_t switch_core_hash_insert_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_void data, SWIGTYPE_p_switch_mutex_t mutex) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_insert_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); - return ret; - } - - public static switch_status_t switch_core_hash_insert_wrlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_void data, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_insert_wrlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); - return ret; - } - - public static switch_status_t switch_core_hash_delete(SWIGTYPE_p_switch_hashtable hash, string key) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); - return ret; - } - - public static switch_status_t switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_mutex_t mutex) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); - return ret; - } - - public static switch_status_t switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); - return ret; - } - - public static switch_status_t switch_core_hash_delete_multi(SWIGTYPE_p_switch_hashtable hash, SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t callback, SWIGTYPE_p_void pData) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_multi(SWIGTYPE_p_switch_hashtable.getCPtr(hash), SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pData)); - return ret; - } - - public static SWIGTYPE_p_void switch_core_hash_find(SWIGTYPE_p_switch_hashtable hash, string key) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_void switch_core_hash_find_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_mutex_t mutex) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_void switch_core_hash_find_rdlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find_rdlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_first_iter(SWIGTYPE_p_switch_hashtable hash, SWIGTYPE_p_switch_hashtable_iterator hi) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_first_iter(SWIGTYPE_p_switch_hashtable.getCPtr(hash), SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi)); - SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); - return ret; - } - - public static switch_bool_t switch_core_hash_empty(SWIGTYPE_p_switch_hashtable hash) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_hash_empty(SWIGTYPE_p_switch_hashtable.getCPtr(hash)); - return ret; - } - - public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_next(SWIGTYPE_p_p_switch_hashtable_iterator hi) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_next(SWIGTYPE_p_p_switch_hashtable_iterator.getCPtr(hi)); - SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); - return ret; - } - - public static void switch_core_hash_this(SWIGTYPE_p_switch_hashtable_iterator hi, SWIGTYPE_p_p_void key, SWIGTYPE_p_switch_ssize_t klen, SWIGTYPE_p_p_void val) { - freeswitchPINVOKE.switch_core_hash_this(SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi), SWIGTYPE_p_p_void.getCPtr(key), SWIGTYPE_p_switch_ssize_t.getCPtr(klen), SWIGTYPE_p_p_void.getCPtr(val)); - } - - public static switch_status_t switch_core_timer_init(switch_timer timer, string timer_name, int interval, int samples, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_init(switch_timer.getCPtr(timer), timer_name, interval, samples, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static void switch_time_calibrate_clock() { - freeswitchPINVOKE.switch_time_calibrate_clock(); - } - - public static switch_status_t switch_core_timer_next(switch_timer timer) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_next(switch_timer.getCPtr(timer)); - return ret; - } - - public static switch_status_t switch_core_timer_step(switch_timer timer) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_step(switch_timer.getCPtr(timer)); - return ret; - } - - public static switch_status_t switch_core_timer_sync(switch_timer timer) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_sync(switch_timer.getCPtr(timer)); - return ret; - } - - public static switch_status_t switch_core_timer_check(switch_timer timer, switch_bool_t step) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_check(switch_timer.getCPtr(timer), (int)step); - return ret; - } - - public static switch_status_t switch_core_timer_destroy(switch_timer timer) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_destroy(switch_timer.getCPtr(timer)); - return ret; - } - - public static switch_status_t switch_core_codec_init_with_bitrate(switch_codec codec, string codec_name, string fmtp, uint rate, int ms, int channels, uint bitrate, uint flags, switch_codec_settings codec_settings, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_init_with_bitrate(switch_codec.getCPtr(codec), codec_name, fmtp, rate, ms, channels, bitrate, flags, switch_codec_settings.getCPtr(codec_settings), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_core_codec_copy(switch_codec codec, switch_codec new_codec, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_copy(switch_codec.getCPtr(codec), switch_codec.getCPtr(new_codec), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_core_codec_parse_fmtp(string codec_name, string fmtp, uint rate, switch_codec_fmtp codec_fmtp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_parse_fmtp(codec_name, fmtp, rate, switch_codec_fmtp.getCPtr(codec_fmtp)); - return ret; - } - - public static switch_status_t switch_core_codec_reset(switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_reset(switch_codec.getCPtr(codec)); - return ret; - } - - public static switch_status_t switch_core_codec_encode(switch_codec codec, switch_codec other_codec, SWIGTYPE_p_void decoded_data, uint decoded_data_len, uint decoded_rate, SWIGTYPE_p_void encoded_data, SWIGTYPE_p_unsigned_long encoded_data_len, SWIGTYPE_p_unsigned_long encoded_rate, SWIGTYPE_p_unsigned_int flag) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_encode(switch_codec.getCPtr(codec), switch_codec.getCPtr(other_codec), SWIGTYPE_p_void.getCPtr(decoded_data), decoded_data_len, decoded_rate, SWIGTYPE_p_void.getCPtr(encoded_data), SWIGTYPE_p_unsigned_long.getCPtr(encoded_data_len), SWIGTYPE_p_unsigned_long.getCPtr(encoded_rate), SWIGTYPE_p_unsigned_int.getCPtr(flag)); - return ret; - } - - public static switch_status_t switch_core_codec_decode(switch_codec codec, switch_codec other_codec, SWIGTYPE_p_void encoded_data, uint encoded_data_len, uint encoded_rate, SWIGTYPE_p_void decoded_data, SWIGTYPE_p_unsigned_long decoded_data_len, SWIGTYPE_p_unsigned_long decoded_rate, SWIGTYPE_p_unsigned_int flag) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_decode(switch_codec.getCPtr(codec), switch_codec.getCPtr(other_codec), SWIGTYPE_p_void.getCPtr(encoded_data), encoded_data_len, encoded_rate, SWIGTYPE_p_void.getCPtr(decoded_data), SWIGTYPE_p_unsigned_long.getCPtr(decoded_data_len), SWIGTYPE_p_unsigned_long.getCPtr(decoded_rate), SWIGTYPE_p_unsigned_int.getCPtr(flag)); - return ret; - } - - public static switch_status_t switch_core_codec_destroy(switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_destroy(switch_codec.getCPtr(codec)); - return ret; - } - - public static switch_status_t switch_core_session_set_read_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); - return ret; - } - - public static switch_status_t switch_core_session_set_real_read_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_real_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); - return ret; - } - - public static void switch_core_session_unset_read_codec(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_unset_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_unset_write_codec(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_unset_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_lock_codec_write(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_lock_codec_write(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_unlock_codec_write(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_unlock_codec_write(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_lock_codec_read(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_lock_codec_read(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_session_unlock_codec_read(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_session_unlock_codec_read(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static switch_status_t switch_core_session_get_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_get_real_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_real_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_get_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_get_video_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_video_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_status_t switch_core_session_get_video_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_video_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); - return ret; - } - - public static switch_codec switch_core_session_get_read_codec(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - - public static switch_codec switch_core_session_get_effective_read_codec(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_effective_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_set_write_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); - return ret; - } - - public static switch_codec switch_core_session_get_write_codec(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - - public static switch_codec switch_core_session_get_effective_write_codec(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_effective_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_set_video_read_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); - return ret; - } - - public static switch_codec switch_core_session_get_video_read_codec(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_video_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_session_set_video_write_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); - return ret; - } - - public static switch_codec switch_core_session_get_video_write_codec(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_video_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_sqlite3 switch_core_db_open_file(string filename) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_db_open_file(filename); - SWIGTYPE_p_sqlite3 ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_sqlite3(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_db_persistant_execute(SWIGTYPE_p_sqlite3 db, string sql, uint retries) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_db_persistant_execute(SWIGTYPE_p_sqlite3.getCPtr(db), sql, retries); - return ret; - } - - public static switch_status_t switch_core_db_persistant_execute_trans(SWIGTYPE_p_sqlite3 db, string sql, uint retries) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_db_persistant_execute_trans(SWIGTYPE_p_sqlite3.getCPtr(db), sql, retries); - return ret; - } - - public static void switch_core_db_test_reactive(SWIGTYPE_p_sqlite3 db, string test_sql, string drop_sql, string reactive_sql) { - freeswitchPINVOKE.switch_core_db_test_reactive(SWIGTYPE_p_sqlite3.getCPtr(db), test_sql, drop_sql, reactive_sql); - } - - public static switch_status_t switch_core_perform_file_open(string file, string func, int line, switch_file_handle fh, string file_path, uint channels, uint rate, uint flags, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_perform_file_open(file, func, line, switch_file_handle.getCPtr(fh), file_path, channels, rate, flags, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_core_file_read(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_read(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); - return ret; - } - - public static switch_status_t switch_core_file_write(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_write(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); - return ret; - } - - public static switch_status_t switch_core_file_write_video(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_write_video(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); - return ret; - } - - public static switch_status_t switch_core_file_seek(switch_file_handle fh, SWIGTYPE_p_unsigned_int cur_pos, long samples, int whence) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_seek(switch_file_handle.getCPtr(fh), SWIGTYPE_p_unsigned_int.getCPtr(cur_pos), samples, whence); - return ret; - } - - public static switch_status_t switch_core_file_set_string(switch_file_handle fh, switch_audio_col_t col, string arg2) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_set_string(switch_file_handle.getCPtr(fh), (int)col, arg2); - return ret; - } - - public static switch_status_t switch_core_file_get_string(switch_file_handle fh, switch_audio_col_t col, ref string arg2) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_get_string(switch_file_handle.getCPtr(fh), (int)col, ref arg2); - return ret; - } - - public static switch_status_t switch_core_file_close(switch_file_handle fh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_close(switch_file_handle.getCPtr(fh)); - return ret; - } - - public static switch_status_t switch_core_file_truncate(switch_file_handle fh, long offset) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_truncate(switch_file_handle.getCPtr(fh), offset); - return ret; - } - - public static switch_status_t switch_core_speech_open(switch_speech_handle sh, string module_name, string voice_name, uint rate, uint interval, uint channels, SWIGTYPE_p_unsigned_long flags, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_open(switch_speech_handle.getCPtr(sh), module_name, voice_name, rate, interval, channels, SWIGTYPE_p_unsigned_long.getCPtr(flags), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_core_speech_feed_tts(switch_speech_handle sh, string text, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_feed_tts(switch_speech_handle.getCPtr(sh), text, SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static void switch_core_speech_flush_tts(switch_speech_handle sh) { - freeswitchPINVOKE.switch_core_speech_flush_tts(switch_speech_handle.getCPtr(sh)); - } - - public static void switch_core_speech_text_param_tts(switch_speech_handle sh, string param, string val) { - freeswitchPINVOKE.switch_core_speech_text_param_tts(switch_speech_handle.getCPtr(sh), param, val); - } - - public static void switch_core_speech_numeric_param_tts(switch_speech_handle sh, string param, int val) { - freeswitchPINVOKE.switch_core_speech_numeric_param_tts(switch_speech_handle.getCPtr(sh), param, val); - } - - public static void switch_core_speech_float_param_tts(switch_speech_handle sh, string param, double val) { - freeswitchPINVOKE.switch_core_speech_float_param_tts(switch_speech_handle.getCPtr(sh), param, val); - } - - public static switch_status_t switch_core_speech_read_tts(switch_speech_handle sh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_read_tts(switch_speech_handle.getCPtr(sh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen), SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_speech_close(switch_speech_handle sh, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_close(switch_speech_handle.getCPtr(sh), SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_open(switch_asr_handle ah, string module_name, string codec, int rate, string dest, SWIGTYPE_p_unsigned_long flags, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_open(switch_asr_handle.getCPtr(ah), module_name, codec, rate, dest, SWIGTYPE_p_unsigned_long.getCPtr(flags), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_core_asr_close(switch_asr_handle ah, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_close(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_feed(switch_asr_handle ah, SWIGTYPE_p_void data, uint len, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_feed(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_void.getCPtr(data), len, SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_feed_dtmf(switch_asr_handle ah, switch_dtmf_t dtmf, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_feed_dtmf(switch_asr_handle.getCPtr(ah), switch_dtmf_t.getCPtr(dtmf), SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_check_results(switch_asr_handle ah, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_check_results(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_get_results(switch_asr_handle ah, ref string xmlstr, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_get_results(switch_asr_handle.getCPtr(ah), ref xmlstr, SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_get_result_headers(switch_asr_handle ah, SWIGTYPE_p_p_switch_event headers, SWIGTYPE_p_unsigned_long flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_get_result_headers(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_p_switch_event.getCPtr(headers), SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static switch_status_t switch_core_asr_load_grammar(switch_asr_handle ah, string grammar, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_load_grammar(switch_asr_handle.getCPtr(ah), grammar, name); - return ret; - } - - public static switch_status_t switch_core_asr_unload_grammar(switch_asr_handle ah, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_unload_grammar(switch_asr_handle.getCPtr(ah), name); - return ret; - } - - public static switch_status_t switch_core_asr_enable_grammar(switch_asr_handle ah, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_enable_grammar(switch_asr_handle.getCPtr(ah), name); - return ret; - } - - public static switch_status_t switch_core_asr_disable_grammar(switch_asr_handle ah, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_disable_grammar(switch_asr_handle.getCPtr(ah), name); - return ret; - } - - public static switch_status_t switch_core_asr_disable_all_grammars(switch_asr_handle ah) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_disable_all_grammars(switch_asr_handle.getCPtr(ah)); - return ret; - } - - public static switch_status_t switch_core_asr_pause(switch_asr_handle ah) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_pause(switch_asr_handle.getCPtr(ah)); - return ret; - } - - public static switch_status_t switch_core_asr_resume(switch_asr_handle ah) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_resume(switch_asr_handle.getCPtr(ah)); - return ret; - } - - public static switch_status_t switch_core_asr_start_input_timers(switch_asr_handle ah) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_start_input_timers(switch_asr_handle.getCPtr(ah)); - return ret; - } - - public static void switch_core_asr_text_param(switch_asr_handle ah, string param, string val) { - freeswitchPINVOKE.switch_core_asr_text_param(switch_asr_handle.getCPtr(ah), param, val); - } - - public static void switch_core_asr_numeric_param(switch_asr_handle ah, string param, int val) { - freeswitchPINVOKE.switch_core_asr_numeric_param(switch_asr_handle.getCPtr(ah), param, val); - } - - public static void switch_core_asr_float_param(switch_asr_handle ah, string param, double val) { - freeswitchPINVOKE.switch_core_asr_float_param(switch_asr_handle.getCPtr(ah), param, val); - } - - public static switch_status_t switch_core_directory_open(switch_directory_handle dh, string module_name, string source, string dsn, string passwd, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_open(switch_directory_handle.getCPtr(dh), module_name, source, dsn, passwd, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_core_directory_query(switch_directory_handle dh, string arg1, string query) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_query(switch_directory_handle.getCPtr(dh), arg1, query); - return ret; - } - - public static switch_status_t switch_core_directory_next(switch_directory_handle dh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_next(switch_directory_handle.getCPtr(dh)); - return ret; - } - - public static switch_status_t switch_core_directory_next_pair(switch_directory_handle dh, ref string var, ref string val) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_next_pair(switch_directory_handle.getCPtr(dh), ref var, ref val); - return ret; - } - - public static switch_status_t switch_core_directory_close(switch_directory_handle dh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_close(switch_directory_handle.getCPtr(dh)); - return ret; - } - - public static SWIGTYPE_p_FILE switch_core_data_channel(switch_text_channel_t channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_data_channel((int)channel); - SWIGTYPE_p_FILE ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_FILE(cPtr, false); - return ret; - } - - public static switch_bool_t switch_core_ready() { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready(); - return ret; - } - - public static switch_bool_t switch_core_running() { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_running(); - return ret; - } - - public static switch_bool_t switch_core_ready_inbound() { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready_inbound(); - return ret; - } - - public static switch_bool_t switch_core_ready_outbound() { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready_outbound(); - return ret; - } - - public static uint switch_core_flags() { - uint ret = freeswitchPINVOKE.switch_core_flags(); - return ret; - } - - public static switch_status_t switch_core_management_exec(string relative_oid, switch_management_action_t action, string data, SWIGTYPE_p_switch_size_t datalen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_management_exec(relative_oid, (int)action, data, SWIGTYPE_p_switch_size_t.getCPtr(datalen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static int set_normal_priority() { - int ret = freeswitchPINVOKE.set_normal_priority(); - return ret; - } - - public static int set_auto_priority() { - int ret = freeswitchPINVOKE.set_auto_priority(); - return ret; - } - - public static int set_realtime_priority() { - int ret = freeswitchPINVOKE.set_realtime_priority(); - return ret; - } - - public static int set_low_priority() { - int ret = freeswitchPINVOKE.set_low_priority(); - return ret; - } - - public static int change_user_group(string user, string group) { - int ret = freeswitchPINVOKE.change_user_group(user, group); - return ret; - } - - public static void switch_core_runtime_loop(int bg) { - freeswitchPINVOKE.switch_core_runtime_loop(bg); - } - - public static switch_status_t switch_core_set_console(string console) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_set_console(console); - return ret; - } - - public static void switch_core_measure_time(SWIGTYPE_p_switch_time_t total_ms, switch_core_time_duration duration) { - freeswitchPINVOKE.switch_core_measure_time(SWIGTYPE_p_switch_time_t.getCPtr(total_ms), switch_core_time_duration.getCPtr(duration)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - - public static SWIGTYPE_p_switch_time_t switch_core_uptime() { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_core_uptime(), true); - return ret; - } - - public static int switch_core_session_ctl(switch_session_ctl_t cmd, SWIGTYPE_p_void val) { - int ret = freeswitchPINVOKE.switch_core_session_ctl((int)cmd, SWIGTYPE_p_void.getCPtr(val)); - return ret; - } - - public static SWIGTYPE_p_FILE switch_core_get_console() { - IntPtr cPtr = freeswitchPINVOKE.switch_core_get_console(); - SWIGTYPE_p_FILE ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_FILE(cPtr, false); - return ret; - } - - public static void switch_core_set_globals() { - freeswitchPINVOKE.switch_core_set_globals(); - } - - public static byte switch_core_session_compare(SWIGTYPE_p_switch_core_session a, SWIGTYPE_p_switch_core_session b) { - byte ret = freeswitchPINVOKE.switch_core_session_compare(SWIGTYPE_p_switch_core_session.getCPtr(a), SWIGTYPE_p_switch_core_session.getCPtr(b)); - return ret; - } - - public static byte switch_core_session_check_interface(SWIGTYPE_p_switch_core_session session, switch_endpoint_interface endpoint_interface) { - byte ret = freeswitchPINVOKE.switch_core_session_check_interface(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_endpoint_interface.getCPtr(endpoint_interface)); - return ret; - } - - public static SWIGTYPE_p_switch_hashtable_iterator switch_core_mime_index() { - IntPtr cPtr = freeswitchPINVOKE.switch_core_mime_index(); - SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); - return ret; - } - - public static string switch_core_mime_ext2type(string ext) { - string ret = freeswitchPINVOKE.switch_core_mime_ext2type(ext); - return ret; - } - - public static switch_status_t switch_core_mime_add_type(string type, string ext) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_mime_add_type(type, ext); - return ret; - } - - public static switch_loadable_module_interface switch_loadable_module_create_module_interface(SWIGTYPE_p_apr_pool_t pool, string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_create_module_interface(SWIGTYPE_p_apr_pool_t.getCPtr(pool), name); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_void switch_loadable_module_create_interface(switch_loadable_module_interface mod, switch_module_interface_name_t iname) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_create_interface(switch_loadable_module_interface.getCPtr(mod), (int)iname); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_switch_time_t switch_micro_time_now() { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_micro_time_now(), true); - return ret; - } - - public static SWIGTYPE_p_switch_time_t switch_mono_micro_time_now() { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_mono_micro_time_now(), true); - return ret; - } - - public static void switch_core_memory_reclaim() { - freeswitchPINVOKE.switch_core_memory_reclaim(); - } - - public static void switch_core_memory_reclaim_events() { - freeswitchPINVOKE.switch_core_memory_reclaim_events(); - } - - public static void switch_core_memory_reclaim_logger() { - freeswitchPINVOKE.switch_core_memory_reclaim_logger(); - } - - public static void switch_core_memory_reclaim_all() { - freeswitchPINVOKE.switch_core_memory_reclaim_all(); - } - - public static void switch_core_setrlimits() { - freeswitchPINVOKE.switch_core_setrlimits(); - } - - public static SWIGTYPE_p_switch_time_t switch_time_ref() { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_time_ref(), true); - return ret; - } - - public static void switch_time_sync() { - freeswitchPINVOKE.switch_time_sync(); - } - - public static SWIGTYPE_p_time_t switch_epoch_time_now(SWIGTYPE_p_time_t t) { - SWIGTYPE_p_time_t ret = new SWIGTYPE_p_time_t(freeswitchPINVOKE.switch_epoch_time_now(SWIGTYPE_p_time_t.getCPtr(t)), true); - return ret; - } - - public static string switch_lookup_timezone(string tz_name) { - string ret = freeswitchPINVOKE.switch_lookup_timezone(tz_name); - return ret; - } - - public static switch_status_t switch_strftime_tz(string tz, string format, string date, uint len, SWIGTYPE_p_switch_time_t thetime) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_strftime_tz(tz, format, date, len, SWIGTYPE_p_switch_time_t.getCPtr(thetime)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_time_exp_tz_name(string tz, SWIGTYPE_p_switch_time_exp_t tm, SWIGTYPE_p_switch_time_t thetime) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_time_exp_tz_name(tz, SWIGTYPE_p_switch_time_exp_t.getCPtr(tm), SWIGTYPE_p_switch_time_t.getCPtr(thetime)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_load_network_lists(switch_bool_t reload) { - freeswitchPINVOKE.switch_load_network_lists((int)reload); - } - - public static switch_bool_t switch_check_network_list_ip_token(string ip_str, string list_name, ref string token) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_check_network_list_ip_token(ip_str, list_name, ref token); - return ret; - } - - public static void switch_time_set_monotonic(switch_bool_t enable) { - freeswitchPINVOKE.switch_time_set_monotonic((int)enable); - } - - public static void switch_time_set_timerfd(int enable) { - freeswitchPINVOKE.switch_time_set_timerfd(enable); - } - - public static void switch_time_set_nanosleep(switch_bool_t enable) { - freeswitchPINVOKE.switch_time_set_nanosleep((int)enable); - } - - public static void switch_time_set_matrix(switch_bool_t enable) { - freeswitchPINVOKE.switch_time_set_matrix((int)enable); - } - - public static void switch_time_set_cond_yield(switch_bool_t enable) { - freeswitchPINVOKE.switch_time_set_cond_yield((int)enable); - } - - public static void switch_time_set_use_system_time(switch_bool_t enable) { - freeswitchPINVOKE.switch_time_set_use_system_time((int)enable); - } - - public static uint switch_core_min_dtmf_duration(uint duration) { - uint ret = freeswitchPINVOKE.switch_core_min_dtmf_duration(duration); - return ret; - } - - public static uint switch_core_max_dtmf_duration(uint duration) { - uint ret = freeswitchPINVOKE.switch_core_max_dtmf_duration(duration); - return ret; - } - - public static double switch_core_min_idle_cpu(double new_limit) { - double ret = freeswitchPINVOKE.switch_core_min_idle_cpu(new_limit); - return ret; - } - - public static double switch_core_idle_cpu() { - double ret = freeswitchPINVOKE.switch_core_idle_cpu(); - return ret; - } - - public static uint switch_core_default_dtmf_duration(uint duration) { - uint ret = freeswitchPINVOKE.switch_core_default_dtmf_duration(duration); - return ret; - } - - public static switch_status_t switch_console_set_complete(string arg0) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_set_complete(arg0); - return ret; - } - - public static switch_status_t switch_console_set_alias(string arg0) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_set_alias(arg0); - return ret; - } - - public static int switch_system(string cmd, switch_bool_t wait) { - int ret = freeswitchPINVOKE.switch_system(cmd, (int)wait); - return ret; - } - - public static int switch_stream_system(string cmd, switch_stream_handle stream) { - int ret = freeswitchPINVOKE.switch_stream_system(cmd, switch_stream_handle.getCPtr(stream)); - return ret; - } - - public static void switch_cond_yield(SWIGTYPE_p_switch_interval_time_t t) { - freeswitchPINVOKE.switch_cond_yield(SWIGTYPE_p_switch_interval_time_t.getCPtr(t)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - - public static void switch_cond_next() { - freeswitchPINVOKE.switch_cond_next(); - } - - public static switch_status_t switch_core_chat_send_args(string dest_proto, string proto, string from, string to, string subject, string body, string type, string hint, switch_bool_t blocking) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_chat_send_args(dest_proto, proto, from, to, subject, body, type, hint, (int)blocking); - return ret; - } - - public static switch_status_t switch_core_chat_send(string dest_proto, switch_event message_event) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_chat_send(dest_proto, switch_event.getCPtr(message_event)); - return ret; - } - - public static switch_status_t switch_core_chat_deliver(string dest_proto, SWIGTYPE_p_p_switch_event message_event) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_chat_deliver(dest_proto, SWIGTYPE_p_p_switch_event.getCPtr(message_event)); - return ret; - } - - public static switch_status_t switch_ivr_preprocess_session(SWIGTYPE_p_switch_core_session session, string cmds) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_preprocess_session(SWIGTYPE_p_switch_core_session.getCPtr(session), cmds); - return ret; - } - - public static void switch_core_sqldb_pause() { - freeswitchPINVOKE.switch_core_sqldb_pause(); - } - - public static void switch_core_sqldb_resume() { - freeswitchPINVOKE.switch_core_sqldb_resume(); - } - - public static string switch_cache_db_type_name(switch_cache_db_handle_type_t type) { - string ret = freeswitchPINVOKE.switch_cache_db_type_name((int)type); - return ret; - } - - public static switch_cache_db_handle_type_t switch_cache_db_get_type(SWIGTYPE_p_switch_cache_db_handle dbh) { - switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_cache_db_get_type(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh)); - return ret; - } - - public static void switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh) { - freeswitchPINVOKE.switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh)); - } - - public static void switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh) { - freeswitchPINVOKE.switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh)); - } - - public static switch_status_t _switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh, switch_cache_db_handle_type_t type, switch_cache_db_connection_options_t connection_options, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), (int)type, switch_cache_db_connection_options_t.getCPtr(connection_options), file, func, line); - return ret; - } - - public static switch_status_t _switch_cache_db_get_db_handle_dsn(SWIGTYPE_p_p_switch_cache_db_handle dbh, string dsn, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_cache_db_get_db_handle_dsn(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), dsn, file, func, line); - return ret; - } - - public static string switch_cache_db_execute_sql2str(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, string str, uint len, ref string err) { - string ret = freeswitchPINVOKE.switch_cache_db_execute_sql2str(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, str, len, ref err); - return ret; - } - - public static switch_status_t switch_cache_db_execute_sql(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, ref err); - return ret; - } - - public static switch_status_t switch_cache_db_execute_sql_callback(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); - return ret; - } - - public static switch_status_t switch_cache_db_execute_sql_callback_err(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback_err(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); - return ret; - } - - public static int switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle dbh) { - int ret = freeswitchPINVOKE.switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh)); - return ret; - } - - public static int switch_cache_db_load_extension(SWIGTYPE_p_switch_cache_db_handle dbh, string extension) { - int ret = freeswitchPINVOKE.switch_cache_db_load_extension(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), extension); - return ret; - } - - public static void switch_cache_db_status(switch_stream_handle stream) { - freeswitchPINVOKE.switch_cache_db_status(switch_stream_handle.getCPtr(stream)); - } - - public static switch_status_t _switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), file, func, line); - return ret; - } - - public static switch_bool_t switch_cache_db_test_reactive(SWIGTYPE_p_switch_cache_db_handle db, string test_sql, string drop_sql, string reactive_sql) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_cache_db_test_reactive(SWIGTYPE_p_switch_cache_db_handle.getCPtr(db), test_sql, drop_sql, reactive_sql); - return ret; - } - - public static switch_status_t switch_cache_db_persistant_execute(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, uint retries) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, retries); - return ret; - } - - public static switch_status_t switch_cache_db_persistant_execute_trans_full(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, uint retries, string pre_trans_execute, string post_trans_execute, string inner_pre_trans_execute, string inner_post_trans_execute) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute_trans_full(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, retries, pre_trans_execute, post_trans_execute, inner_pre_trans_execute, inner_post_trans_execute); - return ret; - } - - public static void switch_core_set_signal_handlers() { - freeswitchPINVOKE.switch_core_set_signal_handlers(); - } - - public static uint switch_core_debug_level() { - uint ret = freeswitchPINVOKE.switch_core_debug_level(); - return ret; - } - - public static void switch_cache_db_flush_handles() { - freeswitchPINVOKE.switch_cache_db_flush_handles(); - } - - public static string switch_core_banner() { - string ret = freeswitchPINVOKE.switch_core_banner(); - return ret; - } - - public static switch_bool_t switch_core_session_in_thread(SWIGTYPE_p_switch_core_session session) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_session_in_thread(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static uint switch_default_ptime(string name, uint number) { - uint ret = freeswitchPINVOKE.switch_default_ptime(name, number); - return ret; - } - - public static uint switch_default_rate(string name, uint number) { - uint ret = freeswitchPINVOKE.switch_default_rate(name, number); - return ret; - } - - public static switch_status_t switch_core_add_registration(string user, string realm, string token, string url, uint expires, string network_ip, string network_port, string network_proto, string metadata) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_add_registration(user, realm, token, url, expires, network_ip, network_port, network_proto, metadata); - return ret; - } - - public static switch_status_t switch_core_del_registration(string user, string realm, string token) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_del_registration(user, realm, token); - return ret; - } - - public static switch_status_t switch_core_expire_registration(int force) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_expire_registration(force); - return ret; - } - - public static string switch_say_file_handle_get_variable(SWIGTYPE_p_switch_say_file_handle sh, string var) { - string ret = freeswitchPINVOKE.switch_say_file_handle_get_variable(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh), var); - return ret; - } - - public static string switch_say_file_handle_get_path(SWIGTYPE_p_switch_say_file_handle sh) { - string ret = freeswitchPINVOKE.switch_say_file_handle_get_path(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh)); - return ret; - } - - public static string switch_say_file_handle_detach_path(SWIGTYPE_p_switch_say_file_handle sh) { - string ret = freeswitchPINVOKE.switch_say_file_handle_detach_path(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh)); - return ret; - } - - public static void switch_say_file_handle_destroy(SWIGTYPE_p_p_switch_say_file_handle sh) { - freeswitchPINVOKE.switch_say_file_handle_destroy(SWIGTYPE_p_p_switch_say_file_handle.getCPtr(sh)); - } - - public static switch_status_t switch_say_file_handle_create(SWIGTYPE_p_p_switch_say_file_handle sh, string ext, SWIGTYPE_p_p_switch_event var_event) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_say_file_handle_create(SWIGTYPE_p_p_switch_say_file_handle.getCPtr(sh), ext, SWIGTYPE_p_p_switch_event.getCPtr(var_event)); - return ret; - } - - public static void switch_say_file(SWIGTYPE_p_switch_say_file_handle sh, string fmt) { - freeswitchPINVOKE.switch_say_file(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh), fmt); - } - - public static int switch_max_file_desc() { - int ret = freeswitchPINVOKE.switch_max_file_desc(); - return ret; - } - - public static void switch_close_extra_files(SWIGTYPE_p_int keep, int keep_ttl) { - freeswitchPINVOKE.switch_close_extra_files(SWIGTYPE_p_int.getCPtr(keep), keep_ttl); - } - - public static switch_status_t switch_core_thread_set_cpu_affinity(int cpu) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_thread_set_cpu_affinity(cpu); - return ret; - } - - public static void switch_os_yield() { - freeswitchPINVOKE.switch_os_yield(); - } - - public static switch_status_t switch_core_get_stacksizes(SWIGTYPE_p_switch_size_t cur, SWIGTYPE_p_switch_size_t max) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_get_stacksizes(SWIGTYPE_p_switch_size_t.getCPtr(cur), SWIGTYPE_p_switch_size_t.getCPtr(max)); - return ret; - } - - public static void switch_core_gen_encoded_silence(SWIGTYPE_p_unsigned_char data, switch_codec_implementation read_impl, SWIGTYPE_p_switch_size_t len) { - freeswitchPINVOKE.switch_core_gen_encoded_silence(SWIGTYPE_p_unsigned_char.getCPtr(data), switch_codec_implementation.getCPtr(read_impl), SWIGTYPE_p_switch_size_t.getCPtr(len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - - public static switch_cache_db_handle_type_t switch_core_dbtype() { - switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_core_dbtype(); - return ret; - } - - public static void switch_core_sql_exec(string sql) { - freeswitchPINVOKE.switch_core_sql_exec(sql); - } - - public static int switch_core_recovery_recover(string technology, string profile_name) { - int ret = freeswitchPINVOKE.switch_core_recovery_recover(technology, profile_name); - return ret; - } - - public static void switch_core_recovery_untrack(SWIGTYPE_p_switch_core_session session, switch_bool_t force) { - freeswitchPINVOKE.switch_core_recovery_untrack(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)force); - } - - public static void switch_core_recovery_track(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_core_recovery_track(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static void switch_core_recovery_flush(string technology, string profile_name) { - freeswitchPINVOKE.switch_core_recovery_flush(technology, profile_name); - } - - public static void switch_sql_queue_manager_pause(SWIGTYPE_p_switch_sql_queue_manager qm, switch_bool_t flush) { - freeswitchPINVOKE.switch_sql_queue_manager_pause(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), (int)flush); - } - - public static void switch_sql_queue_manager_resume(SWIGTYPE_p_switch_sql_queue_manager qm) { - freeswitchPINVOKE.switch_sql_queue_manager_resume(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm)); - } - - public static int switch_sql_queue_manager_size(SWIGTYPE_p_switch_sql_queue_manager qm, uint index) { - int ret = freeswitchPINVOKE.switch_sql_queue_manager_size(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), index); - return ret; - } - - public static switch_status_t switch_sql_queue_manager_push_confirm(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_push_confirm(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup); - return ret; - } - - public static switch_status_t switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup); - return ret; - } - - public static switch_status_t switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager qmp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp)); - return ret; - } - - public static switch_status_t switch_sql_queue_manager_init_name(string name, SWIGTYPE_p_p_switch_sql_queue_manager qmp, uint numq, string dsn, uint max_trans, string pre_trans_execute, string post_trans_execute, string inner_pre_trans_execute, string inner_post_trans_execute) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_init_name(name, SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp), numq, dsn, max_trans, pre_trans_execute, post_trans_execute, inner_pre_trans_execute, inner_post_trans_execute); - return ret; - } - - public static switch_status_t switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager qm) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm)); - return ret; - } - - public static switch_status_t switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager qm) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm)); - return ret; - } - - public static switch_status_t switch_cache_db_execute_sql_event_callback(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_event_callback(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); - return ret; - } - - public static void switch_sql_queue_manager_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata) { - freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata)); - } - - public static void switch_sql_queue_manager_execute_sql_callback_err(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata) { - freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_callback_err(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata)); - } - - public static void switch_sql_queue_manager_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata) { - freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata)); - } - - public static void switch_sql_queue_manager_execute_sql_event_callback_err(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata) { - freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_event_callback_err(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata)); - } - - public static SWIGTYPE_p_pid_t switch_fork() { - SWIGTYPE_p_pid_t ret = new SWIGTYPE_p_pid_t(freeswitchPINVOKE.switch_fork(), true); - return ret; - } - - public static int switch_core_gen_certs(string prefix) { - int ret = freeswitchPINVOKE.switch_core_gen_certs(prefix); - return ret; - } - - public static int switch_core_cert_gen_fingerprint(string prefix, dtls_fingerprint_t fp) { - int ret = freeswitchPINVOKE.switch_core_cert_gen_fingerprint(prefix, dtls_fingerprint_t.getCPtr(fp)); - return ret; - } - - public static int switch_core_cert_expand_fingerprint(dtls_fingerprint_t fp, string str) { - int ret = freeswitchPINVOKE.switch_core_cert_expand_fingerprint(dtls_fingerprint_t.getCPtr(fp), str); - return ret; - } - - public static int switch_core_cert_verify(dtls_fingerprint_t fp) { - int ret = freeswitchPINVOKE.switch_core_cert_verify(dtls_fingerprint_t.getCPtr(fp)); - return ret; - } - - public static switch_status_t switch_core_session_refresh_video(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_refresh_video(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static int switch_stream_system_fork(string cmd, switch_stream_handle stream) { - int ret = freeswitchPINVOKE.switch_stream_system_fork(cmd, switch_stream_handle.getCPtr(stream)); - return ret; - } - - public static switch_call_direction_t switch_ice_direction(SWIGTYPE_p_switch_core_session session) { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_ice_direction(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static void switch_core_session_debug_pool(switch_stream_handle stream) { - freeswitchPINVOKE.switch_core_session_debug_pool(switch_stream_handle.getCPtr(stream)); - } - - public static string switch_version_major() { - string ret = freeswitchPINVOKE.switch_version_major(); - return ret; - } - - public static string switch_version_minor() { - string ret = freeswitchPINVOKE.switch_version_minor(); - return ret; - } - - public static string switch_version_micro() { - string ret = freeswitchPINVOKE.switch_version_micro(); - return ret; - } - - public static string switch_version_revision() { - string ret = freeswitchPINVOKE.switch_version_revision(); - return ret; - } - - public static string switch_version_revision_human() { - string ret = freeswitchPINVOKE.switch_version_revision_human(); - return ret; - } - - public static string switch_version_full() { - string ret = freeswitchPINVOKE.switch_version_full(); - return ret; - } - - public static string switch_version_full_human() { - string ret = freeswitchPINVOKE.switch_version_full_human(); - return ret; - } - - public static switch_status_t switch_loadable_module_init(switch_bool_t autoload) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_init((int)autoload); - return ret; - } - - public static void switch_loadable_module_shutdown() { - freeswitchPINVOKE.switch_loadable_module_shutdown(); - } - - public static switch_endpoint_interface switch_loadable_module_get_endpoint_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_endpoint_interface(name); - switch_endpoint_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_endpoint_interface(cPtr, false); - return ret; - } - - public static switch_codec_interface switch_loadable_module_get_codec_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_codec_interface(name); - switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); - return ret; - } - - public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels) { - string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels)); - return ret; - } - - public static switch_dialplan_interface switch_loadable_module_get_dialplan_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_dialplan_interface(name); - switch_dialplan_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_dialplan_interface(cPtr, false); - return ret; - } - - public static switch_status_t switch_loadable_module_enumerate_available(string dir_path, SWIGTYPE_p_f_p_void_p_q_const__char__int callback, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_enumerate_available(dir_path, SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static switch_status_t switch_loadable_module_enumerate_loaded(SWIGTYPE_p_f_p_void_p_q_const__char__int callback, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_enumerate_loaded(SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static switch_status_t switch_loadable_module_build_dynamic(string filename, SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t switch_module_load, SWIGTYPE_p_f_void__switch_status_t switch_module_runtime, SWIGTYPE_p_f_void__switch_status_t switch_module_shutdown, switch_bool_t runtime) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_build_dynamic(filename, SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t.getCPtr(switch_module_load), SWIGTYPE_p_f_void__switch_status_t.getCPtr(switch_module_runtime), SWIGTYPE_p_f_void__switch_status_t.getCPtr(switch_module_shutdown), (int)runtime); - return ret; - } - - public static switch_timer_interface switch_loadable_module_get_timer_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_timer_interface(name); - switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); - return ret; - } - - public static switch_application_interface switch_loadable_module_get_application_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_application_interface(name); - switch_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_application_interface(cPtr, false); - return ret; - } - - public static switch_chat_application_interface switch_loadable_module_get_chat_application_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_chat_application_interface(name); - switch_chat_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_application_interface(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_execute_chat_app(switch_event message, string app, string data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_execute_chat_app(switch_event.getCPtr(message), app, data); - return ret; - } - - public static switch_api_interface switch_loadable_module_get_api_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_api_interface(name); - switch_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_api_interface(cPtr, false); - return ret; - } - - public static switch_json_api_interface switch_loadable_module_get_json_api_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_json_api_interface(name); - switch_json_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_json_api_interface(cPtr, false); - return ret; - } - - public static switch_file_interface switch_loadable_module_get_file_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_file_interface(name); - switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); - return ret; - } - - public static switch_speech_interface switch_loadable_module_get_speech_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_speech_interface(name); - switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); - return ret; - } - - public static switch_asr_interface switch_loadable_module_get_asr_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_asr_interface(name); - switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); - return ret; - } - - public static switch_directory_interface switch_loadable_module_get_directory_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_directory_interface(name); - switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); - return ret; - } - - public static switch_chat_interface switch_loadable_module_get_chat_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_chat_interface(name); - switch_chat_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_interface(cPtr, false); - return ret; - } - - public static switch_say_interface switch_loadable_module_get_say_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_say_interface(name); - switch_say_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_say_interface(cPtr, false); - return ret; - } - - public static switch_management_interface switch_loadable_module_get_management_interface(string relative_oid) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_management_interface(relative_oid); - switch_management_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_management_interface(cPtr, false); - return ret; - } - - public static switch_limit_interface switch_loadable_module_get_limit_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_limit_interface(name); - switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); - return ret; - } - - public static int switch_loadable_module_get_codecs(SWIGTYPE_p_p_switch_codec_implementation array, int arraylen) { - int ret = freeswitchPINVOKE.switch_loadable_module_get_codecs(SWIGTYPE_p_p_switch_codec_implementation.getCPtr(array), arraylen); - return ret; - } - - public static int switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation array, int arraylen, ref string prefs, int preflen) { - int ret = freeswitchPINVOKE.switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation.getCPtr(array), arraylen, ref prefs, preflen); - return ret; - } - - public static switch_status_t switch_api_execute(string cmd, string arg, SWIGTYPE_p_switch_core_session session, switch_stream_handle stream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_api_execute(cmd, arg, SWIGTYPE_p_switch_core_session.getCPtr(session), switch_stream_handle.getCPtr(stream)); - return ret; - } - - public static switch_status_t switch_json_api_execute(SWIGTYPE_p_cJSON json, SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_cJSON retval) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_json_api_execute(SWIGTYPE_p_cJSON.getCPtr(json), SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_cJSON.getCPtr(retval)); - return ret; - } - - public static switch_status_t switch_loadable_module_load_module(string dir, string fname, switch_bool_t runtime, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_load_module(dir, fname, (int)runtime, ref err); - return ret; - } - - public static switch_status_t switch_loadable_module_exists(string mod) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_exists(mod); - return ret; - } - - public static switch_status_t switch_loadable_module_unload_module(string dir, string fname, switch_bool_t force, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_unload_module(dir, fname, (int)force, ref err); - return ret; - } - - public static uint switch_core_codec_next_id() { - uint ret = freeswitchPINVOKE.switch_core_codec_next_id(); - return ret; - } - - public static int switch_check_interval(uint rate, uint ptime) { - int ret = freeswitchPINVOKE.switch_check_interval(rate, ptime); - return ret; - } - - public static void switch_core_codec_add_implementation(SWIGTYPE_p_apr_pool_t pool, switch_codec_interface codec_interface, switch_codec_type_t codec_type, byte ianacode, string iananame, string fmtp, uint samples_per_second, uint actual_samples_per_second, int bits_per_second, int microseconds_per_packet, uint samples_per_packet, uint decoded_bytes_per_packet, uint encoded_bytes_per_packet, byte number_of_channels, int codec_frames_per_packet, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t init, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t encode, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t decode, SWIGTYPE_p_f_p_switch_codec__switch_status_t destroy) { - freeswitchPINVOKE.switch_core_codec_add_implementation(SWIGTYPE_p_apr_pool_t.getCPtr(pool), switch_codec_interface.getCPtr(codec_interface), (int)codec_type, ianacode, iananame, fmtp, samples_per_second, actual_samples_per_second, bits_per_second, microseconds_per_packet, samples_per_packet, decoded_bytes_per_packet, encoded_bytes_per_packet, number_of_channels, codec_frames_per_packet, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t.getCPtr(init), SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(encode), SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(decode), SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(destroy)); - } - - public static switch_bool_t switch_core_codec_ready(switch_codec codec) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_codec_ready(switch_codec.getCPtr(codec)); - return ret; - } - - public static SWIGTYPE_p_f_p_switch_core_session__int switch_core_get_secondary_recover_callback(string key) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_get_secondary_recover_callback(key); - SWIGTYPE_p_f_p_switch_core_session__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__int(cPtr, false); - return ret; - } - - public static switch_status_t switch_core_register_secondary_recover_callback(string key, SWIGTYPE_p_f_p_switch_core_session__int cb) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_register_secondary_recover_callback(key, SWIGTYPE_p_f_p_switch_core_session__int.getCPtr(cb)); - return ret; - } - - public static void switch_core_unregister_secondary_recover_callback(string key) { - freeswitchPINVOKE.switch_core_unregister_secondary_recover_callback(key); - } - - public static void switch_console_loop() { - freeswitchPINVOKE.switch_console_loop(); - } - - public static switch_status_t switch_console_stream_raw_write(switch_stream_handle handle, SWIGTYPE_p_unsigned_char data, SWIGTYPE_p_switch_size_t datalen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_stream_raw_write(switch_stream_handle.getCPtr(handle), SWIGTYPE_p_unsigned_char.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_stream_write_file_contents(switch_stream_handle stream, string path) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_stream_write_file_contents(switch_stream_handle.getCPtr(stream), path); - return ret; - } - - public static switch_status_t switch_console_init(SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_console_shutdown() { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_shutdown(); - return ret; - } - - public static switch_status_t switch_console_add_complete_func(string name, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t cb) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_add_complete_func(name, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t.getCPtr(cb)); - return ret; - } - - public static switch_status_t switch_console_del_complete_func(string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_del_complete_func(name); - return ret; - } - - public static switch_status_t switch_console_run_complete_func(string func, string line, string last_word, SWIGTYPE_p_p_switch_console_callback_match matches) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_run_complete_func(func, line, last_word, SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches)); - return ret; - } - - public static void switch_console_push_match_unique(SWIGTYPE_p_p_switch_console_callback_match matches, string new_val) { - freeswitchPINVOKE.switch_console_push_match_unique(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches), new_val); - } - - public static void switch_console_push_match(SWIGTYPE_p_p_switch_console_callback_match matches, string new_val) { - freeswitchPINVOKE.switch_console_push_match(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches), new_val); - } - - public static void switch_console_free_matches(SWIGTYPE_p_p_switch_console_callback_match matches) { - freeswitchPINVOKE.switch_console_free_matches(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches)); - } - - public static byte switch_console_complete(string line, string last_word, SWIGTYPE_p_FILE console_out, switch_stream_handle stream, switch_xml xml) { - byte ret = freeswitchPINVOKE.switch_console_complete(line, last_word, SWIGTYPE_p_FILE.getCPtr(console_out), switch_stream_handle.getCPtr(stream), switch_xml.getCPtr(xml)); - return ret; - } - - public static void switch_console_sort_matches(switch_console_callback_match matches) { - freeswitchPINVOKE.switch_console_sort_matches(switch_console_callback_match.getCPtr(matches)); - } - - public static void switch_console_save_history() { - freeswitchPINVOKE.switch_console_save_history(); - } - - public static string switch_console_expand_alias(string cmd, string arg) { - string ret = freeswitchPINVOKE.switch_console_expand_alias(cmd, arg); - return ret; - } - - public static switch_status_t switch_console_execute(string xcmd, int rec, switch_stream_handle istream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_execute(xcmd, rec, switch_stream_handle.getCPtr(istream)); - return ret; - } - - public static uint switch_toupper(uint eax) { - uint ret = freeswitchPINVOKE.switch_toupper(eax); - return ret; - } - - public static uint switch_tolower(uint eax) { - uint ret = freeswitchPINVOKE.switch_tolower(eax); - return ret; - } - - public static void switch_toupper_max(string s) { - freeswitchPINVOKE.switch_toupper_max(s); - } - - public static void switch_tolower_max(string s) { - freeswitchPINVOKE.switch_tolower_max(s); - } - - public static int old_switch_toupper(int c) { - int ret = freeswitchPINVOKE.old_switch_toupper(c); - return ret; - } - - public static int old_switch_tolower(int c) { - int ret = freeswitchPINVOKE.old_switch_tolower(c); - return ret; - } - - public static int switch_isalnum(int c) { - int ret = freeswitchPINVOKE.switch_isalnum(c); - return ret; - } - - public static int switch_isalpha(int c) { - int ret = freeswitchPINVOKE.switch_isalpha(c); - return ret; - } - - public static int switch_iscntrl(int c) { - int ret = freeswitchPINVOKE.switch_iscntrl(c); - return ret; - } - - public static int switch_isdigit(int c) { - int ret = freeswitchPINVOKE.switch_isdigit(c); - return ret; - } - - public static int switch_isgraph(int c) { - int ret = freeswitchPINVOKE.switch_isgraph(c); - return ret; - } - - public static int switch_islower(int c) { - int ret = freeswitchPINVOKE.switch_islower(c); - return ret; - } - - public static int switch_isprint(int c) { - int ret = freeswitchPINVOKE.switch_isprint(c); - return ret; - } - - public static int switch_ispunct(int c) { - int ret = freeswitchPINVOKE.switch_ispunct(c); - return ret; - } - - public static int switch_isspace(int c) { - int ret = freeswitchPINVOKE.switch_isspace(c); - return ret; - } - - public static int switch_isupper(int c) { - int ret = freeswitchPINVOKE.switch_isupper(c); - return ret; - } - - public static int switch_isxdigit(int c) { - int ret = freeswitchPINVOKE.switch_isxdigit(c); - return ret; - } - - public static switch_bool_t switch_testv6_subnet(ip_t _ip, ip_t _net, ip_t _mask) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_testv6_subnet(ip_t.getCPtr(_ip), ip_t.getCPtr(_net), ip_t.getCPtr(_mask)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_print_host(SWIGTYPE_p_switch_sockaddr_t addr, string buf, SWIGTYPE_p_switch_size_t len) { - string ret = freeswitchPINVOKE.switch_print_host(SWIGTYPE_p_switch_sockaddr_t.getCPtr(addr), buf, SWIGTYPE_p_switch_size_t.getCPtr(len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static int _zstr(string s) { - int ret = freeswitchPINVOKE._zstr(s); - return ret; - } - - public static switch_bool_t switch_is_moh(string s) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_moh(s); - return ret; - } - - public static string switch_strchr_strict(string arg0, char find, string allowed) { - string ret = freeswitchPINVOKE.switch_strchr_strict(arg0, find, allowed); - return ret; - } - - public static int switch_string_has_escaped_data(string arg0) { - int ret = freeswitchPINVOKE.switch_string_has_escaped_data(arg0); - return ret; - } - - public static switch_status_t switch_b64_encode(SWIGTYPE_p_unsigned_char arg0, SWIGTYPE_p_switch_size_t ilen, SWIGTYPE_p_unsigned_char arg2, SWIGTYPE_p_switch_size_t olen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_b64_encode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), SWIGTYPE_p_switch_size_t.getCPtr(ilen), SWIGTYPE_p_unsigned_char.getCPtr(arg2), SWIGTYPE_p_switch_size_t.getCPtr(olen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_b64_decode(string arg0, string arg1, SWIGTYPE_p_switch_size_t olen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_b64_decode(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(olen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_amp_encode(string s, string buf, SWIGTYPE_p_switch_size_t len) { - string ret = freeswitchPINVOKE.switch_amp_encode(s, buf, SWIGTYPE_p_switch_size_t.getCPtr(len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_bool_t switch_is_digit_string(string s) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_digit_string(s); - return ret; - } - - public static char switch_itodtmf(char i) { - char ret = freeswitchPINVOKE.switch_itodtmf(i); - return ret; - } - - public static int switch_dtmftoi(string s) { - int ret = freeswitchPINVOKE.switch_dtmftoi(s); - return ret; - } - - public static uint switch_known_bitrate(byte payload) { - uint ret = freeswitchPINVOKE.switch_known_bitrate(payload); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_fd_read_line(int fd, string buf, SWIGTYPE_p_switch_size_t len) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_fd_read_line(fd, buf, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_fd_read_dline(int fd, ref string buf, SWIGTYPE_p_switch_size_t len) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_fd_read_dline(fd, ref buf, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_fp_read_dline(SWIGTYPE_p_FILE fd, ref string buf, SWIGTYPE_p_switch_size_t len) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_fp_read_dline(SWIGTYPE_p_FILE.getCPtr(fd), ref buf, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); - return ret; - } - - public static switch_status_t switch_frame_alloc(SWIGTYPE_p_p_switch_frame frame, SWIGTYPE_p_switch_size_t size) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_alloc(SWIGTYPE_p_p_switch_frame.getCPtr(frame), SWIGTYPE_p_switch_size_t.getCPtr(size)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_frame_dup(switch_frame orig, SWIGTYPE_p_p_switch_frame clone) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_dup(switch_frame.getCPtr(orig), SWIGTYPE_p_p_switch_frame.getCPtr(clone)); - return ret; - } - - public static switch_status_t switch_frame_free(SWIGTYPE_p_p_switch_frame frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_free(SWIGTYPE_p_p_switch_frame.getCPtr(frame)); - return ret; - } - - public static switch_bool_t switch_is_number(string str) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_number(str); - return ret; - } - - public static string switch_find_parameter(string str, string param, SWIGTYPE_p_apr_pool_t pool) { - string ret = freeswitchPINVOKE.switch_find_parameter(str, param, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static int switch_true(string expr) { - int ret = freeswitchPINVOKE.switch_true(expr); - return ret; - } - - public static byte switch_true_byte(string expr) { - byte ret = freeswitchPINVOKE.switch_true_byte(expr); - return ret; - } - - public static int switch_false(string expr) { - int ret = freeswitchPINVOKE.switch_false(expr); - return ret; - } - - public static switch_status_t switch_resolve_host(string host, string buf, uint buflen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_resolve_host(host, buf, buflen); - return ret; - } - - public static switch_status_t switch_find_local_ip(string buf, int len, SWIGTYPE_p_int mask, int family) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_find_local_ip(buf, len, SWIGTYPE_p_int.getCPtr(mask), family); - return ret; - } - - public static switch_status_t switch_find_interface_ip(string buf, int len, SWIGTYPE_p_int mask, string ifname, int family) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_find_interface_ip(buf, len, SWIGTYPE_p_int.getCPtr(mask), ifname, family); - return ret; - } - - public static string get_addr(string buf, SWIGTYPE_p_switch_size_t len, SWIGTYPE_p_sockaddr sa, SWIGTYPE_p_socklen_t salen) { - string ret = freeswitchPINVOKE.get_addr(buf, SWIGTYPE_p_switch_size_t.getCPtr(len), SWIGTYPE_p_sockaddr.getCPtr(sa), SWIGTYPE_p_socklen_t.getCPtr(salen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string get_addr6(string buf, SWIGTYPE_p_switch_size_t len, SWIGTYPE_p_sockaddr_in6 sa, SWIGTYPE_p_socklen_t salen) { - string ret = freeswitchPINVOKE.get_addr6(buf, SWIGTYPE_p_switch_size_t.getCPtr(len), SWIGTYPE_p_sockaddr_in6.getCPtr(sa), SWIGTYPE_p_socklen_t.getCPtr(salen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static int get_addr_int(SWIGTYPE_p_switch_sockaddr_t sa) { - int ret = freeswitchPINVOKE.get_addr_int(SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa)); - return ret; - } - - public static int switch_cmp_addr(SWIGTYPE_p_switch_sockaddr_t sa1, SWIGTYPE_p_switch_sockaddr_t sa2) { - int ret = freeswitchPINVOKE.switch_cmp_addr(SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa1), SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa2)); - return ret; - } - - public static ushort get_port(SWIGTYPE_p_sockaddr sa) { - ushort ret = freeswitchPINVOKE.get_port(SWIGTYPE_p_sockaddr.getCPtr(sa)); - return ret; - } - - public static int switch_build_uri(string uri, SWIGTYPE_p_switch_size_t size, string scheme, string user, SWIGTYPE_p_switch_sockaddr_t sa, int flags) { - int ret = freeswitchPINVOKE.switch_build_uri(uri, SWIGTYPE_p_switch_size_t.getCPtr(size), scheme, user, SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa), flags); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_priority_name(switch_priority_t priority) { - string ret = freeswitchPINVOKE.switch_priority_name((int)priority); - return ret; - } - - public static char switch_rfc2833_to_char(int arg0) { - char ret = freeswitchPINVOKE.switch_rfc2833_to_char(arg0); - return ret; - } - - public static byte switch_char_to_rfc2833(char key) { - byte ret = freeswitchPINVOKE.switch_char_to_rfc2833(key); - return ret; - } - - public static string switch_sanitize_number(string number) { - string ret = freeswitchPINVOKE.switch_sanitize_number(number); - return ret; - } - - public static switch_bool_t switch_string_var_check(string s, switch_bool_t disable) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_string_var_check(s, (int)disable); - return ret; - } - - public static switch_bool_t switch_string_var_check_const(string s) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_string_var_check_const(s); - return ret; - } - - public static string switch_var_clean_string(string s) { - string ret = freeswitchPINVOKE.switch_var_clean_string(s); - return ret; - } - - public static string switch_clean_string(string s) { - string ret = freeswitchPINVOKE.switch_clean_string(s); - return ret; - } - - public static string switch_clean_name_string(string s) { - string ret = freeswitchPINVOKE.switch_clean_name_string(s); - return ret; - } - - public static int switch_safe_atoi(string nptr, int dft) { - int ret = freeswitchPINVOKE.switch_safe_atoi(nptr, dft); - return ret; - } - - public static string switch_safe_strdup(string it) { - string ret = freeswitchPINVOKE.switch_safe_strdup(it); - return ret; - } - - public static string switch_lc_strdup(string it) { - string ret = freeswitchPINVOKE.switch_lc_strdup(it); - return ret; - } - - public static string switch_uc_strdup(string it) { - string ret = freeswitchPINVOKE.switch_uc_strdup(it); - return ret; - } - - public static switch_bool_t switch_strstr(string s, string q) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_strstr(s, q); - return ret; - } - - public static SWIGTYPE_p_switch_time_t switch_str_time(string arg0) { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_str_time(arg0), true); - return ret; - } - - public static uint switch_separate_string(string buf, char delim, ref string array, uint arraylen) { - uint ret = freeswitchPINVOKE.switch_separate_string(buf, delim, ref array, arraylen); - return ret; - } - - public static uint switch_separate_string_string(string buf, string delim, ref string array, uint arraylen) { - uint ret = freeswitchPINVOKE.switch_separate_string_string(buf, delim, ref array, arraylen); - return ret; - } - - public static string switch_strip_spaces(string str, switch_bool_t dup) { - string ret = freeswitchPINVOKE.switch_strip_spaces(str, (int)dup); - return ret; - } - - public static string switch_strip_whitespace(string str) { - string ret = freeswitchPINVOKE.switch_strip_whitespace(str); - return ret; - } - - public static string switch_strip_commas(string arg0, string arg1, SWIGTYPE_p_switch_size_t len) { - string ret = freeswitchPINVOKE.switch_strip_commas(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_strip_nonnumerics(string arg0, string arg1, SWIGTYPE_p_switch_size_t len) { - string ret = freeswitchPINVOKE.switch_strip_nonnumerics(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_separate_paren_args(string str) { - string ret = freeswitchPINVOKE.switch_separate_paren_args(str); - return ret; - } - - public static string switch_stristr(string instr, string str) { - string ret = freeswitchPINVOKE.switch_stristr(instr, str); - return ret; - } - - public static switch_bool_t switch_is_lan_addr(string ip) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_lan_addr(ip); - return ret; - } - - public static string switch_replace_char(string str, char from, char to, switch_bool_t dup) { - string ret = freeswitchPINVOKE.switch_replace_char(str, from, to, (int)dup); - return ret; - } - - public static switch_bool_t switch_ast2regex(string pat, string rbuf, uint len) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ast2regex(pat, rbuf, len); - return ret; - } - - public static string switch_escape_char(SWIGTYPE_p_apr_pool_t pool, string arg1, string delim, char esc) { - string ret = freeswitchPINVOKE.switch_escape_char(SWIGTYPE_p_apr_pool_t.getCPtr(pool), arg1, delim, esc); - return ret; - } - - public static string switch_escape_string(string arg0, string arg1, SWIGTYPE_p_switch_size_t outlen) { - string ret = freeswitchPINVOKE.switch_escape_string(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(outlen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_escape_string_pool(string arg0, SWIGTYPE_p_apr_pool_t pool) { - string ret = freeswitchPINVOKE.switch_escape_string_pool(arg0, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static int switch_socket_waitfor(SWIGTYPE_p_switch_pollfd_t poll, int ms) { - int ret = freeswitchPINVOKE.switch_socket_waitfor(SWIGTYPE_p_switch_pollfd_t.getCPtr(poll), ms); - return ret; - } - - public static string switch_cut_path(string arg0) { - string ret = freeswitchPINVOKE.switch_cut_path(arg0); - return ret; - } - - public static string switch_string_replace(string arg0, string search, string replace) { - string ret = freeswitchPINVOKE.switch_string_replace(arg0, search, replace); - return ret; - } - - public static switch_status_t switch_string_match(string arg0, uint string_len, string search, uint search_len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_string_match(arg0, string_len, search, search_len); - return ret; - } - - public static int switch_strcasecmp_any(string str) { - int ret = freeswitchPINVOKE.switch_strcasecmp_any(str); - return ret; - } - - public static string switch_util_quote_shell_arg(string arg0) { - string ret = freeswitchPINVOKE.switch_util_quote_shell_arg(arg0); - return ret; - } - - public static string switch_util_quote_shell_arg_pool(string arg0, SWIGTYPE_p_apr_pool_t pool) { - string ret = freeswitchPINVOKE.switch_util_quote_shell_arg_pool(arg0, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static string switch_url_encode(string url, string buf, uint len) { - string ret = freeswitchPINVOKE.switch_url_encode(url, buf, len); - return ret; - } - - public static string switch_url_decode(string s) { - string ret = freeswitchPINVOKE.switch_url_decode(s); - return ret; - } - - public static switch_bool_t switch_simple_email(string to, string from, string headers, string body, string file, string convert_cmd, string convert_ext) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_simple_email(to, from, headers, body, file, convert_cmd, convert_ext); - return ret; - } - - public static string switch_find_end_paren(string s, char open, char close) { - string ret = freeswitchPINVOKE.switch_find_end_paren(s, open, close); - return ret; - } - - public static void switch_separate_file_params(string file, ref string file_portion, ref string params_portion) { - freeswitchPINVOKE.switch_separate_file_params(file, ref file_portion, ref params_portion); - } - - public static switch_bool_t switch_is_file_path(string file) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_file_path(file); - return ret; - } - - public static int switch_parse_cidr(string arg0, ip_t ip, ip_t mask, SWIGTYPE_p_unsigned_long bitp) { - int ret = freeswitchPINVOKE.switch_parse_cidr(arg0, ip_t.getCPtr(ip), ip_t.getCPtr(mask), SWIGTYPE_p_unsigned_long.getCPtr(bitp)); - return ret; - } - - public static switch_status_t switch_network_list_create(SWIGTYPE_p_p_switch_network_list list, string name, switch_bool_t default_type, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_network_list_create(SWIGTYPE_p_p_switch_network_list.getCPtr(list), name, (int)default_type, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_network_list_add_cidr_token(SWIGTYPE_p_switch_network_list list, string cidr_str, switch_bool_t ok, string token) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_network_list_add_cidr_token(SWIGTYPE_p_switch_network_list.getCPtr(list), cidr_str, (int)ok, token); - return ret; - } - - public static switch_status_t switch_network_list_add_host_mask(SWIGTYPE_p_switch_network_list list, string host, string mask_str, switch_bool_t ok) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_network_list_add_host_mask(SWIGTYPE_p_switch_network_list.getCPtr(list), host, mask_str, (int)ok); - return ret; - } - - public static switch_bool_t switch_network_list_validate_ip_token(SWIGTYPE_p_switch_network_list list, uint ip, ref string token) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_network_list_validate_ip_token(SWIGTYPE_p_switch_network_list.getCPtr(list), ip, ref token); - return ret; - } - - public static switch_bool_t switch_network_list_validate_ip6_token(SWIGTYPE_p_switch_network_list list, ip_t ip, ref string token) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_network_list_validate_ip6_token(SWIGTYPE_p_switch_network_list.getCPtr(list), ip_t.getCPtr(ip), ref token); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_dow_int2str(int val) { - string ret = freeswitchPINVOKE.switch_dow_int2str(val); - return ret; - } - - public static int switch_dow_str2int(string exp) { - int ret = freeswitchPINVOKE.switch_dow_str2int(exp); - return ret; - } - - public static switch_bool_t switch_dow_cmp(string exp, int val) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_dow_cmp(exp, val); - return ret; - } - - public static int switch_number_cmp(string exp, int val) { - int ret = freeswitchPINVOKE.switch_number_cmp(exp, val); - return ret; - } - - public static int switch_tod_cmp(string exp, int val) { - int ret = freeswitchPINVOKE.switch_tod_cmp(exp, val); - return ret; - } - - public static int switch_fulldate_cmp(string exp, SWIGTYPE_p_switch_time_t ts) { - int ret = freeswitchPINVOKE.switch_fulldate_cmp(exp, SWIGTYPE_p_switch_time_t.getCPtr(ts)); - return ret; - } - - public static void switch_split_date(string exp, SWIGTYPE_p_int year, SWIGTYPE_p_int month, SWIGTYPE_p_int day) { - freeswitchPINVOKE.switch_split_date(exp, SWIGTYPE_p_int.getCPtr(year), SWIGTYPE_p_int.getCPtr(month), SWIGTYPE_p_int.getCPtr(day)); - } - - public static void switch_split_time(string exp, SWIGTYPE_p_int hour, SWIGTYPE_p_int min, SWIGTYPE_p_int sec) { - freeswitchPINVOKE.switch_split_time(exp, SWIGTYPE_p_int.getCPtr(hour), SWIGTYPE_p_int.getCPtr(min), SWIGTYPE_p_int.getCPtr(sec)); - } - - public static int switch_split_user_domain(string arg0, ref string user, ref string domain) { - int ret = freeswitchPINVOKE.switch_split_user_domain(arg0, ref user, ref domain); - return ret; - } - - public static string switch_uuid_str(string buf, SWIGTYPE_p_switch_size_t len) { - string ret = freeswitchPINVOKE.switch_uuid_str(buf, SWIGTYPE_p_switch_size_t.getCPtr(len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_format_number(string num) { - string ret = freeswitchPINVOKE.switch_format_number(num); - return ret; - } - - public static uint switch_atoui(string nptr) { - uint ret = freeswitchPINVOKE.switch_atoui(nptr); - return ret; - } - - public static uint switch_atoul(string nptr) { - uint ret = freeswitchPINVOKE.switch_atoul(nptr); - return ret; - } - - public static string switch_strerror_r(int errnum, string buf, SWIGTYPE_p_switch_size_t buflen) { - string ret = freeswitchPINVOKE.switch_strerror_r(errnum, buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static int switch_wait_sock(int sock, uint ms, switch_poll_t flags) { - int ret = freeswitchPINVOKE.switch_wait_sock(sock, ms, (int)flags); - return ret; - } - - public static int switch_wait_socklist(switch_waitlist_t waitlist, uint len, uint ms) { - int ret = freeswitchPINVOKE.switch_wait_socklist(switch_waitlist_t.getCPtr(waitlist), len, ms); - return ret; - } - - public static switch_status_t switch_http_parse_header(string buffer, uint datalen, switch_http_request_t request) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_http_parse_header(buffer, datalen, switch_http_request_t.getCPtr(request)); - return ret; - } - - public static void switch_http_free_request(switch_http_request_t request) { - freeswitchPINVOKE.switch_http_free_request(switch_http_request_t.getCPtr(request)); - } - - public static void switch_http_dump_request(switch_http_request_t request) { - freeswitchPINVOKE.switch_http_dump_request(switch_http_request_t.getCPtr(request)); - } - - public static void switch_http_parse_qs(switch_http_request_t request, string qs) { - freeswitchPINVOKE.switch_http_parse_qs(switch_http_request_t.getCPtr(request), qs); - } - - public static switch_caller_extension switch_caller_extension_new(SWIGTYPE_p_switch_core_session session, string extension_name, string extension_number) { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_new(SWIGTYPE_p_switch_core_session.getCPtr(session), extension_name, extension_number); - switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); - return ret; - } - - public static switch_status_t switch_caller_extension_clone(SWIGTYPE_p_p_switch_caller_extension new_ext, switch_caller_extension orig, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_caller_extension_clone(SWIGTYPE_p_p_switch_caller_extension.getCPtr(new_ext), switch_caller_extension.getCPtr(orig), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static void switch_caller_extension_add_application(SWIGTYPE_p_switch_core_session session, switch_caller_extension caller_extension, string application_name, string extra_data) { - freeswitchPINVOKE.switch_caller_extension_add_application(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_caller_extension.getCPtr(caller_extension), application_name, extra_data); - } - - public static void switch_caller_extension_add_application_printf(SWIGTYPE_p_switch_core_session session, switch_caller_extension caller_extension, string application_name, string fmt) { - freeswitchPINVOKE.switch_caller_extension_add_application_printf(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_caller_extension.getCPtr(caller_extension), application_name, fmt); - } - - public static string switch_caller_get_field_by_name(switch_caller_profile caller_profile, string name) { - string ret = freeswitchPINVOKE.switch_caller_get_field_by_name(switch_caller_profile.getCPtr(caller_profile), name); - return ret; - } - - public static switch_caller_profile switch_caller_profile_new(SWIGTYPE_p_apr_pool_t pool, string username, string dialplan, string caller_id_name, string caller_id_number, string network_addr, string ani, string aniii, string rdnis, string source, string context, string destination_number) { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_new(SWIGTYPE_p_apr_pool_t.getCPtr(pool), username, dialplan, caller_id_name, caller_id_number, network_addr, ani, aniii, rdnis, source, context, destination_number); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static switch_caller_profile switch_caller_profile_clone(SWIGTYPE_p_switch_core_session session, switch_caller_profile tocopy) { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_clone(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_caller_profile.getCPtr(tocopy)); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static switch_caller_profile switch_caller_profile_dup(SWIGTYPE_p_apr_pool_t pool, switch_caller_profile tocopy) { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_dup(SWIGTYPE_p_apr_pool_t.getCPtr(pool), switch_caller_profile.getCPtr(tocopy)); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static void switch_caller_profile_event_set_data(switch_caller_profile caller_profile, string prefix, switch_event arg2) { - freeswitchPINVOKE.switch_caller_profile_event_set_data(switch_caller_profile.getCPtr(caller_profile), prefix, switch_event.getCPtr(arg2)); - } - - public static switch_channel_state_t switch_channel_get_state(SWIGTYPE_p_switch_channel channel) { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_get_state(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_channel_state_t switch_channel_get_running_state(SWIGTYPE_p_switch_channel channel) { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_get_running_state(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static int switch_channel_check_signal(SWIGTYPE_p_switch_channel channel, switch_bool_t in_thread_only) { - int ret = freeswitchPINVOKE.switch_channel_check_signal(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)in_thread_only); - return ret; - } - - public static int switch_channel_test_ready(SWIGTYPE_p_switch_channel channel, switch_bool_t check_ready, switch_bool_t check_media) { - int ret = freeswitchPINVOKE.switch_channel_test_ready(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)check_ready, (int)check_media); - return ret; - } - - public static void switch_channel_wait_for_state(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel other_channel, switch_channel_state_t want_state) { - freeswitchPINVOKE.switch_channel_wait_for_state(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(other_channel), (int)want_state); - } - - public static void switch_channel_wait_for_state_timeout(SWIGTYPE_p_switch_channel other_channel, switch_channel_state_t want_state, uint timeout) { - freeswitchPINVOKE.switch_channel_wait_for_state_timeout(SWIGTYPE_p_switch_channel.getCPtr(other_channel), (int)want_state, timeout); - } - - public static switch_status_t switch_channel_wait_for_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t want_flag, switch_bool_t pres, uint to, SWIGTYPE_p_switch_channel super_channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_wait_for_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)want_flag, (int)pres, to, SWIGTYPE_p_switch_channel.getCPtr(super_channel)); - return ret; - } - - public static switch_channel_state_t switch_channel_perform_set_state(SWIGTYPE_p_switch_channel channel, string file, string func, int line, switch_channel_state_t state) { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_set_state(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line, (int)state); - return ret; - } - - public static switch_channel_state_t switch_channel_perform_set_running_state(SWIGTYPE_p_switch_channel channel, switch_channel_state_t state, string file, string func, int line) { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_set_running_state(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)state, file, func, line); - return ret; - } - - public static switch_call_cause_t switch_channel_str2cause(string str) { - switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_str2cause(str); - return ret; - } - - public static switch_call_cause_t switch_channel_get_cause(SWIGTYPE_p_switch_channel channel) { - switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_get_cause(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_call_cause_t switch_channel_cause_q850(switch_call_cause_t cause) { - switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_cause_q850((int)cause); - return ret; - } - - public static switch_call_cause_t switch_channel_get_cause_q850(SWIGTYPE_p_switch_channel channel) { - switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_get_cause_q850(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static SWIGTYPE_p_switch_call_cause_t switch_channel_get_cause_ptr(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_cause_ptr(SWIGTYPE_p_switch_channel.getCPtr(channel)); - SWIGTYPE_p_switch_call_cause_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_call_cause_t(cPtr, false); - return ret; - } - - public static string switch_channel_cause2str(switch_call_cause_t cause) { - string ret = freeswitchPINVOKE.switch_channel_cause2str((int)cause); - return ret; - } - - public static switch_channel_timetable switch_channel_get_timetable(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_timetable(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); - return ret; - } - - public static switch_status_t switch_channel_alloc(SWIGTYPE_p_p_switch_channel channel, switch_call_direction_t direction, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_alloc(SWIGTYPE_p_p_switch_channel.getCPtr(channel), (int)direction, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_channel_init(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_core_session session, switch_channel_state_t state, switch_channel_flag_t flag) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_init(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_core_session.getCPtr(session), (int)state, (int)flag); - return ret; - } - - public static void switch_channel_set_presence_data_vals(SWIGTYPE_p_switch_channel channel, string presence_data_cols) { - freeswitchPINVOKE.switch_channel_set_presence_data_vals(SWIGTYPE_p_switch_channel.getCPtr(channel), presence_data_cols); - } - - public static void switch_channel_perform_presence(SWIGTYPE_p_switch_channel channel, string rpid, string status, string id, string file, string func, int line) { - freeswitchPINVOKE.switch_channel_perform_presence(SWIGTYPE_p_switch_channel.getCPtr(channel), rpid, status, id, file, func, line); - } - - public static void switch_channel_uninit(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_uninit(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static void switch_channel_set_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { - freeswitchPINVOKE.switch_channel_set_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); - } - - public static void switch_channel_step_caller_profile(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_step_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_caller_profile switch_channel_get_caller_profile(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static void switch_channel_set_originator_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { - freeswitchPINVOKE.switch_channel_set_originator_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); - } - - public static void switch_channel_set_hunt_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { - freeswitchPINVOKE.switch_channel_set_hunt_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); - } - - public static switch_caller_profile switch_channel_get_originator_caller_profile(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_originator_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static void switch_channel_set_originatee_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { - freeswitchPINVOKE.switch_channel_set_originatee_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); - } - - public static switch_caller_profile switch_channel_get_originatee_caller_profile(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_originatee_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static void switch_channel_set_origination_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { - freeswitchPINVOKE.switch_channel_set_origination_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); - } - - public static switch_caller_profile switch_channel_get_origination_caller_profile(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_origination_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - - public static string switch_channel_get_uuid(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_uuid(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_status_t switch_channel_set_profile_var(SWIGTYPE_p_switch_channel channel, string name, string val) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_profile_var(SWIGTYPE_p_switch_channel.getCPtr(channel), name, val); - return ret; - } - - public static switch_status_t switch_channel_set_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check); - return ret; - } - - public static switch_status_t switch_channel_add_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check, switch_stack_t stack) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_add_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check, (int)stack); - return ret; - } - - public static switch_status_t switch_channel_set_variable_printf(SWIGTYPE_p_switch_channel channel, string varname, string fmt) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, fmt); - return ret; - } - - public static switch_status_t switch_channel_set_variable_name_printf(SWIGTYPE_p_switch_channel channel, string val, string fmt) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_name_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), val, fmt); - return ret; - } - - public static switch_status_t switch_channel_set_variable_partner_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_partner_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check); - return ret; - } - - public static string switch_channel_get_variable_partner(SWIGTYPE_p_switch_channel channel, string varname) { - string ret = freeswitchPINVOKE.switch_channel_get_variable_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), varname); - return ret; - } - - public static string switch_channel_get_hold_music(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_hold_music(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static string switch_channel_get_hold_music_partner(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_hold_music_partner(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static uint switch_channel_del_variable_prefix(SWIGTYPE_p_switch_channel channel, string prefix) { - uint ret = freeswitchPINVOKE.switch_channel_del_variable_prefix(SWIGTYPE_p_switch_channel.getCPtr(channel), prefix); - return ret; - } - - public static switch_status_t switch_channel_transfer_variable_prefix(SWIGTYPE_p_switch_channel orig_channel, SWIGTYPE_p_switch_channel new_channel, string prefix) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_transfer_variable_prefix(SWIGTYPE_p_switch_channel.getCPtr(orig_channel), SWIGTYPE_p_switch_channel.getCPtr(new_channel), prefix); - return ret; - } - - public static switch_status_t switch_channel_export_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string val, string export_varname, switch_bool_t var_check) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_export_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, val, export_varname, (int)var_check); - return ret; - } - - public static void switch_channel_process_export(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel peer_channel, switch_event var_event, string export_varname) { - freeswitchPINVOKE.switch_channel_process_export(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(peer_channel), switch_event.getCPtr(var_event), export_varname); - } - - public static switch_status_t switch_channel_export_variable_printf(SWIGTYPE_p_switch_channel channel, string varname, string export_varname, string fmt) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_export_variable_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, export_varname, fmt); - return ret; - } - - public static void switch_channel_set_scope_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) { - freeswitchPINVOKE.switch_channel_set_scope_variables(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); - } - - public static switch_status_t switch_channel_get_scope_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_get_scope_variables(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); - return ret; - } - - public static string switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel channel, string varname, switch_bool_t dup, int idx) { - string ret = freeswitchPINVOKE.switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, (int)dup, idx); - return ret; - } - - public static switch_status_t switch_channel_get_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) { - 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)); - return ret; - } - - public static switch_status_t switch_channel_pass_callee_id(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel other_channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_pass_callee_id(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(other_channel)); - return ret; - } - - public static switch_event_header switch_channel_variable_first(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_variable_first(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); - return ret; - } - - public static void switch_channel_variable_last(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_variable_last(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static void switch_channel_restart(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_restart(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_status_t switch_channel_caller_extension_masquerade(SWIGTYPE_p_switch_channel orig_channel, SWIGTYPE_p_switch_channel new_channel, uint offset) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_caller_extension_masquerade(SWIGTYPE_p_switch_channel.getCPtr(orig_channel), SWIGTYPE_p_switch_channel.getCPtr(new_channel), offset); - return ret; - } - - public static void switch_channel_set_caller_extension(SWIGTYPE_p_switch_channel channel, switch_caller_extension caller_extension) { - freeswitchPINVOKE.switch_channel_set_caller_extension(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_extension.getCPtr(caller_extension)); - } - - public static void switch_channel_invert_cid(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_invert_cid(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static void switch_channel_flip_cid(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_flip_cid(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static void switch_channel_sort_cid(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_sort_cid(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_caller_extension switch_channel_get_caller_extension(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_caller_extension(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); - return ret; - } - - public static uint switch_channel_test_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - uint ret = freeswitchPINVOKE.switch_channel_test_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - return ret; - } - - public static void switch_channel_set_flag_value(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag, uint value) { - freeswitchPINVOKE.switch_channel_set_flag_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag, value); - } - - public static void switch_channel_set_flag_recursive(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - freeswitchPINVOKE.switch_channel_set_flag_recursive(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - } - - public static void switch_channel_set_cap_value(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap, uint value) { - freeswitchPINVOKE.switch_channel_set_cap_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap, value); - } - - public static void switch_channel_clear_cap(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) { - freeswitchPINVOKE.switch_channel_clear_cap(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap); - } - - public static uint switch_channel_test_cap(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) { - uint ret = freeswitchPINVOKE.switch_channel_test_cap(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap); - return ret; - } - - public static uint switch_channel_test_cap_partner(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) { - uint ret = freeswitchPINVOKE.switch_channel_test_cap_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap); - return ret; - } - - public static switch_bool_t switch_channel_set_flag_partner(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_channel_set_flag_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - return ret; - } - - public static switch_bool_t switch_channel_clear_flag_partner(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_channel_clear_flag_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - return ret; - } - - public static uint switch_channel_test_flag_partner(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - uint ret = freeswitchPINVOKE.switch_channel_test_flag_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - return ret; - } - - public static void switch_channel_set_state_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - freeswitchPINVOKE.switch_channel_set_state_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - } - - public static void switch_channel_clear_state_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - freeswitchPINVOKE.switch_channel_clear_state_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - } - - public static void switch_channel_clear_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - freeswitchPINVOKE.switch_channel_clear_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - } - - public static void switch_channel_clear_flag_recursive(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { - freeswitchPINVOKE.switch_channel_clear_flag_recursive(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); - } - - public static switch_status_t switch_channel_perform_answer(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_answer(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); - return ret; - } - - public static switch_status_t switch_channel_perform_mark_answered(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_mark_answered(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); - return ret; - } - - public static void switch_channel_check_zrtp(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_check_zrtp(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_status_t switch_channel_perform_ring_ready_value(SWIGTYPE_p_switch_channel channel, switch_ring_ready_t rv, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_ring_ready_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)rv, file, func, line); - return ret; - } - - public static switch_status_t switch_channel_perform_pre_answer(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_pre_answer(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); - return ret; - } - - public static switch_status_t switch_channel_perform_mark_pre_answered(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_mark_pre_answered(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); - return ret; - } - - public static switch_status_t switch_channel_perform_mark_ring_ready_value(SWIGTYPE_p_switch_channel channel, switch_ring_ready_t rv, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_mark_ring_ready_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)rv, file, func, line); - return ret; - } - - public static int switch_channel_add_state_handler(SWIGTYPE_p_switch_channel channel, switch_state_handler_table state_handler) { - int ret = freeswitchPINVOKE.switch_channel_add_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_state_handler_table.getCPtr(state_handler)); - return ret; - } - - public static void switch_channel_clear_state_handler(SWIGTYPE_p_switch_channel channel, switch_state_handler_table state_handler) { - freeswitchPINVOKE.switch_channel_clear_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_state_handler_table.getCPtr(state_handler)); - } - - public static switch_state_handler_table switch_channel_get_state_handler(SWIGTYPE_p_switch_channel channel, int index) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), index); - switch_state_handler_table ret = (cPtr == IntPtr.Zero) ? null : new switch_state_handler_table(cPtr, false); - return ret; - } - - public static switch_status_t switch_channel_set_private(SWIGTYPE_p_switch_channel channel, string key, SWIGTYPE_p_void private_info) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_private(SWIGTYPE_p_switch_channel.getCPtr(channel), key, SWIGTYPE_p_void.getCPtr(private_info)); - return ret; - } - - public static SWIGTYPE_p_void switch_channel_get_private(SWIGTYPE_p_switch_channel channel, string key) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_private(SWIGTYPE_p_switch_channel.getCPtr(channel), key); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_void switch_channel_get_private_partner(SWIGTYPE_p_switch_channel channel, string key) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_private_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), key); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static switch_status_t switch_channel_set_name(SWIGTYPE_p_switch_channel channel, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_name(SWIGTYPE_p_switch_channel.getCPtr(channel), name); - return ret; - } - - public static string switch_channel_get_name(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_name(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_channel_state_t switch_channel_perform_hangup(SWIGTYPE_p_switch_channel channel, string file, string func, int line, switch_call_cause_t hangup_cause) { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_hangup(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line, (int)hangup_cause); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_channel_has_dtmf(SWIGTYPE_p_switch_channel channel) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_channel_has_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel)), true); - return ret; - } - - public static switch_status_t switch_channel_dtmf_lock(SWIGTYPE_p_switch_channel channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dtmf_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_status_t switch_channel_try_dtmf_lock(SWIGTYPE_p_switch_channel channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_try_dtmf_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_status_t switch_channel_dtmf_unlock(SWIGTYPE_p_switch_channel channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dtmf_unlock(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_status_t switch_channel_queue_dtmf(SWIGTYPE_p_switch_channel channel, switch_dtmf_t dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_queue_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_dtmf_t.getCPtr(dtmf)); - return ret; - } - - public static switch_status_t switch_channel_queue_dtmf_string(SWIGTYPE_p_switch_channel channel, string dtmf_string) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_queue_dtmf_string(SWIGTYPE_p_switch_channel.getCPtr(channel), dtmf_string); - return ret; - } - - public static switch_status_t switch_channel_dequeue_dtmf(SWIGTYPE_p_switch_channel channel, switch_dtmf_t dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dequeue_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_dtmf_t.getCPtr(dtmf)); - return ret; - } - - public static void switch_channel_flush_dtmf(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_flush_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static SWIGTYPE_p_switch_size_t switch_channel_dequeue_dtmf_string(SWIGTYPE_p_switch_channel channel, string dtmf_str, SWIGTYPE_p_switch_size_t len) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_channel_dequeue_dtmf_string(SWIGTYPE_p_switch_channel.getCPtr(channel), dtmf_str, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static string switch_channel_state_name(switch_channel_state_t state) { - string ret = freeswitchPINVOKE.switch_channel_state_name((int)state); - return ret; - } - - public static switch_channel_state_t switch_channel_name_state(string name) { - switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_name_state(name); - return ret; - } - - public static void switch_channel_event_set_data(SWIGTYPE_p_switch_channel channel, switch_event arg1) { - freeswitchPINVOKE.switch_channel_event_set_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1)); - } - - public static void switch_channel_event_set_basic_data(SWIGTYPE_p_switch_channel channel, switch_event arg1) { - freeswitchPINVOKE.switch_channel_event_set_basic_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1)); - } - - public static void switch_channel_event_set_extended_data(SWIGTYPE_p_switch_channel channel, switch_event arg1) { - freeswitchPINVOKE.switch_channel_event_set_extended_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1)); - } - - public static string switch_channel_expand_variables_check(SWIGTYPE_p_switch_channel channel, string arg1, switch_event var_list, switch_event api_list, uint recur) { - string ret = freeswitchPINVOKE.switch_channel_expand_variables_check(SWIGTYPE_p_switch_channel.getCPtr(channel), arg1, switch_event.getCPtr(var_list), switch_event.getCPtr(api_list), recur); - return ret; - } - - public static string switch_channel_build_param_string(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile, string prefix) { - string ret = freeswitchPINVOKE.switch_channel_build_param_string(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile), prefix); - return ret; - } - - public static switch_status_t switch_channel_set_timestamps(SWIGTYPE_p_switch_channel channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_timestamps(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static void switch_channel_perform_audio_sync(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { - freeswitchPINVOKE.switch_channel_perform_audio_sync(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); - } - - public static void switch_channel_set_private_flag(SWIGTYPE_p_switch_channel channel, uint flags) { - freeswitchPINVOKE.switch_channel_set_private_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); - } - - public static void switch_channel_clear_private_flag(SWIGTYPE_p_switch_channel channel, uint flags) { - freeswitchPINVOKE.switch_channel_clear_private_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); - } - - public static int switch_channel_test_private_flag(SWIGTYPE_p_switch_channel channel, uint flags) { - int ret = freeswitchPINVOKE.switch_channel_test_private_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); - return ret; - } - - public static void switch_channel_set_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { - freeswitchPINVOKE.switch_channel_set_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); - } - - public static void switch_channel_clear_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { - freeswitchPINVOKE.switch_channel_clear_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); - } - - public static int switch_channel_test_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { - int ret = freeswitchPINVOKE.switch_channel_test_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); - return ret; - } - - public static void switch_channel_set_bridge_time(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_set_bridge_time(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static void switch_channel_set_hangup_time(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_set_hangup_time(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_call_direction_t switch_channel_direction(SWIGTYPE_p_switch_channel channel) { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_channel_direction(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_call_direction_t switch_channel_logical_direction(SWIGTYPE_p_switch_channel channel) { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_channel_logical_direction(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static void switch_channel_set_direction(SWIGTYPE_p_switch_channel channel, switch_call_direction_t direction) { - freeswitchPINVOKE.switch_channel_set_direction(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)direction); - } - - public static SWIGTYPE_p_switch_core_session switch_channel_get_session(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_session(SWIGTYPE_p_switch_channel.getCPtr(channel)); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - - public static string switch_channel_get_flag_string(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_flag_string(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static string switch_channel_get_cap_string(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_cap_string(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static int switch_channel_state_change_pending(SWIGTYPE_p_switch_channel channel) { - int ret = freeswitchPINVOKE.switch_channel_state_change_pending(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static void switch_channel_perform_set_callstate(SWIGTYPE_p_switch_channel channel, switch_channel_callstate_t callstate, string file, string func, int line) { - freeswitchPINVOKE.switch_channel_perform_set_callstate(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)callstate, file, func, line); - } - - public static switch_channel_callstate_t switch_channel_get_callstate(SWIGTYPE_p_switch_channel channel) { - switch_channel_callstate_t ret = (switch_channel_callstate_t)freeswitchPINVOKE.switch_channel_get_callstate(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static string switch_channel_callstate2str(switch_channel_callstate_t callstate) { - string ret = freeswitchPINVOKE.switch_channel_callstate2str((int)callstate); - return ret; - } - - public static switch_channel_callstate_t switch_channel_str2callstate(string str) { - switch_channel_callstate_t ret = (switch_channel_callstate_t)freeswitchPINVOKE.switch_channel_str2callstate(str); - return ret; - } - - public static void switch_channel_mark_hold(SWIGTYPE_p_switch_channel channel, switch_bool_t on) { - freeswitchPINVOKE.switch_channel_mark_hold(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)on); - } - - public static switch_status_t switch_channel_execute_on(SWIGTYPE_p_switch_channel channel, string variable_prefix) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_execute_on(SWIGTYPE_p_switch_channel.getCPtr(channel), variable_prefix); - return ret; - } - - public static switch_status_t switch_channel_api_on(SWIGTYPE_p_switch_channel channel, string variable_prefix) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_api_on(SWIGTYPE_p_switch_channel.getCPtr(channel), variable_prefix); - return ret; - } - - public static void switch_channel_process_device_hangup(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_process_device_hangup(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_caller_extension switch_channel_get_queued_extension(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_queued_extension(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); - return ret; - } - - public static void switch_channel_transfer_to_extension(SWIGTYPE_p_switch_channel channel, switch_caller_extension caller_extension) { - freeswitchPINVOKE.switch_channel_transfer_to_extension(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_extension.getCPtr(caller_extension)); - } - - public static string switch_channel_get_partner_uuid(SWIGTYPE_p_switch_channel channel) { - string ret = freeswitchPINVOKE.switch_channel_get_partner_uuid(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static switch_hold_record_t switch_channel_get_hold_record(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_hold_record(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_hold_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_hold_record_t(cPtr, false); - return ret; - } - - public static void switch_channel_state_thread_lock(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_state_thread_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static void switch_channel_state_thread_unlock(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_state_thread_unlock(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_status_t switch_channel_state_thread_trylock(SWIGTYPE_p_switch_channel channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_state_thread_trylock(SWIGTYPE_p_switch_channel.getCPtr(channel)); - return ret; - } - - public static void switch_channel_handle_cause(SWIGTYPE_p_switch_channel channel, switch_call_cause_t cause) { - freeswitchPINVOKE.switch_channel_handle_cause(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cause); - } - - public static void switch_channel_global_init(SWIGTYPE_p_apr_pool_t pool) { - freeswitchPINVOKE.switch_channel_global_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - } - - public static void switch_channel_global_uninit() { - freeswitchPINVOKE.switch_channel_global_uninit(); - } - - public static string switch_channel_set_device_id(SWIGTYPE_p_switch_channel channel, string device_id) { - string ret = freeswitchPINVOKE.switch_channel_set_device_id(SWIGTYPE_p_switch_channel.getCPtr(channel), device_id); - return ret; - } - - public static void switch_channel_clear_device_record(SWIGTYPE_p_switch_channel channel) { - freeswitchPINVOKE.switch_channel_clear_device_record(SWIGTYPE_p_switch_channel.getCPtr(channel)); - } - - public static switch_device_record_t switch_channel_get_device_record(SWIGTYPE_p_switch_channel channel) { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_device_record(SWIGTYPE_p_switch_channel.getCPtr(channel)); - switch_device_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_record_t(cPtr, false); - return ret; - } - - public static void switch_channel_release_device_record(SWIGTYPE_p_p_switch_device_record_s dcdrp) { - freeswitchPINVOKE.switch_channel_release_device_record(SWIGTYPE_p_p_switch_device_record_s.getCPtr(dcdrp)); - } - - public static switch_status_t switch_channel_bind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void function, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_bind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void.getCPtr(function), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static switch_status_t switch_channel_unbind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void function) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_unbind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void.getCPtr(function)); - return ret; - } - - public static string switch_channel_device_state2str(switch_device_state_t device_state) { - string ret = freeswitchPINVOKE.switch_channel_device_state2str((int)device_state); - return ret; - } - - public static switch_status_t switch_buffer_create(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t max_len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(max_len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_buffer_create_dynamic(SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t blocksize, SWIGTYPE_p_switch_size_t start_len, SWIGTYPE_p_switch_size_t max_len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create_dynamic(SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(blocksize), SWIGTYPE_p_switch_size_t.getCPtr(start_len), SWIGTYPE_p_switch_size_t.getCPtr(max_len)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_buffer_add_mutex(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_switch_mutex_t mutex) { - freeswitchPINVOKE.switch_buffer_add_mutex(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); - } - - public static void switch_buffer_lock(SWIGTYPE_p_switch_buffer buffer) { - freeswitchPINVOKE.switch_buffer_lock(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); - } - - public static switch_status_t switch_buffer_trylock(SWIGTYPE_p_switch_buffer buffer) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_trylock(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); - return ret; - } - - public static void switch_buffer_unlock(SWIGTYPE_p_switch_buffer buffer) { - freeswitchPINVOKE.switch_buffer_unlock(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_len(SWIGTYPE_p_switch_buffer buffer) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_len(SWIGTYPE_p_switch_buffer.getCPtr(buffer)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_freespace(SWIGTYPE_p_switch_buffer buffer) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_freespace(SWIGTYPE_p_switch_buffer.getCPtr(buffer)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_inuse(SWIGTYPE_p_switch_buffer buffer) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_inuse(SWIGTYPE_p_switch_buffer.getCPtr(buffer)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_read(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_read(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_peek(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_peek(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_peek_zerocopy(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_p_void ptr) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_peek_zerocopy(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_p_void.getCPtr(ptr)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_read_loop(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_read_loop(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_buffer_set_loops(SWIGTYPE_p_switch_buffer buffer, int loops) { - freeswitchPINVOKE.switch_buffer_set_loops(SWIGTYPE_p_switch_buffer.getCPtr(buffer), loops); - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_write(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_write(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_toss(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_toss(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_buffer_zero(SWIGTYPE_p_switch_buffer buffer) { - freeswitchPINVOKE.switch_buffer_zero(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_slide_write(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_slide_write(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_buffer_destroy(SWIGTYPE_p_p_switch_buffer buffer) { - freeswitchPINVOKE.switch_buffer_destroy(SWIGTYPE_p_p_switch_buffer.getCPtr(buffer)); - } - - public static SWIGTYPE_p_switch_size_t switch_buffer_zwrite(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_zwrite(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_event_init(SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_event_shutdown() { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_shutdown(); - return ret; - } - - public static switch_status_t switch_event_create_subclass_detailed(string file, string func, int line, SWIGTYPE_p_p_switch_event arg3, switch_event_types_t event_id, string subclass_name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_subclass_detailed(file, func, line, SWIGTYPE_p_p_switch_event.getCPtr(arg3), (int)event_id, subclass_name); - return ret; - } - - public static switch_status_t switch_event_set_priority(switch_event arg0, switch_priority_t priority) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_priority(switch_event.getCPtr(arg0), (int)priority); - return ret; - } - - public static switch_event_header switch_event_get_header_ptr(switch_event arg0, string header_name) { - IntPtr cPtr = freeswitchPINVOKE.switch_event_get_header_ptr(switch_event.getCPtr(arg0), header_name); - switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); - return ret; - } - - public static string switch_event_get_header_idx(switch_event arg0, string header_name, int idx) { - string ret = freeswitchPINVOKE.switch_event_get_header_idx(switch_event.getCPtr(arg0), header_name, idx); - return ret; - } - - public static switch_status_t switch_event_rename_header(switch_event arg0, string header_name, string new_header_name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_rename_header(switch_event.getCPtr(arg0), header_name, new_header_name); - return ret; - } - - public static string switch_event_get_body(switch_event arg0) { - string ret = freeswitchPINVOKE.switch_event_get_body(switch_event.getCPtr(arg0)); - return ret; - } - - public static switch_status_t switch_event_set_subclass_name(switch_event arg0, string subclass_name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_subclass_name(switch_event.getCPtr(arg0), subclass_name); - return ret; - } - - public static switch_status_t switch_event_add_header_string(switch_event arg0, switch_stack_t stack, string header_name, string data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_add_header_string(switch_event.getCPtr(arg0), (int)stack, header_name, data); - return ret; - } - - public static switch_status_t switch_event_del_header_val(switch_event arg0, string header_name, string val) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_del_header_val(switch_event.getCPtr(arg0), header_name, val); - return ret; - } - - public static int switch_event_add_array(switch_event arg0, string var, string val) { - int ret = freeswitchPINVOKE.switch_event_add_array(switch_event.getCPtr(arg0), var, val); - return ret; - } - - public static void switch_event_destroy(SWIGTYPE_p_p_switch_event arg0) { - freeswitchPINVOKE.switch_event_destroy(SWIGTYPE_p_p_switch_event.getCPtr(arg0)); - } - - public static switch_status_t switch_event_dup(SWIGTYPE_p_p_switch_event arg0, switch_event todup) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_dup(SWIGTYPE_p_p_switch_event.getCPtr(arg0), switch_event.getCPtr(todup)); - return ret; - } - - public static void switch_event_merge(switch_event arg0, switch_event tomerge) { - freeswitchPINVOKE.switch_event_merge(switch_event.getCPtr(arg0), switch_event.getCPtr(tomerge)); - } - - public static switch_status_t switch_event_dup_reply(SWIGTYPE_p_p_switch_event arg0, switch_event todup) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_dup_reply(SWIGTYPE_p_p_switch_event.getCPtr(arg0), switch_event.getCPtr(todup)); - return ret; - } - - public static switch_status_t switch_event_fire_detailed(string file, string func, int line, SWIGTYPE_p_p_switch_event arg3, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_fire_detailed(file, func, line, SWIGTYPE_p_p_switch_event.getCPtr(arg3), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static void switch_event_prep_for_delivery_detailed(string file, string func, int line, switch_event arg3) { - freeswitchPINVOKE.switch_event_prep_for_delivery_detailed(file, func, line, switch_event.getCPtr(arg3)); - } - - public static switch_status_t switch_event_bind(string id, switch_event_types_t arg1, string subclass_name, SWIGTYPE_p_f_p_switch_event__void callback, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_bind(id, (int)arg1, subclass_name, SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static switch_status_t switch_event_bind_removable(string id, switch_event_types_t arg1, string subclass_name, SWIGTYPE_p_f_p_switch_event__void callback, SWIGTYPE_p_void user_data, SWIGTYPE_p_p_switch_event_node node) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_bind_removable(id, (int)arg1, subclass_name, SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_p_switch_event_node.getCPtr(node)); - return ret; - } - - public static switch_status_t switch_event_unbind(SWIGTYPE_p_p_switch_event_node node) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_unbind(SWIGTYPE_p_p_switch_event_node.getCPtr(node)); - return ret; - } - - public static switch_status_t switch_event_unbind_callback(SWIGTYPE_p_f_p_switch_event__void callback) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_unbind_callback(SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback)); - return ret; - } - - public static string switch_event_name(switch_event_types_t arg0) { - string ret = freeswitchPINVOKE.switch_event_name((int)arg0); - return ret; - } - - public static switch_status_t switch_name_event(string name, SWIGTYPE_p_switch_event_types_t type) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_name_event(name, SWIGTYPE_p_switch_event_types_t.getCPtr(type)); - return ret; - } - - public static switch_status_t switch_event_reserve_subclass_detailed(string owner, string subclass_name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_reserve_subclass_detailed(owner, subclass_name); - return ret; - } - - public static switch_status_t switch_event_free_subclass_detailed(string owner, string subclass_name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_free_subclass_detailed(owner, subclass_name); - return ret; - } - - public static switch_status_t switch_event_binary_deserialize(SWIGTYPE_p_p_switch_event eventp, SWIGTYPE_p_p_void data, SWIGTYPE_p_switch_size_t len, switch_bool_t duplicate) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_binary_deserialize(SWIGTYPE_p_p_switch_event.getCPtr(eventp), SWIGTYPE_p_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len), (int)duplicate); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_event_binary_serialize(switch_event arg0, SWIGTYPE_p_p_void data, SWIGTYPE_p_switch_size_t len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_binary_serialize(switch_event.getCPtr(arg0), SWIGTYPE_p_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); - return ret; - } - - public static switch_status_t switch_event_serialize(switch_event arg0, ref string str, switch_bool_t encode) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize(switch_event.getCPtr(arg0), ref str, (int)encode); - return ret; - } - - public static switch_status_t switch_event_serialize_json(switch_event arg0, ref string str) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize_json(switch_event.getCPtr(arg0), ref str); - return ret; - } - - public static switch_status_t switch_event_serialize_json_obj(switch_event arg0, SWIGTYPE_p_p_cJSON json) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize_json_obj(switch_event.getCPtr(arg0), SWIGTYPE_p_p_cJSON.getCPtr(json)); - return ret; - } - - public static switch_status_t switch_event_create_json(SWIGTYPE_p_p_switch_event arg0, string json) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_json(SWIGTYPE_p_p_switch_event.getCPtr(arg0), json); - return ret; - } - - public static switch_status_t switch_event_create_brackets(string data, char a, char b, char c, SWIGTYPE_p_p_switch_event arg4, ref string new_data, switch_bool_t dup) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_brackets(data, a, b, c, SWIGTYPE_p_p_switch_event.getCPtr(arg4), ref new_data, (int)dup); - return ret; - } - - public static switch_status_t switch_event_create_array_pair(SWIGTYPE_p_p_switch_event arg0, ref string names, ref string vals, int len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_array_pair(SWIGTYPE_p_p_switch_event.getCPtr(arg0), ref names, ref vals, len); - return ret; - } - - public static switch_status_t switch_event_running() { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_running(); - return ret; - } - - public static switch_status_t switch_event_set_body(switch_event arg0, string body) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_body(switch_event.getCPtr(arg0), body); - return ret; - } - - public static string switch_event_expand_headers_check(switch_event arg0, string arg1, switch_event var_list, switch_event api_list, uint recur) { - string ret = freeswitchPINVOKE.switch_event_expand_headers_check(switch_event.getCPtr(arg0), arg1, switch_event.getCPtr(var_list), switch_event.getCPtr(api_list), recur); - return ret; - } - - public static switch_status_t switch_event_create_pres_in_detailed(string file, string func, int line, string proto, string login, string from, string from_domain, string status, string event_type, string alt_event_type, int event_count, string unique_id, string channel_state, string answer_state, string call_direction) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_pres_in_detailed(file, func, line, proto, login, from, from_domain, status, event_type, alt_event_type, event_count, unique_id, channel_state, answer_state, call_direction); - return ret; - } - - public static switch_status_t switch_event_create_plain(SWIGTYPE_p_p_switch_event arg0, switch_event_types_t event_id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_plain(SWIGTYPE_p_p_switch_event.getCPtr(arg0), (int)event_id); - return ret; - } - - public static void switch_event_deliver(SWIGTYPE_p_p_switch_event arg0) { - freeswitchPINVOKE.switch_event_deliver(SWIGTYPE_p_p_switch_event.getCPtr(arg0)); - } - - public static string switch_event_build_param_string(switch_event arg0, string prefix, SWIGTYPE_p_switch_hashtable vars_map) { - string ret = freeswitchPINVOKE.switch_event_build_param_string(switch_event.getCPtr(arg0), prefix, SWIGTYPE_p_switch_hashtable.getCPtr(vars_map)); - return ret; - } - - public static int switch_event_check_permission_list(switch_event list, string name) { - int ret = freeswitchPINVOKE.switch_event_check_permission_list(switch_event.getCPtr(list), name); - return ret; - } - - public static void switch_event_add_presence_data_cols(SWIGTYPE_p_switch_channel channel, switch_event arg1, string prefix) { - freeswitchPINVOKE.switch_event_add_presence_data_cols(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1), prefix); - } - - public static void switch_json_add_presence_data_cols(switch_event arg0, SWIGTYPE_p_cJSON json, string prefix) { - freeswitchPINVOKE.switch_json_add_presence_data_cols(switch_event.getCPtr(arg0), SWIGTYPE_p_cJSON.getCPtr(json), prefix); - } - - public static void switch_event_launch_dispatch_threads(uint max) { - freeswitchPINVOKE.switch_event_launch_dispatch_threads(max); - } - - public static uint switch_event_channel_broadcast(string event_channel, SWIGTYPE_p_p_cJSON json, string key, uint id) { - uint ret = freeswitchPINVOKE.switch_event_channel_broadcast(event_channel, SWIGTYPE_p_p_cJSON.getCPtr(json), key, id); - return ret; - } - - public static uint switch_event_channel_unbind(string event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void func) { - uint ret = freeswitchPINVOKE.switch_event_channel_unbind(event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void.getCPtr(func)); - return ret; - } - - public static switch_status_t switch_event_channel_bind(string event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void func, SWIGTYPE_p_unsigned_long id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_channel_bind(event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void.getCPtr(func), SWIGTYPE_p_unsigned_long.getCPtr(id)); - return ret; - } - - public static switch_status_t switch_live_array_clear(SWIGTYPE_p_switch_live_array_s la) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_clear(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); - return ret; - } - - public static switch_status_t switch_live_array_bootstrap(SWIGTYPE_p_switch_live_array_s la, string sessid, uint channel_id) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_bootstrap(SWIGTYPE_p_switch_live_array_s.getCPtr(la), sessid, channel_id); - return ret; - } - - public static switch_status_t switch_live_array_destroy(SWIGTYPE_p_p_switch_live_array_s live_arrayP) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_destroy(SWIGTYPE_p_p_switch_live_array_s.getCPtr(live_arrayP)); - return ret; - } - - public static switch_status_t switch_live_array_create(string event_channel, string name, uint channel_id, SWIGTYPE_p_p_switch_live_array_s live_arrayP) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_create(event_channel, name, channel_id, SWIGTYPE_p_p_switch_live_array_s.getCPtr(live_arrayP)); - return ret; - } - - public static SWIGTYPE_p_cJSON switch_live_array_get(SWIGTYPE_p_switch_live_array_s la, string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_live_array_get(SWIGTYPE_p_switch_live_array_s.getCPtr(la), name); - SWIGTYPE_p_cJSON ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_cJSON(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_cJSON switch_live_array_get_idx(SWIGTYPE_p_switch_live_array_s la, int idx) { - IntPtr cPtr = freeswitchPINVOKE.switch_live_array_get_idx(SWIGTYPE_p_switch_live_array_s.getCPtr(la), idx); - SWIGTYPE_p_cJSON ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_cJSON(cPtr, false); - return ret; - } - - public static switch_status_t switch_live_array_del(SWIGTYPE_p_switch_live_array_s la, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_del(SWIGTYPE_p_switch_live_array_s.getCPtr(la), name); - return ret; - } - - public static switch_status_t switch_live_array_add(SWIGTYPE_p_switch_live_array_s la, string name, int index, SWIGTYPE_p_p_cJSON obj, switch_bool_t destroy) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_add(SWIGTYPE_p_switch_live_array_s.getCPtr(la), name, index, SWIGTYPE_p_p_cJSON.getCPtr(obj), (int)destroy); - return ret; - } - - public static switch_status_t switch_live_array_visible(SWIGTYPE_p_switch_live_array_s la, switch_bool_t visible, switch_bool_t force) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_visible(SWIGTYPE_p_switch_live_array_s.getCPtr(la), (int)visible, (int)force); - return ret; - } - - public static switch_bool_t switch_live_array_isnew(SWIGTYPE_p_switch_live_array_s la) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_live_array_isnew(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); - return ret; - } - - public static void switch_live_array_lock(SWIGTYPE_p_switch_live_array_s la) { - freeswitchPINVOKE.switch_live_array_lock(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); - } - - public static void switch_live_array_unlock(SWIGTYPE_p_switch_live_array_s la) { - freeswitchPINVOKE.switch_live_array_unlock(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); - } - - public static void switch_live_array_set_user_data(SWIGTYPE_p_switch_live_array_s la, SWIGTYPE_p_void user_data) { - freeswitchPINVOKE.switch_live_array_set_user_data(SWIGTYPE_p_switch_live_array_s.getCPtr(la), SWIGTYPE_p_void.getCPtr(user_data)); - } - - public static void switch_live_array_set_command_handler(SWIGTYPE_p_switch_live_array_s la, SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void command_handler) { - freeswitchPINVOKE.switch_live_array_set_command_handler(SWIGTYPE_p_switch_live_array_s.getCPtr(la), SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void.getCPtr(command_handler)); - } - - public static void switch_live_array_parse_json(SWIGTYPE_p_cJSON json, uint channel_id) { - freeswitchPINVOKE.switch_live_array_parse_json(SWIGTYPE_p_cJSON.getCPtr(json), channel_id); - } - - public static switch_bool_t switch_live_array_add_alias(SWIGTYPE_p_switch_live_array_s la, string event_channel, string name) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_live_array_add_alias(SWIGTYPE_p_switch_live_array_s.getCPtr(la), event_channel, name); - return ret; - } - - public static switch_bool_t switch_live_array_clear_alias(SWIGTYPE_p_switch_live_array_s la, string event_channel, string name) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_live_array_clear_alias(SWIGTYPE_p_switch_live_array_s.getCPtr(la), event_channel, name); - return ret; - } - - public static switch_bool_t switch_event_channel_permission_verify(string cookie, string event_channel) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_event_channel_permission_verify(cookie, event_channel); - return ret; - } - - public static void switch_event_channel_permission_modify(string cookie, string event_channel, switch_bool_t set) { - freeswitchPINVOKE.switch_event_channel_permission_modify(cookie, event_channel, (int)set); - } - - public static void switch_event_channel_permission_clear(string cookie) { - freeswitchPINVOKE.switch_event_channel_permission_clear(cookie); - } - - public static switch_status_t switch_resample_perform_create(SWIGTYPE_p_p_switch_audio_resampler_t new_resampler, uint from_rate, uint to_rate, uint to_size, int quality, uint channels, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_resample_perform_create(SWIGTYPE_p_p_switch_audio_resampler_t.getCPtr(new_resampler), from_rate, to_rate, to_size, quality, channels, file, func, line); - return ret; - } - - public static void switch_resample_destroy(SWIGTYPE_p_p_switch_audio_resampler_t resampler) { - freeswitchPINVOKE.switch_resample_destroy(SWIGTYPE_p_p_switch_audio_resampler_t.getCPtr(resampler)); - } - - public static uint switch_resample_process(switch_audio_resampler_t resampler, SWIGTYPE_p_short src, uint srclen) { - uint ret = freeswitchPINVOKE.switch_resample_process(switch_audio_resampler_t.getCPtr(resampler), SWIGTYPE_p_short.getCPtr(src), srclen); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_float_to_short(SWIGTYPE_p_float f, SWIGTYPE_p_short s, SWIGTYPE_p_switch_size_t len) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_float_to_short(SWIGTYPE_p_float.getCPtr(f), SWIGTYPE_p_short.getCPtr(s), SWIGTYPE_p_switch_size_t.getCPtr(len)), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static int switch_char_to_float(string c, SWIGTYPE_p_float f, int len) { - int ret = freeswitchPINVOKE.switch_char_to_float(c, SWIGTYPE_p_float.getCPtr(f), len); - return ret; - } - - public static int switch_float_to_char(SWIGTYPE_p_float f, string c, int len) { - int ret = freeswitchPINVOKE.switch_float_to_char(SWIGTYPE_p_float.getCPtr(f), c, len); - return ret; - } - - public static int switch_short_to_float(SWIGTYPE_p_short s, SWIGTYPE_p_float f, int len) { - int ret = freeswitchPINVOKE.switch_short_to_float(SWIGTYPE_p_short.getCPtr(s), SWIGTYPE_p_float.getCPtr(f), len); - return ret; - } - - public static void switch_swap_linear(SWIGTYPE_p_short buf, int len) { - freeswitchPINVOKE.switch_swap_linear(SWIGTYPE_p_short.getCPtr(buf), len); - } - - public static void switch_generate_sln_silence(SWIGTYPE_p_short data, uint samples, uint channels, uint divisor) { - freeswitchPINVOKE.switch_generate_sln_silence(SWIGTYPE_p_short.getCPtr(data), samples, channels, divisor); - } - - public static void switch_change_sln_volume(SWIGTYPE_p_short data, uint samples, int vol) { - freeswitchPINVOKE.switch_change_sln_volume(SWIGTYPE_p_short.getCPtr(data), samples, vol); - } - - public static void switch_change_sln_volume_granular(SWIGTYPE_p_short data, uint samples, int vol) { - freeswitchPINVOKE.switch_change_sln_volume_granular(SWIGTYPE_p_short.getCPtr(data), samples, vol); - } - - public static uint switch_merge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples) { - uint ret = freeswitchPINVOKE.switch_merge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples); - return ret; - } - - public static uint switch_unmerge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples) { - uint ret = freeswitchPINVOKE.switch_unmerge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples); - return ret; - } - - public static void switch_mux_channels(SWIGTYPE_p_short data, SWIGTYPE_p_switch_size_t samples, uint orig_channels, uint channels) { - freeswitchPINVOKE.switch_mux_channels(SWIGTYPE_p_short.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(samples), orig_channels, channels); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - - public static switch_status_t switch_ivr_deactivate_unicast(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_deactivate_unicast(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_activate_unicast(SWIGTYPE_p_switch_core_session session, string local_ip, ushort local_port, string remote_ip, ushort remote_port, string transport, string flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_activate_unicast(SWIGTYPE_p_switch_core_session.getCPtr(session), local_ip, local_port, remote_ip, remote_port, transport, flags); - return ret; - } - - public static switch_status_t switch_ivr_generate_json_cdr(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_cJSON json_cdr, switch_bool_t urlencode) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_generate_json_cdr(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_cJSON.getCPtr(json_cdr), (int)urlencode); - return ret; - } - - public static switch_status_t switch_ivr_generate_xml_cdr(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_xml xml_cdr) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_generate_xml_cdr(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_xml.getCPtr(xml_cdr)); - return ret; - } - - public static int switch_ivr_set_xml_profile_data(switch_xml xml, switch_caller_profile caller_profile, int off) { - int ret = freeswitchPINVOKE.switch_ivr_set_xml_profile_data(switch_xml.getCPtr(xml), switch_caller_profile.getCPtr(caller_profile), off); - return ret; - } - - public static int switch_ivr_set_xml_chan_vars(switch_xml xml, SWIGTYPE_p_switch_channel channel, int off) { - int ret = freeswitchPINVOKE.switch_ivr_set_xml_chan_vars(switch_xml.getCPtr(xml), SWIGTYPE_p_switch_channel.getCPtr(channel), off); - return ret; - } - - public static switch_status_t switch_ivr_parse_event(SWIGTYPE_p_switch_core_session session, switch_event arg1) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_event(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_event.getCPtr(arg1)); - return ret; - } - - public static switch_status_t switch_ivr_parse_all_events(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_all_events(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_parse_next_event(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_next_event(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_parse_all_messages(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_all_messages(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_parse_all_signal_data(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_all_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_process_indications(SWIGTYPE_p_switch_core_session session, switch_core_session_message message) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_process_indications(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message)); - return ret; - } - - public static switch_status_t switch_ivr_sleep(SWIGTYPE_p_switch_core_session session, uint ms, switch_bool_t sync, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_sleep(SWIGTYPE_p_switch_core_session.getCPtr(session), ms, (int)sync, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_park(SWIGTYPE_p_switch_core_session session, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_park(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_collect_digits_callback(SWIGTYPE_p_switch_core_session session, switch_input_args_t args, uint digit_timeout, uint abs_timeout) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_collect_digits_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args), digit_timeout, abs_timeout); - return ret; - } - - public static switch_status_t switch_ivr_collect_digits_count(SWIGTYPE_p_switch_core_session session, string buf, SWIGTYPE_p_switch_size_t buflen, SWIGTYPE_p_switch_size_t maxdigits, string terminators, string terminator, uint first_timeout, uint digit_timeout, uint abs_timeout) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_collect_digits_count(SWIGTYPE_p_switch_core_session.getCPtr(session), buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen), SWIGTYPE_p_switch_size_t.getCPtr(maxdigits), terminators, terminator, first_timeout, digit_timeout, abs_timeout); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_ivr_play_and_detect_speech(SWIGTYPE_p_switch_core_session session, string file, string mod_name, string grammar, ref string result, uint input_timeout, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_play_and_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session), file, mod_name, grammar, ref result, input_timeout, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_init(SWIGTYPE_p_switch_core_session session, string mod_name, string dest, switch_asr_handle ah) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_init(SWIGTYPE_p_switch_core_session.getCPtr(session), mod_name, dest, switch_asr_handle.getCPtr(ah)); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech(SWIGTYPE_p_switch_core_session session, string mod_name, string grammar, string name, string dest, switch_asr_handle ah) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session), mod_name, grammar, name, dest, switch_asr_handle.getCPtr(ah)); - return ret; - } - - public static switch_status_t switch_ivr_stop_detect_speech(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_pause_detect_speech(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_pause_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_resume_detect_speech(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_resume_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_load_grammar(SWIGTYPE_p_switch_core_session session, string grammar, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_load_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), grammar, name); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_unload_grammar(SWIGTYPE_p_switch_core_session session, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_unload_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), name); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_enable_grammar(SWIGTYPE_p_switch_core_session session, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_enable_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), name); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_disable_grammar(SWIGTYPE_p_switch_core_session session, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_disable_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), name); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_disable_all_grammars(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_disable_all_grammars(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_set_param_detect_speech(SWIGTYPE_p_switch_core_session session, string name, string val) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_param_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session), name, val); - return ret; - } - - public static switch_status_t switch_ivr_detect_speech_start_input_timers(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_start_input_timers(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_record_session(SWIGTYPE_p_switch_core_session session, string file, uint limit, switch_file_handle fh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_record_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file, limit, switch_file_handle.getCPtr(fh)); - return ret; - } - - public static switch_status_t switch_ivr_transfer_recordings(SWIGTYPE_p_switch_core_session orig_session, SWIGTYPE_p_switch_core_session new_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_transfer_recordings(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), SWIGTYPE_p_switch_core_session.getCPtr(new_session)); - return ret; - } - - public static switch_status_t switch_ivr_eavesdrop_pop_eavesdropper(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session sessionp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_pop_eavesdropper(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(sessionp)); - return ret; - } - - public static switch_status_t switch_ivr_eavesdrop_exec_all(SWIGTYPE_p_switch_core_session session, string app, string arg) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_exec_all(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg); - return ret; - } - - public static switch_status_t switch_ivr_eavesdrop_update_display(SWIGTYPE_p_switch_core_session session, string name, string number) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_update_display(SWIGTYPE_p_switch_core_session.getCPtr(session), name, number); - return ret; - } - - public static switch_status_t switch_ivr_eavesdrop_session(SWIGTYPE_p_switch_core_session session, string uuid, string require_group, uint flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_session(SWIGTYPE_p_switch_core_session.getCPtr(session), uuid, require_group, flags); - return ret; - } - - public static switch_status_t switch_ivr_displace_session(SWIGTYPE_p_switch_core_session session, string file, uint limit, string flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_displace_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file, limit, flags); - return ret; - } - - public static switch_status_t switch_ivr_stop_displace_session(SWIGTYPE_p_switch_core_session session, string file) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_displace_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file); - return ret; - } - - public static switch_status_t switch_ivr_stop_record_session(SWIGTYPE_p_switch_core_session session, string file) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_record_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file); - return ret; - } - - public static switch_status_t switch_ivr_session_audio(SWIGTYPE_p_switch_core_session session, string cmd, string direction, int level) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_audio(SWIGTYPE_p_switch_core_session.getCPtr(session), cmd, direction, level); - return ret; - } - - public static switch_status_t switch_ivr_stop_session_audio(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_session_audio(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_inband_dtmf_session(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_inband_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_stop_inband_dtmf_session(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_inband_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session session, switch_bool_t read_stream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)read_stream); - return ret; - } - - public static switch_status_t switch_ivr_stop_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_session_echo(SWIGTYPE_p_switch_core_session session, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_echo(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_stop_tone_detect_session(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_tone_detect_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_tone_detect_session(SWIGTYPE_p_switch_core_session session, string key, string tone_spec, string flags, SWIGTYPE_p_time_t timeout, int hits, string app, string data, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t callback) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_tone_detect_session(SWIGTYPE_p_switch_core_session.getCPtr(session), key, tone_spec, flags, SWIGTYPE_p_time_t.getCPtr(timeout), hits, app, data, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t.getCPtr(callback)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_ivr_play_file(SWIGTYPE_p_switch_core_session session, switch_file_handle fh, string file, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_play_file(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_file_handle.getCPtr(fh), file, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_wait_for_silence(SWIGTYPE_p_switch_core_session session, uint thresh, uint silence_hits, uint listen_hits, uint timeout_ms, string file) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_wait_for_silence(SWIGTYPE_p_switch_core_session.getCPtr(session), thresh, silence_hits, listen_hits, timeout_ms, file); - return ret; - } - - public static switch_status_t switch_ivr_gentones(SWIGTYPE_p_switch_core_session session, string script, int loops, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_gentones(SWIGTYPE_p_switch_core_session.getCPtr(session), script, loops, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_record_file(SWIGTYPE_p_switch_core_session session, switch_file_handle fh, string file, switch_input_args_t args, uint limit) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_record_file(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_file_handle.getCPtr(fh), file, switch_input_args_t.getCPtr(args), limit); - return ret; - } - - public static switch_status_t switch_play_and_get_digits(SWIGTYPE_p_switch_core_session session, uint min_digits, uint max_digits, uint max_tries, uint timeout, string valid_terminators, string audio_file, string bad_input_audio_file, string var_name, string digit_buffer, uint digit_buffer_length, string digits_regex, uint digit_timeout, string transfer_on_failure) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_play_and_get_digits(SWIGTYPE_p_switch_core_session.getCPtr(session), min_digits, max_digits, max_tries, timeout, valid_terminators, audio_file, bad_input_audio_file, var_name, digit_buffer, digit_buffer_length, digits_regex, digit_timeout, transfer_on_failure); - return ret; - } - - public static switch_status_t switch_ivr_speak_text_handle(SWIGTYPE_p_switch_core_session session, switch_speech_handle sh, switch_codec codec, switch_timer timer, string text, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_speak_text_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_speech_handle.getCPtr(sh), switch_codec.getCPtr(codec), switch_timer.getCPtr(timer), text, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static void switch_ivr_clear_speech_cache(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_ivr_clear_speech_cache(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static switch_status_t switch_ivr_speak_text(SWIGTYPE_p_switch_core_session session, string tts_name, string voice_name, string text, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_speak_text(SWIGTYPE_p_switch_core_session.getCPtr(session), tts_name, voice_name, text, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause)); - return ret; - } - - public static switch_status_t switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause)); - return ret; - } - - public static void switch_ivr_bridge_display(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session) { - freeswitchPINVOKE.switch_ivr_bridge_display(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session)); - } - - public static switch_status_t switch_ivr_multi_threaded_bridge(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session, SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t dtmf_callback, SWIGTYPE_p_void session_data, SWIGTYPE_p_void peer_session_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_multi_threaded_bridge(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session), SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t.getCPtr(dtmf_callback), SWIGTYPE_p_void.getCPtr(session_data), SWIGTYPE_p_void.getCPtr(peer_session_data)); - return ret; - } - - public static switch_status_t switch_ivr_signal_bridge(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_signal_bridge(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session)); - return ret; - } - - public static switch_status_t switch_ivr_session_transfer(SWIGTYPE_p_switch_core_session session, string extension, string dialplan, string context) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_transfer(SWIGTYPE_p_switch_core_session.getCPtr(session), extension, dialplan, context); - return ret; - } - - public static uint switch_ivr_schedule_transfer(SWIGTYPE_p_time_t runtime, string uuid, string extension, string dialplan, string context) { - uint ret = freeswitchPINVOKE.switch_ivr_schedule_transfer(SWIGTYPE_p_time_t.getCPtr(runtime), uuid, extension, dialplan, context); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint switch_ivr_schedule_hangup(SWIGTYPE_p_time_t runtime, string uuid, switch_call_cause_t cause, switch_bool_t bleg) { - uint ret = freeswitchPINVOKE.switch_ivr_schedule_hangup(SWIGTYPE_p_time_t.getCPtr(runtime), uuid, (int)cause, (int)bleg); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_ivr_uuid_bridge(string originator_uuid, string originatee_uuid) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_uuid_bridge(originator_uuid, originatee_uuid); - return ret; - } - - public static switch_status_t switch_ivr_media(string uuid, uint flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_media(uuid, flags); - return ret; - } - - public static switch_status_t switch_ivr_nomedia(string uuid, uint flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_nomedia(uuid, flags); - return ret; - } - - public static switch_status_t switch_ivr_hold_uuid(string uuid, string message, switch_bool_t moh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_hold_uuid(uuid, message, (int)moh); - return ret; - } - - public static switch_status_t switch_ivr_hold_toggle_uuid(string uuid, string message, switch_bool_t moh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_hold_toggle_uuid(uuid, message, (int)moh); - return ret; - } - - public static switch_status_t switch_ivr_unhold_uuid(string uuid) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unhold_uuid(uuid); - return ret; - } - - public static switch_status_t switch_ivr_hold(SWIGTYPE_p_switch_core_session session, string message, switch_bool_t moh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_hold(SWIGTYPE_p_switch_core_session.getCPtr(session), message, (int)moh); - return ret; - } - - public static switch_status_t switch_ivr_unhold(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unhold(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static uint switch_ivr_schedule_broadcast(SWIGTYPE_p_time_t runtime, string uuid, string path, uint flags) { - uint ret = freeswitchPINVOKE.switch_ivr_schedule_broadcast(SWIGTYPE_p_time_t.getCPtr(runtime), uuid, path, flags); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_ivr_broadcast(string uuid, string path, uint flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_broadcast(uuid, path, flags); - return ret; - } - - public static void switch_ivr_broadcast_in_thread(SWIGTYPE_p_switch_core_session session, string app, int flags) { - freeswitchPINVOKE.switch_ivr_broadcast_in_thread(SWIGTYPE_p_switch_core_session.getCPtr(session), app, flags); - } - - public static switch_status_t switch_ivr_transfer_variable(SWIGTYPE_p_switch_core_session sessa, SWIGTYPE_p_switch_core_session sessb, string var) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_transfer_variable(SWIGTYPE_p_switch_core_session.getCPtr(sessa), SWIGTYPE_p_switch_core_session.getCPtr(sessb), var); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_parser_new(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_ivr_digit_stream_parser parser) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_new(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_ivr_digit_stream_parser.getCPtr(parser)); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_parser_destroy(SWIGTYPE_p_switch_ivr_digit_stream_parser parser) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_destroy(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser)); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_new(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, SWIGTYPE_p_p_switch_ivr_digit_stream stream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_new(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), SWIGTYPE_p_p_switch_ivr_digit_stream.getCPtr(stream)); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_destroy(SWIGTYPE_p_p_switch_ivr_digit_stream stream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_destroy(SWIGTYPE_p_p_switch_ivr_digit_stream.getCPtr(stream)); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_parser_set_event(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, string digits, SWIGTYPE_p_void data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_set_event(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), digits, SWIGTYPE_p_void.getCPtr(data)); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_parser_del_event(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, string digits) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_del_event(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), digits); - return ret; - } - - public static SWIGTYPE_p_void switch_ivr_digit_stream_parser_feed(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, SWIGTYPE_p_switch_ivr_digit_stream stream, char digit) { - IntPtr cPtr = freeswitchPINVOKE.switch_ivr_digit_stream_parser_feed(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), SWIGTYPE_p_switch_ivr_digit_stream.getCPtr(stream), digit); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_reset(SWIGTYPE_p_switch_ivr_digit_stream stream) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_reset(SWIGTYPE_p_switch_ivr_digit_stream.getCPtr(stream)); - return ret; - } - - public static switch_status_t switch_ivr_digit_stream_parser_set_terminator(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, char digit) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_set_terminator(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), digit); - return ret; - } - - public static switch_status_t switch_ivr_menu_init(SWIGTYPE_p_p_switch_ivr_menu new_menu, SWIGTYPE_p_switch_ivr_menu main, string name, string greeting_sound, string short_greeting_sound, string invalid_sound, string exit_sound, string transfer_sound, string confirm_macro, string confirm_key, string tts_engine, string tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_init(SWIGTYPE_p_p_switch_ivr_menu.getCPtr(new_menu), SWIGTYPE_p_switch_ivr_menu.getCPtr(main), name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_ivr_menu_bind_action(SWIGTYPE_p_switch_ivr_menu menu, switch_ivr_action_t ivr_action, string arg, string bind) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_bind_action(SWIGTYPE_p_switch_ivr_menu.getCPtr(menu), (int)ivr_action, arg, bind); - return ret; - } - - public static switch_status_t switch_ivr_menu_bind_function(SWIGTYPE_p_switch_ivr_menu menu, SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t function, string arg, string bind) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_bind_function(SWIGTYPE_p_switch_ivr_menu.getCPtr(menu), SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t.getCPtr(function), arg, bind); - return ret; - } - - public static switch_status_t switch_ivr_menu_execute(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_ivr_menu stack, string name, SWIGTYPE_p_void obj) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_execute(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_ivr_menu.getCPtr(stack), name, SWIGTYPE_p_void.getCPtr(obj)); - return ret; - } - - public static switch_status_t switch_ivr_menu_stack_free(SWIGTYPE_p_switch_ivr_menu stack) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_free(SWIGTYPE_p_switch_ivr_menu.getCPtr(stack)); - return ret; - } - - public static switch_status_t switch_ivr_menu_stack_xml_build(SWIGTYPE_p_switch_ivr_menu_xml_ctx xml_menu_ctx, SWIGTYPE_p_p_switch_ivr_menu menu_stack, switch_xml xml_menus, switch_xml xml_menu) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_xml_build(SWIGTYPE_p_switch_ivr_menu_xml_ctx.getCPtr(xml_menu_ctx), SWIGTYPE_p_p_switch_ivr_menu.getCPtr(menu_stack), switch_xml.getCPtr(xml_menus), switch_xml.getCPtr(xml_menu)); - return ret; - } - - public static switch_status_t switch_ivr_menu_str2action(string action_name, SWIGTYPE_p_switch_ivr_action_t action) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_str2action(action_name, SWIGTYPE_p_switch_ivr_action_t.getCPtr(action)); - return ret; - } - - public static switch_status_t switch_ivr_menu_stack_xml_add_custom(SWIGTYPE_p_switch_ivr_menu_xml_ctx xml_menu_ctx, string name, SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t function) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_xml_add_custom(SWIGTYPE_p_switch_ivr_menu_xml_ctx.getCPtr(xml_menu_ctx), name, SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t.getCPtr(function)); - return ret; - } - - public static switch_status_t switch_ivr_menu_stack_xml_init(SWIGTYPE_p_p_switch_ivr_menu_xml_ctx xml_menu_ctx, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_xml_init(SWIGTYPE_p_p_switch_ivr_menu_xml_ctx.getCPtr(xml_menu_ctx), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static switch_status_t switch_ivr_phrase_macro_event(SWIGTYPE_p_switch_core_session session, string macro_name, string data, switch_event arg3, string lang, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_phrase_macro_event(SWIGTYPE_p_switch_core_session.getCPtr(session), macro_name, data, switch_event.getCPtr(arg3), lang, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static void switch_ivr_delay_echo(SWIGTYPE_p_switch_core_session session, uint delay_ms) { - freeswitchPINVOKE.switch_ivr_delay_echo(SWIGTYPE_p_switch_core_session.getCPtr(session), delay_ms); - } - - public static switch_status_t switch_ivr_find_bridged_uuid(string uuid, string b_uuid, SWIGTYPE_p_switch_size_t blen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_find_bridged_uuid(uuid, b_uuid, SWIGTYPE_p_switch_size_t.getCPtr(blen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_ivr_intercept_session(SWIGTYPE_p_switch_core_session session, string uuid, switch_bool_t bleg) { - freeswitchPINVOKE.switch_ivr_intercept_session(SWIGTYPE_p_switch_core_session.getCPtr(session), uuid, (int)bleg); - } - - public static void switch_ivr_park_session(SWIGTYPE_p_switch_core_session session) { - freeswitchPINVOKE.switch_ivr_park_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - } - - public static switch_status_t switch_ivr_wait_for_answer(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_wait_for_answer(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session)); - return ret; - } - - public static switch_status_t switch_ivr_read(SWIGTYPE_p_switch_core_session session, uint min_digits, uint max_digits, string prompt_audio_file, string var_name, string digit_buffer, SWIGTYPE_p_switch_size_t digit_buffer_length, uint timeout, string valid_terminators, uint digit_timeout) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_read(SWIGTYPE_p_switch_core_session.getCPtr(session), min_digits, max_digits, prompt_audio_file, var_name, digit_buffer, SWIGTYPE_p_switch_size_t.getCPtr(digit_buffer_length), timeout, valid_terminators, digit_timeout); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_ivr_block_dtmf_session(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_block_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_unblock_dtmf_session(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unblock_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t switch_ivr_bind_dtmf_meta_session(SWIGTYPE_p_switch_core_session session, uint key, uint bind_flags, string app) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_bind_dtmf_meta_session(SWIGTYPE_p_switch_core_session.getCPtr(session), key, bind_flags, app); - return ret; - } - - public static switch_status_t switch_ivr_unbind_dtmf_meta_session(SWIGTYPE_p_switch_core_session session, uint key) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unbind_dtmf_meta_session(SWIGTYPE_p_switch_core_session.getCPtr(session), key); - return ret; - } - - public static switch_status_t switch_ivr_soft_hold(SWIGTYPE_p_switch_core_session session, string unhold_key, string moh_a, string moh_b) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_soft_hold(SWIGTYPE_p_switch_core_session.getCPtr(session), unhold_key, moh_a, moh_b); - return ret; - } - - public static switch_status_t switch_ivr_say(SWIGTYPE_p_switch_core_session session, string tosay, string module_name, string say_type, string say_method, string say_gender, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, module_name, say_type, say_method, say_gender, switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_say_string(SWIGTYPE_p_switch_core_session session, string lang, string ext, string tosay, string module_name, string say_type, string say_method, string say_gender, ref string rstr) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say_string(SWIGTYPE_p_switch_core_session.getCPtr(session), lang, ext, tosay, module_name, say_type, say_method, say_gender, ref rstr); - return ret; - } - - public static switch_say_method_t switch_ivr_get_say_method_by_name(string name) { - switch_say_method_t ret = (switch_say_method_t)freeswitchPINVOKE.switch_ivr_get_say_method_by_name(name); - return ret; - } - - public static switch_say_gender_t switch_ivr_get_say_gender_by_name(string name) { - switch_say_gender_t ret = (switch_say_gender_t)freeswitchPINVOKE.switch_ivr_get_say_gender_by_name(name); - return ret; - } - - public static switch_say_type_t switch_ivr_get_say_type_by_name(string name) { - switch_say_type_t ret = (switch_say_type_t)freeswitchPINVOKE.switch_ivr_get_say_type_by_name(name); - return ret; - } - - public static switch_status_t switch_ivr_say_spell(SWIGTYPE_p_switch_core_session session, string tosay, switch_say_args_t say_args, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say_spell(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, switch_say_args_t.getCPtr(say_args), switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_say_ip(SWIGTYPE_p_switch_core_session session, string tosay, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t number_func, switch_say_args_t say_args, switch_input_args_t args) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say_ip(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t.getCPtr(number_func), switch_say_args_t.getCPtr(say_args), switch_input_args_t.getCPtr(args)); - return ret; - } - - public static switch_status_t switch_ivr_set_user(SWIGTYPE_p_switch_core_session session, string data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_user(SWIGTYPE_p_switch_core_session.getCPtr(session), data); - return ret; - } - - public static switch_status_t switch_ivr_set_user_xml(SWIGTYPE_p_switch_core_session session, string prefix, string user, string domain, switch_xml x_user) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_user_xml(SWIGTYPE_p_switch_core_session.getCPtr(session), prefix, user, domain, switch_xml.getCPtr(x_user)); - return ret; - } - - public static switch_status_t switch_ivr_sound_test(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_sound_test(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static void switch_process_import(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_channel peer_channel, string varname, string prefix) { - freeswitchPINVOKE.switch_process_import(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_channel.getCPtr(peer_channel), varname, prefix); - } - - public static switch_bool_t switch_ivr_uuid_exists(string uuid) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ivr_uuid_exists(uuid); - return ret; - } - - public static switch_bool_t switch_ivr_uuid_force_exists(string uuid) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ivr_uuid_force_exists(uuid); - return ret; - } - - public static switch_bool_t switch_ivr_dmachine_is_parsing(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ivr_dmachine_is_parsing(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - return ret; - } - - public static switch_status_t switch_ivr_dmachine_last_ping(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_last_ping(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - return ret; - } - - public static string switch_ivr_dmachine_get_name(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - string ret = freeswitchPINVOKE.switch_ivr_dmachine_get_name(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - return ret; - } - - public static void switch_ivr_dmachine_set_match_callback(SWIGTYPE_p_switch_ivr_dmachine dmachine, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t match_callback) { - freeswitchPINVOKE.switch_ivr_dmachine_set_match_callback(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(match_callback)); - } - - public static void switch_ivr_dmachine_set_nonmatch_callback(SWIGTYPE_p_switch_ivr_dmachine dmachine, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t nonmatch_callback) { - freeswitchPINVOKE.switch_ivr_dmachine_set_nonmatch_callback(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(nonmatch_callback)); - } - - public static switch_status_t switch_ivr_dmachine_create(SWIGTYPE_p_p_switch_ivr_dmachine dmachine_p, string name, SWIGTYPE_p_apr_pool_t pool, uint digit_timeout, uint input_timeout, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t match_callback, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t nonmatch_callback, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_create(SWIGTYPE_p_p_switch_ivr_dmachine.getCPtr(dmachine_p), name, SWIGTYPE_p_apr_pool_t.getCPtr(pool), digit_timeout, input_timeout, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(match_callback), SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(nonmatch_callback), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static void switch_ivr_dmachine_destroy(SWIGTYPE_p_p_switch_ivr_dmachine dmachine) { - freeswitchPINVOKE.switch_ivr_dmachine_destroy(SWIGTYPE_p_p_switch_ivr_dmachine.getCPtr(dmachine)); - } - - public static switch_status_t switch_ivr_dmachine_bind(SWIGTYPE_p_switch_ivr_dmachine dmachine, string realm, string digits, int key, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t callback, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_bind(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), realm, digits, key, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static switch_status_t switch_ivr_dmachine_feed(SWIGTYPE_p_switch_ivr_dmachine dmachine, string digits, SWIGTYPE_p_p_switch_ivr_dmachine_match match) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_feed(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), digits, SWIGTYPE_p_p_switch_ivr_dmachine_match.getCPtr(match)); - return ret; - } - - public static switch_status_t switch_ivr_dmachine_clear(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_clear(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - return ret; - } - - public static switch_status_t switch_ivr_dmachine_ping(SWIGTYPE_p_switch_ivr_dmachine dmachine, SWIGTYPE_p_p_switch_ivr_dmachine_match match_p) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_ping(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), SWIGTYPE_p_p_switch_ivr_dmachine_match.getCPtr(match_p)); - return ret; - } - - public static switch_ivr_dmachine_match switch_ivr_dmachine_get_match(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - IntPtr cPtr = freeswitchPINVOKE.switch_ivr_dmachine_get_match(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - switch_ivr_dmachine_match ret = (cPtr == IntPtr.Zero) ? null : new switch_ivr_dmachine_match(cPtr, false); - return ret; - } - - public static string switch_ivr_dmachine_get_failed_digits(SWIGTYPE_p_switch_ivr_dmachine dmachine) { - string ret = freeswitchPINVOKE.switch_ivr_dmachine_get_failed_digits(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); - return ret; - } - - public static void switch_ivr_dmachine_set_digit_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine dmachine, uint digit_timeout_ms) { - freeswitchPINVOKE.switch_ivr_dmachine_set_digit_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), digit_timeout_ms); - } - - public static void switch_ivr_dmachine_set_input_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine dmachine, uint input_timeout_ms) { - freeswitchPINVOKE.switch_ivr_dmachine_set_input_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), input_timeout_ms); - } - - public static switch_status_t switch_ivr_dmachine_clear_realm(SWIGTYPE_p_switch_ivr_dmachine dmachine, string realm) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_clear_realm(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), realm); - return ret; - } - - public static switch_status_t switch_ivr_dmachine_set_realm(SWIGTYPE_p_switch_ivr_dmachine dmachine, string realm) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_set_realm(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), realm); - return ret; - } - - public static switch_status_t switch_ivr_get_file_handle(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_file_handle fh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_get_file_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_file_handle.getCPtr(fh)); - return ret; - } - - public static switch_status_t switch_ivr_release_file_handle(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_file_handle fh) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_release_file_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_file_handle.getCPtr(fh)); - return ret; - } - - public static switch_status_t switch_ivr_process_fh(SWIGTYPE_p_switch_core_session session, string cmd, switch_file_handle fhp) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_process_fh(SWIGTYPE_p_switch_core_session.getCPtr(session), cmd, switch_file_handle.getCPtr(fhp)); - return ret; - } - - public static switch_status_t switch_ivr_insert_file(SWIGTYPE_p_switch_core_session session, string file, string insert_file, SWIGTYPE_p_switch_size_t sample_point) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_insert_file(SWIGTYPE_p_switch_core_session.getCPtr(session), file, insert_file, SWIGTYPE_p_switch_size_t.getCPtr(sample_point)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_ivr_create_message_reply(SWIGTYPE_p_p_switch_event reply, switch_event message, string new_proto) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_create_message_reply(SWIGTYPE_p_p_switch_event.getCPtr(reply), switch_event.getCPtr(message), new_proto); - return ret; - } - - public static string switch_ivr_check_presence_mapping(string exten_name, string domain_name) { - string ret = freeswitchPINVOKE.switch_ivr_check_presence_mapping(exten_name, domain_name); - return ret; - } - - public static switch_status_t switch_ivr_kill_uuid(string uuid, switch_call_cause_t cause) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_kill_uuid(uuid, (int)cause); - return ret; - } - - public static switch_status_t switch_ivr_blind_transfer_ack(SWIGTYPE_p_switch_core_session session, switch_bool_t success) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_blind_transfer_ack(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)success); - return ret; - } - - public static switch_status_t switch_ivr_record_session_mask(SWIGTYPE_p_switch_core_session session, string file, switch_bool_t on) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_record_session_mask(SWIGTYPE_p_switch_core_session.getCPtr(session), file, (int)on); - return ret; - } - - public static switch_status_t switch_rtp_add_crypto_key(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_crypto_direction_t direction, uint index, switch_rtp_crypto_key_type_t type, SWIGTYPE_p_unsigned_char key, SWIGTYPE_p_switch_size_t keylen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_add_crypto_key(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)direction, index, (int)type, SWIGTYPE_p_unsigned_char.getCPtr(key), SWIGTYPE_p_switch_size_t.getCPtr(keylen)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_rtp_get_random(SWIGTYPE_p_void buf, uint len) { - freeswitchPINVOKE.switch_rtp_get_random(SWIGTYPE_p_void.getCPtr(buf), len); - } - - public static void switch_rtp_init(SWIGTYPE_p_apr_pool_t pool) { - freeswitchPINVOKE.switch_rtp_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - } - - public static void switch_rtp_shutdown() { - freeswitchPINVOKE.switch_rtp_shutdown(); - } - - public static ushort switch_rtp_set_start_port(ushort port) { - ushort ret = freeswitchPINVOKE.switch_rtp_set_start_port(port); - return ret; - } - - public static switch_status_t switch_rtp_set_ssrc(SWIGTYPE_p_switch_rtp rtp_session, uint ssrc) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ssrc); - return ret; - } - - public static switch_status_t switch_rtp_set_remote_ssrc(SWIGTYPE_p_switch_rtp rtp_session, uint ssrc) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_remote_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ssrc); - return ret; - } - - public static ushort switch_rtp_set_end_port(ushort port) { - ushort ret = freeswitchPINVOKE.switch_rtp_set_end_port(port); - return ret; - } - - public static ushort switch_rtp_request_port(string ip) { - ushort ret = freeswitchPINVOKE.switch_rtp_request_port(ip); - return ret; - } - - public static void switch_rtp_release_port(string ip, ushort port) { - freeswitchPINVOKE.switch_rtp_release_port(ip, port); - } - - public static switch_status_t switch_rtp_set_interval(SWIGTYPE_p_switch_rtp rtp_session, uint ms_per_packet, uint samples_per_interval) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_interval(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ms_per_packet, samples_per_interval); - return ret; - } - - public static switch_status_t switch_rtp_change_interval(SWIGTYPE_p_switch_rtp rtp_session, uint ms_per_packet, uint samples_per_interval) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_change_interval(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ms_per_packet, samples_per_interval); - return ret; - } - - public static switch_status_t switch_rtp_create(SWIGTYPE_p_p_switch_rtp new_rtp_session, byte payload, uint samples_per_interval, uint ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t flags, string timer_name, ref string err, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_create(SWIGTYPE_p_p_switch_rtp.getCPtr(new_rtp_session), payload, samples_per_interval, ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags), timer_name, ref err, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - return ret; - } - - public static SWIGTYPE_p_switch_rtp switch_rtp_new(string rx_host, ushort rx_port, string tx_host, ushort tx_port, byte payload, uint samples_per_interval, uint ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t flags, string timer_name, ref string err, SWIGTYPE_p_apr_pool_t pool) { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_new(rx_host, rx_port, tx_host, tx_port, payload, samples_per_interval, ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags), timer_name, ref err, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - SWIGTYPE_p_switch_rtp ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_rtp(cPtr, false); - return ret; - } - - public static switch_status_t switch_rtp_set_remote_address(SWIGTYPE_p_switch_rtp rtp_session, string host, ushort port, ushort remote_rtcp_port, switch_bool_t change_adv_addr, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_remote_address(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), host, port, remote_rtcp_port, (int)change_adv_addr, ref err); - return ret; - } - - public static string switch_rtp_get_remote_host(SWIGTYPE_p_switch_rtp rtp_session) { - string ret = freeswitchPINVOKE.switch_rtp_get_remote_host(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static ushort switch_rtp_get_remote_port(SWIGTYPE_p_switch_rtp rtp_session) { - ushort ret = freeswitchPINVOKE.switch_rtp_get_remote_port(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_reset_media_timer(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_reset_media_timer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static void switch_rtp_set_max_missed_packets(SWIGTYPE_p_switch_rtp rtp_session, uint max) { - freeswitchPINVOKE.switch_rtp_set_max_missed_packets(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), max); - } - - public static switch_status_t switch_rtp_udptl_mode(SWIGTYPE_p_switch_rtp rtp_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_udptl_mode(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_reset(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_reset(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static switch_status_t switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp rtp_session, string host, ushort port, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), host, port, ref err); - return ret; - } - - public static void switch_rtp_kill_socket(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_kill_socket(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static void switch_rtp_break(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_break(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static void switch_rtp_flush(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_flush(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static byte switch_rtp_ready(SWIGTYPE_p_switch_rtp rtp_session) { - byte ret = freeswitchPINVOKE.switch_rtp_ready(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_destroy(SWIGTYPE_p_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_destroy(SWIGTYPE_p_p_switch_rtp.getCPtr(rtp_session)); - } - - public static switch_status_t switch_rtp_activate_ice(SWIGTYPE_p_switch_rtp rtp_session, string login, string rlogin, string password, string rpassword, ice_proto_t proto, switch_core_media_ice_type_t type, ice_t ice_params) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_ice(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), login, rlogin, password, rpassword, (int)proto, (int)type, ice_t.getCPtr(ice_params)); - return ret; - } - - public static switch_status_t switch_rtp_activate_rtcp(SWIGTYPE_p_switch_rtp rtp_session, int send_rate, ushort remote_port, switch_bool_t mux) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_rtcp(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), send_rate, remote_port, (int)mux); - return ret; - } - - public static switch_status_t switch_rtp_activate_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, uint queue_frames, uint max_queue_frames, uint samples_per_packet, uint samples_per_second, uint max_drift) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), queue_frames, max_queue_frames, samples_per_packet, samples_per_second, max_drift); - return ret; - } - - public static switch_status_t switch_rtp_debug_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, string name) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_debug_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), name); - return ret; - } - - public static switch_status_t switch_rtp_deactivate_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_deactivate_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static switch_status_t switch_rtp_pause_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, switch_bool_t pause) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_pause_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)pause); - return ret; - } - - public static SWIGTYPE_p_stfu_instance_t switch_rtp_get_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session) { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - SWIGTYPE_p_stfu_instance_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_stfu_instance_t(cPtr, false); - return ret; - } - - public static void switch_rtp_set_flag(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flag_t flag) { - freeswitchPINVOKE.switch_rtp_set_flag(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flag); - } - - public static void switch_rtp_set_flags(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_rtp_flag_t flags) { - freeswitchPINVOKE.switch_rtp_set_flags(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags)); - } - - public static void switch_rtp_clear_flags(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_rtp_flag_t flags) { - freeswitchPINVOKE.switch_rtp_clear_flags(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags)); - } - - public static uint switch_rtp_test_flag(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flag_t flags) { - uint ret = freeswitchPINVOKE.switch_rtp_test_flag(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flags); - return ret; - } - - public static void switch_rtp_clear_flag(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flag_t flag) { - freeswitchPINVOKE.switch_rtp_clear_flag(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flag); - } - - public static SWIGTYPE_p_switch_socket_t switch_rtp_get_rtp_socket(SWIGTYPE_p_switch_rtp rtp_session) { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_rtp_socket(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - SWIGTYPE_p_switch_socket_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_socket_t(cPtr, false); - return ret; - } - - public static void switch_rtp_ping(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_ping(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static uint switch_rtp_get_default_samples_per_interval(SWIGTYPE_p_switch_rtp rtp_session) { - uint ret = freeswitchPINVOKE.switch_rtp_get_default_samples_per_interval(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_set_default_payload(SWIGTYPE_p_switch_rtp rtp_session, byte payload) { - freeswitchPINVOKE.switch_rtp_set_default_payload(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), payload); - } - - public static uint switch_rtp_get_default_payload(SWIGTYPE_p_switch_rtp rtp_session) { - uint ret = freeswitchPINVOKE.switch_rtp_get_default_payload(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_set_invalid_handler(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void on_invalid) { - freeswitchPINVOKE.switch_rtp_set_invalid_handler(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void.getCPtr(on_invalid)); - } - - public static switch_status_t switch_rtp_read(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void data, SWIGTYPE_p_unsigned_long datalen, SWIGTYPE_p_unsigned_char payload_type, SWIGTYPE_p_unsigned_long flags, uint io_flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_read(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_unsigned_long.getCPtr(datalen), SWIGTYPE_p_unsigned_char.getCPtr(payload_type), SWIGTYPE_p_unsigned_long.getCPtr(flags), io_flags); - return ret; - } - - public static switch_status_t switch_rtp_queue_rfc2833(SWIGTYPE_p_switch_rtp rtp_session, switch_dtmf_t dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_queue_rfc2833(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_dtmf_t.getCPtr(dtmf)); - return ret; - } - - public static switch_status_t switch_rtp_queue_rfc2833_in(SWIGTYPE_p_switch_rtp rtp_session, switch_dtmf_t dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_queue_rfc2833_in(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_dtmf_t.getCPtr(dtmf)); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_rtp_has_dtmf(SWIGTYPE_p_switch_rtp rtp_session) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_has_dtmf(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)), true); - return ret; - } - - public static SWIGTYPE_p_switch_size_t switch_rtp_dequeue_dtmf(SWIGTYPE_p_switch_rtp rtp_session, switch_dtmf_t dtmf) { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_dequeue_dtmf(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_dtmf_t.getCPtr(dtmf)), true); - return ret; - } - - public static switch_status_t switch_rtp_zerocopy_read(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_p_void data, SWIGTYPE_p_unsigned_long datalen, SWIGTYPE_p_unsigned_char payload_type, SWIGTYPE_p_unsigned_long flags, uint io_flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_zerocopy_read(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_p_void.getCPtr(data), SWIGTYPE_p_unsigned_long.getCPtr(datalen), SWIGTYPE_p_unsigned_char.getCPtr(payload_type), SWIGTYPE_p_unsigned_long.getCPtr(flags), io_flags); - return ret; - } - - public static switch_status_t switch_rtp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp rtp_session, switch_frame frame, uint io_flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_frame.getCPtr(frame), io_flags); - return ret; - } - - public static switch_status_t switch_rtcp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_rtcp_frame frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtcp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_rtcp_frame.getCPtr(frame)); - return ret; - } - - public static void rtp_flush_read_buffer(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flush_t flush) { - freeswitchPINVOKE.rtp_flush_read_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flush); - } - - public static switch_status_t switch_rtp_enable_vad(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_core_session session, switch_codec codec, uint flags) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_enable_vad(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec), flags); - return ret; - } - - public static switch_status_t switch_rtp_disable_vad(SWIGTYPE_p_switch_rtp rtp_session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_disable_vad(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static int switch_rtp_write_frame(SWIGTYPE_p_switch_rtp rtp_session, switch_frame frame) { - int ret = freeswitchPINVOKE.switch_rtp_write_frame(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_frame.getCPtr(frame)); - return ret; - } - - public static int switch_rtp_write_manual(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void data, uint datalen, byte m, byte payload, uint ts, SWIGTYPE_p_unsigned_long flags) { - int ret = freeswitchPINVOKE.switch_rtp_write_manual(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(data), datalen, m, payload, ts, SWIGTYPE_p_unsigned_long.getCPtr(flags)); - return ret; - } - - public static uint switch_rtp_get_ssrc(SWIGTYPE_p_switch_rtp rtp_session) { - uint ret = freeswitchPINVOKE.switch_rtp_get_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_set_private(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void private_data) { - freeswitchPINVOKE.switch_rtp_set_private(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(private_data)); - } - - public static void switch_rtp_set_telephony_event(SWIGTYPE_p_switch_rtp rtp_session, byte te) { - freeswitchPINVOKE.switch_rtp_set_telephony_event(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), te); - } - - public static void switch_rtp_set_telephony_recv_event(SWIGTYPE_p_switch_rtp rtp_session, byte te) { - freeswitchPINVOKE.switch_rtp_set_telephony_recv_event(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), te); - } - - public static void switch_rtp_set_cng_pt(SWIGTYPE_p_switch_rtp rtp_session, byte pt) { - freeswitchPINVOKE.switch_rtp_set_cng_pt(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), pt); - } - - public static SWIGTYPE_p_void switch_rtp_get_private(SWIGTYPE_p_switch_rtp rtp_session) { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_private(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static switch_status_t switch_rtp_set_payload_map(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_p_payload_map_s pmap) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_payload_map(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_p_payload_map_s.getCPtr(pmap)); - return ret; - } - - public static void switch_rtp_intentional_bugs(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_bug_flag_t bugs) { - freeswitchPINVOKE.switch_rtp_intentional_bugs(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)bugs); - } - - public static switch_rtp_stats_t switch_rtp_get_stats(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_apr_pool_t pool) { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_stats(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); - switch_rtp_stats_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_stats_t(cPtr, false); - return ret; - } - - public static byte switch_rtp_check_auto_adj(SWIGTYPE_p_switch_rtp rtp_session) { - byte ret = freeswitchPINVOKE.switch_rtp_check_auto_adj(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - return ret; - } - - public static void switch_rtp_set_interdigit_delay(SWIGTYPE_p_switch_rtp rtp_session, uint delay) { - freeswitchPINVOKE.switch_rtp_set_interdigit_delay(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), delay); - } - - public static switch_status_t switch_rtp_add_dtls(SWIGTYPE_p_switch_rtp rtp_session, dtls_fingerprint_t local_fp, dtls_fingerprint_t remote_fp, dtls_type_t type) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_add_dtls(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), dtls_fingerprint_t.getCPtr(local_fp), dtls_fingerprint_t.getCPtr(remote_fp), (int)type); - return ret; - } - - public static switch_status_t switch_rtp_del_dtls(SWIGTYPE_p_switch_rtp rtp_session, dtls_type_t type) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_del_dtls(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)type); - return ret; - } - - public static int switch_rtp_has_dtls() { - int ret = freeswitchPINVOKE.switch_rtp_has_dtls(); - return ret; - } - - public static void switch_rtp_video_refresh(SWIGTYPE_p_switch_rtp rtp_session) { - freeswitchPINVOKE.switch_rtp_video_refresh(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); - } - - public static switch_status_t switch_log_init(SWIGTYPE_p_apr_pool_t pool, switch_bool_t colorize) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool), (int)colorize); - return ret; - } - - public static switch_status_t switch_log_shutdown() { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_shutdown(); - return ret; - } - - public static switch_status_t switch_log_bind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t function, switch_log_level_t level, switch_bool_t is_console) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_bind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t.getCPtr(function), (int)level, (int)is_console); - return ret; - } - - public static switch_status_t switch_log_unbind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t function) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_unbind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t.getCPtr(function)); - return ret; - } - - public static string switch_log_level2str(switch_log_level_t level) { - string ret = freeswitchPINVOKE.switch_log_level2str((int)level); - return ret; - } - - public static switch_log_level_t switch_log_str2level(string str) { - switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_log_str2level(str); - return ret; - } - - public static uint switch_log_str2mask(string str) { - uint ret = freeswitchPINVOKE.switch_log_str2mask(str); - return ret; - } - - public static switch_log_node_t switch_log_node_dup(switch_log_node_t node) { - IntPtr cPtr = freeswitchPINVOKE.switch_log_node_dup(switch_log_node_t.getCPtr(node)); - switch_log_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_log_node_t(cPtr, false); - return ret; - } - - public static void switch_log_node_free(SWIGTYPE_p_p_switch_log_node_t pnode) { - freeswitchPINVOKE.switch_log_node_free(SWIGTYPE_p_p_switch_log_node_t.getCPtr(pnode)); - } - - public static switch_xml switch_xml_parse_str_dynamic(string s, switch_bool_t dup) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_str_dynamic(s, (int)dup); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_parse_str(string s, SWIGTYPE_p_switch_size_t len) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_str(s, SWIGTYPE_p_switch_size_t.getCPtr(len)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_xml switch_xml_parse_fd(int fd) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_fd(fd); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_parse_file(string file) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_file(file); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_parse_file_simple(string file) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_file_simple(file); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_parse_fp(SWIGTYPE_p_FILE fp) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_fp(SWIGTYPE_p_FILE.getCPtr(fp)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_child(switch_xml xml, string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_child(switch_xml.getCPtr(xml), name); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_find_child(switch_xml node, string childname, string attrname, string value) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_find_child(switch_xml.getCPtr(node), childname, attrname, value); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_find_child_multi(switch_xml node, string childname) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_find_child_multi(switch_xml.getCPtr(node), childname); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static string switch_xml_attr(switch_xml xml, string attr) { - string ret = freeswitchPINVOKE.switch_xml_attr(switch_xml.getCPtr(xml), attr); - return ret; - } - - public static string switch_xml_attr_soft(switch_xml xml, string attr) { - string ret = freeswitchPINVOKE.switch_xml_attr_soft(switch_xml.getCPtr(xml), attr); - return ret; - } - - public static switch_xml switch_xml_get(switch_xml xml) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_get(switch_xml.getCPtr(xml)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static string switch_xml_toxml(switch_xml xml, switch_bool_t prn_header) { - string ret = freeswitchPINVOKE.switch_xml_toxml(switch_xml.getCPtr(xml), (int)prn_header); - return ret; - } - - public static string switch_xml_toxml_nolock(switch_xml xml, switch_bool_t prn_header) { - string ret = freeswitchPINVOKE.switch_xml_toxml_nolock(switch_xml.getCPtr(xml), (int)prn_header); - return ret; - } - - public static string switch_xml_tohtml(switch_xml xml, switch_bool_t prn_header) { - string ret = freeswitchPINVOKE.switch_xml_tohtml(switch_xml.getCPtr(xml), (int)prn_header); - return ret; - } - - public static string switch_xml_toxml_buf(switch_xml xml, string buf, SWIGTYPE_p_switch_size_t buflen, SWIGTYPE_p_switch_size_t offset, switch_bool_t prn_header) { - string ret = freeswitchPINVOKE.switch_xml_toxml_buf(switch_xml.getCPtr(xml), buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen), SWIGTYPE_p_switch_size_t.getCPtr(offset), (int)prn_header); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void switch_xml_free(switch_xml xml) { - freeswitchPINVOKE.switch_xml_free(switch_xml.getCPtr(xml)); - } - - public static void switch_xml_free_in_thread(switch_xml xml, int stacksize) { - freeswitchPINVOKE.switch_xml_free_in_thread(switch_xml.getCPtr(xml), stacksize); - } - - public static string switch_xml_error(switch_xml xml) { - string ret = freeswitchPINVOKE.switch_xml_error(switch_xml.getCPtr(xml)); - return ret; - } - - public static switch_xml switch_xml_new(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_new(name); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_add_child(switch_xml xml, string name, SWIGTYPE_p_switch_size_t off) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_add_child(switch_xml.getCPtr(xml), name, SWIGTYPE_p_switch_size_t.getCPtr(off)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_xml switch_xml_set_txt(switch_xml xml, string txt) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_set_txt(switch_xml.getCPtr(xml), txt); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_set_attr(switch_xml xml, string name, string value) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_set_attr(switch_xml.getCPtr(xml), name, value); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_set_flag(switch_xml xml, switch_xml_flag_t flag) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_set_flag(switch_xml.getCPtr(xml), (int)flag); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_cut(switch_xml xml) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_cut(switch_xml.getCPtr(xml)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_insert(switch_xml xml, switch_xml dest, SWIGTYPE_p_switch_size_t off) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_insert(switch_xml.getCPtr(xml), switch_xml.getCPtr(dest), SWIGTYPE_p_switch_size_t.getCPtr(off)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static switch_status_t switch_xml_set_root(switch_xml new_main) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_set_root(switch_xml.getCPtr(new_main)); - return ret; - } - - public static switch_status_t switch_xml_set_open_root_function(SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml func, SWIGTYPE_p_void user_data) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_set_open_root_function(SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml.getCPtr(func), SWIGTYPE_p_void.getCPtr(user_data)); - return ret; - } - - public static switch_xml switch_xml_open_root(byte reload, ref string err) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_open_root(reload, ref err); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_status_t switch_xml_init(SWIGTYPE_p_apr_pool_t pool, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool), ref err); - return ret; - } - - public static switch_status_t switch_xml_reload(ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_reload(ref err); - return ret; - } - - public static switch_status_t switch_xml_destroy() { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_destroy(); - return ret; - } - - public static switch_xml switch_xml_root() { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_root(); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_status_t switch_xml_locate(string section, string tag_name, string key_name, string key_value, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml node, switch_event arg6, switch_bool_t clone) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate(section, tag_name, key_name, key_value, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg6), (int)clone); - return ret; - } - - public static switch_status_t switch_xml_locate_domain(string domain_name, switch_event arg1, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_domain(domain_name, switch_event.getCPtr(arg1), SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain)); - return ret; - } - - public static switch_status_t switch_xml_locate_group(string group_name, string domain_name, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml group, switch_event arg5) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_group(group_name, domain_name, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(group), switch_event.getCPtr(arg5)); - return ret; - } - - public static switch_status_t switch_xml_locate_user(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml user, SWIGTYPE_p_p_switch_xml ingroup, switch_event arg8) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), SWIGTYPE_p_p_switch_xml.getCPtr(ingroup), switch_event.getCPtr(arg8)); - return ret; - } - - public static switch_status_t switch_xml_locate_user_in_domain(string user_name, switch_xml domain, SWIGTYPE_p_p_switch_xml user, SWIGTYPE_p_p_switch_xml ingroup) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user_in_domain(user_name, switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), SWIGTYPE_p_p_switch_xml.getCPtr(ingroup)); - return ret; - } - - public static switch_status_t switch_xml_locate_user_merged(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml user, switch_event arg5) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user_merged(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(user), switch_event.getCPtr(arg5)); - return ret; - } - - public static uint switch_xml_clear_user_cache(string key, string user_name, string domain_name) { - uint ret = freeswitchPINVOKE.switch_xml_clear_user_cache(key, user_name, domain_name); - return ret; - } - - public static void switch_xml_merge_user(switch_xml user, switch_xml domain, switch_xml group) { - freeswitchPINVOKE.switch_xml_merge_user(switch_xml.getCPtr(user), switch_xml.getCPtr(domain), switch_xml.getCPtr(group)); - } - - public static switch_xml switch_xml_dup(switch_xml xml) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_dup(switch_xml.getCPtr(xml)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static switch_xml switch_xml_open_cfg(string file_path, SWIGTYPE_p_p_switch_xml node, switch_event arg2) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_open_cfg(file_path, SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg2)); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - - public static void switch_xml_set_binding_sections(SWIGTYPE_p_switch_xml_binding binding, uint sections) { - freeswitchPINVOKE.switch_xml_set_binding_sections(SWIGTYPE_p_switch_xml_binding.getCPtr(binding), sections); - } - - public static void switch_xml_set_binding_user_data(SWIGTYPE_p_switch_xml_binding binding, SWIGTYPE_p_void user_data) { - freeswitchPINVOKE.switch_xml_set_binding_user_data(SWIGTYPE_p_switch_xml_binding.getCPtr(binding), SWIGTYPE_p_void.getCPtr(user_data)); - } - - public static uint switch_xml_get_binding_sections(SWIGTYPE_p_switch_xml_binding binding) { - uint ret = freeswitchPINVOKE.switch_xml_get_binding_sections(SWIGTYPE_p_switch_xml_binding.getCPtr(binding)); - return ret; - } - - public static SWIGTYPE_p_void switch_xml_get_binding_user_data(SWIGTYPE_p_switch_xml_binding binding) { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_get_binding_user_data(SWIGTYPE_p_switch_xml_binding.getCPtr(binding)); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - - public static switch_status_t switch_xml_bind_search_function_ret(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml function, uint sections, SWIGTYPE_p_void user_data, SWIGTYPE_p_p_switch_xml_binding ret_binding) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_bind_search_function_ret(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml.getCPtr(function), sections, SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_p_switch_xml_binding.getCPtr(ret_binding)); - return ret; - } - - public static switch_status_t switch_xml_unbind_search_function(SWIGTYPE_p_p_switch_xml_binding binding) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_unbind_search_function(SWIGTYPE_p_p_switch_xml_binding.getCPtr(binding)); - return ret; - } - - public static switch_status_t switch_xml_unbind_search_function_ptr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml function) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_unbind_search_function_ptr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml.getCPtr(function)); - return ret; - } - - public static uint switch_xml_parse_section_string(string str) { - uint ret = freeswitchPINVOKE.switch_xml_parse_section_string(str); - return ret; - } - - public static int switch_xml_std_datetime_check(switch_xml xcond, SWIGTYPE_p_int offset, string tzname) { - int ret = freeswitchPINVOKE.switch_xml_std_datetime_check(switch_xml.getCPtr(xcond), SWIGTYPE_p_int.getCPtr(offset), tzname); - return ret; - } - - public static switch_status_t switch_xml_locate_language(SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml node, switch_event arg2, SWIGTYPE_p_p_switch_xml language, SWIGTYPE_p_p_switch_xml phrases, SWIGTYPE_p_p_switch_xml macros, string str_language) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_language(SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg2), SWIGTYPE_p_p_switch_xml.getCPtr(language), SWIGTYPE_p_p_switch_xml.getCPtr(phrases), SWIGTYPE_p_p_switch_xml.getCPtr(macros), str_language); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_outgoing_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t outgoing_channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t.getCPtr(outgoing_channel)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_receive_message(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_receive_message(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(receive_message)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_receive_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_receive_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(receive_event)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_state_change(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_state_change(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_change)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_state_run(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_state_run(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_run)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(read_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(write_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_video_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t video_read_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_video_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_read_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_video_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t video_write_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_video_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_write_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_kill_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_kill_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(kill_channel)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_send_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t send_dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_send_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(send_dtmf)); - return ret; - } - - public static switch_status_t switch_core_event_hook_add_recv_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t recv_dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_recv_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(recv_dtmf)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_outgoing_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t outgoing_channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t.getCPtr(outgoing_channel)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_receive_message(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_receive_message(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(receive_message)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_receive_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_receive_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(receive_event)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_state_change(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_state_change(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_change)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_state_run(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_state_run(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_run)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(read_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(write_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_video_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t video_read_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_video_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_read_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_video_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t video_write_frame) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_video_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_write_frame)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_kill_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_kill_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(kill_channel)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_send_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t send_dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_send_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(send_dtmf)); - return ret; - } - - public static switch_status_t switch_core_event_hook_remove_recv_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t recv_dtmf) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_recv_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(recv_dtmf)); - return ret; - } - - public static uint switch_scheduler_add_task(SWIGTYPE_p_time_t task_runtime, SWIGTYPE_p_f_p_switch_scheduler_task__void func, string desc, string group, uint cmd_id, SWIGTYPE_p_void cmd_arg, uint flags) { - uint ret = freeswitchPINVOKE.switch_scheduler_add_task(SWIGTYPE_p_time_t.getCPtr(task_runtime), SWIGTYPE_p_f_p_switch_scheduler_task__void.getCPtr(func), desc, group, cmd_id, SWIGTYPE_p_void.getCPtr(cmd_arg), flags); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint switch_scheduler_del_task_id(uint task_id) { - uint ret = freeswitchPINVOKE.switch_scheduler_del_task_id(task_id); - return ret; - } - - public static uint switch_scheduler_del_task_group(string group) { - uint ret = freeswitchPINVOKE.switch_scheduler_del_task_group(group); - return ret; - } - - public static void switch_scheduler_task_thread_start() { - freeswitchPINVOKE.switch_scheduler_task_thread_start(); - } - - public static void switch_scheduler_task_thread_stop() { - freeswitchPINVOKE.switch_scheduler_task_thread_stop(); - } - - public static int switch_config_open_file(switch_config cfg, string file_path) { - int ret = freeswitchPINVOKE.switch_config_open_file(switch_config.getCPtr(cfg), file_path); - return ret; - } - - public static void switch_config_close_file(switch_config cfg) { - freeswitchPINVOKE.switch_config_close_file(switch_config.getCPtr(cfg)); - } - - public static int switch_config_next_pair(switch_config cfg, ref string var, ref string val) { - int ret = freeswitchPINVOKE.switch_config_next_pair(switch_config.getCPtr(cfg), ref var, ref val); - return ret; - } - - public static void setGlobalVariable(string var_name, string var_val) { - freeswitchPINVOKE.setGlobalVariable(var_name, var_val); - } - - public static string getGlobalVariable(string var_name) { - string ret = freeswitchPINVOKE.getGlobalVariable(var_name); - return ret; - } - - public static void consoleLog(string level_str, string msg) { - freeswitchPINVOKE.consoleLog(level_str, msg); - } - - public static void consoleLog2(string level_str, string file, string func, int line, string msg) { - freeswitchPINVOKE.consoleLog2(level_str, file, func, line, msg); - } - - public static void consoleCleanLog(string msg) { - freeswitchPINVOKE.consoleCleanLog(msg); - } - - public static bool running() { - bool ret = freeswitchPINVOKE.running(); - return ret; - } - - public static bool email(string to, string from, string headers, string body, string file, string convert_cmd, string convert_ext) { - bool ret = freeswitchPINVOKE.email(to, from, headers, body, file, convert_cmd, convert_ext); - return ret; - } - - public static void console_log(string level_str, string msg) { - freeswitchPINVOKE.console_log(level_str, msg); - } - - public static void console_log2(string level_str, string file, string func, int line, string msg) { - freeswitchPINVOKE.console_log2(level_str, file, func, line, msg); - } - - public static void console_clean_log(string msg) { - freeswitchPINVOKE.console_clean_log(msg); - } - - public static void msleep(uint ms) { - freeswitchPINVOKE.msleep(ms); - } - - public static void bridge(CoreSession session_a, CoreSession session_b) { - freeswitchPINVOKE.bridge(CoreSession.getCPtr(session_a), CoreSession.getCPtr(session_b)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - - public static switch_status_t hanguphook(SWIGTYPE_p_switch_core_session session) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.hanguphook(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - - public static switch_status_t dtmf_callback(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void input, switch_input_type_t itype, SWIGTYPE_p_void buf, uint buflen) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.dtmf_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(input), (int)itype, SWIGTYPE_p_void.getCPtr(buf), buflen); - return ret; - } - - public static readonly string FREESWITCH_PEN = freeswitchPINVOKE.FREESWITCH_PEN_get(); - public static readonly string FREESWITCH_OID_PREFIX = freeswitchPINVOKE.FREESWITCH_OID_PREFIX_get(); - public static readonly string FREESWITCH_ITAD = freeswitchPINVOKE.FREESWITCH_ITAD_get(); - public static readonly int __EXTENSIONS__ = freeswitchPINVOKE.__EXTENSIONS___get(); - public static readonly int __BSD_VISIBLE = freeswitchPINVOKE.__BSD_VISIBLE_get(); - public static readonly string SWITCH_ENT_ORIGINATE_DELIM = freeswitchPINVOKE.SWITCH_ENT_ORIGINATE_DELIM_get(); - public static readonly string SWITCH_BLANK_STRING = freeswitchPINVOKE.SWITCH_BLANK_STRING_get(); - public static readonly int SWITCH_TON_UNDEF = freeswitchPINVOKE.SWITCH_TON_UNDEF_get(); - public static readonly int SWITCH_NUMPLAN_UNDEF = freeswitchPINVOKE.SWITCH_NUMPLAN_UNDEF_get(); - public static readonly string SWITCH_SEQ_ESC = freeswitchPINVOKE.SWITCH_SEQ_ESC_get(); - public static readonly char SWITCH_SEQ_HOME_CHAR = freeswitchPINVOKE.SWITCH_SEQ_HOME_CHAR_get(); - public static readonly string SWITCH_SEQ_HOME_CHAR_STR = freeswitchPINVOKE.SWITCH_SEQ_HOME_CHAR_STR_get(); - public static readonly char SWITCH_SEQ_CLEARLINE_CHAR = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINE_CHAR_get(); - public static readonly string SWITCH_SEQ_CLEARLINE_CHAR_STR = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINE_CHAR_STR_get(); - public static readonly string SWITCH_SEQ_CLEARLINEEND_CHAR = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINEEND_CHAR_get(); - public static readonly char SWITCH_SEQ_CLEARSCR_CHAR0 = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_CHAR0_get(); - public static readonly char SWITCH_SEQ_CLEARSCR_CHAR1 = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_CHAR1_get(); - public static readonly string SWITCH_SEQ_CLEARSCR_CHAR = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_CHAR_get(); - public static readonly string SWITCH_SEQ_AND_COLOR = freeswitchPINVOKE.SWITCH_SEQ_AND_COLOR_get(); - public static readonly string SWITCH_SEQ_END_COLOR = freeswitchPINVOKE.SWITCH_SEQ_END_COLOR_get(); - public static readonly string SWITCH_SEQ_F_BLACK = freeswitchPINVOKE.SWITCH_SEQ_F_BLACK_get(); - public static readonly string SWITCH_SEQ_F_RED = freeswitchPINVOKE.SWITCH_SEQ_F_RED_get(); - public static readonly string SWITCH_SEQ_F_GREEN = freeswitchPINVOKE.SWITCH_SEQ_F_GREEN_get(); - public static readonly string SWITCH_SEQ_F_YELLOW = freeswitchPINVOKE.SWITCH_SEQ_F_YELLOW_get(); - public static readonly string SWITCH_SEQ_F_BLUE = freeswitchPINVOKE.SWITCH_SEQ_F_BLUE_get(); - public static readonly string SWITCH_SEQ_F_MAGEN = freeswitchPINVOKE.SWITCH_SEQ_F_MAGEN_get(); - public static readonly string SWITCH_SEQ_F_CYAN = freeswitchPINVOKE.SWITCH_SEQ_F_CYAN_get(); - public static readonly string SWITCH_SEQ_F_WHITE = freeswitchPINVOKE.SWITCH_SEQ_F_WHITE_get(); - public static readonly string SWITCH_SEQ_B_BLACK = freeswitchPINVOKE.SWITCH_SEQ_B_BLACK_get(); - public static readonly string SWITCH_SEQ_B_RED = freeswitchPINVOKE.SWITCH_SEQ_B_RED_get(); - public static readonly string SWITCH_SEQ_B_GREEN = freeswitchPINVOKE.SWITCH_SEQ_B_GREEN_get(); - public static readonly string SWITCH_SEQ_B_YELLOW = freeswitchPINVOKE.SWITCH_SEQ_B_YELLOW_get(); - public static readonly string SWITCH_SEQ_B_BLUE = freeswitchPINVOKE.SWITCH_SEQ_B_BLUE_get(); - public static readonly string SWITCH_SEQ_B_MAGEN = freeswitchPINVOKE.SWITCH_SEQ_B_MAGEN_get(); - public static readonly string SWITCH_SEQ_B_CYAN = freeswitchPINVOKE.SWITCH_SEQ_B_CYAN_get(); - public static readonly string SWITCH_SEQ_B_WHITE = freeswitchPINVOKE.SWITCH_SEQ_B_WHITE_get(); - public static readonly string SWITCH_SEQ_FBLACK = freeswitchPINVOKE.SWITCH_SEQ_FBLACK_get(); - public static readonly string SWITCH_SEQ_FRED = freeswitchPINVOKE.SWITCH_SEQ_FRED_get(); - public static readonly string SWITCH_SEQ_FGREEN = freeswitchPINVOKE.SWITCH_SEQ_FGREEN_get(); - public static readonly string SWITCH_SEQ_FYELLOW = freeswitchPINVOKE.SWITCH_SEQ_FYELLOW_get(); - public static readonly string SWITCH_SEQ_FBLUE = freeswitchPINVOKE.SWITCH_SEQ_FBLUE_get(); - public static readonly string SWITCH_SEQ_FMAGEN = freeswitchPINVOKE.SWITCH_SEQ_FMAGEN_get(); - public static readonly string SWITCH_SEQ_FCYAN = freeswitchPINVOKE.SWITCH_SEQ_FCYAN_get(); - public static readonly string SWITCH_SEQ_FWHITE = freeswitchPINVOKE.SWITCH_SEQ_FWHITE_get(); - public static readonly string SWITCH_SEQ_BBLACK = freeswitchPINVOKE.SWITCH_SEQ_BBLACK_get(); - public static readonly string SWITCH_SEQ_BRED = freeswitchPINVOKE.SWITCH_SEQ_BRED_get(); - public static readonly string SWITCH_SEQ_BGREEN = freeswitchPINVOKE.SWITCH_SEQ_BGREEN_get(); - public static readonly string SWITCH_SEQ_BYELLOW = freeswitchPINVOKE.SWITCH_SEQ_BYELLOW_get(); - public static readonly string SWITCH_SEQ_BBLUE = freeswitchPINVOKE.SWITCH_SEQ_BBLUE_get(); - public static readonly string SWITCH_SEQ_BMAGEN = freeswitchPINVOKE.SWITCH_SEQ_BMAGEN_get(); - public static readonly string SWITCH_SEQ_BCYAN = freeswitchPINVOKE.SWITCH_SEQ_BCYAN_get(); - public static readonly string SWITCH_SEQ_BWHITE = freeswitchPINVOKE.SWITCH_SEQ_BWHITE_get(); - public static readonly string SWITCH_SEQ_HOME = freeswitchPINVOKE.SWITCH_SEQ_HOME_get(); - public static readonly string SWITCH_SEQ_CLEARLINE = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINE_get(); - public static readonly string SWITCH_SEQ_CLEARLINEEND = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINEEND_get(); - public static readonly string SWITCH_SEQ_CLEARSCR = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_get(); - public static readonly string SWITCH_DEFAULT_CLID_NAME = freeswitchPINVOKE.SWITCH_DEFAULT_CLID_NAME_get(); - public static readonly string SWITCH_DEFAULT_CLID_NUMBER = freeswitchPINVOKE.SWITCH_DEFAULT_CLID_NUMBER_get(); - public static readonly int SWITCH_DEFAULT_DTMF_DURATION = freeswitchPINVOKE.SWITCH_DEFAULT_DTMF_DURATION_get(); - public static readonly int SWITCH_MIN_DTMF_DURATION = freeswitchPINVOKE.SWITCH_MIN_DTMF_DURATION_get(); - public static readonly int SWITCH_MAX_DTMF_DURATION = freeswitchPINVOKE.SWITCH_MAX_DTMF_DURATION_get(); - public static readonly string SWITCH_PATH_SEPARATOR = freeswitchPINVOKE.SWITCH_PATH_SEPARATOR_get(); - public static readonly string SWITCH_URL_SEPARATOR = freeswitchPINVOKE.SWITCH_URL_SEPARATOR_get(); - public static readonly string SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE = freeswitchPINVOKE.SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get(); - public static readonly string SWITCH_AUDIO_SPOOL_PATH_VARIABLE = freeswitchPINVOKE.SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get(); - public static readonly string SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get(); - public static readonly string SWITCH_READ_TERMINATOR_USED_VARIABLE = freeswitchPINVOKE.SWITCH_READ_TERMINATOR_USED_VARIABLE_get(); - public static readonly string SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE = freeswitchPINVOKE.SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get(); - public static readonly string SWITCH_CURRENT_APPLICATION_VARIABLE = freeswitchPINVOKE.SWITCH_CURRENT_APPLICATION_VARIABLE_get(); - public static readonly string SWITCH_CURRENT_APPLICATION_DATA_VARIABLE = freeswitchPINVOKE.SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get(); - public static readonly string SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE = freeswitchPINVOKE.SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get(); - public static readonly string SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE = freeswitchPINVOKE.SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get(); - public static readonly string SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE = freeswitchPINVOKE.SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get(); - public static readonly string SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_READ_RESULT_VARIABLE = freeswitchPINVOKE.SWITCH_READ_RESULT_VARIABLE_get(); - public static readonly string SWITCH_ATT_XFER_RESULT_VARIABLE = freeswitchPINVOKE.SWITCH_ATT_XFER_RESULT_VARIABLE_get(); - public static readonly string SWITCH_COPY_XML_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_COPY_XML_CDR_VARIABLE_get(); - public static readonly string SWITCH_COPY_JSON_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_COPY_JSON_CDR_VARIABLE_get(); - public static readonly string SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE = freeswitchPINVOKE.SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get(); - public static readonly string SWITCH_TRANSFER_HISTORY_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_HISTORY_VARIABLE_get(); - public static readonly string SWITCH_TRANSFER_SOURCE_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_SOURCE_VARIABLE_get(); - public static readonly string SWITCH_SENSITIVE_DTMF_VARIABLE = freeswitchPINVOKE.SWITCH_SENSITIVE_DTMF_VARIABLE_get(); - public static readonly string SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE = freeswitchPINVOKE.SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get(); - public static readonly string SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE = freeswitchPINVOKE.SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_RING_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_RING_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get(); - public static readonly string SWITCH_CALL_TIMEOUT_VARIABLE = freeswitchPINVOKE.SWITCH_CALL_TIMEOUT_VARIABLE_get(); - public static readonly string SWITCH_HOLDING_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_HOLDING_UUID_VARIABLE_get(); - public static readonly string SWITCH_SOFT_HOLDING_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_SOFT_HOLDING_UUID_VARIABLE_get(); - public static readonly string SWITCH_API_BRIDGE_END_VARIABLE = freeswitchPINVOKE.SWITCH_API_BRIDGE_END_VARIABLE_get(); - public static readonly string SWITCH_API_BRIDGE_START_VARIABLE = freeswitchPINVOKE.SWITCH_API_BRIDGE_START_VARIABLE_get(); - public static readonly string SWITCH_API_HANGUP_HOOK_VARIABLE = freeswitchPINVOKE.SWITCH_API_HANGUP_HOOK_VARIABLE_get(); - public static readonly string SWITCH_API_REPORTING_HOOK_VARIABLE = freeswitchPINVOKE.SWITCH_API_REPORTING_HOOK_VARIABLE_get(); - public static readonly string SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE = freeswitchPINVOKE.SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get(); - public static readonly string SWITCH_PROCESS_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_PROCESS_CDR_VARIABLE_get(); - public static readonly string SWITCH_SKIP_CDR_CAUSES_VARIABLE = freeswitchPINVOKE.SWITCH_SKIP_CDR_CAUSES_VARIABLE_get(); - public static readonly string SWITCH_FORCE_PROCESS_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_FORCE_PROCESS_CDR_VARIABLE_get(); - public static readonly string SWITCH_BRIDGE_CHANNEL_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_CHANNEL_VARIABLE_get(); - public static readonly string SWITCH_CHANNEL_NAME_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_NAME_VARIABLE_get(); - public static readonly string SWITCH_BRIDGE_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_UUID_VARIABLE_get(); - public static readonly string SWITCH_CONTINUE_ON_FAILURE_VARIABLE = freeswitchPINVOKE.SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get(); - public static readonly string SWITCH_PLAYBACK_TERMINATORS_VARIABLE = freeswitchPINVOKE.SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get(); - public static readonly string SWITCH_PLAYBACK_TERMINATOR_USED = freeswitchPINVOKE.SWITCH_PLAYBACK_TERMINATOR_USED_get(); - public static readonly string SWITCH_CACHE_SPEECH_HANDLES_VARIABLE = freeswitchPINVOKE.SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get(); - public static readonly string SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME = freeswitchPINVOKE.SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get(); - public static readonly string SWITCH_BYPASS_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_BYPASS_MEDIA_VARIABLE_get(); - public static readonly string SWITCH_PROXY_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_PROXY_MEDIA_VARIABLE_get(); - public static readonly string SWITCH_ZRTP_PASSTHRU_VARIABLE = freeswitchPINVOKE.SWITCH_ZRTP_PASSTHRU_VARIABLE_get(); - public static readonly string SWITCH_ENDPOINT_DISPOSITION_VARIABLE = freeswitchPINVOKE.SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get(); - public static readonly string SWITCH_HOLD_MUSIC_VARIABLE = freeswitchPINVOKE.SWITCH_HOLD_MUSIC_VARIABLE_get(); - public static readonly string SWITCH_TEMP_HOLD_MUSIC_VARIABLE = freeswitchPINVOKE.SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get(); - public static readonly string SWITCH_EXPORT_VARS_VARIABLE = freeswitchPINVOKE.SWITCH_EXPORT_VARS_VARIABLE_get(); - public static readonly string SWITCH_BRIDGE_EXPORT_VARS_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get(); - public static readonly string SWITCH_R_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_R_SDP_VARIABLE_get(); - public static readonly string SWITCH_L_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_L_SDP_VARIABLE_get(); - public static readonly string SWITCH_B_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_B_SDP_VARIABLE_get(); - public static readonly string SWITCH_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_LAST_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_LAST_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_SIGNAL_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_SIGNAL_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_SIGNAL_BOND_VARIABLE = freeswitchPINVOKE.SWITCH_SIGNAL_BOND_VARIABLE_get(); - public static readonly string SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get(); - public static readonly string SWITCH_ORIGINATOR_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_VARIABLE_get(); - public static readonly string SWITCH_ORIGINATOR_CODEC_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_CODEC_VARIABLE_get(); - public static readonly string SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get(); - public static readonly string SWITCH_LOCAL_MEDIA_IP_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_MEDIA_IP_VARIABLE_get(); - public static readonly string SWITCH_LOCAL_MEDIA_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get(); - public static readonly string SWITCH_ADVERTISED_MEDIA_IP_VARIABLE = freeswitchPINVOKE.SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get(); - public static readonly string SWITCH_REMOTE_MEDIA_IP_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_MEDIA_IP_VARIABLE_get(); - public static readonly string SWITCH_REMOTE_MEDIA_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get(); - public static readonly string SWITCH_REMOTE_VIDEO_IP_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_VIDEO_IP_VARIABLE_get(); - public static readonly string SWITCH_REMOTE_VIDEO_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get(); - public static readonly string SWITCH_LOCAL_VIDEO_IP_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_VIDEO_IP_VARIABLE_get(); - public static readonly string SWITCH_LOCAL_VIDEO_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get(); - public static readonly string SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_PARK_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get(); - public static readonly string SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE = freeswitchPINVOKE.SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get(); - public static readonly string SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE = freeswitchPINVOKE.SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get(); - public static readonly string SWITCH_MAX_FORWARDS_VARIABLE = freeswitchPINVOKE.SWITCH_MAX_FORWARDS_VARIABLE_get(); - public static readonly string SWITCH_DISABLE_APP_LOG_VARIABLE = freeswitchPINVOKE.SWITCH_DISABLE_APP_LOG_VARIABLE_get(); - public static readonly string SWITCH_SPEECH_KEY = freeswitchPINVOKE.SWITCH_SPEECH_KEY_get(); - public static readonly string SWITCH_UUID_BRIDGE = freeswitchPINVOKE.SWITCH_UUID_BRIDGE_get(); - public static readonly int SWITCH_BITS_PER_BYTE = freeswitchPINVOKE.SWITCH_BITS_PER_BYTE_get(); - public static readonly int SWITCH_DEFAULT_FILE_BUFFER_LEN = freeswitchPINVOKE.SWITCH_DEFAULT_FILE_BUFFER_LEN_get(); - public static readonly int SWITCH_DTMF_LOG_LEN = freeswitchPINVOKE.SWITCH_DTMF_LOG_LEN_get(); - public static readonly int SWITCH_MAX_TRANS = freeswitchPINVOKE.SWITCH_MAX_TRANS_get(); - public static readonly int SWITCH_CORE_SESSION_MAX_PRIVATES = freeswitchPINVOKE.SWITCH_CORE_SESSION_MAX_PRIVATES_get(); - public static readonly double JITTER_VARIANCE_THRESHOLD = freeswitchPINVOKE.JITTER_VARIANCE_THRESHOLD_get(); - public static readonly double IPDV_THRESHOLD = freeswitchPINVOKE.IPDV_THRESHOLD_get(); - public static readonly int LOST_BURST_ANALYZE = freeswitchPINVOKE.LOST_BURST_ANALYZE_get(); - public static readonly int LOST_BURST_CAPTURE = freeswitchPINVOKE.LOST_BURST_CAPTURE_get(); - public static readonly int SWITCH_MAX_STACKS = freeswitchPINVOKE.SWITCH_MAX_STACKS_get(); - public static readonly int SWITCH_THREAD_STACKSIZE = freeswitchPINVOKE.SWITCH_THREAD_STACKSIZE_get(); - public static readonly int SWITCH_SYSTEM_THREAD_STACKSIZE = freeswitchPINVOKE.SWITCH_SYSTEM_THREAD_STACKSIZE_get(); - public static readonly int SWITCH_MAX_INTERVAL = freeswitchPINVOKE.SWITCH_MAX_INTERVAL_get(); - public static readonly int SWITCH_INTERVAL_PAD = freeswitchPINVOKE.SWITCH_INTERVAL_PAD_get(); - public static readonly int SWITCH_MAX_SAMPLE_LEN = freeswitchPINVOKE.SWITCH_MAX_SAMPLE_LEN_get(); - public static readonly int SWITCH_BYTES_PER_SAMPLE = freeswitchPINVOKE.SWITCH_BYTES_PER_SAMPLE_get(); - public static readonly int SWITCH_RECOMMENDED_BUFFER_SIZE = freeswitchPINVOKE.SWITCH_RECOMMENDED_BUFFER_SIZE_get(); - public static readonly int SWITCH_MAX_CODECS = freeswitchPINVOKE.SWITCH_MAX_CODECS_get(); - public static readonly int SWITCH_MAX_STATE_HANDLERS = freeswitchPINVOKE.SWITCH_MAX_STATE_HANDLERS_get(); - public static readonly int SWITCH_CORE_QUEUE_LEN = freeswitchPINVOKE.SWITCH_CORE_QUEUE_LEN_get(); - public static readonly int SWITCH_MAX_MANAGEMENT_BUFFER_LEN = freeswitchPINVOKE.SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get(); - public static readonly int SWITCH_RTP_CNG_PAYLOAD = freeswitchPINVOKE.SWITCH_RTP_CNG_PAYLOAD_get(); - public static readonly int SWITCH_MEDIA_TYPE_TOTAL = freeswitchPINVOKE.SWITCH_MEDIA_TYPE_TOTAL_get(); - public static readonly int SWITCH_SOCK_INVALID = freeswitchPINVOKE.SWITCH_SOCK_INVALID_get(); - public static readonly int DMACHINE_MAX_DIGIT_LEN = freeswitchPINVOKE.DMACHINE_MAX_DIGIT_LEN_get(); - public static readonly int MAX_ARG_RECURSION = freeswitchPINVOKE.MAX_ARG_RECURSION_get(); - public static readonly int SWITCH_API_VERSION = freeswitchPINVOKE.SWITCH_API_VERSION_get(); - public static readonly int SWITCH_CORE_DB_OK = freeswitchPINVOKE.SWITCH_CORE_DB_OK_get(); - public static readonly int SWITCH_CORE_DB_ERROR = freeswitchPINVOKE.SWITCH_CORE_DB_ERROR_get(); - public static readonly int SWITCH_CORE_DB_INTERNAL = freeswitchPINVOKE.SWITCH_CORE_DB_INTERNAL_get(); - public static readonly int SWITCH_CORE_DB_PERM = freeswitchPINVOKE.SWITCH_CORE_DB_PERM_get(); - public static readonly int SWITCH_CORE_DB_ABORT = freeswitchPINVOKE.SWITCH_CORE_DB_ABORT_get(); - public static readonly int SWITCH_CORE_DB_BUSY = freeswitchPINVOKE.SWITCH_CORE_DB_BUSY_get(); - public static readonly int SWITCH_CORE_DB_LOCKED = freeswitchPINVOKE.SWITCH_CORE_DB_LOCKED_get(); - public static readonly int SWITCH_CORE_DB_NOMEM = freeswitchPINVOKE.SWITCH_CORE_DB_NOMEM_get(); - public static readonly int SWITCH_CORE_DB_READONLY = freeswitchPINVOKE.SWITCH_CORE_DB_READONLY_get(); - public static readonly int SWITCH_CORE_DB_INTERRUPT = freeswitchPINVOKE.SWITCH_CORE_DB_INTERRUPT_get(); - public static readonly int SWITCH_CORE_DB_IOERR = freeswitchPINVOKE.SWITCH_CORE_DB_IOERR_get(); - public static readonly int SWITCH_CORE_DB_CORRUPT = freeswitchPINVOKE.SWITCH_CORE_DB_CORRUPT_get(); - public static readonly int SWITCH_CORE_DB_NOTFOUND = freeswitchPINVOKE.SWITCH_CORE_DB_NOTFOUND_get(); - public static readonly int SWITCH_CORE_DB_FULL = freeswitchPINVOKE.SWITCH_CORE_DB_FULL_get(); - public static readonly int SWITCH_CORE_DB_CANTOPEN = freeswitchPINVOKE.SWITCH_CORE_DB_CANTOPEN_get(); - public static readonly int SWITCH_CORE_DB_PROTOCOL = freeswitchPINVOKE.SWITCH_CORE_DB_PROTOCOL_get(); - public static readonly int SWITCH_CORE_DB_EMPTY = freeswitchPINVOKE.SWITCH_CORE_DB_EMPTY_get(); - public static readonly int SWITCH_CORE_DB_SCHEMA = freeswitchPINVOKE.SWITCH_CORE_DB_SCHEMA_get(); - public static readonly int SWITCH_CORE_DB_TOOBIG = freeswitchPINVOKE.SWITCH_CORE_DB_TOOBIG_get(); - public static readonly int SWITCH_CORE_DB_CONSTRAINT = freeswitchPINVOKE.SWITCH_CORE_DB_CONSTRAINT_get(); - public static readonly int SWITCH_CORE_DB_MISMATCH = freeswitchPINVOKE.SWITCH_CORE_DB_MISMATCH_get(); - public static readonly int SWITCH_CORE_DB_MISUSE = freeswitchPINVOKE.SWITCH_CORE_DB_MISUSE_get(); - public static readonly int SWITCH_CORE_DB_NOLFS = freeswitchPINVOKE.SWITCH_CORE_DB_NOLFS_get(); - public static readonly int SWITCH_CORE_DB_AUTH = freeswitchPINVOKE.SWITCH_CORE_DB_AUTH_get(); - public static readonly int SWITCH_CORE_DB_FORMAT = freeswitchPINVOKE.SWITCH_CORE_DB_FORMAT_get(); - public static readonly int SWITCH_CORE_DB_RANGE = freeswitchPINVOKE.SWITCH_CORE_DB_RANGE_get(); - public static readonly int SWITCH_CORE_DB_NOTADB = freeswitchPINVOKE.SWITCH_CORE_DB_NOTADB_get(); - public static readonly int SWITCH_CORE_DB_ROW = freeswitchPINVOKE.SWITCH_CORE_DB_ROW_get(); - public static readonly int SWITCH_CORE_DB_DONE = freeswitchPINVOKE.SWITCH_CORE_DB_DONE_get(); - public static readonly int SWITCH_MAX_CORE_THREAD_SESSION_OBJS = freeswitchPINVOKE.SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get(); - public static readonly int SWITCH_MAX_STREAMS = freeswitchPINVOKE.SWITCH_MAX_STREAMS_get(); - public static readonly string DTLS_SRTP_FNAME = freeswitchPINVOKE.DTLS_SRTP_FNAME_get(); - public static readonly int MAX_FPLEN = freeswitchPINVOKE.MAX_FPLEN_get(); - public static readonly int MAX_FPSTRLEN = freeswitchPINVOKE.MAX_FPSTRLEN_get(); - public static readonly int MESSAGE_STRING_ARG_MAX = freeswitchPINVOKE.MESSAGE_STRING_ARG_MAX_get(); - public static readonly int CACHE_DB_LEN = freeswitchPINVOKE.CACHE_DB_LEN_get(); - public static readonly int SWITCH_CMD_CHUNK_LEN = freeswitchPINVOKE.SWITCH_CMD_CHUNK_LEN_get(); - public static readonly int SWITCH_SMAX = freeswitchPINVOKE.SWITCH_SMAX_get(); - public static readonly int SWITCH_SMIN = freeswitchPINVOKE.SWITCH_SMIN_get(); - public static readonly int NO_EVENT_CHANNEL_ID = freeswitchPINVOKE.NO_EVENT_CHANNEL_ID_get(); - public static readonly string SWITCH_EVENT_CHANNEL_GLOBAL = freeswitchPINVOKE.SWITCH_EVENT_CHANNEL_GLOBAL_get(); - public static readonly int SWITCH_RESAMPLE_QUALITY = freeswitchPINVOKE.SWITCH_RESAMPLE_QUALITY_get(); - public static readonly int SWITCH_RTP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_get(); - public static readonly int SWITCH_RTCP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTCP_MAX_BUF_LEN_get(); - public static readonly int SWITCH_RTP_MAX_BUF_LEN_WORDS = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_WORDS_get(); - public static readonly int SWITCH_RTP_MAX_CRYPTO_LEN = freeswitchPINVOKE.SWITCH_RTP_MAX_CRYPTO_LEN_get(); - public static readonly string SWITCH_RTP_CRYPTO_KEY_80 = freeswitchPINVOKE.SWITCH_RTP_CRYPTO_KEY_80_get(); - public static readonly int MAX_CAND = freeswitchPINVOKE.MAX_CAND_get(); - public static readonly int SWITCH_XML_BUFSIZE = freeswitchPINVOKE.SWITCH_XML_BUFSIZE_get(); -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -class freeswitchPINVOKE { - - protected class SWIGExceptionHelper { - - public delegate void ExceptionDelegate(string message); - public delegate void ExceptionArgumentDelegate(string message, string paramName); - - static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); - static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); - static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); - static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); - static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); - static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); - static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); - static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); - static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); - static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); - static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); - - static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); - static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); - static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); - - [DllImport("mod_managed", EntryPoint="SWIGRegisterExceptionCallbacks_freeswitch")] - public static extern void SWIGRegisterExceptionCallbacks_freeswitch( - ExceptionDelegate applicationDelegate, - ExceptionDelegate arithmeticDelegate, - ExceptionDelegate divideByZeroDelegate, - ExceptionDelegate indexOutOfRangeDelegate, - ExceptionDelegate invalidCastDelegate, - ExceptionDelegate invalidOperationDelegate, - ExceptionDelegate ioDelegate, - ExceptionDelegate nullReferenceDelegate, - ExceptionDelegate outOfMemoryDelegate, - ExceptionDelegate overflowDelegate, - ExceptionDelegate systemExceptionDelegate); - - [DllImport("mod_managed", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_freeswitch")] - public static extern void SWIGRegisterExceptionCallbacksArgument_freeswitch( - ExceptionArgumentDelegate argumentDelegate, - ExceptionArgumentDelegate argumentNullDelegate, - ExceptionArgumentDelegate argumentOutOfRangeDelegate); - - static void SetPendingApplicationException(string message) { - SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingArithmeticException(string message) { - SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingDivideByZeroException(string message) { - SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingIndexOutOfRangeException(string message) { - SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingInvalidCastException(string message) { - SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingInvalidOperationException(string message) { - SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingIOException(string message) { - SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingNullReferenceException(string message) { - SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingOutOfMemoryException(string message) { - SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingOverflowException(string message) { - SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingSystemException(string message) { - SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve())); - } - - static void SetPendingArgumentException(string message, string paramName) { - SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); - } - static void SetPendingArgumentNullException(string message, string paramName) { - Exception e = SWIGPendingException.Retrieve(); - if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new System.ArgumentNullException(paramName, message)); - } - static void SetPendingArgumentOutOfRangeException(string message, string paramName) { - Exception e = SWIGPendingException.Retrieve(); - if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message)); - } - - static SWIGExceptionHelper() { - SWIGRegisterExceptionCallbacks_freeswitch( - applicationDelegate, - arithmeticDelegate, - divideByZeroDelegate, - indexOutOfRangeDelegate, - invalidCastDelegate, - invalidOperationDelegate, - ioDelegate, - nullReferenceDelegate, - outOfMemoryDelegate, - overflowDelegate, - systemDelegate); - - SWIGRegisterExceptionCallbacksArgument_freeswitch( - argumentDelegate, - argumentNullDelegate, - argumentOutOfRangeDelegate); - } - } - - protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); - - public class SWIGPendingException { - [ThreadStatic] - private static Exception pendingException = null; - private static int numExceptionsPending = 0; - - public static bool Pending { - get { - bool pending = false; - if (numExceptionsPending > 0) - if (pendingException != null) - pending = true; - return pending; - } - } - - public static void Set(Exception e) { - if (pendingException != null) - throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); - pendingException = e; - lock(typeof(freeswitchPINVOKE)) { - numExceptionsPending++; - } - } - - public static Exception Retrieve() { - Exception e = null; - if (numExceptionsPending > 0) { - if (pendingException != null) { - e = pendingException; - pendingException = null; - lock(typeof(freeswitchPINVOKE)) { - numExceptionsPending--; - } - } - } - return e; - } - } - - - static freeswitchPINVOKE() { - } - - - - protected class SWIGStringHelper { - - public delegate string SWIGStringDelegate(string message); - static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); - - [DllImport("mod_managed", EntryPoint="SWIGRegisterStringCallback_freeswitch")] - public static extern void SWIGRegisterStringCallback_freeswitch(SWIGStringDelegate stringDelegate); - - static string CreateString(string cString) { - return cString; - } - - static SWIGStringHelper() { - SWIGRegisterStringCallback_freeswitch(stringDelegate); - } - } - - static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); - - - [DllImport("mod_managed", EntryPoint="CSharp_FREESWITCH_PEN_get")] - public static extern string FREESWITCH_PEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_FREESWITCH_OID_PREFIX_get")] - public static extern string FREESWITCH_OID_PREFIX_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_FREESWITCH_ITAD_get")] - public static extern string FREESWITCH_ITAD_get(); - - [DllImport("mod_managed", EntryPoint="CSharp___EXTENSIONS___get")] - public static extern int __EXTENSIONS___get(); - - [DllImport("mod_managed", EntryPoint="CSharp___BSD_VISIBLE_get")] - public static extern int __BSD_VISIBLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ENT_ORIGINATE_DELIM_get")] - public static extern string SWITCH_ENT_ORIGINATE_DELIM_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BLANK_STRING_get")] - public static extern string SWITCH_BLANK_STRING_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TON_UNDEF_get")] - public static extern int SWITCH_TON_UNDEF_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_NUMPLAN_UNDEF_get")] - public static extern int SWITCH_NUMPLAN_UNDEF_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_ESC_get")] - public static extern string SWITCH_SEQ_ESC_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_HOME_CHAR_get")] - public static extern char SWITCH_SEQ_HOME_CHAR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_HOME_CHAR_STR_get")] - public static extern string SWITCH_SEQ_HOME_CHAR_STR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINE_CHAR_get")] - public static extern char SWITCH_SEQ_CLEARLINE_CHAR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINE_CHAR_STR_get")] - public static extern string SWITCH_SEQ_CLEARLINE_CHAR_STR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINEEND_CHAR_get")] - public static extern string SWITCH_SEQ_CLEARLINEEND_CHAR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_CHAR0_get")] - public static extern char SWITCH_SEQ_CLEARSCR_CHAR0_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_CHAR1_get")] - public static extern char SWITCH_SEQ_CLEARSCR_CHAR1_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_CHAR_get")] - public static extern string SWITCH_SEQ_CLEARSCR_CHAR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_AND_COLOR_get")] - public static extern string SWITCH_SEQ_AND_COLOR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_END_COLOR_get")] - public static extern string SWITCH_SEQ_END_COLOR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_BLACK_get")] - public static extern string SWITCH_SEQ_F_BLACK_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_RED_get")] - public static extern string SWITCH_SEQ_F_RED_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_GREEN_get")] - public static extern string SWITCH_SEQ_F_GREEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_YELLOW_get")] - public static extern string SWITCH_SEQ_F_YELLOW_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_BLUE_get")] - public static extern string SWITCH_SEQ_F_BLUE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_MAGEN_get")] - public static extern string SWITCH_SEQ_F_MAGEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_CYAN_get")] - public static extern string SWITCH_SEQ_F_CYAN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_WHITE_get")] - public static extern string SWITCH_SEQ_F_WHITE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_BLACK_get")] - public static extern string SWITCH_SEQ_B_BLACK_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_RED_get")] - public static extern string SWITCH_SEQ_B_RED_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_GREEN_get")] - public static extern string SWITCH_SEQ_B_GREEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_YELLOW_get")] - public static extern string SWITCH_SEQ_B_YELLOW_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_BLUE_get")] - public static extern string SWITCH_SEQ_B_BLUE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_MAGEN_get")] - public static extern string SWITCH_SEQ_B_MAGEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_CYAN_get")] - public static extern string SWITCH_SEQ_B_CYAN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_WHITE_get")] - public static extern string SWITCH_SEQ_B_WHITE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FBLACK_get")] - public static extern string SWITCH_SEQ_FBLACK_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FRED_get")] - public static extern string SWITCH_SEQ_FRED_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FGREEN_get")] - public static extern string SWITCH_SEQ_FGREEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FYELLOW_get")] - public static extern string SWITCH_SEQ_FYELLOW_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FBLUE_get")] - public static extern string SWITCH_SEQ_FBLUE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FMAGEN_get")] - public static extern string SWITCH_SEQ_FMAGEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FCYAN_get")] - public static extern string SWITCH_SEQ_FCYAN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FWHITE_get")] - public static extern string SWITCH_SEQ_FWHITE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BBLACK_get")] - public static extern string SWITCH_SEQ_BBLACK_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BRED_get")] - public static extern string SWITCH_SEQ_BRED_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BGREEN_get")] - public static extern string SWITCH_SEQ_BGREEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BYELLOW_get")] - public static extern string SWITCH_SEQ_BYELLOW_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BBLUE_get")] - public static extern string SWITCH_SEQ_BBLUE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BMAGEN_get")] - public static extern string SWITCH_SEQ_BMAGEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BCYAN_get")] - public static extern string SWITCH_SEQ_BCYAN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BWHITE_get")] - public static extern string SWITCH_SEQ_BWHITE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_HOME_get")] - public static extern string SWITCH_SEQ_HOME_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINE_get")] - public static extern string SWITCH_SEQ_CLEARLINE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINEEND_get")] - public static extern string SWITCH_SEQ_CLEARLINEEND_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_get")] - public static extern string SWITCH_SEQ_CLEARSCR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_CLID_NAME_get")] - public static extern string SWITCH_DEFAULT_CLID_NAME_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_CLID_NUMBER_get")] - public static extern string SWITCH_DEFAULT_CLID_NUMBER_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_DTMF_DURATION_get")] - public static extern int SWITCH_DEFAULT_DTMF_DURATION_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MIN_DTMF_DURATION_get")] - public static extern int SWITCH_MIN_DTMF_DURATION_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_DTMF_DURATION_get")] - public static extern int SWITCH_MAX_DTMF_DURATION_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PATH_SEPARATOR_get")] - public static extern string SWITCH_PATH_SEPARATOR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_URL_SEPARATOR_get")] - public static extern string SWITCH_URL_SEPARATOR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get")] - public static extern string SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get")] - public static extern string SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get")] - public static extern string SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_READ_TERMINATOR_USED_VARIABLE_get")] - public static extern string SWITCH_READ_TERMINATOR_USED_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get")] - public static extern string SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CURRENT_APPLICATION_VARIABLE_get")] - public static extern string SWITCH_CURRENT_APPLICATION_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get")] - public static extern string SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get")] - public static extern string SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get")] - public static extern string SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get")] - public static extern string SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_READ_RESULT_VARIABLE_get")] - public static extern string SWITCH_READ_RESULT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ATT_XFER_RESULT_VARIABLE_get")] - public static extern string SWITCH_ATT_XFER_RESULT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_COPY_XML_CDR_VARIABLE_get")] - public static extern string SWITCH_COPY_XML_CDR_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_COPY_JSON_CDR_VARIABLE_get")] - public static extern string SWITCH_COPY_JSON_CDR_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get")] - public static extern string SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_HISTORY_VARIABLE_get")] - public static extern string SWITCH_TRANSFER_HISTORY_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_SOURCE_VARIABLE_get")] - public static extern string SWITCH_TRANSFER_SOURCE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SENSITIVE_DTMF_VARIABLE_get")] - public static extern string SWITCH_SENSITIVE_DTMF_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get")] - public static extern string SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get")] - public static extern string SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_RING_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_RING_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get")] - public static extern string SWITCH_CALL_TIMEOUT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_HOLDING_UUID_VARIABLE_get")] - public static extern string SWITCH_HOLDING_UUID_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SOFT_HOLDING_UUID_VARIABLE_get")] - public static extern string SWITCH_SOFT_HOLDING_UUID_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_BRIDGE_END_VARIABLE_get")] - public static extern string SWITCH_API_BRIDGE_END_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_BRIDGE_START_VARIABLE_get")] - public static extern string SWITCH_API_BRIDGE_START_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_HANGUP_HOOK_VARIABLE_get")] - public static extern string SWITCH_API_HANGUP_HOOK_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_REPORTING_HOOK_VARIABLE_get")] - public static extern string SWITCH_API_REPORTING_HOOK_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get")] - public static extern string SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PROCESS_CDR_VARIABLE_get")] - public static extern string SWITCH_PROCESS_CDR_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SKIP_CDR_CAUSES_VARIABLE_get")] - public static extern string SWITCH_SKIP_CDR_CAUSES_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_FORCE_PROCESS_CDR_VARIABLE_get")] - public static extern string SWITCH_FORCE_PROCESS_CDR_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_CHANNEL_VARIABLE_get")] - public static extern string SWITCH_BRIDGE_CHANNEL_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_NAME_VARIABLE_get")] - public static extern string SWITCH_CHANNEL_NAME_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_UUID_VARIABLE_get")] - public static extern string SWITCH_BRIDGE_UUID_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get")] - public static extern string SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get")] - public static extern string SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PLAYBACK_TERMINATOR_USED_get")] - public static extern string SWITCH_PLAYBACK_TERMINATOR_USED_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get")] - public static extern string SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get")] - public static extern string SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BYPASS_MEDIA_VARIABLE_get")] - public static extern string SWITCH_BYPASS_MEDIA_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PROXY_MEDIA_VARIABLE_get")] - public static extern string SWITCH_PROXY_MEDIA_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ZRTP_PASSTHRU_VARIABLE_get")] - public static extern string SWITCH_ZRTP_PASSTHRU_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get")] - public static extern string SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_HOLD_MUSIC_VARIABLE_get")] - public static extern string SWITCH_HOLD_MUSIC_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get")] - public static extern string SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXPORT_VARS_VARIABLE_get")] - public static extern string SWITCH_EXPORT_VARS_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get")] - public static extern string SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_R_SDP_VARIABLE_get")] - public static extern string SWITCH_R_SDP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_L_SDP_VARIABLE_get")] - public static extern string SWITCH_L_SDP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_B_SDP_VARIABLE_get")] - public static extern string SWITCH_B_SDP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LAST_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_LAST_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SIGNAL_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_SIGNAL_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SIGNAL_BOND_VARIABLE_get")] - public static extern string SWITCH_SIGNAL_BOND_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get")] - public static extern string SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATOR_VARIABLE_get")] - public static extern string SWITCH_ORIGINATOR_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATOR_CODEC_VARIABLE_get")] - public static extern string SWITCH_ORIGINATOR_CODEC_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get")] - public static extern string SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_MEDIA_IP_VARIABLE_get")] - public static extern string SWITCH_LOCAL_MEDIA_IP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get")] - public static extern string SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get")] - public static extern string SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_MEDIA_IP_VARIABLE_get")] - public static extern string SWITCH_REMOTE_MEDIA_IP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get")] - public static extern string SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_VIDEO_IP_VARIABLE_get")] - public static extern string SWITCH_REMOTE_VIDEO_IP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get")] - public static extern string SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_VIDEO_IP_VARIABLE_get")] - public static extern string SWITCH_LOCAL_VIDEO_IP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get")] - public static extern string SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get")] - public static extern string SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get")] - public static extern string SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get")] - public static extern string SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_FORWARDS_VARIABLE_get")] - public static extern string SWITCH_MAX_FORWARDS_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DISABLE_APP_LOG_VARIABLE_get")] - public static extern string SWITCH_DISABLE_APP_LOG_VARIABLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SPEECH_KEY_get")] - public static extern string SWITCH_SPEECH_KEY_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_UUID_BRIDGE_get")] - public static extern string SWITCH_UUID_BRIDGE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BITS_PER_BYTE_get")] - public static extern int SWITCH_BITS_PER_BYTE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_FILE_BUFFER_LEN_get")] - public static extern int SWITCH_DEFAULT_FILE_BUFFER_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DTMF_LOG_LEN_get")] - public static extern int SWITCH_DTMF_LOG_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_TRANS_get")] - public static extern int SWITCH_MAX_TRANS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_SESSION_MAX_PRIVATES_get")] - public static extern int SWITCH_CORE_SESSION_MAX_PRIVATES_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_JITTER_VARIANCE_THRESHOLD_get")] - public static extern double JITTER_VARIANCE_THRESHOLD_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_IPDV_THRESHOLD_get")] - public static extern double IPDV_THRESHOLD_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_LOST_BURST_ANALYZE_get")] - public static extern int LOST_BURST_ANALYZE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_LOST_BURST_CAPTURE_get")] - public static extern int LOST_BURST_CAPTURE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_digit_set")] - public static extern void switch_dtmf_t_digit_set(HandleRef jarg1, char jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_digit_get")] - public static extern char switch_dtmf_t_digit_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_duration_set")] - public static extern void switch_dtmf_t_duration_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_duration_get")] - public static extern uint switch_dtmf_t_duration_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_flags_set")] - public static extern void switch_dtmf_t_flags_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_flags_get")] - public static extern int switch_dtmf_t_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_source_set")] - public static extern void switch_dtmf_t_source_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_source_get")] - public static extern int switch_dtmf_t_source_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_dtmf_t")] - public static extern IntPtr new_switch_dtmf_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_dtmf_t")] - public static extern void delete_switch_dtmf_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buf_set")] - public static extern void switch_bitpack_t_buf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buf_get")] - public static extern IntPtr switch_bitpack_t_buf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buflen_set")] - public static extern void switch_bitpack_t_buflen_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buflen_get")] - public static extern uint switch_bitpack_t_buflen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_cur_set")] - public static extern void switch_bitpack_t_cur_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_cur_get")] - public static extern IntPtr switch_bitpack_t_cur_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bytes_set")] - public static extern void switch_bitpack_t_bytes_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bytes_get")] - public static extern uint switch_bitpack_t_bytes_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_tot_set")] - public static extern void switch_bitpack_t_bits_tot_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_tot_get")] - public static extern uint switch_bitpack_t_bits_tot_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_cur_set")] - public static extern void switch_bitpack_t_bits_cur_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_cur_get")] - public static extern byte switch_bitpack_t_bits_cur_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_rem_set")] - public static extern void switch_bitpack_t_bits_rem_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_rem_get")] - public static extern byte switch_bitpack_t_bits_rem_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_frame_bits_set")] - public static extern void switch_bitpack_t_frame_bits_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_frame_bits_get")] - public static extern byte switch_bitpack_t_frame_bits_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_shiftby_set")] - public static extern void switch_bitpack_t_shiftby_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_shiftby_get")] - public static extern byte switch_bitpack_t_shiftby_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_this_byte_set")] - public static extern void switch_bitpack_t_this_byte_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_this_byte_get")] - public static extern byte switch_bitpack_t_this_byte_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_under_set")] - public static extern void switch_bitpack_t_under_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_under_get")] - public static extern byte switch_bitpack_t_under_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_over_set")] - public static extern void switch_bitpack_t_over_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_over_get")] - public static extern byte switch_bitpack_t_over_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_mode_set")] - public static extern void switch_bitpack_t_mode_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_mode_get")] - public static extern int switch_bitpack_t_mode_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_bitpack_t")] - public static extern IntPtr new_switch_bitpack_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_bitpack_t")] - public static extern void delete_switch_bitpack_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_base_dir_set")] - public static extern void switch_directories_base_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_base_dir_get")] - public static extern string switch_directories_base_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_mod_dir_set")] - public static extern void switch_directories_mod_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_mod_dir_get")] - public static extern string switch_directories_mod_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_conf_dir_set")] - public static extern void switch_directories_conf_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_conf_dir_get")] - public static extern string switch_directories_conf_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_log_dir_set")] - public static extern void switch_directories_log_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_log_dir_get")] - public static extern string switch_directories_log_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_run_dir_set")] - public static extern void switch_directories_run_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_run_dir_get")] - public static extern string switch_directories_run_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_db_dir_set")] - public static extern void switch_directories_db_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_db_dir_get")] - public static extern string switch_directories_db_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_script_dir_set")] - public static extern void switch_directories_script_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_script_dir_get")] - public static extern string switch_directories_script_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_temp_dir_set")] - public static extern void switch_directories_temp_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_temp_dir_get")] - public static extern string switch_directories_temp_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_htdocs_dir_set")] - public static extern void switch_directories_htdocs_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_htdocs_dir_get")] - public static extern string switch_directories_htdocs_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_grammar_dir_set")] - public static extern void switch_directories_grammar_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_grammar_dir_get")] - public static extern string switch_directories_grammar_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_storage_dir_set")] - public static extern void switch_directories_storage_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_storage_dir_get")] - public static extern string switch_directories_storage_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_cache_dir_set")] - public static extern void switch_directories_cache_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_cache_dir_get")] - public static extern string switch_directories_cache_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_recordings_dir_set")] - public static extern void switch_directories_recordings_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_recordings_dir_get")] - public static extern string switch_directories_recordings_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_sounds_dir_set")] - public static extern void switch_directories_sounds_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_sounds_dir_get")] - public static extern string switch_directories_sounds_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_set")] - public static extern void switch_directories_lib_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_get")] - public static extern string switch_directories_lib_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_certs_dir_set")] - public static extern void switch_directories_certs_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_certs_dir_get")] - public static extern string switch_directories_certs_dir_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directories")] - public static extern IntPtr new_switch_directories(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directories")] - public static extern void delete_switch_directories(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_dirs_set")] - public static extern void SWITCH_GLOBAL_dirs_set(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_dirs_get")] - public static extern IntPtr SWITCH_GLOBAL_dirs_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_filenames_conf_name_set")] - public static extern void switch_filenames_conf_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_filenames_conf_name_get")] - public static extern string switch_filenames_conf_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_filenames")] - public static extern IntPtr new_switch_filenames(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_filenames")] - public static extern void delete_switch_filenames(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_filenames_set")] - public static extern void SWITCH_GLOBAL_filenames_set(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_filenames_get")] - public static extern IntPtr SWITCH_GLOBAL_filenames_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STACKS_get")] - public static extern int SWITCH_MAX_STACKS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_THREAD_STACKSIZE_get")] - public static extern int SWITCH_THREAD_STACKSIZE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SYSTEM_THREAD_STACKSIZE_get")] - public static extern int SWITCH_SYSTEM_THREAD_STACKSIZE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_INTERVAL_get")] - public static extern int SWITCH_MAX_INTERVAL_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_INTERVAL_PAD_get")] - public static extern int SWITCH_INTERVAL_PAD_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_SAMPLE_LEN_get")] - public static extern int SWITCH_MAX_SAMPLE_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BYTES_PER_SAMPLE_get")] - public static extern int SWITCH_BYTES_PER_SAMPLE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RECOMMENDED_BUFFER_SIZE_get")] - public static extern int SWITCH_RECOMMENDED_BUFFER_SIZE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_CODECS_get")] - public static extern int SWITCH_MAX_CODECS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STATE_HANDLERS_get")] - public static extern int SWITCH_MAX_STATE_HANDLERS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_QUEUE_LEN_get")] - public static extern int SWITCH_CORE_QUEUE_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get")] - public static extern int SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_raw_bytes_set")] - public static extern void switch_rtp_numbers_t_raw_bytes_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_raw_bytes_get")] - public static extern IntPtr switch_rtp_numbers_t_raw_bytes_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_bytes_set")] - public static extern void switch_rtp_numbers_t_media_bytes_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_bytes_get")] - public static extern IntPtr switch_rtp_numbers_t_media_bytes_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_packet_count_set")] - public static extern void switch_rtp_numbers_t_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_period_packet_count_set")] - public static extern void switch_rtp_numbers_t_period_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_period_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_period_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_packet_count_set")] - public static extern void switch_rtp_numbers_t_media_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_media_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_skip_packet_count_set")] - public static extern void switch_rtp_numbers_t_skip_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_skip_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_skip_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jb_packet_count_set")] - public static extern void switch_rtp_numbers_t_jb_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jb_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_jb_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_dtmf_packet_count_set")] - public static extern void switch_rtp_numbers_t_dtmf_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_dtmf_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_dtmf_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_cng_packet_count_set")] - public static extern void switch_rtp_numbers_t_cng_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_cng_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_cng_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flush_packet_count_set")] - public static extern void switch_rtp_numbers_t_flush_packet_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flush_packet_count_get")] - public static extern IntPtr switch_rtp_numbers_t_flush_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_largest_jb_size_set")] - public static extern void switch_rtp_numbers_t_largest_jb_size_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_largest_jb_size_get")] - public static extern IntPtr switch_rtp_numbers_t_largest_jb_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_proc_time_set")] - public static extern void switch_rtp_numbers_t_last_proc_time_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_proc_time_get")] - public static extern long switch_rtp_numbers_t_last_proc_time_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_n_set")] - public static extern void switch_rtp_numbers_t_jitter_n_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_n_get")] - public static extern long switch_rtp_numbers_t_jitter_n_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_add_set")] - public static extern void switch_rtp_numbers_t_jitter_add_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_add_get")] - public static extern long switch_rtp_numbers_t_jitter_add_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_addsq_set")] - public static extern void switch_rtp_numbers_t_jitter_addsq_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_addsq_get")] - public static extern long switch_rtp_numbers_t_jitter_addsq_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_variance_set")] - public static extern void switch_rtp_numbers_t_variance_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_variance_get")] - public static extern double switch_rtp_numbers_t_variance_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_min_variance_set")] - public static extern void switch_rtp_numbers_t_min_variance_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_min_variance_get")] - public static extern double switch_rtp_numbers_t_min_variance_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_max_variance_set")] - public static extern void switch_rtp_numbers_t_max_variance_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_max_variance_get")] - public static extern double switch_rtp_numbers_t_max_variance_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_std_deviation_set")] - public static extern void switch_rtp_numbers_t_std_deviation_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_std_deviation_get")] - public static extern double switch_rtp_numbers_t_std_deviation_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_lossrate_set")] - public static extern void switch_rtp_numbers_t_lossrate_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_lossrate_get")] - public static extern double switch_rtp_numbers_t_lossrate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_burstrate_set")] - public static extern void switch_rtp_numbers_t_burstrate_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_burstrate_get")] - public static extern double switch_rtp_numbers_t_burstrate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mean_interval_set")] - public static extern void switch_rtp_numbers_t_mean_interval_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mean_interval_get")] - public static extern double switch_rtp_numbers_t_mean_interval_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_loss_set")] - public static extern void switch_rtp_numbers_t_loss_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_loss_get")] - public static extern IntPtr switch_rtp_numbers_t_loss_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_loss_set")] - public static extern void switch_rtp_numbers_t_last_loss_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_loss_get")] - public static extern int switch_rtp_numbers_t_last_loss_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_recved_set")] - public static extern void switch_rtp_numbers_t_recved_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_recved_get")] - public static extern int switch_rtp_numbers_t_recved_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_processed_seq_set")] - public static extern void switch_rtp_numbers_t_last_processed_seq_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_processed_seq_get")] - public static extern int switch_rtp_numbers_t_last_processed_seq_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flaws_set")] - public static extern void switch_rtp_numbers_t_flaws_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flaws_get")] - public static extern IntPtr switch_rtp_numbers_t_flaws_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_flaw_set")] - public static extern void switch_rtp_numbers_t_last_flaw_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_flaw_get")] - public static extern IntPtr switch_rtp_numbers_t_last_flaw_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_R_set")] - public static extern void switch_rtp_numbers_t_R_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_R_get")] - public static extern double switch_rtp_numbers_t_R_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mos_set")] - public static extern void switch_rtp_numbers_t_mos_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mos_get")] - public static extern double switch_rtp_numbers_t_mos_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_numbers_t")] - public static extern IntPtr new_switch_rtp_numbers_t(); - - [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_rtcp_numbers_t_packet_count_set")] - public static extern void switch_rtcp_numbers_t_packet_count_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_packet_count_get")] - public static extern uint switch_rtcp_numbers_t_packet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_octet_count_set")] - public static extern void switch_rtcp_numbers_t_octet_count_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_octet_count_get")] - public static extern uint switch_rtcp_numbers_t_octet_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_peer_ssrc_set")] - public static extern void switch_rtcp_numbers_t_peer_ssrc_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_peer_ssrc_get")] - public static extern uint switch_rtcp_numbers_t_peer_ssrc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtcp_numbers_t")] - public static extern IntPtr new_switch_rtcp_numbers_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtcp_numbers_t")] - public static extern void delete_switch_rtcp_numbers_t(HandleRef jarg1); - - [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_inbound_get")] - public static extern IntPtr switch_rtp_stats_t_inbound_get(HandleRef jarg1); - - [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_outbound_get")] - public static extern IntPtr switch_rtp_stats_t_outbound_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_rtcp_set")] - public static extern void switch_rtp_stats_t_rtcp_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_rtcp_get")] - public static extern IntPtr switch_rtp_stats_t_rtcp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_read_count_set")] - public static extern void switch_rtp_stats_t_read_count_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_read_count_get")] - public static extern uint switch_rtp_stats_t_read_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_stats_t")] - public static extern IntPtr new_switch_rtp_stats_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_stats_t")] - public static extern void delete_switch_rtp_stats_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_CNG_PAYLOAD_get")] - public static extern int SWITCH_RTP_CNG_PAYLOAD_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_version_set")] - public static extern void switch_rtp_hdr_t_version_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_version_get")] - public static extern uint switch_rtp_hdr_t_version_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_p_set")] - public static extern void switch_rtp_hdr_t_p_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_p_get")] - public static extern uint switch_rtp_hdr_t_p_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_x_set")] - public static extern void switch_rtp_hdr_t_x_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_x_get")] - public static extern uint switch_rtp_hdr_t_x_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_cc_set")] - public static extern void switch_rtp_hdr_t_cc_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_cc_get")] - public static extern uint switch_rtp_hdr_t_cc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_m_set")] - public static extern void switch_rtp_hdr_t_m_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_m_get")] - public static extern uint switch_rtp_hdr_t_m_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_pt_set")] - public static extern void switch_rtp_hdr_t_pt_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_pt_get")] - public static extern uint switch_rtp_hdr_t_pt_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_seq_set")] - public static extern void switch_rtp_hdr_t_seq_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_seq_get")] - public static extern uint switch_rtp_hdr_t_seq_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ts_set")] - public static extern void switch_rtp_hdr_t_ts_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ts_get")] - public static extern uint switch_rtp_hdr_t_ts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ssrc_set")] - public static extern void switch_rtp_hdr_t_ssrc_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ssrc_get")] - public static extern uint switch_rtp_hdr_t_ssrc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_hdr_t")] - public static extern IntPtr new_switch_rtp_hdr_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_t")] - public static extern void delete_switch_rtp_hdr_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_length_set")] - public static extern void switch_rtp_hdr_ext_t_length_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_length_get")] - public static extern uint switch_rtp_hdr_ext_t_length_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_profile_set")] - public static extern void switch_rtp_hdr_ext_t_profile_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_profile_get")] - public static extern uint switch_rtp_hdr_ext_t_profile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_hdr_ext_t")] - public static extern IntPtr new_switch_rtp_hdr_ext_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_ext_t")] - public static extern void delete_switch_rtp_hdr_ext_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_version_set")] - public static extern void switch_rtcp_hdr_t_version_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_version_get")] - public static extern uint switch_rtcp_hdr_t_version_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_p_set")] - public static extern void switch_rtcp_hdr_t_p_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_p_get")] - public static extern uint switch_rtcp_hdr_t_p_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_count_set")] - public static extern void switch_rtcp_hdr_t_count_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_count_get")] - public static extern uint switch_rtcp_hdr_t_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_type_set")] - public static extern void switch_rtcp_hdr_t_type_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_type_get")] - public static extern uint switch_rtcp_hdr_t_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_length_set")] - public static extern void switch_rtcp_hdr_t_length_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_length_get")] - public static extern uint switch_rtcp_hdr_t_length_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtcp_hdr_t")] - public static extern IntPtr new_switch_rtcp_hdr_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtcp_hdr_t")] - public static extern void delete_switch_rtcp_hdr_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_ts_set")] - public static extern void audio_buffer_header_t_ts_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_ts_get")] - public static extern uint audio_buffer_header_t_ts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_len_set")] - public static extern void audio_buffer_header_t_len_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_len_get")] - public static extern uint audio_buffer_header_t_len_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_audio_buffer_header_t")] - public static extern IntPtr new_audio_buffer_header_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_audio_buffer_header_t")] - public static extern void delete_audio_buffer_header_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxVersion_set")] - public static extern void switch_t38_options_t_T38FaxVersion_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxVersion_get")] - public static extern ushort switch_t38_options_t_T38FaxVersion_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38MaxBitRate_set")] - public static extern void switch_t38_options_t_T38MaxBitRate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38MaxBitRate_get")] - public static extern uint switch_t38_options_t_T38MaxBitRate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxFillBitRemoval_set")] - public static extern void switch_t38_options_t_T38FaxFillBitRemoval_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxFillBitRemoval_get")] - public static extern int switch_t38_options_t_T38FaxFillBitRemoval_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingMMR_set")] - public static extern void switch_t38_options_t_T38FaxTranscodingMMR_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingMMR_get")] - public static extern int switch_t38_options_t_T38FaxTranscodingMMR_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_set")] - public static extern void switch_t38_options_t_T38FaxTranscodingJBIG_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_get")] - public static extern int switch_t38_options_t_T38FaxTranscodingJBIG_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxRateManagement_set")] - public static extern void switch_t38_options_t_T38FaxRateManagement_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxRateManagement_get")] - public static extern string switch_t38_options_t_T38FaxRateManagement_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxBuffer_set")] - public static extern void switch_t38_options_t_T38FaxMaxBuffer_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxBuffer_get")] - public static extern uint switch_t38_options_t_T38FaxMaxBuffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxDatagram_set")] - public static extern void switch_t38_options_t_T38FaxMaxDatagram_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxDatagram_get")] - public static extern uint switch_t38_options_t_T38FaxMaxDatagram_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxUdpEC_set")] - public static extern void switch_t38_options_t_T38FaxUdpEC_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxUdpEC_get")] - public static extern string switch_t38_options_t_T38FaxUdpEC_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38VendorInfo_set")] - public static extern void switch_t38_options_t_T38VendorInfo_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38VendorInfo_get")] - public static extern string switch_t38_options_t_T38VendorInfo_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_ip_set")] - public static extern void switch_t38_options_t_remote_ip_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_ip_get")] - public static extern string switch_t38_options_t_remote_ip_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_port_set")] - public static extern void switch_t38_options_t_remote_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_port_get")] - public static extern ushort switch_t38_options_t_remote_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_ip_set")] - public static extern void switch_t38_options_t_local_ip_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_ip_get")] - public static extern string switch_t38_options_t_local_ip_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_port_set")] - public static extern void switch_t38_options_t_local_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_port_get")] - public static extern ushort switch_t38_options_t_local_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_sdp_o_line_set")] - public static extern void switch_t38_options_t_sdp_o_line_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_sdp_o_line_get")] - public static extern string switch_t38_options_t_sdp_o_line_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_t38_options_t")] - public static extern IntPtr new_switch_t38_options_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_t38_options_t")] - public static extern void delete_switch_t38_options_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MEDIA_TYPE_TOTAL_get")] - public static extern int SWITCH_MEDIA_TYPE_TOTAL_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SOCK_INVALID_get")] - public static extern int SWITCH_SOCK_INVALID_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_val_set")] - public static extern void switch_console_callback_match_node_val_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_val_get")] - public static extern string switch_console_callback_match_node_val_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_next_set")] - public static extern void switch_console_callback_match_node_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_next_get")] - public static extern IntPtr switch_console_callback_match_node_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_console_callback_match_node")] - public static extern IntPtr new_switch_console_callback_match_node(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_console_callback_match_node")] - public static extern void delete_switch_console_callback_match_node(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_head_set")] - public static extern void switch_console_callback_match_head_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_head_get")] - public static extern IntPtr switch_console_callback_match_head_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_end_set")] - public static extern void switch_console_callback_match_end_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_end_get")] - public static extern IntPtr switch_console_callback_match_end_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_count_set")] - public static extern void switch_console_callback_match_count_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_count_get")] - public static extern int switch_console_callback_match_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_dynamic_set")] - public static extern void switch_console_callback_match_dynamic_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_dynamic_get")] - public static extern int switch_console_callback_match_dynamic_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_console_callback_match")] - public static extern IntPtr new_switch_console_callback_match(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_console_callback_match")] - public static extern void delete_switch_console_callback_match(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_DMACHINE_MAX_DIGIT_LEN_get")] - public static extern int DMACHINE_MAX_DIGIT_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_dmachine_set")] - public static extern void switch_ivr_dmachine_match_dmachine_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_dmachine_get")] - public static extern IntPtr switch_ivr_dmachine_match_dmachine_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_digits_set")] - public static extern void switch_ivr_dmachine_match_match_digits_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_digits_get")] - public static extern string switch_ivr_dmachine_match_match_digits_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_key_set")] - public static extern void switch_ivr_dmachine_match_match_key_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_key_get")] - public static extern int switch_ivr_dmachine_match_match_key_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_type_set")] - public static extern void switch_ivr_dmachine_match_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_type_get")] - public static extern int switch_ivr_dmachine_match_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_user_data_set")] - public static extern void switch_ivr_dmachine_match_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_user_data_get")] - public static extern IntPtr switch_ivr_dmachine_match_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_ivr_dmachine_match")] - public static extern IntPtr new_switch_ivr_dmachine_match(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_ivr_dmachine_match")] - public static extern void delete_switch_ivr_dmachine_match(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_MAX_ARG_RECURSION_get")] - public static extern int MAX_ARG_RECURSION_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_input_callback_set")] - public static extern void switch_input_args_t_input_callback_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_input_callback_get")] - public static extern IntPtr switch_input_args_t_input_callback_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buf_set")] - public static extern void switch_input_args_t_buf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buf_get")] - public static extern IntPtr switch_input_args_t_buf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buflen_set")] - public static extern void switch_input_args_t_buflen_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buflen_get")] - public static extern uint switch_input_args_t_buflen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_read_frame_callback_set")] - public static extern void switch_input_args_t_read_frame_callback_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_read_frame_callback_get")] - public static extern IntPtr switch_input_args_t_read_frame_callback_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_user_data_set")] - public static extern void switch_input_args_t_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_user_data_get")] - public static extern IntPtr switch_input_args_t_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_dmachine_set")] - public static extern void switch_input_args_t_dmachine_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_dmachine_get")] - public static extern IntPtr switch_input_args_t_dmachine_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_loops_set")] - public static extern void switch_input_args_t_loops_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_loops_get")] - public static extern int switch_input_args_t_loops_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_input_args_t")] - public static extern IntPtr new_switch_input_args_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_input_args_t")] - public static extern void delete_switch_input_args_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_type_set")] - public static extern void switch_say_args_t_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_type_get")] - public static extern int switch_say_args_t_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_method_set")] - public static extern void switch_say_args_t_method_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_method_get")] - public static extern int switch_say_args_t_method_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_gender_set")] - public static extern void switch_say_args_t_gender_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_gender_get")] - public static extern int switch_say_args_t_gender_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_ext_set")] - public static extern void switch_say_args_t_ext_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_ext_get")] - public static extern string switch_say_args_t_ext_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_say_args_t")] - public static extern IntPtr new_switch_say_args_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_say_args_t")] - public static extern void delete_switch_say_args_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_VERSION_get")] - public static extern int SWITCH_API_VERSION_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_switch_api_version_set")] - public static extern void switch_loadable_module_function_table_t_switch_api_version_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_switch_api_version_get")] - public static extern int switch_loadable_module_function_table_t_switch_api_version_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_load_set")] - public static extern void switch_loadable_module_function_table_t_load_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_load_get")] - public static extern IntPtr switch_loadable_module_function_table_t_load_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_shutdown_set")] - public static extern void switch_loadable_module_function_table_t_shutdown_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_shutdown_get")] - public static extern IntPtr switch_loadable_module_function_table_t_shutdown_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_runtime_set")] - public static extern void switch_loadable_module_function_table_t_runtime_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_runtime_get")] - public static extern IntPtr switch_loadable_module_function_table_t_runtime_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_flags_set")] - public static extern void switch_loadable_module_function_table_t_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_flags_get")] - public static extern uint switch_loadable_module_function_table_t_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_loadable_module_function_table_t")] - public static extern IntPtr new_switch_loadable_module_function_table_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_loadable_module_function_table_t")] - public static extern void delete_switch_loadable_module_function_table_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_type_set")] - public static extern void payload_map_t_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_type_get")] - public static extern int payload_map_t_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_sdp_type_set")] - public static extern void payload_map_t_sdp_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_sdp_type_get")] - public static extern int payload_map_t_sdp_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_ptime_set")] - public static extern void payload_map_t_ptime_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_ptime_get")] - public static extern uint payload_map_t_ptime_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rate_set")] - public static extern void payload_map_t_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rate_get")] - public static extern uint payload_map_t_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_allocated_set")] - public static extern void payload_map_t_allocated_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_allocated_get")] - public static extern byte payload_map_t_allocated_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_negotiated_set")] - public static extern void payload_map_t_negotiated_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_negotiated_get")] - public static extern byte payload_map_t_negotiated_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_current_set")] - public static extern void payload_map_t_current_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_current_get")] - public static extern byte payload_map_t_current_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_hash_set")] - public static extern void payload_map_t_hash_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_hash_get")] - public static extern uint payload_map_t_hash_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_encoding_set")] - public static extern void payload_map_t_rm_encoding_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_encoding_get")] - public static extern string payload_map_t_rm_encoding_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_iananame_set")] - public static extern void payload_map_t_iananame_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_iananame_get")] - public static extern string payload_map_t_iananame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_pt_set")] - public static extern void payload_map_t_pt_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_pt_get")] - public static extern byte payload_map_t_pt_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_rate_set")] - public static extern void payload_map_t_rm_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_rate_get")] - public static extern uint payload_map_t_rm_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_rm_rate_set")] - public static extern void payload_map_t_adv_rm_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_rm_rate_get")] - public static extern uint payload_map_t_adv_rm_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_codec_ms_set")] - public static extern void payload_map_t_codec_ms_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_codec_ms_get")] - public static extern uint payload_map_t_codec_ms_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_bitrate_set")] - public static extern void payload_map_t_bitrate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_bitrate_get")] - public static extern uint payload_map_t_bitrate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_fmtp_set")] - public static extern void payload_map_t_rm_fmtp_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_fmtp_get")] - public static extern string payload_map_t_rm_fmtp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_agreed_pt_set")] - public static extern void payload_map_t_agreed_pt_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_agreed_pt_get")] - public static extern byte payload_map_t_agreed_pt_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_recv_pt_set")] - public static extern void payload_map_t_recv_pt_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_recv_pt_get")] - public static extern byte payload_map_t_recv_pt_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_fmtp_out_set")] - public static extern void payload_map_t_fmtp_out_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_fmtp_out_get")] - public static extern string payload_map_t_fmtp_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_ip_set")] - public static extern void payload_map_t_remote_sdp_ip_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_ip_get")] - public static extern string payload_map_t_remote_sdp_ip_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_port_set")] - public static extern void payload_map_t_remote_sdp_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_port_get")] - public static extern ushort payload_map_t_remote_sdp_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_channels_set")] - public static extern void payload_map_t_channels_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_channels_get")] - public static extern int payload_map_t_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_channels_set")] - public static extern void payload_map_t_adv_channels_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_channels_get")] - public static extern int payload_map_t_adv_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_next_set")] - public static extern void payload_map_t_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_next_get")] - public static extern IntPtr payload_map_t_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_payload_map_t")] - public static extern IntPtr new_payload_map_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_payload_map_t")] - public static extern void delete_payload_map_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_sock_set")] - public static extern void switch_waitlist_t_sock_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_sock_get")] - public static extern int switch_waitlist_t_sock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_events_set")] - public static extern void switch_waitlist_t_events_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_events_get")] - public static extern uint switch_waitlist_t_events_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_revents_set")] - public static extern void switch_waitlist_t_revents_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_revents_get")] - public static extern uint switch_waitlist_t_revents_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_waitlist_t")] - public static extern IntPtr new_switch_waitlist_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_waitlist_t")] - public static extern void delete_switch_waitlist_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_close")] - public static extern int switch_core_db_close(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_open")] - public static extern int switch_core_db_open(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_column_text")] - public static extern IntPtr switch_core_db_column_text(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_column_name")] - public static extern string switch_core_db_column_name(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_column_count")] - public static extern int switch_core_db_column_count(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_errmsg")] - public static extern string switch_core_db_errmsg(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_exec")] - public static extern int switch_core_db_exec(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_finalize")] - public static extern int switch_core_db_finalize(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_prepare")] - public static extern int switch_core_db_prepare(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4, ref string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_step")] - public static extern int switch_core_db_step(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_reset")] - public static extern int switch_core_db_reset(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_int")] - public static extern int switch_core_db_bind_int(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_int64")] - public static extern int switch_core_db_bind_int64(HandleRef jarg1, int jarg2, long jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_text")] - public static extern int switch_core_db_bind_text(HandleRef jarg1, int jarg2, string jarg3, int jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_double")] - public static extern int switch_core_db_bind_double(HandleRef jarg1, int jarg2, double jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_last_insert_rowid")] - public static extern long switch_core_db_last_insert_rowid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_get_table")] - public static extern int switch_core_db_get_table(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_free_table")] - public static extern void switch_core_db_free_table(ref string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_free")] - public static extern void switch_core_db_free(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_changes")] - public static extern int switch_core_db_changes(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_load_extension")] - public static extern int switch_core_db_load_extension(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_OK_get")] - public static extern int SWITCH_CORE_DB_OK_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_ERROR_get")] - public static extern int SWITCH_CORE_DB_ERROR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_INTERNAL_get")] - public static extern int SWITCH_CORE_DB_INTERNAL_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_PERM_get")] - public static extern int SWITCH_CORE_DB_PERM_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_ABORT_get")] - public static extern int SWITCH_CORE_DB_ABORT_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_BUSY_get")] - public static extern int SWITCH_CORE_DB_BUSY_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_LOCKED_get")] - public static extern int SWITCH_CORE_DB_LOCKED_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOMEM_get")] - public static extern int SWITCH_CORE_DB_NOMEM_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_READONLY_get")] - public static extern int SWITCH_CORE_DB_READONLY_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_INTERRUPT_get")] - public static extern int SWITCH_CORE_DB_INTERRUPT_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_IOERR_get")] - public static extern int SWITCH_CORE_DB_IOERR_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_CORRUPT_get")] - public static extern int SWITCH_CORE_DB_CORRUPT_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOTFOUND_get")] - public static extern int SWITCH_CORE_DB_NOTFOUND_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_FULL_get")] - public static extern int SWITCH_CORE_DB_FULL_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_CANTOPEN_get")] - public static extern int SWITCH_CORE_DB_CANTOPEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_PROTOCOL_get")] - public static extern int SWITCH_CORE_DB_PROTOCOL_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_EMPTY_get")] - public static extern int SWITCH_CORE_DB_EMPTY_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_SCHEMA_get")] - public static extern int SWITCH_CORE_DB_SCHEMA_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_TOOBIG_get")] - public static extern int SWITCH_CORE_DB_TOOBIG_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_CONSTRAINT_get")] - public static extern int SWITCH_CORE_DB_CONSTRAINT_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_MISMATCH_get")] - public static extern int SWITCH_CORE_DB_MISMATCH_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_MISUSE_get")] - public static extern int SWITCH_CORE_DB_MISUSE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOLFS_get")] - public static extern int SWITCH_CORE_DB_NOLFS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_AUTH_get")] - public static extern int SWITCH_CORE_DB_AUTH_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_FORMAT_get")] - public static extern int SWITCH_CORE_DB_FORMAT_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_RANGE_get")] - public static extern int SWITCH_CORE_DB_RANGE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOTADB_get")] - public static extern int SWITCH_CORE_DB_NOTADB_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_ROW_get")] - public static extern int SWITCH_CORE_DB_ROW_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_DONE_get")] - public static extern int SWITCH_CORE_DB_DONE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_concat")] - public static extern string switch_sql_concat(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_compile")] - public static extern IntPtr switch_regex_compile(string jarg1, int jarg2, ref string jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_copy_substring")] - public static extern int switch_regex_copy_substring(string jarg1, HandleRef jarg2, int jarg3, int jarg4, string jarg5, int jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_free")] - public static extern void switch_regex_free(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_perform")] - public static extern int switch_regex_perform(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_perform_substitution")] - public static extern void switch_perform_substitution(HandleRef jarg1, int jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_match")] - public static extern int switch_regex_match(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_match_partial")] - public static extern int switch_regex_match_partial(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_capture_regex")] - public static extern void switch_capture_regex(HandleRef jarg1, int jarg2, string jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_set_var_callback")] - public static extern void switch_regex_set_var_callback(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_set_event_header_callback")] - public static extern void switch_regex_set_event_header_callback(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get")] - public static extern int SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STREAMS_get")] - public static extern int SWITCH_MAX_STREAMS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_mms_set")] - public static extern void switch_core_time_duration_mms_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_mms_get")] - public static extern uint switch_core_time_duration_mms_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_ms_set")] - public static extern void switch_core_time_duration_ms_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_ms_get")] - public static extern uint switch_core_time_duration_ms_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_sec_set")] - public static extern void switch_core_time_duration_sec_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_sec_get")] - public static extern uint switch_core_time_duration_sec_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_min_set")] - public static extern void switch_core_time_duration_min_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_min_get")] - public static extern uint switch_core_time_duration_min_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_hr_set")] - public static extern void switch_core_time_duration_hr_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_hr_get")] - public static extern uint switch_core_time_duration_hr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_day_set")] - public static extern void switch_core_time_duration_day_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_day_get")] - public static extern uint switch_core_time_duration_day_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_yr_set")] - public static extern void switch_core_time_duration_yr_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_yr_get")] - public static extern uint switch_core_time_duration_yr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_core_time_duration")] - public static extern IntPtr new_switch_core_time_duration(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_time_duration")] - public static extern void delete_switch_core_time_duration(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_app_set")] - public static extern void switch_app_log_app_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_app_get")] - public static extern string switch_app_log_app_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_arg_set")] - public static extern void switch_app_log_arg_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_arg_get")] - public static extern string switch_app_log_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_set")] - public static extern void switch_app_log_stamp_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_get")] - public static extern IntPtr switch_app_log_stamp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_next_set")] - public static extern void switch_app_log_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_next_get")] - public static extern IntPtr switch_app_log_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_app_log")] - public static extern IntPtr new_switch_app_log(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_app_log")] - public static extern void delete_switch_app_log(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_func_set")] - public static extern void switch_thread_data_t_func_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_func_get")] - public static extern IntPtr switch_thread_data_t_func_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_obj_set")] - public static extern void switch_thread_data_t_obj_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_obj_get")] - public static extern IntPtr switch_thread_data_t_obj_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_alloc_set")] - public static extern void switch_thread_data_t_alloc_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_alloc_get")] - public static extern int switch_thread_data_t_alloc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_pool_set")] - public static extern void switch_thread_data_t_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_pool_get")] - public static extern IntPtr switch_thread_data_t_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_thread_data_t")] - public static extern IntPtr new_switch_thread_data_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_thread_data_t")] - public static extern void delete_switch_thread_data_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_on_set")] - public static extern void switch_hold_record_t_on_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_on_get")] - public static extern IntPtr switch_hold_record_t_on_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_off_set")] - public static extern void switch_hold_record_t_off_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_off_get")] - public static extern IntPtr switch_hold_record_t_off_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_uuid_set")] - public static extern void switch_hold_record_t_uuid_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_uuid_get")] - public static extern string switch_hold_record_t_uuid_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_next_set")] - public static extern void switch_hold_record_t_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_next_get")] - public static extern IntPtr switch_hold_record_t_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_hold_record_t")] - public static extern IntPtr new_switch_hold_record_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_hold_record_t")] - public static extern void delete_switch_hold_record_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_uuid_set")] - public static extern void switch_device_node_t_uuid_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_uuid_get")] - public static extern string switch_device_node_t_uuid_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_xml_cdr_set")] - public static extern void switch_device_node_t_xml_cdr_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_xml_cdr_get")] - public static extern IntPtr switch_device_node_t_xml_cdr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t__event_set")] - public static extern void switch_device_node_t__event_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t__event_get")] - public static extern IntPtr switch_device_node_t__event_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_callstate_set")] - public static extern void switch_device_node_t_callstate_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_callstate_get")] - public static extern int switch_device_node_t_callstate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hold_record_set")] - public static extern void switch_device_node_t_hold_record_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hold_record_get")] - public static extern IntPtr switch_device_node_t_hold_record_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hup_profile_set")] - public static extern void switch_device_node_t_hup_profile_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hup_profile_get")] - public static extern IntPtr switch_device_node_t_hup_profile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_direction_set")] - public static extern void switch_device_node_t_direction_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_direction_get")] - public static extern int switch_device_node_t_direction_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_parent_set")] - public static extern void switch_device_node_t_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_parent_get")] - public static extern IntPtr switch_device_node_t_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_next_set")] - public static extern void switch_device_node_t_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_next_get")] - public static extern IntPtr switch_device_node_t_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_device_node_t")] - public static extern IntPtr new_switch_device_node_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_device_node_t")] - public static extern void delete_switch_device_node_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_set")] - public static extern void switch_device_stats_t_total_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_get")] - public static extern uint switch_device_stats_t_total_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_in_set")] - public static extern void switch_device_stats_t_total_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_in_get")] - public static extern uint switch_device_stats_t_total_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_out_set")] - public static extern void switch_device_stats_t_total_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_out_get")] - public static extern uint switch_device_stats_t_total_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_set")] - public static extern void switch_device_stats_t_offhook_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_get")] - public static extern uint switch_device_stats_t_offhook_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_in_set")] - public static extern void switch_device_stats_t_offhook_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_in_get")] - public static extern uint switch_device_stats_t_offhook_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_out_set")] - public static extern void switch_device_stats_t_offhook_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_out_get")] - public static extern uint switch_device_stats_t_offhook_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_set")] - public static extern void switch_device_stats_t_active_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_get")] - public static extern uint switch_device_stats_t_active_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_in_set")] - public static extern void switch_device_stats_t_active_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_in_get")] - public static extern uint switch_device_stats_t_active_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_out_set")] - public static extern void switch_device_stats_t_active_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_out_get")] - public static extern uint switch_device_stats_t_active_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_set")] - public static extern void switch_device_stats_t_held_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_get")] - public static extern uint switch_device_stats_t_held_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_in_set")] - public static extern void switch_device_stats_t_held_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_in_get")] - public static extern uint switch_device_stats_t_held_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_out_set")] - public static extern void switch_device_stats_t_held_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_out_get")] - public static extern uint switch_device_stats_t_held_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_set")] - public static extern void switch_device_stats_t_unheld_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_get")] - public static extern uint switch_device_stats_t_unheld_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_in_set")] - public static extern void switch_device_stats_t_unheld_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_in_get")] - public static extern uint switch_device_stats_t_unheld_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_out_set")] - public static extern void switch_device_stats_t_unheld_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_out_get")] - public static extern uint switch_device_stats_t_unheld_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_set")] - public static extern void switch_device_stats_t_hup_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_get")] - public static extern uint switch_device_stats_t_hup_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_in_set")] - public static extern void switch_device_stats_t_hup_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_in_get")] - public static extern uint switch_device_stats_t_hup_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_out_set")] - public static extern void switch_device_stats_t_hup_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_out_get")] - public static extern uint switch_device_stats_t_hup_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_set")] - public static extern void switch_device_stats_t_ringing_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_get")] - public static extern uint switch_device_stats_t_ringing_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_in_set")] - public static extern void switch_device_stats_t_ringing_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_in_get")] - public static extern uint switch_device_stats_t_ringing_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_out_set")] - public static extern void switch_device_stats_t_ringing_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_out_get")] - public static extern uint switch_device_stats_t_ringing_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_set")] - public static extern void switch_device_stats_t_early_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_get")] - public static extern uint switch_device_stats_t_early_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_in_set")] - public static extern void switch_device_stats_t_early_in_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_in_get")] - public static extern uint switch_device_stats_t_early_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_out_set")] - public static extern void switch_device_stats_t_early_out_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_out_get")] - public static extern uint switch_device_stats_t_early_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ring_wait_set")] - public static extern void switch_device_stats_t_ring_wait_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ring_wait_get")] - public static extern uint switch_device_stats_t_ring_wait_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_device_stats_t")] - public static extern IntPtr new_switch_device_stats_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_device_stats_t")] - public static extern void delete_switch_device_stats_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_device_id_set")] - public static extern void switch_device_record_t_device_id_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_device_id_get")] - public static extern string switch_device_record_t_device_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_set")] - public static extern void switch_device_record_t_uuid_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_get")] - public static extern string switch_device_record_t_uuid_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_refs_set")] - public static extern void switch_device_record_t_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_refs_get")] - public static extern int switch_device_record_t_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_stats_set")] - public static extern void switch_device_record_t_stats_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_stats_get")] - public static extern IntPtr switch_device_record_t_stats_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_stats_set")] - public static extern void switch_device_record_t_last_stats_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_stats_get")] - public static extern IntPtr switch_device_record_t_last_stats_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_state_set")] - public static extern void switch_device_record_t_state_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_state_get")] - public static extern int switch_device_record_t_state_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_state_set")] - public static extern void switch_device_record_t_last_state_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_state_get")] - public static extern int switch_device_record_t_last_state_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_start_set")] - public static extern void switch_device_record_t_active_start_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_start_get")] - public static extern IntPtr switch_device_record_t_active_start_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_stop_set")] - public static extern void switch_device_record_t_active_stop_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_stop_get")] - public static extern IntPtr switch_device_record_t_active_stop_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_call_time_set")] - public static extern void switch_device_record_t_last_call_time_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_call_time_get")] - public static extern IntPtr switch_device_record_t_last_call_time_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_start_set")] - public static extern void switch_device_record_t_ring_start_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_start_get")] - public static extern IntPtr switch_device_record_t_ring_start_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_stop_set")] - public static extern void switch_device_record_t_ring_stop_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_stop_get")] - public static extern IntPtr switch_device_record_t_ring_stop_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_start_set")] - public static extern void switch_device_record_t_hold_start_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_start_get")] - public static extern IntPtr switch_device_record_t_hold_start_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_stop_set")] - public static extern void switch_device_record_t_hold_stop_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_stop_get")] - public static extern IntPtr switch_device_record_t_hold_stop_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_call_start_set")] - public static extern void switch_device_record_t_call_start_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_call_start_get")] - public static extern IntPtr switch_device_record_t_call_start_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_list_set")] - public static extern void switch_device_record_t_uuid_list_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_list_get")] - public static extern IntPtr switch_device_record_t_uuid_list_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_tail_set")] - public static extern void switch_device_record_t_uuid_tail_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_tail_get")] - public static extern IntPtr switch_device_record_t_uuid_tail_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_mutex_set")] - public static extern void switch_device_record_t_mutex_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_mutex_get")] - public static extern IntPtr switch_device_record_t_mutex_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_pool_set")] - public static extern void switch_device_record_t_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_pool_get")] - public static extern IntPtr switch_device_record_t_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_user_data_set")] - public static extern void switch_device_record_t_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_user_data_get")] - public static extern IntPtr switch_device_record_t_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_device_record_t")] - public static extern IntPtr new_switch_device_record_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_device_record_t")] - public static extern void delete_switch_device_record_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_DTLS_SRTP_FNAME_get")] - public static extern string DTLS_SRTP_FNAME_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_MAX_FPLEN_get")] - public static extern int MAX_FPLEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_MAX_FPSTRLEN_get")] - public static extern int MAX_FPSTRLEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_len_set")] - public static extern void dtls_fingerprint_t_len_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_len_get")] - public static extern uint dtls_fingerprint_t_len_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_data_set")] - public static extern void dtls_fingerprint_t_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_data_get")] - public static extern IntPtr dtls_fingerprint_t_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_type_set")] - public static extern void dtls_fingerprint_t_type_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_type_get")] - public static extern string dtls_fingerprint_t_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_str_set")] - public static extern void dtls_fingerprint_t_str_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_str_get")] - public static extern string dtls_fingerprint_t_str_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_dtls_fingerprint_t")] - public static extern IntPtr new_dtls_fingerprint_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_dtls_fingerprint_t")] - public static extern void delete_dtls_fingerprint_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_MESSAGE_STRING_ARG_MAX_get")] - public static extern int MESSAGE_STRING_ARG_MAX_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_from_set")] - public static extern void switch_core_session_message_from_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_from_get")] - public static extern string switch_core_session_message_from_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_message_id_set")] - public static extern void switch_core_session_message_message_id_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_message_id_get")] - public static extern int switch_core_session_message_message_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_arg_set")] - public static extern void switch_core_session_message_numeric_arg_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_arg_get")] - public static extern int switch_core_session_message_numeric_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_set")] - public static extern void switch_core_session_message_string_arg_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_get")] - public static extern string switch_core_session_message_string_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_size_set")] - public static extern void switch_core_session_message_string_arg_size_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_size_get")] - public static extern IntPtr switch_core_session_message_string_arg_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_set")] - public static extern void switch_core_session_message_pointer_arg_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_get")] - public static extern IntPtr switch_core_session_message_pointer_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_size_set")] - public static extern void switch_core_session_message_pointer_arg_size_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_size_get")] - public static extern IntPtr switch_core_session_message_pointer_arg_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_reply_set")] - public static extern void switch_core_session_message_numeric_reply_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_reply_get")] - public static extern int switch_core_session_message_numeric_reply_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_set")] - public static extern void switch_core_session_message_string_reply_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_get")] - public static extern string switch_core_session_message_string_reply_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_size_set")] - public static extern void switch_core_session_message_string_reply_size_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_size_get")] - public static extern IntPtr switch_core_session_message_string_reply_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_set")] - public static extern void switch_core_session_message_pointer_reply_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_get")] - public static extern IntPtr switch_core_session_message_pointer_reply_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_size_set")] - public static extern void switch_core_session_message_pointer_reply_size_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_size_get")] - public static extern IntPtr switch_core_session_message_pointer_reply_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_flags_set")] - public static extern void switch_core_session_message_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_flags_get")] - public static extern uint switch_core_session_message_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__file_set")] - public static extern void switch_core_session_message__file_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__file_get")] - public static extern string switch_core_session_message__file_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__func_set")] - public static extern void switch_core_session_message__func_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__func_get")] - public static extern string switch_core_session_message__func_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__line_set")] - public static extern void switch_core_session_message__line_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__line_get")] - public static extern int switch_core_session_message__line_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_array_arg_set")] - public static extern void switch_core_session_message_string_array_arg_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_array_arg_get")] - public static extern IntPtr switch_core_session_message_string_array_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_delivery_time_set")] - public static extern void switch_core_session_message_delivery_time_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_delivery_time_get")] - public static extern IntPtr switch_core_session_message_delivery_time_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_core_session_message")] - public static extern IntPtr new_switch_core_session_message(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_session_message")] - public static extern void delete_switch_core_session_message(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_running_set")] - public static extern void switch_core_thread_session_running_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_running_get")] - public static extern int switch_core_thread_session_running_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_mutex_set")] - public static extern void switch_core_thread_session_mutex_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_mutex_get")] - public static extern IntPtr switch_core_thread_session_mutex_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_objs_set")] - public static extern void switch_core_thread_session_objs_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_objs_get")] - public static extern IntPtr switch_core_thread_session_objs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_input_callback_set")] - public static extern void switch_core_thread_session_input_callback_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_input_callback_get")] - public static extern IntPtr switch_core_thread_session_input_callback_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_pool_set")] - public static extern void switch_core_thread_session_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_pool_get")] - public static extern IntPtr switch_core_thread_session_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_core_thread_session")] - public static extern IntPtr new_switch_core_thread_session(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_thread_session")] - public static extern void delete_switch_core_thread_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_screen_size")] - public static extern void switch_core_screen_size(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sched_heartbeat")] - public static extern void switch_core_session_sched_heartbeat(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unsched_heartbeat")] - public static extern void switch_core_session_unsched_heartbeat(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_enable_heartbeat")] - public static extern void switch_core_session_enable_heartbeat(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_disable_heartbeat")] - public static extern void switch_core_session_disable_heartbeat(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_pop")] - public static extern int switch_core_media_bug_pop(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_exec_all")] - public static extern int switch_core_media_bug_exec_all(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_count")] - public static extern uint switch_core_media_bug_count(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_add")] - public static extern int switch_core_media_bug_add(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6, uint jarg7, HandleRef jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_pause")] - public static extern void switch_core_media_bug_pause(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_resume")] - public static extern void switch_core_media_bug_resume(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_inuse")] - public static extern void switch_core_media_bug_inuse(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_user_data")] - public static extern IntPtr switch_core_media_bug_get_user_data(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_write_replace_frame")] - public static extern IntPtr switch_core_media_bug_get_write_replace_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_native_read_frame")] - public static extern IntPtr switch_core_media_bug_get_native_read_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_native_write_frame")] - public static extern IntPtr switch_core_media_bug_get_native_write_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_write_replace_frame")] - public static extern void switch_core_media_bug_set_write_replace_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_read_replace_frame")] - public static extern IntPtr switch_core_media_bug_get_read_replace_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_read_demux_frame")] - public static extern void switch_core_media_bug_set_read_demux_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_session")] - public static extern IntPtr switch_core_media_bug_get_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_test_flag")] - public static extern uint switch_core_media_bug_test_flag(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_flag")] - public static extern uint switch_core_media_bug_set_flag(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_clear_flag")] - public static extern uint switch_core_media_bug_clear_flag(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_read_replace_frame")] - public static extern void switch_core_media_bug_set_read_replace_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cpu_count")] - public static extern uint switch_core_cpu_count(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove")] - public static extern int switch_core_media_bug_remove(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_prune")] - public static extern uint switch_core_media_bug_prune(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove_callback")] - public static extern int switch_core_media_bug_remove_callback(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_close")] - public static extern int switch_core_media_bug_close(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove_all_function")] - public static extern int switch_core_media_bug_remove_all_function(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_enumerate")] - public static extern int switch_core_media_bug_enumerate(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_transfer_recordings")] - public static extern int switch_core_media_bug_transfer_recordings(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_transfer_callback")] - public static extern int switch_core_media_bug_transfer_callback(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_read")] - public static extern int switch_core_media_bug_read(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_flush")] - public static extern void switch_core_media_bug_flush(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_flush_all")] - public static extern int switch_core_media_bug_flush_all(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_pre_buffer_framecount")] - public static extern int switch_core_media_bug_set_pre_buffer_framecount(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_new")] - public static extern int switch_core_port_allocator_new(string jarg1, ushort jarg2, ushort jarg3, uint jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_request_port")] - public static extern int switch_core_port_allocator_request_port(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_free_port")] - public static extern int switch_core_port_allocator_free_port(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_destroy")] - public static extern void switch_core_port_allocator_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_test_flag")] - public static extern int switch_core_test_flag(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_init")] - public static extern int switch_core_init(uint jarg1, int jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_init_and_modload")] - public static extern int switch_core_init_and_modload(uint jarg1, int jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_limit")] - public static extern uint switch_core_session_limit(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sessions_per_second")] - public static extern uint switch_core_sessions_per_second(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_destroy")] - public static extern int switch_core_destroy(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_read_lock")] - public static extern int switch_core_session_io_read_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_write_lock")] - public static extern int switch_core_session_io_write_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_rwunlock")] - public static extern int switch_core_session_io_rwunlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_lock")] - public static extern int switch_core_session_read_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_lock_hangup")] - public static extern int switch_core_session_read_lock_hangup(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_lock")] - public static extern void switch_core_session_write_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_rwunlock")] - public static extern void switch_core_session_rwunlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_add_state_handler")] - public static extern int switch_core_add_state_handler(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_remove_state_handler")] - public static extern void switch_core_remove_state_handler(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_state_handler")] - public static extern IntPtr switch_core_get_state_handler(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_pool_tag")] - public static extern void switch_core_memory_pool_tag(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_new_memory_pool")] - public static extern int switch_core_perform_new_memory_pool(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sync_clock")] - public static extern int switch_core_session_sync_clock(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_destroy_memory_pool")] - public static extern int switch_core_perform_destroy_memory_pool(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_pool_set_data")] - public static extern void switch_core_memory_pool_set_data(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_pool_get_data")] - public static extern IntPtr switch_core_memory_pool_get_data(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_run")] - public static extern void switch_core_session_run(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_running")] - public static extern uint switch_core_session_running(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_started")] - public static extern uint switch_core_session_started(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_permanent_alloc")] - public static extern IntPtr switch_core_perform_permanent_alloc(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_alloc")] - public static extern IntPtr switch_core_perform_alloc(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_session_alloc")] - public static extern IntPtr switch_core_perform_session_alloc(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_permanent_strdup")] - public static extern string switch_core_perform_permanent_strdup(string jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_session_strdup")] - public static extern string switch_core_perform_session_strdup(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_strdup")] - public static extern string switch_core_perform_strdup(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sprintf")] - public static extern string switch_core_session_sprintf(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sprintf")] - public static extern string switch_core_sprintf(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_pool")] - public static extern IntPtr switch_core_session_get_pool(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_xml")] - public static extern IntPtr switch_core_session_request_xml(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_uuid")] - public static extern IntPtr switch_core_session_request_uuid(HandleRef jarg1, int jarg2, uint jarg3, HandleRef jarg4, string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_uuid")] - public static extern int switch_core_session_set_uuid(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_destroy")] - public static extern void switch_core_session_perform_destroy(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_destroy_state")] - public static extern void switch_core_session_destroy_state(HandleRef jarg1); - - [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, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_count")] - public static extern uint switch_core_session_count(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_id")] - public static extern IntPtr switch_core_session_get_id(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_id")] - public static extern IntPtr switch_core_session_id(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_id_dec")] - public static extern IntPtr switch_core_session_id_dec(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_by_name")] - public static extern IntPtr switch_core_session_request_by_name(string jarg1, int jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_launch")] - public static extern int switch_core_session_thread_launch(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_pool_launch_thread")] - public static extern int switch_thread_pool_launch_thread(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_pool_launch")] - public static extern int switch_core_session_thread_pool_launch(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_channel")] - public static extern IntPtr switch_core_session_get_channel(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_mutex")] - public static extern IntPtr switch_core_session_get_mutex(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_wake_session_thread")] - public static extern int switch_core_session_wake_session_thread(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_signal_state_change")] - public static extern void switch_core_session_signal_state_change(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_uuid")] - public static extern string switch_core_session_get_uuid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_loglevel")] - public static extern int switch_core_session_set_loglevel(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_loglevel")] - public static extern int switch_core_session_get_loglevel(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_jb")] - public static extern IntPtr switch_core_session_get_jb(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_soft_lock")] - public static extern void switch_core_session_soft_lock(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_soft_unlock")] - public static extern void switch_core_session_soft_unlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_dmachine")] - public static extern void switch_core_session_set_dmachine(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_dmachine")] - public static extern IntPtr switch_core_session_get_dmachine(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_target")] - public static extern int switch_ivr_dmachine_get_target(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_target")] - public static extern void switch_ivr_dmachine_set_target(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_terminators")] - public static extern int switch_ivr_dmachine_set_terminators(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_codec_slin")] - public static extern int switch_core_session_set_codec_slin(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_uuid")] - public static extern string switch_core_get_uuid(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_locate")] - public static extern IntPtr switch_core_session_perform_locate(string jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_force_locate")] - public static extern IntPtr switch_core_session_perform_force_locate(string jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variable")] - public static extern string switch_core_get_variable(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variable_dup")] - public static extern string switch_core_get_variable_dup(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variable_pdup")] - public static extern string switch_core_get_variable_pdup(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_hostname")] - public static extern string switch_core_get_hostname(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_switchname")] - public static extern string switch_core_get_switchname(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_domain")] - public static extern string switch_core_get_domain(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_variable")] - public static extern void switch_core_set_variable(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variables")] - public static extern int switch_core_get_variables(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_var_conditional")] - public static extern int switch_core_set_var_conditional(string jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_dump_variables")] - public static extern void switch_core_dump_variables(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hupall")] - public static extern void switch_core_session_hupall(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hupall_matching_var_ans")] - public static extern uint switch_core_session_hupall_matching_var_ans(string jarg1, string jarg2, int jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_findall_matching_var")] - public static extern IntPtr switch_core_session_findall_matching_var(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_findall")] - public static extern IntPtr switch_core_session_findall(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hupall_endpoint")] - public static extern void switch_core_session_hupall_endpoint(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_get_partner")] - public static extern int switch_core_session_perform_get_partner(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_send")] - public static extern int switch_core_session_message_send(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_message")] - public static extern int switch_core_session_queue_message(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_free_message")] - public static extern void switch_core_session_free_message(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_signal_data")] - public static extern int switch_core_session_queue_signal_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_signal_data")] - public static extern int switch_core_session_dequeue_signal_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_pass_indication")] - public static extern int switch_core_session_pass_indication(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_indication")] - public static extern int switch_core_session_queue_indication(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_message")] - public static extern int switch_core_session_dequeue_message(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_flush_message")] - public static extern int switch_core_session_flush_message(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_event_send")] - public static extern int switch_core_session_event_send(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_app_log")] - public static extern IntPtr switch_core_session_get_app_log(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_exec")] - public static extern int switch_core_session_exec(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_video_reset")] - public static extern void switch_core_session_video_reset(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_application_get_flags")] - public static extern int switch_core_session_execute_application_get_flags(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_application_async")] - public static extern int switch_core_session_execute_application_async(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_app_flags")] - public static extern int switch_core_session_get_app_flags(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_exten")] - public static extern int switch_core_session_execute_exten(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_receive_event")] - public static extern int switch_core_session_receive_event(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_private_class")] - public static extern IntPtr switch_core_session_get_private_class(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_private_class")] - public static extern int switch_core_session_set_private_class(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_add_stream")] - public static extern int switch_core_session_add_stream(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_stream")] - public static extern IntPtr switch_core_session_get_stream(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_stream_count")] - public static extern int switch_core_session_get_stream_count(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_launch_thread")] - public static extern void switch_core_session_launch_thread(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_end")] - public static extern void switch_core_thread_session_end(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_service_session_av")] - public static extern void switch_core_service_session_av(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_outgoing_channel")] - public static extern int switch_core_session_outgoing_channel(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6, uint jarg7, HandleRef jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_receive_message")] - public static extern int switch_core_session_perform_receive_message(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_event")] - public static extern int switch_core_session_queue_event(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_event_count")] - public static extern uint switch_core_session_event_count(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_messages_waiting")] - public static extern uint switch_core_session_messages_waiting(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_event")] - public static extern int switch_core_session_dequeue_event(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_private_event")] - public static extern int switch_core_session_queue_private_event(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_private_event_count")] - public static extern uint switch_core_session_private_event_count(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_private_event")] - public static extern int switch_core_session_dequeue_private_event(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_flush_private_events")] - public static extern uint switch_core_session_flush_private_events(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_frame")] - public static extern int switch_core_session_read_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_video_frame")] - public static extern int switch_core_session_read_video_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_video_frame")] - public static extern int switch_core_session_write_video_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_read_impl")] - public static extern int switch_core_session_set_read_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_write_impl")] - public static extern int switch_core_session_set_write_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_read_impl")] - public static extern int switch_core_session_set_video_read_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_write_impl")] - public static extern int switch_core_session_set_video_write_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_reset")] - public static extern void switch_core_session_reset(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_frame")] - public static extern int switch_core_session_write_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_kill_channel")] - public static extern int switch_core_session_perform_kill_channel(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_send_dtmf")] - public static extern int switch_core_session_send_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_send_dtmf_string")] - public static extern int switch_core_session_send_dtmf_string(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_recv_dtmf")] - public static extern int switch_core_session_recv_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_init_case")] - public static extern int switch_core_hash_init_case(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_destroy")] - public static extern int switch_core_hash_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_insert_destructor")] - public static extern int switch_core_hash_insert_destructor(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_insert_locked")] - public static extern int switch_core_hash_insert_locked(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_insert_wrlock")] - public static extern int switch_core_hash_insert_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete")] - public static extern int switch_core_hash_delete(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_locked")] - public static extern int switch_core_hash_delete_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_wrlock")] - public static extern int switch_core_hash_delete_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_multi")] - public static extern int switch_core_hash_delete_multi(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find")] - public static extern IntPtr switch_core_hash_find(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find_locked")] - public static extern IntPtr switch_core_hash_find_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find_rdlock")] - public static extern IntPtr switch_core_hash_find_rdlock(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_first_iter")] - public static extern IntPtr switch_core_hash_first_iter(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_empty")] - public static extern int switch_core_hash_empty(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_next")] - public static extern IntPtr switch_core_hash_next(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_this")] - public static extern void switch_core_hash_this(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_init")] - public static extern int switch_core_timer_init(HandleRef jarg1, string jarg2, int jarg3, int jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_calibrate_clock")] - public static extern void switch_time_calibrate_clock(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_next")] - public static extern int switch_core_timer_next(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_step")] - public static extern int switch_core_timer_step(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_sync")] - public static extern int switch_core_timer_sync(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_check")] - public static extern int switch_core_timer_check(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_destroy")] - public static extern int switch_core_timer_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_init_with_bitrate")] - public static extern int switch_core_codec_init_with_bitrate(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, int jarg5, int jarg6, uint jarg7, uint jarg8, HandleRef jarg9, HandleRef jarg10); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_copy")] - public static extern int switch_core_codec_copy(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_parse_fmtp")] - public static extern int switch_core_codec_parse_fmtp(string jarg1, string jarg2, uint jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_reset")] - public static extern int switch_core_codec_reset(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_encode")] - public static extern int switch_core_codec_encode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_decode")] - public static extern int switch_core_codec_decode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_destroy")] - public static extern int switch_core_codec_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_read_codec")] - public static extern int switch_core_session_set_read_codec(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_real_read_codec")] - public static extern int switch_core_session_set_real_read_codec(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unset_read_codec")] - public static extern void switch_core_session_unset_read_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unset_write_codec")] - public static extern void switch_core_session_unset_write_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_lock_codec_write")] - public static extern void switch_core_session_lock_codec_write(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unlock_codec_write")] - public static extern void switch_core_session_unlock_codec_write(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_lock_codec_read")] - public static extern void switch_core_session_lock_codec_read(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unlock_codec_read")] - public static extern void switch_core_session_unlock_codec_read(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_read_impl")] - public static extern int switch_core_session_get_read_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_real_read_impl")] - public static extern int switch_core_session_get_real_read_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_write_impl")] - public static extern int switch_core_session_get_write_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_read_impl")] - public static extern int switch_core_session_get_video_read_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_write_impl")] - public static extern int switch_core_session_get_video_write_impl(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_read_codec")] - public static extern IntPtr switch_core_session_get_read_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_effective_read_codec")] - public static extern IntPtr switch_core_session_get_effective_read_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_write_codec")] - public static extern int switch_core_session_set_write_codec(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_write_codec")] - public static extern IntPtr switch_core_session_get_write_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_effective_write_codec")] - public static extern IntPtr switch_core_session_get_effective_write_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_read_codec")] - public static extern int switch_core_session_set_video_read_codec(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_read_codec")] - public static extern IntPtr switch_core_session_get_video_read_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_write_codec")] - public static extern int switch_core_session_set_video_write_codec(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_write_codec")] - public static extern IntPtr switch_core_session_get_video_write_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_open_file")] - public static extern IntPtr switch_core_db_open_file(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_persistant_execute")] - public static extern int switch_core_db_persistant_execute(HandleRef jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_persistant_execute_trans")] - public static extern int switch_core_db_persistant_execute_trans(HandleRef jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_test_reactive")] - public static extern void switch_core_db_test_reactive(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_file_open")] - public static extern int switch_core_perform_file_open(string jarg1, string jarg2, int jarg3, HandleRef jarg4, string jarg5, uint jarg6, uint jarg7, uint jarg8, HandleRef jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_read")] - public static extern int switch_core_file_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_write")] - public static extern int switch_core_file_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_write_video")] - public static extern int switch_core_file_write_video(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_seek")] - public static extern int switch_core_file_seek(HandleRef jarg1, HandleRef jarg2, long jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_set_string")] - public static extern int switch_core_file_set_string(HandleRef jarg1, int jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_get_string")] - public static extern int switch_core_file_get_string(HandleRef jarg1, int jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_close")] - public static extern int switch_core_file_close(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_truncate")] - public static extern int switch_core_file_truncate(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_open")] - public static extern int switch_core_speech_open(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, uint jarg5, uint jarg6, HandleRef jarg7, HandleRef jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_feed_tts")] - public static extern int switch_core_speech_feed_tts(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_flush_tts")] - public static extern void switch_core_speech_flush_tts(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_text_param_tts")] - public static extern void switch_core_speech_text_param_tts(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_numeric_param_tts")] - public static extern void switch_core_speech_numeric_param_tts(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_float_param_tts")] - public static extern void switch_core_speech_float_param_tts(HandleRef jarg1, string jarg2, double jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_read_tts")] - public static extern int switch_core_speech_read_tts(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_close")] - public static extern int switch_core_speech_close(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_open")] - public static extern int switch_core_asr_open(HandleRef jarg1, string jarg2, string jarg3, int jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_close")] - public static extern int switch_core_asr_close(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_feed")] - public static extern int switch_core_asr_feed(HandleRef jarg1, HandleRef jarg2, uint jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_feed_dtmf")] - public static extern int switch_core_asr_feed_dtmf(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_check_results")] - public static extern int switch_core_asr_check_results(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_get_results")] - public static extern int switch_core_asr_get_results(HandleRef jarg1, ref string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_get_result_headers")] - public static extern int switch_core_asr_get_result_headers(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_load_grammar")] - public static extern int switch_core_asr_load_grammar(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_unload_grammar")] - public static extern int switch_core_asr_unload_grammar(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_enable_grammar")] - public static extern int switch_core_asr_enable_grammar(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_disable_grammar")] - public static extern int switch_core_asr_disable_grammar(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_disable_all_grammars")] - public static extern int switch_core_asr_disable_all_grammars(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_pause")] - public static extern int switch_core_asr_pause(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_resume")] - public static extern int switch_core_asr_resume(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_start_input_timers")] - public static extern int switch_core_asr_start_input_timers(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_text_param")] - public static extern void switch_core_asr_text_param(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_numeric_param")] - public static extern void switch_core_asr_numeric_param(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_float_param")] - public static extern void switch_core_asr_float_param(HandleRef jarg1, string jarg2, double jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_open")] - public static extern int switch_core_directory_open(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_query")] - public static extern int switch_core_directory_query(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_next")] - public static extern int switch_core_directory_next(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_next_pair")] - public static extern int switch_core_directory_next_pair(HandleRef jarg1, ref string jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_close")] - public static extern int switch_core_directory_close(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_data_channel")] - public static extern IntPtr switch_core_data_channel(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready")] - public static extern int switch_core_ready(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_running")] - public static extern int switch_core_running(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready_inbound")] - public static extern int switch_core_ready_inbound(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready_outbound")] - public static extern int switch_core_ready_outbound(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_flags")] - public static extern uint switch_core_flags(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_management_exec")] - public static extern int switch_core_management_exec(string jarg1, int jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_set_normal_priority")] - public static extern int set_normal_priority(); - - [DllImport("mod_managed", EntryPoint="CSharp_set_auto_priority")] - public static extern int set_auto_priority(); - - [DllImport("mod_managed", EntryPoint="CSharp_set_realtime_priority")] - public static extern int set_realtime_priority(); - - [DllImport("mod_managed", EntryPoint="CSharp_set_low_priority")] - public static extern int set_low_priority(); - - [DllImport("mod_managed", EntryPoint="CSharp_change_user_group")] - public static extern int change_user_group(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_runtime_loop")] - public static extern void switch_core_runtime_loop(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_console")] - public static extern int switch_core_set_console(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_measure_time")] - public static extern void switch_core_measure_time(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_uptime")] - public static extern IntPtr switch_core_uptime(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_ctl")] - public static extern int switch_core_session_ctl(int jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_console")] - public static extern IntPtr switch_core_get_console(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_globals")] - public static extern void switch_core_set_globals(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_compare")] - public static extern byte switch_core_session_compare(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_check_interface")] - public static extern byte switch_core_session_check_interface(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_index")] - public static extern IntPtr switch_core_mime_index(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_ext2type")] - public static extern string switch_core_mime_ext2type(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_add_type")] - public static extern int switch_core_mime_add_type(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_create_module_interface")] - public static extern IntPtr switch_loadable_module_create_module_interface(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_create_interface")] - public static extern IntPtr switch_loadable_module_create_interface(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_micro_time_now")] - public static extern IntPtr switch_micro_time_now(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mono_micro_time_now")] - public static extern IntPtr switch_mono_micro_time_now(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim")] - public static extern void switch_core_memory_reclaim(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim_events")] - public static extern void switch_core_memory_reclaim_events(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim_logger")] - public static extern void switch_core_memory_reclaim_logger(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim_all")] - public static extern void switch_core_memory_reclaim_all(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_setrlimits")] - public static extern void switch_core_setrlimits(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_ref")] - public static extern IntPtr switch_time_ref(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_sync")] - public static extern void switch_time_sync(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_epoch_time_now")] - public static extern IntPtr switch_epoch_time_now(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_lookup_timezone")] - public static extern string switch_lookup_timezone(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strftime_tz")] - public static extern int switch_strftime_tz(string jarg1, string jarg2, string jarg3, uint jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_exp_tz_name")] - public static extern int switch_time_exp_tz_name(string jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_load_network_lists")] - public static extern void switch_load_network_lists(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_check_network_list_ip_token")] - public static extern int switch_check_network_list_ip_token(string jarg1, string jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_monotonic")] - public static extern void switch_time_set_monotonic(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_timerfd")] - public static extern void switch_time_set_timerfd(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_nanosleep")] - public static extern void switch_time_set_nanosleep(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_matrix")] - public static extern void switch_time_set_matrix(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_cond_yield")] - public static extern void switch_time_set_cond_yield(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_use_system_time")] - public static extern void switch_time_set_use_system_time(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_min_dtmf_duration")] - public static extern uint switch_core_min_dtmf_duration(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_max_dtmf_duration")] - public static extern uint switch_core_max_dtmf_duration(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_min_idle_cpu")] - public static extern double switch_core_min_idle_cpu(double jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_idle_cpu")] - public static extern double switch_core_idle_cpu(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_default_dtmf_duration")] - public static extern uint switch_core_default_dtmf_duration(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_set_complete")] - public static extern int switch_console_set_complete(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_set_alias")] - public static extern int switch_console_set_alias(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_system")] - public static extern int switch_system(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_system")] - public static extern int switch_stream_system(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cond_yield")] - public static extern void switch_cond_yield(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cond_next")] - public static extern void switch_cond_next(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_chat_send_args")] - public static extern int switch_core_chat_send_args(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, int jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_chat_send")] - public static extern int switch_core_chat_send(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_chat_deliver")] - public static extern int switch_core_chat_deliver(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_preprocess_session")] - public static extern int switch_ivr_preprocess_session(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_pause")] - public static extern void switch_core_sqldb_pause(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_resume")] - public static extern void switch_core_sqldb_resume(); - - [DllImport("mod_managed", EntryPoint="CSharp_CACHE_DB_LEN_get")] - public static extern int CACHE_DB_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_core_db_dbh_set")] - public static extern void switch_cache_db_native_handle_t_core_db_dbh_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_core_db_dbh_get")] - public static extern IntPtr switch_cache_db_native_handle_t_core_db_dbh_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_odbc_dbh_set")] - public static extern void switch_cache_db_native_handle_t_odbc_dbh_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_odbc_dbh_get")] - public static extern IntPtr switch_cache_db_native_handle_t_odbc_dbh_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_pgsql_dbh_set")] - public static extern void switch_cache_db_native_handle_t_pgsql_dbh_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_pgsql_dbh_get")] - public static extern IntPtr switch_cache_db_native_handle_t_pgsql_dbh_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_native_handle_t")] - public static extern IntPtr new_switch_cache_db_native_handle_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_native_handle_t")] - public static extern void delete_switch_cache_db_native_handle_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_core_db_options_t_db_path_set")] - public static extern void switch_cache_db_core_db_options_t_db_path_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_core_db_options_t_db_path_get")] - public static extern string switch_cache_db_core_db_options_t_db_path_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_core_db_options_t")] - public static extern IntPtr new_switch_cache_db_core_db_options_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_core_db_options_t")] - public static extern void delete_switch_cache_db_core_db_options_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_dsn_set")] - public static extern void switch_cache_db_odbc_options_t_dsn_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_dsn_get")] - public static extern string switch_cache_db_odbc_options_t_dsn_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_user_set")] - public static extern void switch_cache_db_odbc_options_t_user_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_user_get")] - public static extern string switch_cache_db_odbc_options_t_user_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_pass_set")] - public static extern void switch_cache_db_odbc_options_t_pass_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_pass_get")] - public static extern string switch_cache_db_odbc_options_t_pass_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_odbc_options_t")] - public static extern IntPtr new_switch_cache_db_odbc_options_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_odbc_options_t")] - public static extern void delete_switch_cache_db_odbc_options_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_pgsql_options_t_dsn_set")] - public static extern void switch_cache_db_pgsql_options_t_dsn_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_pgsql_options_t_dsn_get")] - public static extern string switch_cache_db_pgsql_options_t_dsn_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_pgsql_options_t")] - public static extern IntPtr new_switch_cache_db_pgsql_options_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_pgsql_options_t")] - public static extern void delete_switch_cache_db_pgsql_options_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_core_db_options_set")] - public static extern void switch_cache_db_connection_options_t_core_db_options_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_core_db_options_get")] - public static extern IntPtr switch_cache_db_connection_options_t_core_db_options_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_odbc_options_set")] - public static extern void switch_cache_db_connection_options_t_odbc_options_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_odbc_options_get")] - public static extern IntPtr switch_cache_db_connection_options_t_odbc_options_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_pgsql_options_set")] - public static extern void switch_cache_db_connection_options_t_pgsql_options_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_pgsql_options_get")] - public static extern IntPtr switch_cache_db_connection_options_t_pgsql_options_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_connection_options_t")] - public static extern IntPtr new_switch_cache_db_connection_options_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_connection_options_t")] - public static extern void delete_switch_cache_db_connection_options_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_type_name")] - public static extern string switch_cache_db_type_name(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_get_type")] - public static extern int switch_cache_db_get_type(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_dismiss_db_handle")] - public static extern void switch_cache_db_dismiss_db_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_release_db_handle")] - public static extern void switch_cache_db_release_db_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp__switch_cache_db_get_db_handle")] - public static extern int _switch_cache_db_get_db_handle(HandleRef jarg1, int jarg2, HandleRef jarg3, string jarg4, string jarg5, int jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp__switch_cache_db_get_db_handle_dsn")] - public static extern int _switch_cache_db_get_db_handle_dsn(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql2str")] - public static extern string switch_cache_db_execute_sql2str(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, ref string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql")] - public static extern int switch_cache_db_execute_sql(HandleRef jarg1, string jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_callback")] - public static extern int switch_cache_db_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_callback_err")] - public static extern int switch_cache_db_execute_sql_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_affected_rows")] - public static extern int switch_cache_db_affected_rows(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_load_extension")] - public static extern int switch_cache_db_load_extension(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_status")] - public static extern void switch_cache_db_status(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp__switch_core_db_handle")] - public static extern int _switch_core_db_handle(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_test_reactive")] - public static extern int switch_cache_db_test_reactive(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_persistant_execute")] - public static extern int switch_cache_db_persistant_execute(HandleRef jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_persistant_execute_trans_full")] - public static extern int switch_cache_db_persistant_execute_trans_full(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5, string jarg6, string jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_signal_handlers")] - public static extern void switch_core_set_signal_handlers(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_debug_level")] - public static extern uint switch_core_debug_level(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_flush_handles")] - public static extern void switch_cache_db_flush_handles(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_banner")] - public static extern string switch_core_banner(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_in_thread")] - public static extern int switch_core_session_in_thread(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_default_ptime")] - public static extern uint switch_default_ptime(string jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_default_rate")] - public static extern uint switch_default_rate(string jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_add_registration")] - public static extern int switch_core_add_registration(string jarg1, string jarg2, string jarg3, string jarg4, uint jarg5, string jarg6, string jarg7, string jarg8, string jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_del_registration")] - public static extern int switch_core_del_registration(string jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_expire_registration")] - public static extern int switch_core_expire_registration(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_get_variable")] - public static extern string switch_say_file_handle_get_variable(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_get_path")] - public static extern string switch_say_file_handle_get_path(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_detach_path")] - public static extern string switch_say_file_handle_detach_path(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_destroy")] - public static extern void switch_say_file_handle_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_create")] - public static extern int switch_say_file_handle_create(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file")] - public static extern void switch_say_file(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_max_file_desc")] - public static extern int switch_max_file_desc(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_close_extra_files")] - public static extern void switch_close_extra_files(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_set_cpu_affinity")] - public static extern int switch_core_thread_set_cpu_affinity(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_os_yield")] - public static extern void switch_os_yield(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_stacksizes")] - public static extern int switch_core_get_stacksizes(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_gen_encoded_silence")] - public static extern void switch_core_gen_encoded_silence(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_dbtype")] - public static extern int switch_core_dbtype(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sql_exec")] - public static extern void switch_core_sql_exec(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_recover")] - public static extern int switch_core_recovery_recover(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_untrack")] - public static extern void switch_core_recovery_untrack(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_track")] - public static extern void switch_core_recovery_track(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_flush")] - public static extern void switch_core_recovery_flush(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_pause")] - public static extern void switch_sql_queue_manager_pause(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_resume")] - public static extern void switch_sql_queue_manager_resume(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_size")] - public static extern int switch_sql_queue_manager_size(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_push_confirm")] - public static extern int switch_sql_queue_manager_push_confirm(HandleRef jarg1, string jarg2, uint jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_push")] - public static extern int switch_sql_queue_manager_push(HandleRef jarg1, string jarg2, uint jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_destroy")] - public static extern int switch_sql_queue_manager_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_init_name")] - public static extern int switch_sql_queue_manager_init_name(string jarg1, HandleRef jarg2, uint jarg3, string jarg4, uint jarg5, string jarg6, string jarg7, string jarg8, string jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_start")] - public static extern int switch_sql_queue_manager_start(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_stop")] - public static extern int switch_sql_queue_manager_stop(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_event_callback")] - public static extern int switch_cache_db_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_callback")] - public static extern void switch_sql_queue_manager_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_callback_err")] - public static extern void switch_sql_queue_manager_execute_sql_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_event_callback")] - public static extern void switch_sql_queue_manager_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_event_callback_err")] - public static extern void switch_sql_queue_manager_execute_sql_event_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_fork")] - public static extern IntPtr switch_fork(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_gen_certs")] - public static extern int switch_core_gen_certs(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cert_gen_fingerprint")] - public static extern int switch_core_cert_gen_fingerprint(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cert_expand_fingerprint")] - public static extern int switch_core_cert_expand_fingerprint(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cert_verify")] - public static extern int switch_core_cert_verify(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_refresh_video")] - public static extern int switch_core_session_refresh_video(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_system_fork")] - public static extern int switch_stream_system_fork(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ice_direction")] - public static extern int switch_ice_direction(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_debug_pool")] - public static extern void switch_core_session_debug_pool(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_major")] - public static extern string switch_version_major(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_minor")] - public static extern string switch_version_minor(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_micro")] - public static extern string switch_version_micro(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision")] - public static extern string switch_version_revision(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision_human")] - public static extern string switch_version_revision_human(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_full")] - public static extern string switch_version_full(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_version_full_human")] - public static extern string switch_version_full_human(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_module_name_set")] - public static extern void switch_loadable_module_interface_module_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_module_name_get")] - public static extern string switch_loadable_module_interface_module_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_endpoint_interface_set")] - public static extern void switch_loadable_module_interface_endpoint_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_endpoint_interface_get")] - public static extern IntPtr switch_loadable_module_interface_endpoint_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_timer_interface_set")] - public static extern void switch_loadable_module_interface_timer_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_timer_interface_get")] - public static extern IntPtr switch_loadable_module_interface_timer_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_dialplan_interface_set")] - public static extern void switch_loadable_module_interface_dialplan_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_dialplan_interface_get")] - public static extern IntPtr switch_loadable_module_interface_dialplan_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_codec_interface_set")] - public static extern void switch_loadable_module_interface_codec_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_codec_interface_get")] - public static extern IntPtr switch_loadable_module_interface_codec_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_application_interface_set")] - public static extern void switch_loadable_module_interface_application_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_application_interface_get")] - public static extern IntPtr switch_loadable_module_interface_application_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_application_interface_set")] - public static extern void switch_loadable_module_interface_chat_application_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_application_interface_get")] - public static extern IntPtr switch_loadable_module_interface_chat_application_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_api_interface_set")] - public static extern void switch_loadable_module_interface_api_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_api_interface_get")] - public static extern IntPtr switch_loadable_module_interface_api_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_json_api_interface_set")] - public static extern void switch_loadable_module_interface_json_api_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_json_api_interface_get")] - public static extern IntPtr switch_loadable_module_interface_json_api_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_file_interface_set")] - public static extern void switch_loadable_module_interface_file_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_file_interface_get")] - public static extern IntPtr switch_loadable_module_interface_file_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_speech_interface_set")] - public static extern void switch_loadable_module_interface_speech_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_speech_interface_get")] - public static extern IntPtr switch_loadable_module_interface_speech_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_directory_interface_set")] - public static extern void switch_loadable_module_interface_directory_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_directory_interface_get")] - public static extern IntPtr switch_loadable_module_interface_directory_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_interface_set")] - public static extern void switch_loadable_module_interface_chat_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_interface_get")] - public static extern IntPtr switch_loadable_module_interface_chat_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_say_interface_set")] - public static extern void switch_loadable_module_interface_say_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_say_interface_get")] - public static extern IntPtr switch_loadable_module_interface_say_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_asr_interface_set")] - public static extern void switch_loadable_module_interface_asr_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_asr_interface_get")] - public static extern IntPtr switch_loadable_module_interface_asr_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_management_interface_set")] - public static extern void switch_loadable_module_interface_management_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_management_interface_get")] - public static extern IntPtr switch_loadable_module_interface_management_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_limit_interface_set")] - public static extern void switch_loadable_module_interface_limit_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_limit_interface_get")] - public static extern IntPtr switch_loadable_module_interface_limit_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_rwlock_set")] - public static extern void switch_loadable_module_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_rwlock_get")] - public static extern IntPtr switch_loadable_module_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_refs_set")] - public static extern void switch_loadable_module_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_refs_get")] - public static extern int switch_loadable_module_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_pool_set")] - public static extern void switch_loadable_module_interface_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_pool_get")] - public static extern IntPtr switch_loadable_module_interface_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_loadable_module_interface")] - public static extern IntPtr new_switch_loadable_module_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_loadable_module_interface")] - public static extern void delete_switch_loadable_module_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_init")] - public static extern int switch_loadable_module_init(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_shutdown")] - public static extern void switch_loadable_module_shutdown(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_endpoint_interface")] - public static extern IntPtr switch_loadable_module_get_endpoint_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codec_interface")] - public static extern IntPtr switch_loadable_module_get_codec_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_codec_buf")] - public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_dialplan_interface")] - public static extern IntPtr switch_loadable_module_get_dialplan_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_enumerate_available")] - public static extern int switch_loadable_module_enumerate_available(string jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_enumerate_loaded")] - public static extern int switch_loadable_module_enumerate_loaded(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_build_dynamic")] - public static extern int switch_loadable_module_build_dynamic(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_timer_interface")] - public static extern IntPtr switch_loadable_module_get_timer_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_application_interface")] - public static extern IntPtr switch_loadable_module_get_application_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_chat_application_interface")] - public static extern IntPtr switch_loadable_module_get_chat_application_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_execute_chat_app")] - public static extern int switch_core_execute_chat_app(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_api_interface")] - public static extern IntPtr switch_loadable_module_get_api_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_json_api_interface")] - public static extern IntPtr switch_loadable_module_get_json_api_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_file_interface")] - public static extern IntPtr switch_loadable_module_get_file_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_speech_interface")] - public static extern IntPtr switch_loadable_module_get_speech_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_asr_interface")] - public static extern IntPtr switch_loadable_module_get_asr_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_directory_interface")] - public static extern IntPtr switch_loadable_module_get_directory_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_chat_interface")] - public static extern IntPtr switch_loadable_module_get_chat_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_say_interface")] - public static extern IntPtr switch_loadable_module_get_say_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_management_interface")] - public static extern IntPtr switch_loadable_module_get_management_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_limit_interface")] - public static extern IntPtr switch_loadable_module_get_limit_interface(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codecs")] - public static extern int switch_loadable_module_get_codecs(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codecs_sorted")] - public static extern int switch_loadable_module_get_codecs_sorted(HandleRef jarg1, int jarg2, ref string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_execute")] - public static extern int switch_api_execute(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_execute")] - public static extern int switch_json_api_execute(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_load_module")] - public static extern int switch_loadable_module_load_module(string jarg1, string jarg2, int jarg3, ref string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_exists")] - public static extern int switch_loadable_module_exists(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_unload_module")] - public static extern int switch_loadable_module_unload_module(string jarg1, string jarg2, int jarg3, ref string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_next_id")] - public static extern uint switch_core_codec_next_id(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_check_interval")] - public static extern int switch_check_interval(uint jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_add_implementation")] - public static extern void switch_core_codec_add_implementation(HandleRef jarg1, HandleRef jarg2, int jarg3, byte jarg4, string jarg5, string jarg6, uint jarg7, uint jarg8, int jarg9, int jarg10, uint jarg11, uint jarg12, uint jarg13, byte jarg14, int jarg15, HandleRef jarg16, HandleRef jarg17, HandleRef jarg18, HandleRef jarg19); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_ready")] - public static extern int switch_core_codec_ready(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_secondary_recover_callback")] - public static extern IntPtr switch_core_get_secondary_recover_callback(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_register_secondary_recover_callback")] - public static extern int switch_core_register_secondary_recover_callback(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_unregister_secondary_recover_callback")] - public static extern void switch_core_unregister_secondary_recover_callback(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CMD_CHUNK_LEN_get")] - public static extern int SWITCH_CMD_CHUNK_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_loop")] - public static extern void switch_console_loop(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_stream_raw_write")] - public static extern int switch_console_stream_raw_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_write_file_contents")] - public static extern int switch_stream_write_file_contents(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_init")] - public static extern int switch_console_init(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_shutdown")] - public static extern int switch_console_shutdown(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_add_complete_func")] - public static extern int switch_console_add_complete_func(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_del_complete_func")] - public static extern int switch_console_del_complete_func(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_run_complete_func")] - public static extern int switch_console_run_complete_func(string jarg1, string jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_push_match_unique")] - public static extern void switch_console_push_match_unique(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_push_match")] - public static extern void switch_console_push_match(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_free_matches")] - public static extern void switch_console_free_matches(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_complete")] - public static extern byte switch_console_complete(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_sort_matches")] - public static extern void switch_console_sort_matches(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_save_history")] - public static extern void switch_console_save_history(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_expand_alias")] - public static extern string switch_console_expand_alias(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_console_execute")] - public static extern int switch_console_execute(string jarg1, int jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_toupper")] - public static extern uint switch_toupper(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_tolower")] - public static extern uint switch_tolower(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_toupper_max")] - public static extern void switch_toupper_max(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_tolower_max")] - public static extern void switch_tolower_max(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_old_switch_toupper")] - public static extern int old_switch_toupper(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_old_switch_tolower")] - public static extern int old_switch_tolower(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isalnum")] - public static extern int switch_isalnum(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isalpha")] - public static extern int switch_isalpha(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_iscntrl")] - public static extern int switch_iscntrl(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isdigit")] - public static extern int switch_isdigit(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isgraph")] - public static extern int switch_isgraph(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_islower")] - public static extern int switch_islower(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isprint")] - public static extern int switch_isprint(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ispunct")] - public static extern int switch_ispunct(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isspace")] - public static extern int switch_isspace(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isupper")] - public static extern int switch_isupper(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_isxdigit")] - public static extern int switch_isxdigit(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v4_set")] - public static extern void ip_t_v4_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v4_get")] - public static extern uint ip_t_v4_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v6_set")] - public static extern void ip_t_v6_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v6_get")] - public static extern IntPtr ip_t_v6_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_ip_t")] - public static extern IntPtr new_ip_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_ip_t")] - public static extern void delete_ip_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_testv6_subnet")] - public static extern int switch_testv6_subnet(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_print_host")] - public static extern string switch_print_host(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SMAX_get")] - public static extern int SWITCH_SMAX_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SMIN_get")] - public static extern int SWITCH_SMIN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp__zstr")] - public static extern int _zstr(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_is_moh")] - public static extern int switch_is_moh(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strchr_strict")] - public static extern string switch_strchr_strict(string jarg1, char jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_string_has_escaped_data")] - public static extern int switch_string_has_escaped_data(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_b64_encode")] - public static extern int switch_b64_encode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_b64_decode")] - public static extern IntPtr switch_b64_decode(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_amp_encode")] - public static extern string switch_amp_encode(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_is_digit_string")] - public static extern int switch_is_digit_string(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_itodtmf")] - public static extern char switch_itodtmf(char jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmftoi")] - public static extern int switch_dtmftoi(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_known_bitrate")] - public static extern uint switch_known_bitrate(byte jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_fd_read_line")] - public static extern IntPtr switch_fd_read_line(int jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_fd_read_dline")] - public static extern IntPtr switch_fd_read_dline(int jarg1, ref string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_fp_read_dline")] - public static extern IntPtr switch_fp_read_dline(HandleRef jarg1, ref string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_alloc")] - public static extern int switch_frame_alloc(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_dup")] - public static extern int switch_frame_dup(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_free")] - public static extern int switch_frame_free(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_is_number")] - public static extern int switch_is_number(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_find_parameter")] - public static extern string switch_find_parameter(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_true")] - public static extern int switch_true(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_true_byte")] - public static extern byte switch_true_byte(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_false")] - public static extern int switch_false(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_resolve_host")] - public static extern int switch_resolve_host(string jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_find_local_ip")] - public static extern int switch_find_local_ip(string jarg1, int jarg2, HandleRef jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_find_interface_ip")] - public static extern int switch_find_interface_ip(string jarg1, int jarg2, HandleRef jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_get_addr")] - public static extern string get_addr(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_get_addr6")] - public static extern string get_addr6(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_get_addr_int")] - public static extern int get_addr_int(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cmp_addr")] - public static extern int switch_cmp_addr(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_get_port")] - public static extern ushort get_port(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_build_uri")] - public static extern int switch_build_uri(string jarg1, HandleRef jarg2, string jarg3, string jarg4, HandleRef jarg5, int jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_priority_name")] - public static extern string switch_priority_name(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rfc2833_to_char")] - public static extern char switch_rfc2833_to_char(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_char_to_rfc2833")] - public static extern byte switch_char_to_rfc2833(char jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_sanitize_number")] - public static extern string switch_sanitize_number(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_string_var_check")] - public static extern int switch_string_var_check(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_string_var_check_const")] - public static extern int switch_string_var_check_const(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_var_clean_string")] - public static extern string switch_var_clean_string(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_clean_string")] - public static extern string switch_clean_string(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_clean_name_string")] - public static extern string switch_clean_name_string(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_safe_atoi")] - public static extern int switch_safe_atoi(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_safe_strdup")] - public static extern string switch_safe_strdup(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_lc_strdup")] - public static extern string switch_lc_strdup(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_uc_strdup")] - public static extern string switch_uc_strdup(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strstr")] - public static extern int switch_strstr(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_str_time")] - public static extern IntPtr switch_str_time(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_string")] - public static extern uint switch_separate_string(string jarg1, char jarg2, ref string jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_string_string")] - public static extern uint switch_separate_string_string(string jarg1, string jarg2, ref string jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_spaces")] - public static extern string switch_strip_spaces(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_whitespace")] - public static extern string switch_strip_whitespace(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_commas")] - public static extern string switch_strip_commas(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_nonnumerics")] - public static extern string switch_strip_nonnumerics(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_paren_args")] - public static extern string switch_separate_paren_args(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stristr")] - public static extern string switch_stristr(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_is_lan_addr")] - public static extern int switch_is_lan_addr(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_replace_char")] - public static extern string switch_replace_char(string jarg1, char jarg2, char jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ast2regex")] - public static extern int switch_ast2regex(string jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_escape_char")] - public static extern string switch_escape_char(HandleRef jarg1, string jarg2, string jarg3, char jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_escape_string")] - public static extern string switch_escape_string(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_escape_string_pool")] - public static extern string switch_escape_string_pool(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_socket_waitfor")] - public static extern int switch_socket_waitfor(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cut_path")] - public static extern string switch_cut_path(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_string_replace")] - public static extern string switch_string_replace(string jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_string_match")] - public static extern int switch_string_match(string jarg1, uint jarg2, string jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strcasecmp_any")] - public static extern int switch_strcasecmp_any(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_util_quote_shell_arg")] - public static extern string switch_util_quote_shell_arg(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_util_quote_shell_arg_pool")] - public static extern string switch_util_quote_shell_arg_pool(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_url_encode")] - public static extern string switch_url_encode(string jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_url_decode")] - public static extern string switch_url_decode(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_simple_email")] - public static extern int switch_simple_email(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_find_end_paren")] - public static extern string switch_find_end_paren(string jarg1, char jarg2, char jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_file_params")] - public static extern void switch_separate_file_params(string jarg1, ref string jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_is_file_path")] - public static extern int switch_is_file_path(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_cidr")] - public static extern int switch_parse_cidr(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_create")] - public static extern int switch_network_list_create(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_add_cidr_token")] - public static extern int switch_network_list_add_cidr_token(HandleRef jarg1, string jarg2, int jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_add_host_mask")] - public static extern int switch_network_list_add_host_mask(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_validate_ip_token")] - public static extern int switch_network_list_validate_ip_token(HandleRef jarg1, uint jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_validate_ip6_token")] - public static extern int switch_network_list_validate_ip6_token(HandleRef jarg1, HandleRef jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dow_int2str")] - public static extern string switch_dow_int2str(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dow_str2int")] - public static extern int switch_dow_str2int(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dow_cmp")] - public static extern int switch_dow_cmp(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_number_cmp")] - public static extern int switch_number_cmp(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_tod_cmp")] - public static extern int switch_tod_cmp(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_fulldate_cmp")] - public static extern int switch_fulldate_cmp(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_split_date")] - public static extern void switch_split_date(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_split_time")] - public static extern void switch_split_time(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_split_user_domain")] - public static extern int switch_split_user_domain(string jarg1, ref string jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_uuid_str")] - public static extern string switch_uuid_str(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_format_number")] - public static extern string switch_format_number(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_atoui")] - public static extern uint switch_atoui(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_atoul")] - public static extern uint switch_atoul(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_strerror_r")] - public static extern string switch_strerror_r(int jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_wait_sock")] - public static extern int switch_wait_sock(int jarg1, uint jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_wait_socklist")] - public static extern int switch_wait_socklist(HandleRef jarg1, uint jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_method_set")] - public static extern void switch_http_request_t_method_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_method_get")] - public static extern string switch_http_request_t_method_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_uri_set")] - public static extern void switch_http_request_t_uri_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_uri_get")] - public static extern string switch_http_request_t_uri_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_qs_set")] - public static extern void switch_http_request_t_qs_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_qs_get")] - public static extern string switch_http_request_t_qs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_host_set")] - public static extern void switch_http_request_t_host_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_host_get")] - public static extern string switch_http_request_t_host_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_port_set")] - public static extern void switch_http_request_t_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_port_get")] - public static extern ushort switch_http_request_t_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_from_set")] - public static extern void switch_http_request_t_from_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_from_get")] - public static extern string switch_http_request_t_from_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_agent_set")] - public static extern void switch_http_request_t_user_agent_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_agent_get")] - public static extern string switch_http_request_t_user_agent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_referer_set")] - public static extern void switch_http_request_t_referer_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_referer_get")] - public static extern string switch_http_request_t_referer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_set")] - public static extern void switch_http_request_t_user_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_get")] - public static extern string switch_http_request_t_user_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_keepalive_set")] - public static extern void switch_http_request_t_keepalive_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_keepalive_get")] - public static extern int switch_http_request_t_keepalive_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_type_set")] - public static extern void switch_http_request_t_content_type_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_type_get")] - public static extern string switch_http_request_t_content_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_length_set")] - public static extern void switch_http_request_t_content_length_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_length_get")] - public static extern IntPtr switch_http_request_t_content_length_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_header_set")] - public static extern void switch_http_request_t_bytes_header_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_header_get")] - public static extern IntPtr switch_http_request_t_bytes_header_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_read_set")] - public static extern void switch_http_request_t_bytes_read_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_read_get")] - public static extern IntPtr switch_http_request_t_bytes_read_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_buffered_set")] - public static extern void switch_http_request_t_bytes_buffered_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_buffered_get")] - public static extern IntPtr switch_http_request_t_bytes_buffered_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_headers_set")] - public static extern void switch_http_request_t_headers_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_headers_get")] - public static extern IntPtr switch_http_request_t_headers_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_data_set")] - public static extern void switch_http_request_t_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_data_get")] - public static extern IntPtr switch_http_request_t_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__buffer_set")] - public static extern void switch_http_request_t__buffer_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__buffer_get")] - public static extern string switch_http_request_t__buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__destroy_headers_set")] - public static extern void switch_http_request_t__destroy_headers_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__destroy_headers_get")] - public static extern int switch_http_request_t__destroy_headers_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_http_request_t")] - public static extern IntPtr new_switch_http_request_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_http_request_t")] - public static extern void delete_switch_http_request_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_parse_header")] - public static extern int switch_http_parse_header(string jarg1, uint jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_free_request")] - public static extern void switch_http_free_request(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_dump_request")] - public static extern void switch_http_dump_request(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_parse_qs")] - public static extern void switch_http_parse_qs(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_set")] - public static extern void profile_node_t_var_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_get")] - public static extern string profile_node_t_var_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_set")] - public static extern void profile_node_t_val_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_get")] - public static extern string profile_node_t_val_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_set")] - public static extern void profile_node_t_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_get")] - public static extern IntPtr profile_node_t_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_profile_node_t")] - public static extern IntPtr new_profile_node_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_profile_node_t")] - public static extern void delete_profile_node_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_set")] - public static extern void switch_caller_profile_username_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_get")] - public static extern string switch_caller_profile_username_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_dialplan_set")] - public static extern void switch_caller_profile_dialplan_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_dialplan_get")] - public static extern string switch_caller_profile_dialplan_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_name_set")] - public static extern void switch_caller_profile_caller_id_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_name_get")] - public static extern string switch_caller_profile_caller_id_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_number_set")] - public static extern void switch_caller_profile_caller_id_number_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_number_get")] - public static extern string switch_caller_profile_caller_id_number_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_name_set")] - public static extern void switch_caller_profile_orig_caller_id_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_name_get")] - public static extern string switch_caller_profile_orig_caller_id_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_number_set")] - public static extern void switch_caller_profile_orig_caller_id_number_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_number_get")] - public static extern string switch_caller_profile_orig_caller_id_number_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_name_set")] - public static extern void switch_caller_profile_callee_id_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_name_get")] - public static extern string switch_caller_profile_callee_id_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_number_set")] - public static extern void switch_caller_profile_callee_id_number_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_number_get")] - public static extern string switch_caller_profile_callee_id_number_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_ton_set")] - public static extern void switch_caller_profile_caller_ton_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_ton_get")] - public static extern byte switch_caller_profile_caller_ton_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_numplan_set")] - public static extern void switch_caller_profile_caller_numplan_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_numplan_get")] - public static extern byte switch_caller_profile_caller_numplan_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_network_addr_set")] - public static extern void switch_caller_profile_network_addr_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_network_addr_get")] - public static extern string switch_caller_profile_network_addr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_set")] - public static extern void switch_caller_profile_ani_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_get")] - public static extern string switch_caller_profile_ani_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_ton_set")] - public static extern void switch_caller_profile_ani_ton_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_ton_get")] - public static extern byte switch_caller_profile_ani_ton_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_numplan_set")] - public static extern void switch_caller_profile_ani_numplan_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_numplan_get")] - public static extern byte switch_caller_profile_ani_numplan_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_aniii_set")] - public static extern void switch_caller_profile_aniii_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_aniii_get")] - public static extern string switch_caller_profile_aniii_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_set")] - public static extern void switch_caller_profile_rdnis_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_get")] - public static extern string switch_caller_profile_rdnis_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_ton_set")] - public static extern void switch_caller_profile_rdnis_ton_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_ton_get")] - public static extern byte switch_caller_profile_rdnis_ton_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_numplan_set")] - public static extern void switch_caller_profile_rdnis_numplan_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_numplan_get")] - public static extern byte switch_caller_profile_rdnis_numplan_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_set")] - public static extern void switch_caller_profile_destination_number_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_get")] - public static extern string switch_caller_profile_destination_number_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_ton_set")] - public static extern void switch_caller_profile_destination_number_ton_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_ton_get")] - public static extern byte switch_caller_profile_destination_number_ton_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_numplan_set")] - public static extern void switch_caller_profile_destination_number_numplan_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_numplan_get")] - public static extern byte switch_caller_profile_destination_number_numplan_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_source_set")] - public static extern void switch_caller_profile_source_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_source_get")] - public static extern string switch_caller_profile_source_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_chan_name_set")] - public static extern void switch_caller_profile_chan_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_chan_name_get")] - public static extern string switch_caller_profile_chan_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_set")] - public static extern void switch_caller_profile_uuid_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_get")] - public static extern string switch_caller_profile_uuid_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_context_set")] - public static extern void switch_caller_profile_context_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_context_get")] - public static extern string switch_caller_profile_context_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_profile_index_set")] - public static extern void switch_caller_profile_profile_index_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_profile_index_get")] - public static extern string switch_caller_profile_profile_index_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_flags_set")] - public static extern void switch_caller_profile_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_flags_get")] - public static extern uint switch_caller_profile_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originator_caller_profile_set")] - public static extern void switch_caller_profile_originator_caller_profile_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originator_caller_profile_get")] - public static extern IntPtr switch_caller_profile_originator_caller_profile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originatee_caller_profile_set")] - public static extern void switch_caller_profile_originatee_caller_profile_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originatee_caller_profile_get")] - public static extern IntPtr switch_caller_profile_originatee_caller_profile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_origination_caller_profile_set")] - public static extern void switch_caller_profile_origination_caller_profile_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_origination_caller_profile_get")] - public static extern IntPtr switch_caller_profile_origination_caller_profile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_hunt_caller_profile_set")] - public static extern void switch_caller_profile_hunt_caller_profile_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_hunt_caller_profile_get")] - public static extern IntPtr switch_caller_profile_hunt_caller_profile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_times_set")] - public static extern void switch_caller_profile_times_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_times_get")] - public static extern IntPtr switch_caller_profile_times_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_old_times_set")] - public static extern void switch_caller_profile_old_times_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_old_times_get")] - public static extern IntPtr switch_caller_profile_old_times_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_extension_set")] - public static extern void switch_caller_profile_caller_extension_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_extension_get")] - public static extern IntPtr switch_caller_profile_caller_extension_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_pool_set")] - public static extern void switch_caller_profile_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_pool_get")] - public static extern IntPtr switch_caller_profile_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_next_set")] - public static extern void switch_caller_profile_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_next_get")] - public static extern IntPtr switch_caller_profile_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_set")] - public static extern void switch_caller_profile_direction_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_get")] - public static extern int switch_caller_profile_direction_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_logical_direction_set")] - public static extern void switch_caller_profile_logical_direction_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_logical_direction_get")] - public static extern int switch_caller_profile_logical_direction_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_set")] - public static extern void switch_caller_profile_soft_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_get")] - public static extern IntPtr switch_caller_profile_soft_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_str_set")] - public static extern void switch_caller_profile_uuid_str_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_str_get")] - public static extern string switch_caller_profile_uuid_str_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_clone_of_set")] - public static extern void switch_caller_profile_clone_of_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_clone_of_get")] - public static extern string switch_caller_profile_clone_of_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_transfer_source_set")] - public static extern void switch_caller_profile_transfer_source_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_transfer_source_get")] - public static extern string switch_caller_profile_transfer_source_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_profile")] - public static extern IntPtr new_switch_caller_profile(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_caller_profile")] - public static extern void delete_switch_caller_profile(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_name_set")] - public static extern void switch_caller_application_application_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_name_get")] - public static extern string switch_caller_application_application_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_data_set")] - public static extern void switch_caller_application_application_data_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_data_get")] - public static extern string switch_caller_application_application_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_function_set")] - public static extern void switch_caller_application_application_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_function_get")] - public static extern IntPtr switch_caller_application_application_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_next_set")] - public static extern void switch_caller_application_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_next_get")] - public static extern IntPtr switch_caller_application_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_application")] - public static extern IntPtr new_switch_caller_application(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_caller_application")] - public static extern void delete_switch_caller_application(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_name_set")] - public static extern void switch_caller_extension_extension_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_name_get")] - public static extern string switch_caller_extension_extension_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_number_set")] - public static extern void switch_caller_extension_extension_number_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_number_get")] - public static extern string switch_caller_extension_extension_number_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_current_application_set")] - public static extern void switch_caller_extension_current_application_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_current_application_get")] - public static extern IntPtr switch_caller_extension_current_application_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_last_application_set")] - public static extern void switch_caller_extension_last_application_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_last_application_get")] - public static extern IntPtr switch_caller_extension_last_application_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_applications_set")] - public static extern void switch_caller_extension_applications_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_applications_get")] - public static extern IntPtr switch_caller_extension_applications_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_children_set")] - public static extern void switch_caller_extension_children_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_children_get")] - public static extern IntPtr switch_caller_extension_children_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_next_set")] - public static extern void switch_caller_extension_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_next_get")] - public static extern IntPtr switch_caller_extension_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_extension")] - public static extern IntPtr new_switch_caller_extension(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_caller_extension")] - public static extern void delete_switch_caller_extension(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_new")] - public static extern IntPtr switch_caller_extension_new(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_clone")] - public static extern int switch_caller_extension_clone(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_add_application")] - public static extern void switch_caller_extension_add_application(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_add_application_printf")] - public static extern void switch_caller_extension_add_application_printf(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_get_field_by_name")] - public static extern string switch_caller_get_field_by_name(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_new")] - public static extern IntPtr switch_caller_profile_new(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, string jarg11, string jarg12); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_clone")] - public static extern IntPtr switch_caller_profile_clone(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_dup")] - public static extern IntPtr switch_caller_profile_dup(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_event_set_data")] - public static extern void switch_caller_profile_event_set_data(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_codec_set")] - public static extern void switch_frame_codec_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_codec_get")] - public static extern IntPtr switch_frame_codec_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_source_set")] - public static extern void switch_frame_source_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_source_get")] - public static extern string switch_frame_source_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packet_set")] - public static extern void switch_frame_packet_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packet_get")] - public static extern IntPtr switch_frame_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packetlen_set")] - public static extern void switch_frame_packetlen_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packetlen_get")] - public static extern uint switch_frame_packetlen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_extra_data_set")] - public static extern void switch_frame_extra_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_extra_data_get")] - public static extern IntPtr switch_frame_extra_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_data_set")] - public static extern void switch_frame_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_data_get")] - public static extern IntPtr switch_frame_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_datalen_set")] - public static extern void switch_frame_datalen_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_datalen_get")] - public static extern uint switch_frame_datalen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buflen_set")] - public static extern void switch_frame_buflen_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buflen_get")] - public static extern uint switch_frame_buflen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_samples_set")] - public static extern void switch_frame_samples_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_samples_get")] - public static extern uint switch_frame_samples_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_rate_set")] - public static extern void switch_frame_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_rate_get")] - public static extern uint switch_frame_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_channels_set")] - public static extern void switch_frame_channels_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_channels_get")] - public static extern uint switch_frame_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_payload_set")] - public static extern void switch_frame_payload_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_payload_get")] - public static extern byte switch_frame_payload_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_timestamp_set")] - public static extern void switch_frame_timestamp_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_timestamp_get")] - public static extern IntPtr switch_frame_timestamp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_seq_set")] - public static extern void switch_frame_seq_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_seq_get")] - public static extern ushort switch_frame_seq_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_ssrc_set")] - public static extern void switch_frame_ssrc_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_ssrc_get")] - public static extern uint switch_frame_ssrc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_m_set")] - public static extern void switch_frame_m_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_m_get")] - public static extern int switch_frame_m_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_flags_set")] - public static extern void switch_frame_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_flags_get")] - public static extern uint switch_frame_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_user_data_set")] - public static extern void switch_frame_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_user_data_get")] - public static extern IntPtr switch_frame_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_pmap_set")] - public static extern void switch_frame_pmap_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_pmap_get")] - public static extern IntPtr switch_frame_pmap_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_frame")] - public static extern IntPtr new_switch_frame(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_frame")] - public static extern void delete_switch_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_init_set")] - public static extern void switch_state_handler_table_on_init_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_init_get")] - public static extern IntPtr switch_state_handler_table_on_init_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_routing_set")] - public static extern void switch_state_handler_table_on_routing_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_routing_get")] - public static extern IntPtr switch_state_handler_table_on_routing_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_execute_set")] - public static extern void switch_state_handler_table_on_execute_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_execute_get")] - public static extern IntPtr switch_state_handler_table_on_execute_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hangup_set")] - public static extern void switch_state_handler_table_on_hangup_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hangup_get")] - public static extern IntPtr switch_state_handler_table_on_hangup_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_exchange_media_set")] - public static extern void switch_state_handler_table_on_exchange_media_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_exchange_media_get")] - public static extern IntPtr switch_state_handler_table_on_exchange_media_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_soft_execute_set")] - public static extern void switch_state_handler_table_on_soft_execute_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_soft_execute_get")] - public static extern IntPtr switch_state_handler_table_on_soft_execute_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_consume_media_set")] - public static extern void switch_state_handler_table_on_consume_media_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_consume_media_get")] - public static extern IntPtr switch_state_handler_table_on_consume_media_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hibernate_set")] - public static extern void switch_state_handler_table_on_hibernate_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hibernate_get")] - public static extern IntPtr switch_state_handler_table_on_hibernate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reset_set")] - public static extern void switch_state_handler_table_on_reset_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reset_get")] - public static extern IntPtr switch_state_handler_table_on_reset_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_park_set")] - public static extern void switch_state_handler_table_on_park_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_park_get")] - public static extern IntPtr switch_state_handler_table_on_park_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reporting_set")] - public static extern void switch_state_handler_table_on_reporting_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reporting_get")] - public static extern IntPtr switch_state_handler_table_on_reporting_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_destroy_set")] - public static extern void switch_state_handler_table_on_destroy_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_destroy_get")] - public static extern IntPtr switch_state_handler_table_on_destroy_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_flags_set")] - public static extern void switch_state_handler_table_flags_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_flags_get")] - public static extern int switch_state_handler_table_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_padding_set")] - public static extern void switch_state_handler_table_padding_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_padding_get")] - public static extern IntPtr switch_state_handler_table_padding_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_state_handler_table")] - public static extern IntPtr new_switch_state_handler_table(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_state_handler_table")] - public static extern void delete_switch_state_handler_table(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_read_function_set")] - public static extern void switch_stream_handle_read_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_read_function_get")] - public static extern IntPtr switch_stream_handle_read_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_write_function_set")] - public static extern void switch_stream_handle_write_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_write_function_get")] - public static extern IntPtr switch_stream_handle_write_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_raw_write_function_set")] - public static extern void switch_stream_handle_raw_write_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_raw_write_function_get")] - public static extern IntPtr switch_stream_handle_raw_write_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_set")] - public static extern void switch_stream_handle_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_get")] - public static extern IntPtr switch_stream_handle_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_end_set")] - public static extern void switch_stream_handle_end_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_end_get")] - public static extern IntPtr switch_stream_handle_end_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_size_set")] - public static extern void switch_stream_handle_data_size_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_size_get")] - public static extern IntPtr switch_stream_handle_data_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_len_set")] - public static extern void switch_stream_handle_data_len_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_len_get")] - public static extern IntPtr switch_stream_handle_data_len_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_len_set")] - public static extern void switch_stream_handle_alloc_len_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_len_get")] - public static extern IntPtr switch_stream_handle_alloc_len_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_chunk_set")] - public static extern void switch_stream_handle_alloc_chunk_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_chunk_get")] - public static extern IntPtr switch_stream_handle_alloc_chunk_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_param_event_set")] - public static extern void switch_stream_handle_param_event_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_param_event_get")] - public static extern IntPtr switch_stream_handle_param_event_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_stream_handle")] - public static extern IntPtr new_switch_stream_handle(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_stream_handle")] - public static extern void delete_switch_stream_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_outgoing_channel_set")] - public static extern void switch_io_routines_outgoing_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_outgoing_channel_get")] - public static extern IntPtr switch_io_routines_outgoing_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_frame_set")] - public static extern void switch_io_routines_read_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_frame_get")] - public static extern IntPtr switch_io_routines_read_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_frame_set")] - public static extern void switch_io_routines_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_frame_get")] - public static extern IntPtr switch_io_routines_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_kill_channel_set")] - public static extern void switch_io_routines_kill_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_kill_channel_get")] - public static extern IntPtr switch_io_routines_kill_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_send_dtmf_set")] - public static extern void switch_io_routines_send_dtmf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_send_dtmf_get")] - public static extern IntPtr switch_io_routines_send_dtmf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_message_set")] - public static extern void switch_io_routines_receive_message_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_message_get")] - public static extern IntPtr switch_io_routines_receive_message_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_event_set")] - public static extern void switch_io_routines_receive_event_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_event_get")] - public static extern IntPtr switch_io_routines_receive_event_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_change_set")] - public static extern void switch_io_routines_state_change_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_change_get")] - public static extern IntPtr switch_io_routines_state_change_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_video_frame_set")] - public static extern void switch_io_routines_read_video_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_video_frame_get")] - public static extern IntPtr switch_io_routines_read_video_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_video_frame_set")] - public static extern void switch_io_routines_write_video_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_video_frame_get")] - public static extern IntPtr switch_io_routines_write_video_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_run_set")] - public static extern void switch_io_routines_state_run_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_run_get")] - public static extern IntPtr switch_io_routines_state_run_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_get_jb_set")] - public static extern void switch_io_routines_get_jb_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_get_jb_get")] - public static extern IntPtr switch_io_routines_get_jb_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_padding_set")] - public static extern void switch_io_routines_padding_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_padding_get")] - public static extern IntPtr switch_io_routines_padding_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_routines")] - public static extern IntPtr new_switch_io_routines(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_routines")] - public static extern void delete_switch_io_routines(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_interface_name_set")] - public static extern void switch_endpoint_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_interface_name_get")] - public static extern string switch_endpoint_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_io_routines_set")] - public static extern void switch_endpoint_interface_io_routines_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_io_routines_get")] - public static extern IntPtr switch_endpoint_interface_io_routines_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_state_handler_set")] - public static extern void switch_endpoint_interface_state_handler_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_state_handler_get")] - public static extern IntPtr switch_endpoint_interface_state_handler_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_private_info_set")] - public static extern void switch_endpoint_interface_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_private_info_get")] - public static extern IntPtr switch_endpoint_interface_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_rwlock_set")] - public static extern void switch_endpoint_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_rwlock_get")] - public static extern IntPtr switch_endpoint_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_refs_set")] - public static extern void switch_endpoint_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_refs_get")] - public static extern int switch_endpoint_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_reflock_set")] - public static extern void switch_endpoint_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_reflock_get")] - public static extern IntPtr switch_endpoint_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_parent_set")] - public static extern void switch_endpoint_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_parent_get")] - public static extern IntPtr switch_endpoint_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_next_set")] - public static extern void switch_endpoint_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_next_get")] - public static extern IntPtr switch_endpoint_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_recover_callback_set")] - public static extern void switch_endpoint_interface_recover_callback_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_recover_callback_get")] - public static extern IntPtr switch_endpoint_interface_recover_callback_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_endpoint_interface")] - public static extern IntPtr new_switch_endpoint_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_endpoint_interface")] - public static extern void delete_switch_endpoint_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interval_set")] - public static extern void switch_timer_interval_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interval_get")] - public static extern int switch_timer_interval_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_flags_set")] - public static extern void switch_timer_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_flags_get")] - public static extern uint switch_timer_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samples_set")] - public static extern void switch_timer_samples_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samples_get")] - public static extern uint switch_timer_samples_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samplecount_set")] - public static extern void switch_timer_samplecount_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samplecount_get")] - public static extern uint switch_timer_samplecount_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_timer_interface_set")] - public static extern void switch_timer_timer_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_timer_interface_get")] - public static extern IntPtr switch_timer_timer_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_memory_pool_set")] - public static extern void switch_timer_memory_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_memory_pool_get")] - public static extern IntPtr switch_timer_memory_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_private_info_set")] - public static extern void switch_timer_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_private_info_get")] - public static extern IntPtr switch_timer_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_diff_set")] - public static extern void switch_timer_diff_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_diff_get")] - public static extern IntPtr switch_timer_diff_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_tick_set")] - public static extern void switch_timer_tick_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_tick_get")] - public static extern IntPtr switch_timer_tick_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_timer")] - public static extern IntPtr new_switch_timer(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_timer")] - public static extern void delete_switch_timer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_interface_name_set")] - public static extern void switch_timer_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_interface_name_get")] - public static extern string switch_timer_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_init_set")] - public static extern void switch_timer_interface_timer_init_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_init_get")] - public static extern IntPtr switch_timer_interface_timer_init_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_next_set")] - public static extern void switch_timer_interface_timer_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_next_get")] - public static extern IntPtr switch_timer_interface_timer_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_step_set")] - public static extern void switch_timer_interface_timer_step_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_step_get")] - public static extern IntPtr switch_timer_interface_timer_step_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_sync_set")] - public static extern void switch_timer_interface_timer_sync_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_sync_get")] - public static extern IntPtr switch_timer_interface_timer_sync_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_check_set")] - public static extern void switch_timer_interface_timer_check_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_check_get")] - public static extern IntPtr switch_timer_interface_timer_check_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_destroy_set")] - public static extern void switch_timer_interface_timer_destroy_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_destroy_get")] - public static extern IntPtr switch_timer_interface_timer_destroy_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_rwlock_set")] - public static extern void switch_timer_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_rwlock_get")] - public static extern IntPtr switch_timer_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_refs_set")] - public static extern void switch_timer_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_refs_get")] - public static extern int switch_timer_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_reflock_set")] - public static extern void switch_timer_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_reflock_get")] - public static extern IntPtr switch_timer_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_parent_set")] - public static extern void switch_timer_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_parent_get")] - public static extern IntPtr switch_timer_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_next_set")] - public static extern void switch_timer_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_next_get")] - public static extern IntPtr switch_timer_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_timer_interface")] - public static extern IntPtr new_switch_timer_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_timer_interface")] - public static extern void delete_switch_timer_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_interface_name_set")] - public static extern void switch_dialplan_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_interface_name_get")] - public static extern string switch_dialplan_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_hunt_function_set")] - public static extern void switch_dialplan_interface_hunt_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_hunt_function_get")] - public static extern IntPtr switch_dialplan_interface_hunt_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_rwlock_set")] - public static extern void switch_dialplan_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_rwlock_get")] - public static extern IntPtr switch_dialplan_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_refs_set")] - public static extern void switch_dialplan_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_refs_get")] - public static extern int switch_dialplan_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_reflock_set")] - public static extern void switch_dialplan_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_reflock_get")] - public static extern IntPtr switch_dialplan_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_parent_set")] - public static extern void switch_dialplan_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_parent_get")] - public static extern IntPtr switch_dialplan_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_next_set")] - public static extern void switch_dialplan_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_next_get")] - public static extern IntPtr switch_dialplan_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_dialplan_interface")] - public static extern IntPtr new_switch_dialplan_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_dialplan_interface")] - public static extern void delete_switch_dialplan_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_interface_name_set")] - public static extern void switch_file_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_interface_name_get")] - public static extern string switch_file_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_open_set")] - public static extern void switch_file_interface_file_open_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_open_get")] - public static extern IntPtr switch_file_interface_file_open_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_close_set")] - public static extern void switch_file_interface_file_close_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_close_get")] - public static extern IntPtr switch_file_interface_file_close_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_truncate_set")] - public static extern void switch_file_interface_file_truncate_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_truncate_get")] - public static extern IntPtr switch_file_interface_file_truncate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_set")] - public static extern void switch_file_interface_file_read_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_get")] - public static extern IntPtr switch_file_interface_file_read_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_set")] - public static extern void switch_file_interface_file_write_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_get")] - public static extern IntPtr switch_file_interface_file_write_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_video_set")] - public static extern void switch_file_interface_file_read_video_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_video_get")] - public static extern IntPtr switch_file_interface_file_read_video_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_video_set")] - public static extern void switch_file_interface_file_write_video_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_video_get")] - public static extern IntPtr switch_file_interface_file_write_video_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_seek_set")] - public static extern void switch_file_interface_file_seek_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_seek_get")] - public static extern IntPtr switch_file_interface_file_seek_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_set_string_set")] - public static extern void switch_file_interface_file_set_string_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_set_string_get")] - public static extern IntPtr switch_file_interface_file_set_string_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_get_string_set")] - public static extern void switch_file_interface_file_get_string_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_get_string_get")] - public static extern IntPtr switch_file_interface_file_get_string_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_extens_set")] - public static extern void switch_file_interface_extens_set(HandleRef jarg1, ref string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_extens_get")] - public static extern string switch_file_interface_extens_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_rwlock_set")] - public static extern void switch_file_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_rwlock_get")] - public static extern IntPtr switch_file_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_refs_set")] - public static extern void switch_file_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_refs_get")] - public static extern int switch_file_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_reflock_set")] - public static extern void switch_file_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_reflock_get")] - public static extern IntPtr switch_file_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_parent_set")] - public static extern void switch_file_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_parent_get")] - public static extern IntPtr switch_file_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_next_set")] - public static extern void switch_file_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_next_get")] - public static extern IntPtr switch_file_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_file_interface")] - public static extern IntPtr new_switch_file_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_file_interface")] - public static extern void delete_switch_file_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_interface_set")] - public static extern void switch_file_handle_file_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_interface_get")] - public static extern IntPtr switch_file_handle_file_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_flags_set")] - public static extern void switch_file_handle_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_flags_get")] - public static extern uint switch_file_handle_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_fd_set")] - public static extern void switch_file_handle_fd_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_fd_get")] - public static extern IntPtr switch_file_handle_fd_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_set")] - public static extern void switch_file_handle_samples_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_get")] - public static extern uint switch_file_handle_samples_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samplerate_set")] - public static extern void switch_file_handle_samplerate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samplerate_get")] - public static extern uint switch_file_handle_samplerate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_native_rate_set")] - public static extern void switch_file_handle_native_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_native_rate_get")] - public static extern uint switch_file_handle_native_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_channels_set")] - public static extern void switch_file_handle_channels_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_channels_get")] - public static extern uint switch_file_handle_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_real_channels_set")] - public static extern void switch_file_handle_real_channels_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_real_channels_get")] - public static extern uint switch_file_handle_real_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_format_set")] - public static extern void switch_file_handle_format_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_format_get")] - public static extern uint switch_file_handle_format_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sections_set")] - public static extern void switch_file_handle_sections_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sections_get")] - public static extern uint switch_file_handle_sections_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_seekable_set")] - public static extern void switch_file_handle_seekable_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_seekable_get")] - public static extern int switch_file_handle_seekable_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sample_count_set")] - public static extern void switch_file_handle_sample_count_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sample_count_get")] - public static extern IntPtr switch_file_handle_sample_count_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_speed_set")] - public static extern void switch_file_handle_speed_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_speed_get")] - public static extern int switch_file_handle_speed_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_memory_pool_set")] - public static extern void switch_file_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_memory_pool_get")] - public static extern IntPtr switch_file_handle_memory_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prebuf_set")] - public static extern void switch_file_handle_prebuf_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prebuf_get")] - public static extern uint switch_file_handle_prebuf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_interval_set")] - public static extern void switch_file_handle_interval_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_interval_get")] - public static extern uint switch_file_handle_interval_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_private_info_set")] - public static extern void switch_file_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_private_info_get")] - public static extern IntPtr switch_file_handle_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_handler_set")] - public static extern void switch_file_handle_handler_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_handler_get")] - public static extern string switch_file_handle_handler_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pos_set")] - public static extern void switch_file_handle_pos_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pos_get")] - public static extern long switch_file_handle_pos_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_audio_buffer_set")] - public static extern void switch_file_handle_audio_buffer_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_audio_buffer_get")] - public static extern IntPtr switch_file_handle_audio_buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sp_audio_buffer_set")] - public static extern void switch_file_handle_sp_audio_buffer_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sp_audio_buffer_get")] - public static extern IntPtr switch_file_handle_sp_audio_buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_thresh_set")] - public static extern void switch_file_handle_thresh_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_thresh_get")] - public static extern uint switch_file_handle_thresh_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_silence_hits_set")] - public static extern void switch_file_handle_silence_hits_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_silence_hits_get")] - public static extern uint switch_file_handle_silence_hits_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_offset_pos_set")] - public static extern void switch_file_handle_offset_pos_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_offset_pos_get")] - public static extern uint switch_file_handle_offset_pos_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_in_set")] - public static extern void switch_file_handle_samples_in_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_in_get")] - public static extern IntPtr switch_file_handle_samples_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_out_set")] - public static extern void switch_file_handle_samples_out_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_out_get")] - public static extern IntPtr switch_file_handle_samples_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_vol_set")] - public static extern void switch_file_handle_vol_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_vol_get")] - public static extern int switch_file_handle_vol_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_resampler_set")] - public static extern void switch_file_handle_resampler_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_resampler_get")] - public static extern IntPtr switch_file_handle_resampler_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_buffer_set")] - public static extern void switch_file_handle_buffer_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_buffer_get")] - public static extern IntPtr switch_file_handle_buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuf_set")] - public static extern void switch_file_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuf_get")] - public static extern IntPtr switch_file_handle_dbuf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuflen_set")] - public static extern void switch_file_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuflen_get")] - public static extern IntPtr switch_file_handle_dbuflen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_set")] - public static extern void switch_file_handle_pre_buffer_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_get")] - public static extern IntPtr switch_file_handle_pre_buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_data_set")] - public static extern void switch_file_handle_pre_buffer_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_data_get")] - public static extern IntPtr switch_file_handle_pre_buffer_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_datalen_set")] - public static extern void switch_file_handle_pre_buffer_datalen_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_datalen_get")] - public static extern IntPtr switch_file_handle_pre_buffer_datalen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_set")] - public static extern void switch_file_handle_file_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_get")] - public static extern string switch_file_handle_file_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_func_set")] - public static extern void switch_file_handle_func_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_func_get")] - public static extern string switch_file_handle_func_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_line_set")] - public static extern void switch_file_handle_line_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_line_get")] - public static extern int switch_file_handle_line_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_path_set")] - public static extern void switch_file_handle_file_path_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_path_get")] - public static extern string switch_file_handle_file_path_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_spool_path_set")] - public static extern void switch_file_handle_spool_path_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_spool_path_get")] - public static extern string switch_file_handle_spool_path_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prefix_set")] - public static extern void switch_file_handle_prefix_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prefix_get")] - public static extern string switch_file_handle_prefix_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_max_samples_set")] - public static extern void switch_file_handle_max_samples_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_max_samples_get")] - public static extern int switch_file_handle_max_samples_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle__params_set")] - public static extern void switch_file_handle__params_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle__params_get")] - public static extern IntPtr switch_file_handle__params_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_channels_set")] - public static extern void switch_file_handle_cur_channels_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_channels_get")] - public static extern uint switch_file_handle_cur_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_samplerate_set")] - public static extern void switch_file_handle_cur_samplerate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_samplerate_get")] - public static extern uint switch_file_handle_cur_samplerate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_file_handle")] - public static extern IntPtr new_switch_file_handle(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_file_handle")] - public static extern void delete_switch_file_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_interface_name_set")] - public static extern void switch_asr_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_interface_name_get")] - public static extern string switch_asr_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_open_set")] - public static extern void switch_asr_interface_asr_open_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_open_get")] - public static extern IntPtr switch_asr_interface_asr_open_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_load_grammar_set")] - public static extern void switch_asr_interface_asr_load_grammar_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_load_grammar_get")] - public static extern IntPtr switch_asr_interface_asr_load_grammar_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_unload_grammar_set")] - public static extern void switch_asr_interface_asr_unload_grammar_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_unload_grammar_get")] - public static extern IntPtr switch_asr_interface_asr_unload_grammar_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_close_set")] - public static extern void switch_asr_interface_asr_close_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_close_get")] - public static extern IntPtr switch_asr_interface_asr_close_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_set")] - public static extern void switch_asr_interface_asr_feed_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_get")] - public static extern IntPtr switch_asr_interface_asr_feed_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_resume_set")] - public static extern void switch_asr_interface_asr_resume_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_resume_get")] - public static extern IntPtr switch_asr_interface_asr_resume_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_pause_set")] - public static extern void switch_asr_interface_asr_pause_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_pause_get")] - public static extern IntPtr switch_asr_interface_asr_pause_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_check_results_set")] - public static extern void switch_asr_interface_asr_check_results_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_check_results_get")] - public static extern IntPtr switch_asr_interface_asr_check_results_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_results_set")] - public static extern void switch_asr_interface_asr_get_results_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_results_get")] - public static extern IntPtr switch_asr_interface_asr_get_results_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_result_headers_set")] - public static extern void switch_asr_interface_asr_get_result_headers_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_result_headers_get")] - public static extern IntPtr switch_asr_interface_asr_get_result_headers_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_start_input_timers_set")] - public static extern void switch_asr_interface_asr_start_input_timers_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_start_input_timers_get")] - public static extern IntPtr switch_asr_interface_asr_start_input_timers_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_text_param_set")] - public static extern void switch_asr_interface_asr_text_param_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_text_param_get")] - public static extern IntPtr switch_asr_interface_asr_text_param_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_numeric_param_set")] - public static extern void switch_asr_interface_asr_numeric_param_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_numeric_param_get")] - public static extern IntPtr switch_asr_interface_asr_numeric_param_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_float_param_set")] - public static extern void switch_asr_interface_asr_float_param_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_float_param_get")] - public static extern IntPtr switch_asr_interface_asr_float_param_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_rwlock_set")] - public static extern void switch_asr_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_rwlock_get")] - public static extern IntPtr switch_asr_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_refs_set")] - public static extern void switch_asr_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_refs_get")] - public static extern int switch_asr_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_reflock_set")] - public static extern void switch_asr_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_reflock_get")] - public static extern IntPtr switch_asr_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_parent_set")] - public static extern void switch_asr_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_parent_get")] - public static extern IntPtr switch_asr_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_next_set")] - public static extern void switch_asr_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_next_get")] - public static extern IntPtr switch_asr_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_enable_grammar_set")] - public static extern void switch_asr_interface_asr_enable_grammar_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_enable_grammar_get")] - public static extern IntPtr switch_asr_interface_asr_enable_grammar_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_grammar_set")] - public static extern void switch_asr_interface_asr_disable_grammar_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_grammar_get")] - public static extern IntPtr switch_asr_interface_asr_disable_grammar_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_all_grammars_set")] - public static extern void switch_asr_interface_asr_disable_all_grammars_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_all_grammars_get")] - public static extern IntPtr switch_asr_interface_asr_disable_all_grammars_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_dtmf_set")] - public static extern void switch_asr_interface_asr_feed_dtmf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_dtmf_get")] - public static extern IntPtr switch_asr_interface_asr_feed_dtmf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_asr_interface")] - public static extern IntPtr new_switch_asr_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_asr_interface")] - public static extern void delete_switch_asr_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_asr_interface_set")] - public static extern void switch_asr_handle_asr_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_asr_interface_get")] - public static extern IntPtr switch_asr_handle_asr_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_flags_set")] - public static extern void switch_asr_handle_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_flags_get")] - public static extern uint switch_asr_handle_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_name_set")] - public static extern void switch_asr_handle_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_name_get")] - public static extern string switch_asr_handle_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_codec_set")] - public static extern void switch_asr_handle_codec_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_codec_get")] - public static extern string switch_asr_handle_codec_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_rate_set")] - public static extern void switch_asr_handle_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_rate_get")] - public static extern uint switch_asr_handle_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_grammar_set")] - public static extern void switch_asr_handle_grammar_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_grammar_get")] - public static extern string switch_asr_handle_grammar_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_param_set")] - public static extern void switch_asr_handle_param_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_param_get")] - public static extern string switch_asr_handle_param_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_memory_pool_set")] - public static extern void switch_asr_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_memory_pool_get")] - public static extern IntPtr switch_asr_handle_memory_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_buffer_set")] - public static extern void switch_asr_handle_buffer_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_buffer_get")] - public static extern IntPtr switch_asr_handle_buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuf_set")] - public static extern void switch_asr_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuf_get")] - public static extern IntPtr switch_asr_handle_dbuf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuflen_set")] - public static extern void switch_asr_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuflen_get")] - public static extern IntPtr switch_asr_handle_dbuflen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_resampler_set")] - public static extern void switch_asr_handle_resampler_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_resampler_get")] - public static extern IntPtr switch_asr_handle_resampler_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_samplerate_set")] - public static extern void switch_asr_handle_samplerate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_samplerate_get")] - public static extern uint switch_asr_handle_samplerate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_native_rate_set")] - public static extern void switch_asr_handle_native_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_native_rate_get")] - public static extern uint switch_asr_handle_native_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_private_info_set")] - public static extern void switch_asr_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_private_info_get")] - public static extern IntPtr switch_asr_handle_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_asr_handle")] - public static extern IntPtr new_switch_asr_handle(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_asr_handle")] - public static extern void delete_switch_asr_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_interface_name_set")] - public static extern void switch_speech_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_interface_name_get")] - public static extern string switch_speech_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_open_set")] - public static extern void switch_speech_interface_speech_open_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_open_get")] - public static extern IntPtr switch_speech_interface_speech_open_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_close_set")] - public static extern void switch_speech_interface_speech_close_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_close_get")] - public static extern IntPtr switch_speech_interface_speech_close_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_feed_tts_set")] - public static extern void switch_speech_interface_speech_feed_tts_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_feed_tts_get")] - public static extern IntPtr switch_speech_interface_speech_feed_tts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_read_tts_set")] - public static extern void switch_speech_interface_speech_read_tts_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_read_tts_get")] - public static extern IntPtr switch_speech_interface_speech_read_tts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_flush_tts_set")] - public static extern void switch_speech_interface_speech_flush_tts_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_flush_tts_get")] - public static extern IntPtr switch_speech_interface_speech_flush_tts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_text_param_tts_set")] - public static extern void switch_speech_interface_speech_text_param_tts_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_text_param_tts_get")] - public static extern IntPtr switch_speech_interface_speech_text_param_tts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_numeric_param_tts_set")] - public static extern void switch_speech_interface_speech_numeric_param_tts_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_numeric_param_tts_get")] - public static extern IntPtr switch_speech_interface_speech_numeric_param_tts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_float_param_tts_set")] - public static extern void switch_speech_interface_speech_float_param_tts_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_float_param_tts_get")] - public static extern IntPtr switch_speech_interface_speech_float_param_tts_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_rwlock_set")] - public static extern void switch_speech_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_rwlock_get")] - public static extern IntPtr switch_speech_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_refs_set")] - public static extern void switch_speech_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_refs_get")] - public static extern int switch_speech_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_reflock_set")] - public static extern void switch_speech_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_reflock_get")] - public static extern IntPtr switch_speech_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_parent_set")] - public static extern void switch_speech_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_parent_get")] - public static extern IntPtr switch_speech_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_next_set")] - public static extern void switch_speech_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_next_get")] - public static extern IntPtr switch_speech_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_speech_interface")] - public static extern IntPtr new_switch_speech_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_speech_interface")] - public static extern void delete_switch_speech_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speech_interface_set")] - public static extern void switch_speech_handle_speech_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speech_interface_get")] - public static extern IntPtr switch_speech_handle_speech_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_flags_set")] - public static extern void switch_speech_handle_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_flags_get")] - public static extern uint switch_speech_handle_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_name_set")] - public static extern void switch_speech_handle_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_name_get")] - public static extern string switch_speech_handle_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_rate_set")] - public static extern void switch_speech_handle_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_rate_get")] - public static extern uint switch_speech_handle_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speed_set")] - public static extern void switch_speech_handle_speed_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speed_get")] - public static extern uint switch_speech_handle_speed_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samples_set")] - public static extern void switch_speech_handle_samples_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samples_get")] - public static extern uint switch_speech_handle_samples_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_channels_set")] - public static extern void switch_speech_handle_channels_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_channels_get")] - public static extern uint switch_speech_handle_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_real_channels_set")] - public static extern void switch_speech_handle_real_channels_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_real_channels_get")] - public static extern uint switch_speech_handle_real_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_voice_set")] - public static extern void switch_speech_handle_voice_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_voice_get")] - public static extern string switch_speech_handle_voice_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_engine_set")] - public static extern void switch_speech_handle_engine_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_engine_get")] - public static extern string switch_speech_handle_engine_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_param_set")] - public static extern void switch_speech_handle_param_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_param_get")] - public static extern string switch_speech_handle_param_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_memory_pool_set")] - public static extern void switch_speech_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_memory_pool_get")] - public static extern IntPtr switch_speech_handle_memory_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_resampler_set")] - public static extern void switch_speech_handle_resampler_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_resampler_get")] - public static extern IntPtr switch_speech_handle_resampler_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_buffer_set")] - public static extern void switch_speech_handle_buffer_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_buffer_get")] - public static extern IntPtr switch_speech_handle_buffer_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuf_set")] - public static extern void switch_speech_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuf_get")] - public static extern IntPtr switch_speech_handle_dbuf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuflen_set")] - public static extern void switch_speech_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuflen_get")] - public static extern IntPtr switch_speech_handle_dbuflen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samplerate_set")] - public static extern void switch_speech_handle_samplerate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samplerate_get")] - public static extern uint switch_speech_handle_samplerate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_native_rate_set")] - public static extern void switch_speech_handle_native_rate_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_native_rate_get")] - public static extern uint switch_speech_handle_native_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_private_info_set")] - public static extern void switch_speech_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_private_info_get")] - public static extern IntPtr switch_speech_handle_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_speech_handle")] - public static extern IntPtr new_switch_speech_handle(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_speech_handle")] - public static extern void delete_switch_speech_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_interface_name_set")] - public static extern void switch_say_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_interface_name_get")] - public static extern string switch_say_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_function_set")] - public static extern void switch_say_interface_say_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_function_get")] - public static extern IntPtr switch_say_interface_say_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_string_function_set")] - public static extern void switch_say_interface_say_string_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_string_function_get")] - public static extern IntPtr switch_say_interface_say_string_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_rwlock_set")] - public static extern void switch_say_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_rwlock_get")] - public static extern IntPtr switch_say_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_refs_set")] - public static extern void switch_say_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_refs_get")] - public static extern int switch_say_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_reflock_set")] - public static extern void switch_say_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_reflock_get")] - public static extern IntPtr switch_say_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_parent_set")] - public static extern void switch_say_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_parent_get")] - public static extern IntPtr switch_say_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_next_set")] - public static extern void switch_say_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_next_get")] - public static extern IntPtr switch_say_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_say_interface")] - public static extern IntPtr new_switch_say_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_say_interface")] - public static extern void delete_switch_say_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_interface_name_set")] - public static extern void switch_chat_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_interface_name_get")] - public static extern string switch_chat_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_chat_send_set")] - public static extern void switch_chat_interface_chat_send_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_chat_send_get")] - public static extern IntPtr switch_chat_interface_chat_send_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_rwlock_set")] - public static extern void switch_chat_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_rwlock_get")] - public static extern IntPtr switch_chat_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_refs_set")] - public static extern void switch_chat_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_refs_get")] - public static extern int switch_chat_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_reflock_set")] - public static extern void switch_chat_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_reflock_get")] - public static extern IntPtr switch_chat_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_parent_set")] - public static extern void switch_chat_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_parent_get")] - public static extern IntPtr switch_chat_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_next_set")] - public static extern void switch_chat_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_next_get")] - public static extern IntPtr switch_chat_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_chat_interface")] - public static extern IntPtr new_switch_chat_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_chat_interface")] - public static extern void delete_switch_chat_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_relative_oid_set")] - public static extern void switch_management_interface_relative_oid_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_relative_oid_get")] - public static extern string switch_management_interface_relative_oid_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_management_function_set")] - public static extern void switch_management_interface_management_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_management_function_get")] - public static extern IntPtr switch_management_interface_management_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_rwlock_set")] - public static extern void switch_management_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_rwlock_get")] - public static extern IntPtr switch_management_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_refs_set")] - public static extern void switch_management_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_refs_get")] - public static extern int switch_management_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_reflock_set")] - public static extern void switch_management_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_reflock_get")] - public static extern IntPtr switch_management_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_parent_set")] - public static extern void switch_management_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_parent_get")] - public static extern IntPtr switch_management_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_next_set")] - public static extern void switch_management_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_next_get")] - public static extern IntPtr switch_management_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_management_interface")] - public static extern IntPtr new_switch_management_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_management_interface")] - public static extern void delete_switch_management_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interface_name_set")] - public static extern void switch_limit_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interface_name_get")] - public static extern string switch_limit_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_incr_set")] - public static extern void switch_limit_interface_incr_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_incr_get")] - public static extern IntPtr switch_limit_interface_incr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_release_set")] - public static extern void switch_limit_interface_release_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_release_get")] - public static extern IntPtr switch_limit_interface_release_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_usage_set")] - public static extern void switch_limit_interface_usage_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_usage_get")] - public static extern IntPtr switch_limit_interface_usage_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reset_set")] - public static extern void switch_limit_interface_reset_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reset_get")] - public static extern IntPtr switch_limit_interface_reset_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_status_set")] - public static extern void switch_limit_interface_status_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_status_get")] - public static extern IntPtr switch_limit_interface_status_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interval_reset_set")] - public static extern void switch_limit_interface_interval_reset_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interval_reset_get")] - public static extern IntPtr switch_limit_interface_interval_reset_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_rwlock_set")] - public static extern void switch_limit_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_rwlock_get")] - public static extern IntPtr switch_limit_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_refs_set")] - public static extern void switch_limit_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_refs_get")] - public static extern int switch_limit_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reflock_set")] - public static extern void switch_limit_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reflock_get")] - public static extern IntPtr switch_limit_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_parent_set")] - public static extern void switch_limit_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_parent_get")] - public static extern IntPtr switch_limit_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_next_set")] - public static extern void switch_limit_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_next_get")] - public static extern IntPtr switch_limit_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_limit_interface")] - public static extern IntPtr new_switch_limit_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_limit_interface")] - public static extern void delete_switch_limit_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_interface_name_set")] - public static extern void switch_directory_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_interface_name_get")] - public static extern string switch_directory_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_open_set")] - public static extern void switch_directory_interface_directory_open_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_open_get")] - public static extern IntPtr switch_directory_interface_directory_open_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_close_set")] - public static extern void switch_directory_interface_directory_close_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_close_get")] - public static extern IntPtr switch_directory_interface_directory_close_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_query_set")] - public static extern void switch_directory_interface_directory_query_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_query_get")] - public static extern IntPtr switch_directory_interface_directory_query_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_set")] - public static extern void switch_directory_interface_directory_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_get")] - public static extern IntPtr switch_directory_interface_directory_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_pair_set")] - public static extern void switch_directory_interface_directory_next_pair_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_pair_get")] - public static extern IntPtr switch_directory_interface_directory_next_pair_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_rwlock_set")] - public static extern void switch_directory_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_rwlock_get")] - public static extern IntPtr switch_directory_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_refs_set")] - public static extern void switch_directory_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_refs_get")] - public static extern int switch_directory_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_reflock_set")] - public static extern void switch_directory_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_reflock_get")] - public static extern IntPtr switch_directory_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_parent_set")] - public static extern void switch_directory_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_parent_get")] - public static extern IntPtr switch_directory_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_next_set")] - public static extern void switch_directory_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_next_get")] - public static extern IntPtr switch_directory_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directory_interface")] - public static extern IntPtr new_switch_directory_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directory_interface")] - public static extern void delete_switch_directory_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_directory_interface_set")] - public static extern void switch_directory_handle_directory_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_directory_interface_get")] - public static extern IntPtr switch_directory_handle_directory_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_flags_set")] - public static extern void switch_directory_handle_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_flags_get")] - public static extern uint switch_directory_handle_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_memory_pool_set")] - public static extern void switch_directory_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_memory_pool_get")] - public static extern IntPtr switch_directory_handle_memory_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_private_info_set")] - public static extern void switch_directory_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_private_info_get")] - public static extern IntPtr switch_directory_handle_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directory_handle")] - public static extern IntPtr new_switch_directory_handle(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directory_handle")] - public static extern void delete_switch_directory_handle(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_unused_set")] - public static extern void switch_codec_settings_unused_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_unused_get")] - public static extern int switch_codec_settings_unused_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_settings")] - public static extern IntPtr new_switch_codec_settings(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_settings")] - public static extern void delete_switch_codec_settings(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_actual_samples_per_second_set")] - public static extern void switch_codec_fmtp_actual_samples_per_second_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_actual_samples_per_second_get")] - public static extern uint switch_codec_fmtp_actual_samples_per_second_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_bits_per_second_set")] - public static extern void switch_codec_fmtp_bits_per_second_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_bits_per_second_get")] - public static extern int switch_codec_fmtp_bits_per_second_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_microseconds_per_packet_set")] - public static extern void switch_codec_fmtp_microseconds_per_packet_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_microseconds_per_packet_get")] - public static extern int switch_codec_fmtp_microseconds_per_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_stereo_set")] - public static extern void switch_codec_fmtp_stereo_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_stereo_get")] - public static extern int switch_codec_fmtp_stereo_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_private_info_set")] - public static extern void switch_codec_fmtp_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_private_info_get")] - public static extern IntPtr switch_codec_fmtp_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_fmtp")] - public static extern IntPtr new_switch_codec_fmtp(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_fmtp")] - public static extern void delete_switch_codec_fmtp(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_codec_interface_set")] - public static extern void switch_codec_codec_interface_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_codec_interface_get")] - public static extern IntPtr switch_codec_codec_interface_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_set")] - public static extern void switch_codec_implementation_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_get")] - public static extern IntPtr switch_codec_implementation_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_in_set")] - public static extern void switch_codec_fmtp_in_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_in_get")] - public static extern string switch_codec_fmtp_in_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_out_set")] - public static extern void switch_codec_fmtp_out_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_out_get")] - public static extern string switch_codec_fmtp_out_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_flags_set")] - public static extern void switch_codec_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_flags_get")] - public static extern uint switch_codec_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_memory_pool_set")] - public static extern void switch_codec_memory_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_memory_pool_get")] - public static extern IntPtr switch_codec_memory_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_private_info_set")] - public static extern void switch_codec_private_info_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_private_info_get")] - public static extern IntPtr switch_codec_private_info_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_agreed_pt_set")] - public static extern void switch_codec_agreed_pt_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_agreed_pt_get")] - public static extern byte switch_codec_agreed_pt_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_mutex_set")] - public static extern void switch_codec_mutex_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_mutex_get")] - public static extern IntPtr switch_codec_mutex_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_next_set")] - public static extern void switch_codec_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_next_get")] - public static extern IntPtr switch_codec_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_session_set")] - public static extern void switch_codec_session_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_session_get")] - public static extern IntPtr switch_codec_session_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_cur_frame_set")] - public static extern void switch_codec_cur_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_cur_frame_get")] - public static extern IntPtr switch_codec_cur_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec")] - public static extern IntPtr new_switch_codec(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec")] - public static extern void delete_switch_codec(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_type_set")] - public static extern void switch_codec_implementation_codec_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_type_get")] - public static extern int switch_codec_implementation_codec_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_ianacode_set")] - public static extern void switch_codec_implementation_ianacode_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_ianacode_get")] - public static extern byte switch_codec_implementation_ianacode_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_iananame_set")] - public static extern void switch_codec_implementation_iananame_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_iananame_get")] - public static extern string switch_codec_implementation_iananame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_fmtp_set")] - public static extern void switch_codec_implementation_fmtp_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_fmtp_get")] - public static extern string switch_codec_implementation_fmtp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_second_set")] - public static extern void switch_codec_implementation_samples_per_second_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_second_get")] - public static extern uint switch_codec_implementation_samples_per_second_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_actual_samples_per_second_set")] - public static extern void switch_codec_implementation_actual_samples_per_second_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_actual_samples_per_second_get")] - public static extern uint switch_codec_implementation_actual_samples_per_second_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_bits_per_second_set")] - public static extern void switch_codec_implementation_bits_per_second_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_bits_per_second_get")] - public static extern int switch_codec_implementation_bits_per_second_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_microseconds_per_packet_set")] - public static extern void switch_codec_implementation_microseconds_per_packet_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_microseconds_per_packet_get")] - public static extern int switch_codec_implementation_microseconds_per_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_packet_set")] - public static extern void switch_codec_implementation_samples_per_packet_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_packet_get")] - public static extern uint switch_codec_implementation_samples_per_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decoded_bytes_per_packet_set")] - public static extern void switch_codec_implementation_decoded_bytes_per_packet_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decoded_bytes_per_packet_get")] - public static extern uint switch_codec_implementation_decoded_bytes_per_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encoded_bytes_per_packet_set")] - public static extern void switch_codec_implementation_encoded_bytes_per_packet_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encoded_bytes_per_packet_get")] - public static extern uint switch_codec_implementation_encoded_bytes_per_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_number_of_channels_set")] - public static extern void switch_codec_implementation_number_of_channels_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_number_of_channels_get")] - public static extern byte switch_codec_implementation_number_of_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_frames_per_packet_set")] - public static extern void switch_codec_implementation_codec_frames_per_packet_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_frames_per_packet_get")] - public static extern int switch_codec_implementation_codec_frames_per_packet_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_init_set")] - public static extern void switch_codec_implementation_init_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_init_get")] - public static extern IntPtr switch_codec_implementation_init_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encode_set")] - public static extern void switch_codec_implementation_encode_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encode_get")] - public static extern IntPtr switch_codec_implementation_encode_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_set")] - public static extern void switch_codec_implementation_decode_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_get")] - public static extern IntPtr switch_codec_implementation_decode_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_destroy_set")] - public static extern void switch_codec_implementation_destroy_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_destroy_get")] - public static extern IntPtr switch_codec_implementation_destroy_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_id_set")] - public static extern void switch_codec_implementation_codec_id_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_id_get")] - public static extern uint switch_codec_implementation_codec_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_impl_id_set")] - public static extern void switch_codec_implementation_impl_id_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_impl_id_get")] - public static extern uint switch_codec_implementation_impl_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_next_set")] - public static extern void switch_codec_implementation_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_next_get")] - public static extern IntPtr switch_codec_implementation_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_implementation")] - public static extern IntPtr new_switch_codec_implementation(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_implementation")] - public static extern void delete_switch_codec_implementation(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_interface_name_set")] - public static extern void switch_codec_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_interface_name_get")] - public static extern string switch_codec_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_implementations_set")] - public static extern void switch_codec_interface_implementations_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_implementations_get")] - public static extern IntPtr switch_codec_interface_implementations_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parse_fmtp_set")] - public static extern void switch_codec_interface_parse_fmtp_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parse_fmtp_get")] - public static extern IntPtr switch_codec_interface_parse_fmtp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_codec_id_set")] - public static extern void switch_codec_interface_codec_id_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_codec_id_get")] - public static extern uint switch_codec_interface_codec_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_rwlock_set")] - public static extern void switch_codec_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_rwlock_get")] - public static extern IntPtr switch_codec_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_refs_set")] - public static extern void switch_codec_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_refs_get")] - public static extern int switch_codec_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_reflock_set")] - public static extern void switch_codec_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_reflock_get")] - public static extern IntPtr switch_codec_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parent_set")] - public static extern void switch_codec_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parent_get")] - public static extern IntPtr switch_codec_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_next_set")] - public static extern void switch_codec_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_next_get")] - public static extern IntPtr switch_codec_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_interface")] - public static extern IntPtr new_switch_codec_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_interface")] - public static extern void delete_switch_codec_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_interface_name_set")] - public static extern void switch_application_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_interface_name_get")] - public static extern string switch_application_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_application_function_set")] - public static extern void switch_application_interface_application_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_application_function_get")] - public static extern IntPtr switch_application_interface_application_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_long_desc_set")] - public static extern void switch_application_interface_long_desc_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_long_desc_get")] - public static extern string switch_application_interface_long_desc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_short_desc_set")] - public static extern void switch_application_interface_short_desc_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_short_desc_get")] - public static extern string switch_application_interface_short_desc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_syntax_set")] - public static extern void switch_application_interface_syntax_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_syntax_get")] - public static extern string switch_application_interface_syntax_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_flags_set")] - public static extern void switch_application_interface_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_flags_get")] - public static extern uint switch_application_interface_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_rwlock_set")] - public static extern void switch_application_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_rwlock_get")] - public static extern IntPtr switch_application_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_refs_set")] - public static extern void switch_application_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_refs_get")] - public static extern int switch_application_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_reflock_set")] - public static extern void switch_application_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_reflock_get")] - public static extern IntPtr switch_application_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_parent_set")] - public static extern void switch_application_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_parent_get")] - public static extern IntPtr switch_application_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_next_set")] - public static extern void switch_application_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_next_get")] - public static extern IntPtr switch_application_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_application_interface")] - public static extern IntPtr new_switch_application_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_application_interface")] - public static extern void delete_switch_application_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_interface_name_set")] - public static extern void switch_chat_application_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_interface_name_get")] - public static extern string switch_chat_application_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_chat_application_function_set")] - public static extern void switch_chat_application_interface_chat_application_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_chat_application_function_get")] - public static extern IntPtr switch_chat_application_interface_chat_application_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_long_desc_set")] - public static extern void switch_chat_application_interface_long_desc_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_long_desc_get")] - public static extern string switch_chat_application_interface_long_desc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_short_desc_set")] - public static extern void switch_chat_application_interface_short_desc_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_short_desc_get")] - public static extern string switch_chat_application_interface_short_desc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_syntax_set")] - public static extern void switch_chat_application_interface_syntax_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_syntax_get")] - public static extern string switch_chat_application_interface_syntax_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_flags_set")] - public static extern void switch_chat_application_interface_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_flags_get")] - public static extern uint switch_chat_application_interface_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_rwlock_set")] - public static extern void switch_chat_application_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_rwlock_get")] - public static extern IntPtr switch_chat_application_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_refs_set")] - public static extern void switch_chat_application_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_refs_get")] - public static extern int switch_chat_application_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_reflock_set")] - public static extern void switch_chat_application_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_reflock_get")] - public static extern IntPtr switch_chat_application_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_parent_set")] - public static extern void switch_chat_application_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_parent_get")] - public static extern IntPtr switch_chat_application_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_next_set")] - public static extern void switch_chat_application_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_next_get")] - public static extern IntPtr switch_chat_application_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_chat_application_interface")] - public static extern IntPtr new_switch_chat_application_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_chat_application_interface")] - public static extern void delete_switch_chat_application_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_interface_name_set")] - public static extern void switch_api_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_interface_name_get")] - public static extern string switch_api_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_desc_set")] - public static extern void switch_api_interface_desc_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_desc_get")] - public static extern string switch_api_interface_desc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_function_set")] - public static extern void switch_api_interface_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_function_get")] - public static extern IntPtr switch_api_interface_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_syntax_set")] - public static extern void switch_api_interface_syntax_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_syntax_get")] - public static extern string switch_api_interface_syntax_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_rwlock_set")] - public static extern void switch_api_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_rwlock_get")] - public static extern IntPtr switch_api_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_refs_set")] - public static extern void switch_api_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_refs_get")] - public static extern int switch_api_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_reflock_set")] - public static extern void switch_api_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_reflock_get")] - public static extern IntPtr switch_api_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_parent_set")] - public static extern void switch_api_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_parent_get")] - public static extern IntPtr switch_api_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_next_set")] - public static extern void switch_api_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_next_get")] - public static extern IntPtr switch_api_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_api_interface")] - public static extern IntPtr new_switch_api_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_api_interface")] - public static extern void delete_switch_api_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_interface_name_set")] - public static extern void switch_json_api_interface_interface_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_interface_name_get")] - public static extern string switch_json_api_interface_interface_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_desc_set")] - public static extern void switch_json_api_interface_desc_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_desc_get")] - public static extern string switch_json_api_interface_desc_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_function_set")] - public static extern void switch_json_api_interface_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_function_get")] - public static extern IntPtr switch_json_api_interface_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_syntax_set")] - public static extern void switch_json_api_interface_syntax_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_syntax_get")] - public static extern string switch_json_api_interface_syntax_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_rwlock_set")] - public static extern void switch_json_api_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_rwlock_get")] - public static extern IntPtr switch_json_api_interface_rwlock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_refs_set")] - public static extern void switch_json_api_interface_refs_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_refs_get")] - public static extern int switch_json_api_interface_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_reflock_set")] - public static extern void switch_json_api_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_reflock_get")] - public static extern IntPtr switch_json_api_interface_reflock_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_parent_set")] - public static extern void switch_json_api_interface_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_parent_get")] - public static extern IntPtr switch_json_api_interface_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_next_set")] - public static extern void switch_json_api_interface_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_next_get")] - public static extern IntPtr switch_json_api_interface_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_json_api_interface")] - public static extern IntPtr new_switch_json_api_interface(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_json_api_interface")] - public static extern void delete_switch_json_api_interface(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_session_set")] - public static extern void switch_slin_data_session_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_session_get")] - public static extern IntPtr switch_slin_data_session_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_write_frame_set")] - public static extern void switch_slin_data_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_write_frame_get")] - public static extern IntPtr switch_slin_data_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_codec_set")] - public static extern void switch_slin_data_codec_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_codec_get")] - public static extern IntPtr switch_slin_data_codec_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_frame_data_set")] - public static extern void switch_slin_data_frame_data_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_frame_data_get")] - public static extern string switch_slin_data_frame_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_slin_data")] - public static extern IntPtr new_switch_slin_data(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_slin_data")] - public static extern void delete_switch_slin_data(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_profile_created_set")] - public static extern void switch_channel_timetable_profile_created_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_profile_created_get")] - public static extern IntPtr switch_channel_timetable_profile_created_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_created_set")] - public static extern void switch_channel_timetable_created_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_created_get")] - public static extern IntPtr switch_channel_timetable_created_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_answered_set")] - public static extern void switch_channel_timetable_answered_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_answered_get")] - public static extern IntPtr switch_channel_timetable_answered_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_set")] - public static extern void switch_channel_timetable_progress_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_get")] - public static extern IntPtr switch_channel_timetable_progress_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_media_set")] - public static extern void switch_channel_timetable_progress_media_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_media_get")] - public static extern IntPtr switch_channel_timetable_progress_media_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hungup_set")] - public static extern void switch_channel_timetable_hungup_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hungup_get")] - public static extern IntPtr switch_channel_timetable_hungup_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_transferred_set")] - public static extern void switch_channel_timetable_transferred_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_transferred_get")] - public static extern IntPtr switch_channel_timetable_transferred_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_resurrected_set")] - public static extern void switch_channel_timetable_resurrected_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_resurrected_get")] - public static extern IntPtr switch_channel_timetable_resurrected_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_bridged_set")] - public static extern void switch_channel_timetable_bridged_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_bridged_get")] - public static extern IntPtr switch_channel_timetable_bridged_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_last_hold_set")] - public static extern void switch_channel_timetable_last_hold_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_last_hold_get")] - public static extern IntPtr switch_channel_timetable_last_hold_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hold_accum_set")] - public static extern void switch_channel_timetable_hold_accum_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hold_accum_get")] - public static extern IntPtr switch_channel_timetable_hold_accum_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_next_set")] - public static extern void switch_channel_timetable_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_next_get")] - public static extern IntPtr switch_channel_timetable_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_channel_timetable")] - public static extern IntPtr new_switch_channel_timetable(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_channel_timetable")] - public static extern void delete_switch_channel_timetable(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_state")] - public static extern int switch_channel_get_state(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_running_state")] - public static extern int switch_channel_get_running_state(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_check_signal")] - public static extern int switch_channel_check_signal(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_ready")] - public static extern int switch_channel_test_ready(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_state")] - public static extern void switch_channel_wait_for_state(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_state_timeout")] - public static extern void switch_channel_wait_for_state_timeout(HandleRef jarg1, int jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_flag")] - public static extern int switch_channel_wait_for_flag(HandleRef jarg1, int jarg2, int jarg3, uint jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_set_state")] - public static extern int switch_channel_perform_set_state(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_set_running_state")] - public static extern int switch_channel_perform_set_running_state(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_str2cause")] - public static extern int switch_channel_str2cause(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cause")] - public static extern int switch_channel_get_cause(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_cause_q850")] - public static extern int switch_channel_cause_q850(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cause_q850")] - public static extern int switch_channel_get_cause_q850(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cause_ptr")] - public static extern IntPtr switch_channel_get_cause_ptr(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_cause2str")] - public static extern string switch_channel_cause2str(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_timetable")] - public static extern IntPtr switch_channel_get_timetable(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_alloc")] - public static extern int switch_channel_alloc(HandleRef jarg1, int jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_init")] - public static extern int switch_channel_init(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_presence_data_vals")] - public static extern void switch_channel_set_presence_data_vals(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_presence")] - public static extern void switch_channel_perform_presence(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, int jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_uninit")] - public static extern void switch_channel_uninit(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_caller_profile")] - public static extern void switch_channel_set_caller_profile(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_step_caller_profile")] - public static extern void switch_channel_step_caller_profile(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_caller_profile")] - public static extern IntPtr switch_channel_get_caller_profile(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_originator_caller_profile")] - public static extern void switch_channel_set_originator_caller_profile(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_hunt_caller_profile")] - public static extern void switch_channel_set_hunt_caller_profile(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_originator_caller_profile")] - public static extern IntPtr switch_channel_get_originator_caller_profile(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_originatee_caller_profile")] - public static extern void switch_channel_set_originatee_caller_profile(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_originatee_caller_profile")] - public static extern IntPtr switch_channel_get_originatee_caller_profile(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_origination_caller_profile")] - public static extern void switch_channel_set_origination_caller_profile(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_origination_caller_profile")] - public static extern IntPtr switch_channel_get_origination_caller_profile(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_uuid")] - public static extern string switch_channel_get_uuid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_profile_var")] - public static extern int switch_channel_set_profile_var(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_var_check")] - public static extern int switch_channel_set_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_add_variable_var_check")] - public static extern int switch_channel_add_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_printf")] - public static extern int switch_channel_set_variable_printf(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_name_printf")] - public static extern int switch_channel_set_variable_name_printf(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_partner_var_check")] - public static extern int switch_channel_set_variable_partner_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_partner")] - public static extern string switch_channel_get_variable_partner(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_music")] - public static extern string switch_channel_get_hold_music(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_music_partner")] - public static extern string switch_channel_get_hold_music_partner(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_del_variable_prefix")] - public static extern uint switch_channel_del_variable_prefix(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_transfer_variable_prefix")] - public static extern int switch_channel_transfer_variable_prefix(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_export_variable_var_check")] - public static extern int switch_channel_export_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_process_export")] - public static extern void switch_channel_process_export(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_export_variable_printf")] - public static extern int switch_channel_export_variable_printf(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_scope_variables")] - public static extern void switch_channel_set_scope_variables(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_scope_variables")] - public static extern int switch_channel_get_scope_variables(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_dup")] - public static extern string switch_channel_get_variable_dup(HandleRef jarg1, string jarg2, int jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variables")] - public static extern int switch_channel_get_variables(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_pass_callee_id")] - public static extern int switch_channel_pass_callee_id(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_variable_first")] - public static extern IntPtr switch_channel_variable_first(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_variable_last")] - public static extern void switch_channel_variable_last(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_restart")] - public static extern void switch_channel_restart(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_caller_extension_masquerade")] - public static extern int switch_channel_caller_extension_masquerade(HandleRef jarg1, HandleRef jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_caller_extension")] - public static extern void switch_channel_set_caller_extension(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_invert_cid")] - public static extern void switch_channel_invert_cid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_flip_cid")] - public static extern void switch_channel_flip_cid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_sort_cid")] - public static extern void switch_channel_sort_cid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_caller_extension")] - public static extern IntPtr switch_channel_get_caller_extension(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_flag")] - public static extern uint switch_channel_test_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_value")] - public static extern void switch_channel_set_flag_value(HandleRef jarg1, int jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_recursive")] - public static extern void switch_channel_set_flag_recursive(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_cap_value")] - public static extern void switch_channel_set_cap_value(HandleRef jarg1, int jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_cap")] - public static extern void switch_channel_clear_cap(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_cap")] - public static extern uint switch_channel_test_cap(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_cap_partner")] - public static extern uint switch_channel_test_cap_partner(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_partner")] - public static extern int switch_channel_set_flag_partner(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_flag_partner")] - public static extern int switch_channel_clear_flag_partner(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_flag_partner")] - public static extern uint switch_channel_test_flag_partner(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_state_flag")] - public static extern void switch_channel_set_state_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_state_flag")] - public static extern void switch_channel_clear_state_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_flag")] - public static extern void switch_channel_clear_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_flag_recursive")] - public static extern void switch_channel_clear_flag_recursive(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_answer")] - public static extern int switch_channel_perform_answer(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_mark_answered")] - public static extern int switch_channel_perform_mark_answered(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_check_zrtp")] - public static extern void switch_channel_check_zrtp(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_ring_ready_value")] - public static extern int switch_channel_perform_ring_ready_value(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_pre_answer")] - public static extern int switch_channel_perform_pre_answer(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_mark_pre_answered")] - public static extern int switch_channel_perform_mark_pre_answered(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_mark_ring_ready_value")] - public static extern int switch_channel_perform_mark_ring_ready_value(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_add_state_handler")] - public static extern int switch_channel_add_state_handler(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_state_handler")] - public static extern void switch_channel_clear_state_handler(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_state_handler")] - public static extern IntPtr switch_channel_get_state_handler(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_private")] - public static extern int switch_channel_set_private(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_private")] - public static extern IntPtr switch_channel_get_private(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_private_partner")] - public static extern IntPtr switch_channel_get_private_partner(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_name")] - public static extern int switch_channel_set_name(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_name")] - public static extern string switch_channel_get_name(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_hangup")] - public static extern int switch_channel_perform_hangup(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_has_dtmf")] - public static extern IntPtr switch_channel_has_dtmf(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dtmf_lock")] - public static extern int switch_channel_dtmf_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_try_dtmf_lock")] - public static extern int switch_channel_try_dtmf_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dtmf_unlock")] - public static extern int switch_channel_dtmf_unlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_queue_dtmf")] - public static extern int switch_channel_queue_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_queue_dtmf_string")] - public static extern int switch_channel_queue_dtmf_string(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dequeue_dtmf")] - public static extern int switch_channel_dequeue_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_flush_dtmf")] - public static extern void switch_channel_flush_dtmf(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dequeue_dtmf_string")] - public static extern IntPtr switch_channel_dequeue_dtmf_string(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_name")] - public static extern string switch_channel_state_name(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_name_state")] - public static extern int switch_channel_name_state(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_event_set_data")] - public static extern void switch_channel_event_set_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_event_set_basic_data")] - public static extern void switch_channel_event_set_basic_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_event_set_extended_data")] - public static extern void switch_channel_event_set_extended_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_expand_variables_check")] - public static extern string switch_channel_expand_variables_check(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_build_param_string")] - public static extern string switch_channel_build_param_string(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_timestamps")] - public static extern int switch_channel_set_timestamps(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_audio_sync")] - public static extern void switch_channel_perform_audio_sync(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_private_flag")] - public static extern void switch_channel_set_private_flag(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_private_flag")] - public static extern void switch_channel_clear_private_flag(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_private_flag")] - public static extern int switch_channel_test_private_flag(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_app_flag_key")] - public static extern void switch_channel_set_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_app_flag_key")] - public static extern void switch_channel_clear_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_app_flag_key")] - public static extern int switch_channel_test_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_bridge_time")] - public static extern void switch_channel_set_bridge_time(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_hangup_time")] - public static extern void switch_channel_set_hangup_time(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_direction")] - public static extern int switch_channel_direction(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_logical_direction")] - public static extern int switch_channel_logical_direction(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_direction")] - public static extern void switch_channel_set_direction(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_session")] - public static extern IntPtr switch_channel_get_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_flag_string")] - public static extern string switch_channel_get_flag_string(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cap_string")] - public static extern string switch_channel_get_cap_string(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_change_pending")] - public static extern int switch_channel_state_change_pending(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_set_callstate")] - public static extern void switch_channel_perform_set_callstate(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_callstate")] - public static extern int switch_channel_get_callstate(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_callstate2str")] - public static extern string switch_channel_callstate2str(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_str2callstate")] - public static extern int switch_channel_str2callstate(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_mark_hold")] - public static extern void switch_channel_mark_hold(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_execute_on")] - public static extern int switch_channel_execute_on(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_api_on")] - public static extern int switch_channel_api_on(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_process_device_hangup")] - public static extern void switch_channel_process_device_hangup(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_queued_extension")] - public static extern IntPtr switch_channel_get_queued_extension(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_transfer_to_extension")] - public static extern void switch_channel_transfer_to_extension(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_partner_uuid")] - public static extern string switch_channel_get_partner_uuid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_record")] - public static extern IntPtr switch_channel_get_hold_record(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_lock")] - public static extern void switch_channel_state_thread_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_unlock")] - public static extern void switch_channel_state_thread_unlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_trylock")] - public static extern int switch_channel_state_thread_trylock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_handle_cause")] - public static extern void switch_channel_handle_cause(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_global_init")] - public static extern void switch_channel_global_init(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_global_uninit")] - public static extern void switch_channel_global_uninit(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_device_id")] - public static extern string switch_channel_set_device_id(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_device_record")] - public static extern void switch_channel_clear_device_record(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_device_record")] - public static extern IntPtr switch_channel_get_device_record(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_release_device_record")] - public static extern void switch_channel_release_device_record(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_bind_device_state_handler")] - public static extern int switch_channel_bind_device_state_handler(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_unbind_device_state_handler")] - public static extern int switch_channel_unbind_device_state_handler(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_device_state2str")] - public static extern string switch_channel_device_state2str(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")] - public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create_dynamic")] - public static extern int switch_buffer_create_dynamic(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_add_mutex")] - public static extern void switch_buffer_add_mutex(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_lock")] - public static extern void switch_buffer_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_trylock")] - public static extern int switch_buffer_trylock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_unlock")] - public static extern void switch_buffer_unlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_len")] - public static extern IntPtr switch_buffer_len(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_freespace")] - public static extern IntPtr switch_buffer_freespace(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_inuse")] - public static extern IntPtr switch_buffer_inuse(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_read")] - public static extern IntPtr switch_buffer_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_peek")] - public static extern IntPtr switch_buffer_peek(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_peek_zerocopy")] - public static extern IntPtr switch_buffer_peek_zerocopy(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_read_loop")] - public static extern IntPtr switch_buffer_read_loop(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_set_loops")] - public static extern void switch_buffer_set_loops(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_write")] - public static extern IntPtr switch_buffer_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_toss")] - public static extern IntPtr switch_buffer_toss(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_zero")] - public static extern void switch_buffer_zero(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_slide_write")] - public static extern IntPtr switch_buffer_slide_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_destroy")] - public static extern void switch_buffer_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_zwrite")] - public static extern IntPtr switch_buffer_zwrite(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_name_set")] - public static extern void switch_event_header_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_name_get")] - public static extern string switch_event_header_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_value_set")] - public static extern void switch_event_header_value_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_value_get")] - public static extern string switch_event_header_value_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_array_set")] - public static extern void switch_event_header_array_set(HandleRef jarg1, ref string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_array_get")] - public static extern string switch_event_header_array_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_idx_set")] - public static extern void switch_event_header_idx_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_idx_get")] - public static extern int switch_event_header_idx_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_hash_set")] - public static extern void switch_event_header_hash_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_hash_get")] - public static extern uint switch_event_header_hash_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_next_set")] - public static extern void switch_event_header_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_next_get")] - public static extern IntPtr switch_event_header_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_event_header")] - public static extern IntPtr new_switch_event_header(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_event_header")] - public static extern void delete_switch_event_header(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_id_set")] - public static extern void switch_event_event_id_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_id_get")] - public static extern int switch_event_event_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_priority_set")] - public static extern void switch_event_priority_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_priority_get")] - public static extern int switch_event_priority_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_owner_set")] - public static extern void switch_event_owner_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_owner_get")] - public static extern string switch_event_owner_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_subclass_name_set")] - public static extern void switch_event_subclass_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_subclass_name_get")] - public static extern string switch_event_subclass_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_headers_set")] - public static extern void switch_event_headers_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_headers_get")] - public static extern IntPtr switch_event_headers_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_last_header_set")] - public static extern void switch_event_last_header_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_last_header_get")] - public static extern IntPtr switch_event_last_header_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_body_set")] - public static extern void switch_event_body_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_body_get")] - public static extern string switch_event_body_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_user_data_set")] - public static extern void switch_event_bind_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_user_data_get")] - public static extern IntPtr switch_event_bind_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_user_data_set")] - public static extern void switch_event_event_user_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_user_data_get")] - public static extern IntPtr switch_event_event_user_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_key_set")] - public static extern void switch_event_key_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_key_get")] - public static extern uint switch_event_key_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_next_set")] - public static extern void switch_event_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_next_get")] - public static extern IntPtr switch_event_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_flags_set")] - public static extern void switch_event_flags_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_flags_get")] - public static extern int switch_event_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_event")] - public static extern IntPtr new_switch_event(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_event")] - public static extern void delete_switch_event(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_event_id_set")] - public static extern void switch_serial_event_t_event_id_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_event_id_get")] - public static extern int switch_serial_event_t_event_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_priority_set")] - public static extern void switch_serial_event_t_priority_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_priority_get")] - public static extern int switch_serial_event_t_priority_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_flags_set")] - public static extern void switch_serial_event_t_flags_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_flags_get")] - public static extern int switch_serial_event_t_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_owner_set")] - public static extern void switch_serial_event_t_owner_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_owner_get")] - public static extern string switch_serial_event_t_owner_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_subclass_name_set")] - public static extern void switch_serial_event_t_subclass_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_subclass_name_get")] - public static extern string switch_serial_event_t_subclass_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_body_set")] - public static extern void switch_serial_event_t_body_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_body_get")] - public static extern string switch_serial_event_t_body_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_serial_event_t")] - public static extern IntPtr new_switch_serial_event_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_serial_event_t")] - public static extern void delete_switch_serial_event_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_name_set")] - public static extern void switch_serial_event_header_t_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_name_get")] - public static extern string switch_serial_event_header_t_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_value_set")] - public static extern void switch_serial_event_header_t_value_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_value_get")] - public static extern string switch_serial_event_header_t_value_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_serial_event_header_t")] - public static extern IntPtr new_switch_serial_event_header_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_serial_event_header_t")] - public static extern void delete_switch_serial_event_header_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_init")] - public static extern int switch_event_init(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_shutdown")] - public static extern int switch_event_shutdown(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_subclass_detailed")] - public static extern int switch_event_create_subclass_detailed(string jarg1, string jarg2, int jarg3, HandleRef jarg4, int jarg5, string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_priority")] - public static extern int switch_event_set_priority(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header_ptr")] - public static extern IntPtr switch_event_get_header_ptr(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header_idx")] - public static extern string switch_event_get_header_idx(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_rename_header")] - public static extern int switch_event_rename_header(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_body")] - public static extern string switch_event_get_body(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_subclass_name")] - public static extern int switch_event_set_subclass_name(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_add_header_string")] - public static extern int switch_event_add_header_string(HandleRef jarg1, int jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_del_header_val")] - public static extern int switch_event_del_header_val(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_add_array")] - public static extern int switch_event_add_array(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_destroy")] - public static extern void switch_event_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_dup")] - public static extern int switch_event_dup(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_merge")] - public static extern void switch_event_merge(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_dup_reply")] - public static extern int switch_event_dup_reply(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_fire_detailed")] - public static extern int switch_event_fire_detailed(string jarg1, string jarg2, int jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_prep_for_delivery_detailed")] - public static extern void switch_event_prep_for_delivery_detailed(string jarg1, string jarg2, int jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind")] - public static extern int switch_event_bind(string jarg1, int jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_removable")] - public static extern int switch_event_bind_removable(string jarg1, int jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_unbind")] - public static extern int switch_event_unbind(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_unbind_callback")] - public static extern int switch_event_unbind_callback(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_name")] - public static extern string switch_event_name(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_name_event")] - public static extern int switch_name_event(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_reserve_subclass_detailed")] - public static extern int switch_event_reserve_subclass_detailed(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_free_subclass_detailed")] - public static extern int switch_event_free_subclass_detailed(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_binary_deserialize")] - public static extern int switch_event_binary_deserialize(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_binary_serialize")] - public static extern int switch_event_binary_serialize(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_serialize")] - public static extern int switch_event_serialize(HandleRef jarg1, ref string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_serialize_json")] - public static extern int switch_event_serialize_json(HandleRef jarg1, ref string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_serialize_json_obj")] - public static extern int switch_event_serialize_json_obj(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_json")] - public static extern int switch_event_create_json(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_brackets")] - public static extern int switch_event_create_brackets(string jarg1, char jarg2, char jarg3, char jarg4, HandleRef jarg5, ref string jarg6, int jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_array_pair")] - public static extern int switch_event_create_array_pair(HandleRef jarg1, ref string jarg2, ref string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_running")] - public static extern int switch_event_running(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_body")] - public static extern int switch_event_set_body(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_expand_headers_check")] - public static extern string switch_event_expand_headers_check(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_pres_in_detailed")] - public static extern int switch_event_create_pres_in_detailed(string jarg1, string jarg2, int jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, int jarg11, string jarg12, string jarg13, string jarg14, string jarg15); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_plain")] - public static extern int switch_event_create_plain(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_deliver")] - public static extern void switch_event_deliver(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_build_param_string")] - public static extern string switch_event_build_param_string(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_check_permission_list")] - public static extern int switch_event_check_permission_list(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_add_presence_data_cols")] - public static extern void switch_event_add_presence_data_cols(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_json_add_presence_data_cols")] - public static extern void switch_json_add_presence_data_cols(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_launch_dispatch_threads")] - public static extern void switch_event_launch_dispatch_threads(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_broadcast")] - public static extern uint switch_event_channel_broadcast(string jarg1, HandleRef jarg2, string jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_unbind")] - public static extern uint switch_event_channel_unbind(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_bind")] - public static extern int switch_event_channel_bind(string jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_NO_EVENT_CHANNEL_ID_get")] - public static extern int NO_EVENT_CHANNEL_ID_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EVENT_CHANNEL_GLOBAL_get")] - public static extern string SWITCH_EVENT_CHANNEL_GLOBAL_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_clear")] - public static extern int switch_live_array_clear(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_bootstrap")] - public static extern int switch_live_array_bootstrap(HandleRef jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_destroy")] - public static extern int switch_live_array_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_create")] - public static extern int switch_live_array_create(string jarg1, string jarg2, uint jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_get")] - public static extern IntPtr switch_live_array_get(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_get_idx")] - public static extern IntPtr switch_live_array_get_idx(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_del")] - public static extern int switch_live_array_del(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_add")] - public static extern int switch_live_array_add(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_visible")] - public static extern int switch_live_array_visible(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_isnew")] - public static extern int switch_live_array_isnew(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_lock")] - public static extern void switch_live_array_lock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_unlock")] - public static extern void switch_live_array_unlock(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_set_user_data")] - public static extern void switch_live_array_set_user_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_set_command_handler")] - public static extern void switch_live_array_set_command_handler(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_parse_json")] - public static extern void switch_live_array_parse_json(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_add_alias")] - public static extern int switch_live_array_add_alias(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_clear_alias")] - public static extern int switch_live_array_clear_alias(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_permission_verify")] - public static extern int switch_event_channel_permission_verify(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_permission_modify")] - public static extern void switch_event_channel_permission_modify(string jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_permission_clear")] - public static extern void switch_event_channel_permission_clear(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RESAMPLE_QUALITY_get")] - public static extern int SWITCH_RESAMPLE_QUALITY_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_resampler_set")] - public static extern void switch_audio_resampler_t_resampler_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_resampler_get")] - public static extern IntPtr switch_audio_resampler_t_resampler_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_from_rate_set")] - public static extern void switch_audio_resampler_t_from_rate_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_from_rate_get")] - public static extern int switch_audio_resampler_t_from_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_rate_set")] - public static extern void switch_audio_resampler_t_to_rate_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_rate_get")] - public static extern int switch_audio_resampler_t_to_rate_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_factor_set")] - public static extern void switch_audio_resampler_t_factor_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_factor_get")] - public static extern double switch_audio_resampler_t_factor_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_rfactor_set")] - public static extern void switch_audio_resampler_t_rfactor_set(HandleRef jarg1, double jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_rfactor_get")] - public static extern double switch_audio_resampler_t_rfactor_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_set")] - public static extern void switch_audio_resampler_t_to_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_get")] - public static extern IntPtr switch_audio_resampler_t_to_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_len_set")] - public static extern void switch_audio_resampler_t_to_len_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_len_get")] - public static extern uint switch_audio_resampler_t_to_len_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_size_set")] - public static extern void switch_audio_resampler_t_to_size_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_size_get")] - public static extern uint switch_audio_resampler_t_to_size_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_channels_set")] - public static extern void switch_audio_resampler_t_channels_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_channels_get")] - public static extern int switch_audio_resampler_t_channels_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_audio_resampler_t")] - public static extern IntPtr new_switch_audio_resampler_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_audio_resampler_t")] - public static extern void delete_switch_audio_resampler_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_resample_perform_create")] - public static extern int switch_resample_perform_create(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, int jarg5, uint jarg6, string jarg7, string jarg8, int jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_resample_destroy")] - public static extern void switch_resample_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_resample_process")] - public static extern uint switch_resample_process(HandleRef jarg1, HandleRef jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_float_to_short")] - public static extern IntPtr switch_float_to_short(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_char_to_float")] - public static extern int switch_char_to_float(string jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_float_to_char")] - public static extern int switch_float_to_char(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_short_to_float")] - public static extern int switch_short_to_float(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_swap_linear")] - public static extern void switch_swap_linear(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_generate_sln_silence")] - public static extern void switch_generate_sln_silence(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_change_sln_volume")] - public static extern void switch_change_sln_volume(HandleRef jarg1, uint jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_change_sln_volume_granular")] - public static extern void switch_change_sln_volume_granular(HandleRef jarg1, uint jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_merge_sln")] - public static extern uint switch_merge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unmerge_sln")] - public static extern uint switch_unmerge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mux_channels")] - public static extern void switch_mux_channels(HandleRef jarg1, HandleRef jarg2, uint jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_session_set")] - public static extern void switch_unicast_conninfo_session_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_session_get")] - public static extern IntPtr switch_unicast_conninfo_session_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_read_codec_set")] - public static extern void switch_unicast_conninfo_read_codec_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_read_codec_get")] - public static extern IntPtr switch_unicast_conninfo_read_codec_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_set")] - public static extern void switch_unicast_conninfo_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_get")] - public static extern IntPtr switch_unicast_conninfo_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_data_set")] - public static extern void switch_unicast_conninfo_write_frame_data_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_data_get")] - public static extern IntPtr switch_unicast_conninfo_write_frame_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_socket_set")] - public static extern void switch_unicast_conninfo_socket_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_socket_get")] - public static extern IntPtr switch_unicast_conninfo_socket_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_ip_set")] - public static extern void switch_unicast_conninfo_local_ip_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_ip_get")] - public static extern string switch_unicast_conninfo_local_ip_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_port_set")] - public static extern void switch_unicast_conninfo_local_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_port_get")] - public static extern ushort switch_unicast_conninfo_local_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_ip_set")] - public static extern void switch_unicast_conninfo_remote_ip_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_ip_get")] - public static extern string switch_unicast_conninfo_remote_ip_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_port_set")] - public static extern void switch_unicast_conninfo_remote_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_port_get")] - public static extern ushort switch_unicast_conninfo_remote_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_addr_set")] - public static extern void switch_unicast_conninfo_local_addr_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_addr_get")] - public static extern IntPtr switch_unicast_conninfo_local_addr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_addr_set")] - public static extern void switch_unicast_conninfo_remote_addr_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_addr_get")] - public static extern IntPtr switch_unicast_conninfo_remote_addr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flag_mutex_set")] - public static extern void switch_unicast_conninfo_flag_mutex_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flag_mutex_get")] - public static extern IntPtr switch_unicast_conninfo_flag_mutex_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flags_set")] - public static extern void switch_unicast_conninfo_flags_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flags_get")] - public static extern int switch_unicast_conninfo_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_type_set")] - public static extern void switch_unicast_conninfo_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_type_get")] - public static extern int switch_unicast_conninfo_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_transport_set")] - public static extern void switch_unicast_conninfo_transport_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_transport_get")] - public static extern int switch_unicast_conninfo_transport_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_stream_id_set")] - public static extern void switch_unicast_conninfo_stream_id_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_stream_id_get")] - public static extern int switch_unicast_conninfo_stream_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_unicast_conninfo")] - public static extern IntPtr new_switch_unicast_conninfo(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_unicast_conninfo")] - public static extern void delete_switch_unicast_conninfo(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_deactivate_unicast")] - public static extern int switch_ivr_deactivate_unicast(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_activate_unicast")] - public static extern int switch_ivr_activate_unicast(HandleRef jarg1, string jarg2, ushort jarg3, string jarg4, ushort jarg5, string jarg6, string jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_generate_json_cdr")] - public static extern int switch_ivr_generate_json_cdr(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_generate_xml_cdr")] - public static extern int switch_ivr_generate_xml_cdr(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_xml_profile_data")] - public static extern int switch_ivr_set_xml_profile_data(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_xml_chan_vars")] - public static extern int switch_ivr_set_xml_chan_vars(HandleRef jarg1, HandleRef jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_event")] - public static extern int switch_ivr_parse_event(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_events")] - public static extern int switch_ivr_parse_all_events(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_next_event")] - public static extern int switch_ivr_parse_next_event(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_messages")] - public static extern int switch_ivr_parse_all_messages(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_signal_data")] - public static extern int switch_ivr_parse_all_signal_data(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_process_indications")] - public static extern int switch_ivr_process_indications(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_sleep")] - public static extern int switch_ivr_sleep(HandleRef jarg1, uint jarg2, int jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_park")] - public static extern int switch_ivr_park(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_collect_digits_callback")] - public static extern int switch_ivr_collect_digits_callback(HandleRef jarg1, HandleRef jarg2, uint jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_collect_digits_count")] - public static extern int switch_ivr_collect_digits_count(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, string jarg5, string jarg6, uint jarg7, uint jarg8, uint jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_play_and_detect_speech")] - public static extern int switch_ivr_play_and_detect_speech(HandleRef jarg1, string jarg2, string jarg3, string jarg4, ref string jarg5, uint jarg6, HandleRef jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_init")] - public static extern int switch_ivr_detect_speech_init(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech")] - public static extern int switch_ivr_detect_speech(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_detect_speech")] - public static extern int switch_ivr_stop_detect_speech(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_pause_detect_speech")] - public static extern int switch_ivr_pause_detect_speech(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_resume_detect_speech")] - public static extern int switch_ivr_resume_detect_speech(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_load_grammar")] - public static extern int switch_ivr_detect_speech_load_grammar(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_unload_grammar")] - public static extern int switch_ivr_detect_speech_unload_grammar(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_enable_grammar")] - public static extern int switch_ivr_detect_speech_enable_grammar(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_disable_grammar")] - public static extern int switch_ivr_detect_speech_disable_grammar(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_disable_all_grammars")] - public static extern int switch_ivr_detect_speech_disable_all_grammars(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_param_detect_speech")] - public static extern int switch_ivr_set_param_detect_speech(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_start_input_timers")] - public static extern int switch_ivr_detect_speech_start_input_timers(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_record_session")] - public static extern int switch_ivr_record_session(HandleRef jarg1, string jarg2, uint jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_transfer_recordings")] - public static extern int switch_ivr_transfer_recordings(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_pop_eavesdropper")] - public static extern int switch_ivr_eavesdrop_pop_eavesdropper(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_exec_all")] - public static extern int switch_ivr_eavesdrop_exec_all(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_update_display")] - public static extern int switch_ivr_eavesdrop_update_display(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_session")] - public static extern int switch_ivr_eavesdrop_session(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_displace_session")] - public static extern int switch_ivr_displace_session(HandleRef jarg1, string jarg2, uint jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_displace_session")] - public static extern int switch_ivr_stop_displace_session(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_record_session")] - public static extern int switch_ivr_stop_record_session(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_audio")] - public static extern int switch_ivr_session_audio(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_session_audio")] - public static extern int switch_ivr_stop_session_audio(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_inband_dtmf_session")] - public static extern int switch_ivr_inband_dtmf_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_inband_dtmf_session")] - public static extern int switch_ivr_stop_inband_dtmf_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_inband_dtmf_generate_session")] - public static extern int switch_ivr_inband_dtmf_generate_session(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_inband_dtmf_generate_session")] - public static extern int switch_ivr_stop_inband_dtmf_generate_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_echo")] - public static extern int switch_ivr_session_echo(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_tone_detect_session")] - public static extern int switch_ivr_stop_tone_detect_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_tone_detect_session")] - public static extern int switch_ivr_tone_detect_session(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, int jarg6, string jarg7, string jarg8, HandleRef jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_play_file")] - public static extern int switch_ivr_play_file(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_wait_for_silence")] - public static extern int switch_ivr_wait_for_silence(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_gentones")] - public static extern int switch_ivr_gentones(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_record_file")] - public static extern int switch_ivr_record_file(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4, uint jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_play_and_get_digits")] - public static extern int switch_play_and_get_digits(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, uint jarg11, string jarg12, uint jarg13, string jarg14); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_speak_text_handle")] - public static extern int switch_ivr_speak_text_handle(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_clear_speech_cache")] - public static extern void switch_ivr_clear_speech_cache(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_speak_text")] - public static extern int switch_ivr_speak_text(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_originate")] - public static extern int switch_ivr_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11, HandleRef jarg12); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_enterprise_originate")] - public static extern int switch_ivr_enterprise_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11, HandleRef jarg12); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_bridge_display")] - public static extern void switch_ivr_bridge_display(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_multi_threaded_bridge")] - public static extern int switch_ivr_multi_threaded_bridge(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_signal_bridge")] - public static extern int switch_ivr_signal_bridge(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_transfer")] - public static extern int switch_ivr_session_transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_schedule_transfer")] - public static extern uint switch_ivr_schedule_transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_schedule_hangup")] - public static extern uint switch_ivr_schedule_hangup(HandleRef jarg1, string jarg2, int jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_uuid_bridge")] - public static extern int switch_ivr_uuid_bridge(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_media")] - public static extern int switch_ivr_media(string jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_nomedia")] - public static extern int switch_ivr_nomedia(string jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_hold_uuid")] - public static extern int switch_ivr_hold_uuid(string jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_hold_toggle_uuid")] - public static extern int switch_ivr_hold_toggle_uuid(string jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unhold_uuid")] - public static extern int switch_ivr_unhold_uuid(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_hold")] - public static extern int switch_ivr_hold(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unhold")] - public static extern int switch_ivr_unhold(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_schedule_broadcast")] - public static extern uint switch_ivr_schedule_broadcast(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_broadcast")] - public static extern int switch_ivr_broadcast(string jarg1, string jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_broadcast_in_thread")] - public static extern void switch_ivr_broadcast_in_thread(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_transfer_variable")] - public static extern int switch_ivr_transfer_variable(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_new")] - public static extern int switch_ivr_digit_stream_parser_new(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_destroy")] - public static extern int switch_ivr_digit_stream_parser_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_new")] - public static extern int switch_ivr_digit_stream_new(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_destroy")] - public static extern int switch_ivr_digit_stream_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_set_event")] - public static extern int switch_ivr_digit_stream_parser_set_event(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_del_event")] - public static extern int switch_ivr_digit_stream_parser_del_event(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_feed")] - public static extern IntPtr switch_ivr_digit_stream_parser_feed(HandleRef jarg1, HandleRef jarg2, char jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_reset")] - public static extern int switch_ivr_digit_stream_reset(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_set_terminator")] - public static extern int switch_ivr_digit_stream_parser_set_terminator(HandleRef jarg1, char jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_init")] - public static extern int switch_ivr_menu_init(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, string jarg11, string jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17, int jarg18, HandleRef jarg19); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_bind_action")] - public static extern int switch_ivr_menu_bind_action(HandleRef jarg1, int jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_bind_function")] - public static extern int switch_ivr_menu_bind_function(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_execute")] - public static extern int switch_ivr_menu_execute(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_free")] - public static extern int switch_ivr_menu_stack_free(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_xml_build")] - public static extern int switch_ivr_menu_stack_xml_build(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_str2action")] - public static extern int switch_ivr_menu_str2action(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_xml_add_custom")] - public static extern int switch_ivr_menu_stack_xml_add_custom(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_xml_init")] - public static extern int switch_ivr_menu_stack_xml_init(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_phrase_macro_event")] - public static extern int switch_ivr_phrase_macro_event(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_delay_echo")] - public static extern void switch_ivr_delay_echo(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_find_bridged_uuid")] - public static extern int switch_ivr_find_bridged_uuid(string jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_intercept_session")] - public static extern void switch_ivr_intercept_session(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_park_session")] - public static extern void switch_ivr_park_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_wait_for_answer")] - public static extern int switch_ivr_wait_for_answer(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_read")] - public static extern int switch_ivr_read(HandleRef jarg1, uint jarg2, uint jarg3, string jarg4, string jarg5, string jarg6, HandleRef jarg7, uint jarg8, string jarg9, uint jarg10); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_block_dtmf_session")] - public static extern int switch_ivr_block_dtmf_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unblock_dtmf_session")] - public static extern int switch_ivr_unblock_dtmf_session(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_bind_dtmf_meta_session")] - public static extern int switch_ivr_bind_dtmf_meta_session(HandleRef jarg1, uint jarg2, uint jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unbind_dtmf_meta_session")] - public static extern int switch_ivr_unbind_dtmf_meta_session(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_soft_hold")] - public static extern int switch_ivr_soft_hold(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say")] - public static extern int switch_ivr_say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, HandleRef jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say_string")] - public static extern int switch_ivr_say_string(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, ref string jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_method_by_name")] - public static extern int switch_ivr_get_say_method_by_name(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_gender_by_name")] - public static extern int switch_ivr_get_say_gender_by_name(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_type_by_name")] - public static extern int switch_ivr_get_say_type_by_name(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say_spell")] - public static extern int switch_ivr_say_spell(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say_ip")] - public static extern int switch_ivr_say_ip(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user")] - public static extern int switch_ivr_set_user(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user_xml")] - public static extern int switch_ivr_set_user_xml(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_sound_test")] - public static extern int switch_ivr_sound_test(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_process_import")] - public static extern void switch_process_import(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_uuid_exists")] - public static extern int switch_ivr_uuid_exists(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_uuid_force_exists")] - public static extern int switch_ivr_uuid_force_exists(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_is_parsing")] - public static extern int switch_ivr_dmachine_is_parsing(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_last_ping")] - public static extern int switch_ivr_dmachine_last_ping(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_name")] - public static extern string switch_ivr_dmachine_get_name(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_match_callback")] - public static extern void switch_ivr_dmachine_set_match_callback(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_nonmatch_callback")] - public static extern void switch_ivr_dmachine_set_nonmatch_callback(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_create")] - public static extern int switch_ivr_dmachine_create(HandleRef jarg1, string jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_destroy")] - public static extern void switch_ivr_dmachine_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_bind")] - public static extern int switch_ivr_dmachine_bind(HandleRef jarg1, string jarg2, string jarg3, int jarg4, HandleRef jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_feed")] - public static extern int switch_ivr_dmachine_feed(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_clear")] - public static extern int switch_ivr_dmachine_clear(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_ping")] - public static extern int switch_ivr_dmachine_ping(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_match")] - public static extern IntPtr switch_ivr_dmachine_get_match(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_failed_digits")] - public static extern string switch_ivr_dmachine_get_failed_digits(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_digit_timeout_ms")] - public static extern void switch_ivr_dmachine_set_digit_timeout_ms(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_input_timeout_ms")] - public static extern void switch_ivr_dmachine_set_input_timeout_ms(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_clear_realm")] - public static extern int switch_ivr_dmachine_clear_realm(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_realm")] - public static extern int switch_ivr_dmachine_set_realm(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_file_handle")] - public static extern int switch_ivr_get_file_handle(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_release_file_handle")] - public static extern int switch_ivr_release_file_handle(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_process_fh")] - public static extern int switch_ivr_process_fh(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_insert_file")] - public static extern int switch_ivr_insert_file(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_create_message_reply")] - public static extern int switch_ivr_create_message_reply(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_check_presence_mapping")] - public static extern string switch_ivr_check_presence_mapping(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_kill_uuid")] - public static extern int switch_ivr_kill_uuid(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_blind_transfer_ack")] - public static extern int switch_ivr_blind_transfer_ack(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_record_session_mask")] - public static extern int switch_ivr_record_session_mask(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_BUF_LEN_get")] - public static extern int SWITCH_RTP_MAX_BUF_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTCP_MAX_BUF_LEN_get")] - public static extern int SWITCH_RTCP_MAX_BUF_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_BUF_LEN_WORDS_get")] - public static extern int SWITCH_RTP_MAX_BUF_LEN_WORDS_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_CRYPTO_LEN_get")] - public static extern int SWITCH_RTP_MAX_CRYPTO_LEN_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_CRYPTO_KEY_80_get")] - public static extern string SWITCH_RTP_CRYPTO_KEY_80_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_name_set")] - public static extern void switch_srtp_crypto_suite_t_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_name_get")] - public static extern string switch_srtp_crypto_suite_t_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_type_set")] - public static extern void switch_srtp_crypto_suite_t_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_type_get")] - public static extern int switch_srtp_crypto_suite_t_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_keylen_set")] - public static extern void switch_srtp_crypto_suite_t_keylen_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_keylen_get")] - public static extern int switch_srtp_crypto_suite_t_keylen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_srtp_crypto_suite_t")] - public static extern IntPtr new_switch_srtp_crypto_suite_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_srtp_crypto_suite_t")] - public static extern void delete_switch_srtp_crypto_suite_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_index_set")] - public static extern void switch_rtp_crypto_key_index_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_index_get")] - public static extern uint switch_rtp_crypto_key_index_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_type_set")] - public static extern void switch_rtp_crypto_key_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_type_get")] - public static extern int switch_rtp_crypto_key_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_key_set")] - public static extern void switch_rtp_crypto_key_key_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_key_get")] - public static extern IntPtr switch_rtp_crypto_key_key_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_keylen_set")] - public static extern void switch_rtp_crypto_key_keylen_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_keylen_get")] - public static extern IntPtr switch_rtp_crypto_key_keylen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_next_set")] - public static extern void switch_rtp_crypto_key_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_next_get")] - public static extern IntPtr switch_rtp_crypto_key_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_crypto_key")] - public static extern IntPtr new_switch_rtp_crypto_key(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_crypto_key")] - public static extern void delete_switch_rtp_crypto_key(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_foundation_set")] - public static extern void icand_t_foundation_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_foundation_get")] - public static extern string icand_t_foundation_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_component_id_set")] - public static extern void icand_t_component_id_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_component_id_get")] - public static extern int icand_t_component_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_transport_set")] - public static extern void icand_t_transport_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_transport_get")] - public static extern string icand_t_transport_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_priority_set")] - public static extern void icand_t_priority_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_priority_get")] - public static extern uint icand_t_priority_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_addr_set")] - public static extern void icand_t_con_addr_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_addr_get")] - public static extern string icand_t_con_addr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_port_set")] - public static extern void icand_t_con_port_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_port_get")] - public static extern ushort icand_t_con_port_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_cand_type_set")] - public static extern void icand_t_cand_type_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_cand_type_get")] - public static extern string icand_t_cand_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_raddr_set")] - public static extern void icand_t_raddr_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_raddr_get")] - public static extern string icand_t_raddr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_rport_set")] - public static extern void icand_t_rport_set(HandleRef jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_rport_get")] - public static extern ushort icand_t_rport_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_generation_set")] - public static extern void icand_t_generation_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_generation_get")] - public static extern string icand_t_generation_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_ready_set")] - public static extern void icand_t_ready_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_icand_t_ready_get")] - public static extern byte icand_t_ready_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_icand_t")] - public static extern IntPtr new_icand_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_icand_t")] - public static extern void delete_icand_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_MAX_CAND_get")] - public static extern int MAX_CAND_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cands_set")] - public static extern void ice_t_cands_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cands_get")] - public static extern IntPtr ice_t_cands_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cand_idx_set")] - public static extern void ice_t_cand_idx_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cand_idx_get")] - public static extern int ice_t_cand_idx_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_chosen_set")] - public static extern void ice_t_chosen_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_chosen_get")] - public static extern IntPtr ice_t_chosen_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_ufrag_set")] - public static extern void ice_t_ufrag_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_ufrag_get")] - public static extern string ice_t_ufrag_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_pwd_set")] - public static extern void ice_t_pwd_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_pwd_get")] - public static extern string ice_t_pwd_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_options_set")] - public static extern void ice_t_options_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_ice_t_options_get")] - public static extern string ice_t_options_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_ice_t")] - public static extern IntPtr new_ice_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_ice_t")] - public static extern void delete_ice_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_add_crypto_key")] - public static extern int switch_rtp_add_crypto_key(HandleRef jarg1, int jarg2, uint jarg3, int jarg4, HandleRef jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_random")] - public static extern void switch_rtp_get_random(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_init")] - public static extern void switch_rtp_init(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_shutdown")] - public static extern void switch_rtp_shutdown(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_start_port")] - public static extern ushort switch_rtp_set_start_port(ushort jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_ssrc")] - public static extern int switch_rtp_set_ssrc(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_remote_ssrc")] - public static extern int switch_rtp_set_remote_ssrc(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_end_port")] - public static extern ushort switch_rtp_set_end_port(ushort jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_request_port")] - public static extern ushort switch_rtp_request_port(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_release_port")] - public static extern void switch_rtp_release_port(string jarg1, ushort jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_interval")] - public static extern int switch_rtp_set_interval(HandleRef jarg1, uint jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_change_interval")] - public static extern int switch_rtp_change_interval(HandleRef jarg1, uint jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_create")] - public static extern int switch_rtp_create(HandleRef jarg1, byte jarg2, uint jarg3, uint jarg4, HandleRef jarg5, string jarg6, ref string jarg7, HandleRef jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_new")] - public static extern IntPtr switch_rtp_new(string jarg1, ushort jarg2, string jarg3, ushort jarg4, byte jarg5, uint jarg6, uint jarg7, HandleRef jarg8, string jarg9, ref string jarg10, HandleRef jarg11); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_remote_address")] - public static extern int switch_rtp_set_remote_address(HandleRef jarg1, string jarg2, ushort jarg3, ushort jarg4, int jarg5, ref string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_remote_host")] - public static extern string switch_rtp_get_remote_host(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_remote_port")] - public static extern ushort switch_rtp_get_remote_port(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset_media_timer")] - public static extern void switch_rtp_reset_media_timer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_max_missed_packets")] - public static extern void switch_rtp_set_max_missed_packets(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_udptl_mode")] - public static extern int switch_rtp_udptl_mode(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset")] - public static extern void switch_rtp_reset(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_local_address")] - public static extern int switch_rtp_set_local_address(HandleRef jarg1, string jarg2, ushort jarg3, ref string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_kill_socket")] - public static extern void switch_rtp_kill_socket(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_break")] - public static extern void switch_rtp_break(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_flush")] - public static extern void switch_rtp_flush(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_ready")] - public static extern byte switch_rtp_ready(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_destroy")] - public static extern void switch_rtp_destroy(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_ice")] - public static extern int switch_rtp_activate_ice(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, int jarg6, int jarg7, HandleRef jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_rtcp")] - public static extern int switch_rtp_activate_rtcp(HandleRef jarg1, int jarg2, ushort jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_jitter_buffer")] - public static extern int switch_rtp_activate_jitter_buffer(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, uint jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_debug_jitter_buffer")] - public static extern int switch_rtp_debug_jitter_buffer(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_deactivate_jitter_buffer")] - public static extern int switch_rtp_deactivate_jitter_buffer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_pause_jitter_buffer")] - public static extern int switch_rtp_pause_jitter_buffer(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_jitter_buffer")] - public static extern IntPtr switch_rtp_get_jitter_buffer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_flag")] - public static extern void switch_rtp_set_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_flags")] - public static extern void switch_rtp_set_flags(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_clear_flags")] - public static extern void switch_rtp_clear_flags(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_test_flag")] - public static extern uint switch_rtp_test_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_clear_flag")] - public static extern void switch_rtp_clear_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_rtp_socket")] - public static extern IntPtr switch_rtp_get_rtp_socket(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_ping")] - public static extern void switch_rtp_ping(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_default_samples_per_interval")] - public static extern uint switch_rtp_get_default_samples_per_interval(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_default_payload")] - public static extern void switch_rtp_set_default_payload(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_default_payload")] - public static extern uint switch_rtp_get_default_payload(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_invalid_handler")] - public static extern void switch_rtp_set_invalid_handler(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_read")] - public static extern int switch_rtp_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_queue_rfc2833")] - public static extern int switch_rtp_queue_rfc2833(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_queue_rfc2833_in")] - public static extern int switch_rtp_queue_rfc2833_in(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_has_dtmf")] - public static extern IntPtr switch_rtp_has_dtmf(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_dequeue_dtmf")] - public static extern IntPtr switch_rtp_dequeue_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_zerocopy_read")] - public static extern int switch_rtp_zerocopy_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_zerocopy_read_frame")] - public static extern int switch_rtp_zerocopy_read_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_zerocopy_read_frame")] - public static extern int switch_rtcp_zerocopy_read_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_rtp_flush_read_buffer")] - public static extern void rtp_flush_read_buffer(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_enable_vad")] - public static extern int switch_rtp_enable_vad(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_disable_vad")] - public static extern int switch_rtp_disable_vad(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_write_frame")] - public static extern int switch_rtp_write_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_write_manual")] - public static extern int switch_rtp_write_manual(HandleRef jarg1, HandleRef jarg2, uint jarg3, byte jarg4, byte jarg5, uint jarg6, HandleRef jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_ssrc")] - public static extern uint switch_rtp_get_ssrc(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_private")] - public static extern void switch_rtp_set_private(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_telephony_event")] - public static extern void switch_rtp_set_telephony_event(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_telephony_recv_event")] - public static extern void switch_rtp_set_telephony_recv_event(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_cng_pt")] - public static extern void switch_rtp_set_cng_pt(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_private")] - public static extern IntPtr switch_rtp_get_private(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_payload_map")] - public static extern int switch_rtp_set_payload_map(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_intentional_bugs")] - public static extern void switch_rtp_intentional_bugs(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_stats")] - public static extern IntPtr switch_rtp_get_stats(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_check_auto_adj")] - public static extern byte switch_rtp_check_auto_adj(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_interdigit_delay")] - public static extern void switch_rtp_set_interdigit_delay(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_add_dtls")] - public static extern int switch_rtp_add_dtls(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_del_dtls")] - public static extern int switch_rtp_del_dtls(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_has_dtls")] - public static extern int switch_rtp_has_dtls(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_video_refresh")] - public static extern void switch_rtp_video_refresh(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_data_set")] - public static extern void switch_log_node_t_data_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_data_get")] - public static extern string switch_log_node_t_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_file_set")] - public static extern void switch_log_node_t_file_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_file_get")] - public static extern string switch_log_node_t_file_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_line_set")] - public static extern void switch_log_node_t_line_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_line_get")] - public static extern uint switch_log_node_t_line_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_func_set")] - public static extern void switch_log_node_t_func_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_func_get")] - public static extern string switch_log_node_t_func_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_level_set")] - public static extern void switch_log_node_t_level_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_level_get")] - public static extern int switch_log_node_t_level_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_timestamp_set")] - public static extern void switch_log_node_t_timestamp_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_timestamp_get")] - public static extern IntPtr switch_log_node_t_timestamp_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_content_set")] - public static extern void switch_log_node_t_content_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_content_get")] - public static extern string switch_log_node_t_content_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_userdata_set")] - public static extern void switch_log_node_t_userdata_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_userdata_get")] - public static extern string switch_log_node_t_userdata_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_channel_set")] - public static extern void switch_log_node_t_channel_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_channel_get")] - public static extern int switch_log_node_t_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_slevel_set")] - public static extern void switch_log_node_t_slevel_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_slevel_get")] - public static extern int switch_log_node_t_slevel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_log_node_t")] - public static extern IntPtr new_switch_log_node_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_log_node_t")] - public static extern void delete_switch_log_node_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_init")] - public static extern int switch_log_init(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_shutdown")] - public static extern int switch_log_shutdown(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_bind_logger")] - public static extern int switch_log_bind_logger(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_unbind_logger")] - public static extern int switch_log_unbind_logger(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_level2str")] - public static extern string switch_log_level2str(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_str2level")] - public static extern int switch_log_str2level(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_str2mask")] - public static extern uint switch_log_str2mask(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_dup")] - public static extern IntPtr switch_log_node_dup(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_free")] - public static extern void switch_log_node_free(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_XML_BUFSIZE_get")] - public static extern int SWITCH_XML_BUFSIZE_get(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_name_set")] - public static extern void switch_xml_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_name_get")] - public static extern string switch_xml_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr_set")] - public static extern void switch_xml_attr_set(HandleRef jarg1, ref string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr_get")] - public static extern string switch_xml_attr_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_txt_set")] - public static extern void switch_xml_txt_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_txt_get")] - public static extern string switch_xml_txt_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free_path_set")] - public static extern void switch_xml_free_path_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free_path_get")] - public static extern string switch_xml_free_path_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_off_set")] - public static extern void switch_xml_off_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_off_get")] - public static extern IntPtr switch_xml_off_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_next_set")] - public static extern void switch_xml_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_next_get")] - public static extern IntPtr switch_xml_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_sibling_set")] - public static extern void switch_xml_sibling_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_sibling_get")] - public static extern IntPtr switch_xml_sibling_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_ordered_set")] - public static extern void switch_xml_ordered_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_ordered_get")] - public static extern IntPtr switch_xml_ordered_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_child_set")] - public static extern void switch_xml_child_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_child_get")] - public static extern IntPtr switch_xml_child_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parent_set")] - public static extern void switch_xml_parent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parent_get")] - public static extern IntPtr switch_xml_parent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_flags_set")] - public static extern void switch_xml_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_flags_get")] - public static extern uint switch_xml_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_is_switch_xml_root_t_set")] - public static extern void switch_xml_is_switch_xml_root_t_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_is_switch_xml_root_t_get")] - public static extern int switch_xml_is_switch_xml_root_t_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_refs_set")] - public static extern void switch_xml_refs_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_refs_get")] - public static extern uint switch_xml_refs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_xml")] - public static extern IntPtr new_switch_xml(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_xml")] - public static extern void delete_switch_xml(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_str_dynamic")] - public static extern IntPtr switch_xml_parse_str_dynamic(string jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_str")] - public static extern IntPtr switch_xml_parse_str(string jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_fd")] - public static extern IntPtr switch_xml_parse_fd(int jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_file")] - public static extern IntPtr switch_xml_parse_file(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_file_simple")] - public static extern IntPtr switch_xml_parse_file_simple(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_fp")] - public static extern IntPtr switch_xml_parse_fp(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_child")] - public static extern IntPtr switch_xml_child(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_find_child")] - public static extern IntPtr switch_xml_find_child(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_find_child_multi")] - public static extern IntPtr switch_xml_find_child_multi(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr")] - public static extern string switch_xml_attr(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr_soft")] - public static extern string switch_xml_attr_soft(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_get")] - public static extern IntPtr switch_xml_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_toxml")] - public static extern string switch_xml_toxml(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_toxml_nolock")] - public static extern string switch_xml_toxml_nolock(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_tohtml")] - public static extern string switch_xml_tohtml(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_toxml_buf")] - public static extern string switch_xml_toxml_buf(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free")] - public static extern void switch_xml_free(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free_in_thread")] - public static extern void switch_xml_free_in_thread(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_error")] - public static extern string switch_xml_error(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_new")] - public static extern IntPtr switch_xml_new(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_add_child")] - public static extern IntPtr switch_xml_add_child(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_txt")] - public static extern IntPtr switch_xml_set_txt(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_attr")] - public static extern IntPtr switch_xml_set_attr(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_flag")] - public static extern IntPtr switch_xml_set_flag(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_cut")] - public static extern IntPtr switch_xml_cut(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_insert")] - public static extern IntPtr switch_xml_insert(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_root")] - public static extern int switch_xml_set_root(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_open_root_function")] - public static extern int switch_xml_set_open_root_function(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_open_root")] - public static extern IntPtr switch_xml_open_root(byte jarg1, ref string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_init")] - public static extern int switch_xml_init(HandleRef jarg1, ref string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_reload")] - public static extern int switch_xml_reload(ref string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_destroy")] - public static extern int switch_xml_destroy(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_root")] - public static extern IntPtr switch_xml_root(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate")] - public static extern int switch_xml_locate(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6, HandleRef jarg7, int jarg8); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_domain")] - public static extern int switch_xml_locate_domain(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_group")] - public static extern int switch_xml_locate_group(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user")] - public static extern int switch_xml_locate_user(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user_in_domain")] - public static extern int switch_xml_locate_user_in_domain(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user_merged")] - public static extern int switch_xml_locate_user_merged(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_clear_user_cache")] - public static extern uint switch_xml_clear_user_cache(string jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_merge_user")] - public static extern void switch_xml_merge_user(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_dup")] - public static extern IntPtr switch_xml_dup(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_open_cfg")] - public static extern IntPtr switch_xml_open_cfg(string jarg1, HandleRef jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_binding_sections")] - public static extern void switch_xml_set_binding_sections(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_binding_user_data")] - public static extern void switch_xml_set_binding_user_data(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_get_binding_sections")] - public static extern uint switch_xml_get_binding_sections(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_get_binding_user_data")] - public static extern IntPtr switch_xml_get_binding_user_data(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_bind_search_function_ret")] - public static extern int switch_xml_bind_search_function_ret(HandleRef jarg1, uint jarg2, HandleRef jarg3, HandleRef jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_unbind_search_function")] - public static extern int switch_xml_unbind_search_function(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_unbind_search_function_ptr")] - public static extern int switch_xml_unbind_search_function_ptr(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_section_string")] - public static extern uint switch_xml_parse_section_string(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_std_datetime_check")] - public static extern int switch_xml_std_datetime_check(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_language")] - public static extern int switch_xml_locate_language(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6, string jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_set")] - public static extern void switch_io_event_hook_outgoing_channel_outgoing_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_get")] - public static extern IntPtr switch_io_event_hook_outgoing_channel_outgoing_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_next_set")] - public static extern void switch_io_event_hook_outgoing_channel_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_next_get")] - public static extern IntPtr switch_io_event_hook_outgoing_channel_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_outgoing_channel")] - public static extern IntPtr new_switch_io_event_hook_outgoing_channel(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_outgoing_channel")] - public static extern void delete_switch_io_event_hook_outgoing_channel(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_receive_message_set")] - public static extern void switch_io_event_hook_receive_message_receive_message_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_receive_message_get")] - public static extern IntPtr switch_io_event_hook_receive_message_receive_message_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_next_set")] - public static extern void switch_io_event_hook_receive_message_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_next_get")] - public static extern IntPtr switch_io_event_hook_receive_message_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_receive_message")] - public static extern IntPtr new_switch_io_event_hook_receive_message(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_receive_message")] - public static extern void delete_switch_io_event_hook_receive_message(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_receive_event_set")] - public static extern void switch_io_event_hook_receive_event_receive_event_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_receive_event_get")] - public static extern IntPtr switch_io_event_hook_receive_event_receive_event_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_next_set")] - public static extern void switch_io_event_hook_receive_event_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_next_get")] - public static extern IntPtr switch_io_event_hook_receive_event_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_receive_event")] - public static extern IntPtr new_switch_io_event_hook_receive_event(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_receive_event")] - public static extern void delete_switch_io_event_hook_receive_event(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_read_frame_set")] - public static extern void switch_io_event_hook_read_frame_read_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_read_frame_get")] - public static extern IntPtr switch_io_event_hook_read_frame_read_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_next_set")] - public static extern void switch_io_event_hook_read_frame_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_next_get")] - public static extern IntPtr switch_io_event_hook_read_frame_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_read_frame")] - public static extern IntPtr new_switch_io_event_hook_read_frame(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_read_frame")] - public static extern void delete_switch_io_event_hook_read_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_video_read_frame_set")] - public static extern void switch_io_event_hook_video_read_frame_video_read_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_video_read_frame_get")] - public static extern IntPtr switch_io_event_hook_video_read_frame_video_read_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_next_set")] - public static extern void switch_io_event_hook_video_read_frame_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_next_get")] - public static extern IntPtr switch_io_event_hook_video_read_frame_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_video_read_frame")] - public static extern IntPtr new_switch_io_event_hook_video_read_frame(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_video_read_frame")] - public static extern void delete_switch_io_event_hook_video_read_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_write_frame_set")] - public static extern void switch_io_event_hook_write_frame_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_write_frame_get")] - public static extern IntPtr switch_io_event_hook_write_frame_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_next_set")] - public static extern void switch_io_event_hook_write_frame_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_next_get")] - public static extern IntPtr switch_io_event_hook_write_frame_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_write_frame")] - public static extern IntPtr new_switch_io_event_hook_write_frame(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_write_frame")] - public static extern void delete_switch_io_event_hook_write_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_video_write_frame_set")] - public static extern void switch_io_event_hook_video_write_frame_video_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_video_write_frame_get")] - public static extern IntPtr switch_io_event_hook_video_write_frame_video_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_next_set")] - public static extern void switch_io_event_hook_video_write_frame_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_next_get")] - public static extern IntPtr switch_io_event_hook_video_write_frame_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_video_write_frame")] - public static extern IntPtr new_switch_io_event_hook_video_write_frame(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_video_write_frame")] - public static extern void delete_switch_io_event_hook_video_write_frame(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_kill_channel_set")] - public static extern void switch_io_event_hook_kill_channel_kill_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_kill_channel_get")] - public static extern IntPtr switch_io_event_hook_kill_channel_kill_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_next_set")] - public static extern void switch_io_event_hook_kill_channel_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_next_get")] - public static extern IntPtr switch_io_event_hook_kill_channel_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_kill_channel")] - public static extern IntPtr new_switch_io_event_hook_kill_channel(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_kill_channel")] - public static extern void delete_switch_io_event_hook_kill_channel(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_send_dtmf_set")] - public static extern void switch_io_event_hook_send_dtmf_send_dtmf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_send_dtmf_get")] - public static extern IntPtr switch_io_event_hook_send_dtmf_send_dtmf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_next_set")] - public static extern void switch_io_event_hook_send_dtmf_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_next_get")] - public static extern IntPtr switch_io_event_hook_send_dtmf_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_send_dtmf")] - public static extern IntPtr new_switch_io_event_hook_send_dtmf(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_send_dtmf")] - public static extern void delete_switch_io_event_hook_send_dtmf(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_set")] - public static extern void switch_io_event_hook_recv_dtmf_recv_dtmf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_get")] - public static extern IntPtr switch_io_event_hook_recv_dtmf_recv_dtmf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_next_set")] - public static extern void switch_io_event_hook_recv_dtmf_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_next_get")] - public static extern IntPtr switch_io_event_hook_recv_dtmf_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_recv_dtmf")] - public static extern IntPtr new_switch_io_event_hook_recv_dtmf(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_recv_dtmf")] - public static extern void delete_switch_io_event_hook_recv_dtmf(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_state_change_set")] - public static extern void switch_io_event_hook_state_change_state_change_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_state_change_get")] - public static extern IntPtr switch_io_event_hook_state_change_state_change_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_next_set")] - public static extern void switch_io_event_hook_state_change_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_next_get")] - public static extern IntPtr switch_io_event_hook_state_change_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_state_change")] - public static extern IntPtr new_switch_io_event_hook_state_change(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_state_change")] - public static extern void delete_switch_io_event_hook_state_change(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_state_run_set")] - public static extern void switch_io_event_hook_state_run_state_run_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_state_run_get")] - public static extern IntPtr switch_io_event_hook_state_run_state_run_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_next_set")] - public static extern void switch_io_event_hook_state_run_next_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_next_get")] - public static extern IntPtr switch_io_event_hook_state_run_next_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_state_run")] - public static extern IntPtr new_switch_io_event_hook_state_run(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_state_run")] - public static extern void delete_switch_io_event_hook_state_run(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_outgoing_channel_set")] - public static extern void switch_io_event_hooks_outgoing_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_outgoing_channel_get")] - public static extern IntPtr switch_io_event_hooks_outgoing_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_message_set")] - public static extern void switch_io_event_hooks_receive_message_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_message_get")] - public static extern IntPtr switch_io_event_hooks_receive_message_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_event_set")] - public static extern void switch_io_event_hooks_receive_event_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_event_get")] - public static extern IntPtr switch_io_event_hooks_receive_event_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_read_frame_set")] - public static extern void switch_io_event_hooks_read_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_read_frame_get")] - public static extern IntPtr switch_io_event_hooks_read_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_read_frame_set")] - public static extern void switch_io_event_hooks_video_read_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_read_frame_get")] - public static extern IntPtr switch_io_event_hooks_video_read_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_write_frame_set")] - public static extern void switch_io_event_hooks_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_write_frame_get")] - public static extern IntPtr switch_io_event_hooks_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_write_frame_set")] - public static extern void switch_io_event_hooks_video_write_frame_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_write_frame_get")] - public static extern IntPtr switch_io_event_hooks_video_write_frame_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_kill_channel_set")] - public static extern void switch_io_event_hooks_kill_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_kill_channel_get")] - public static extern IntPtr switch_io_event_hooks_kill_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_send_dtmf_set")] - public static extern void switch_io_event_hooks_send_dtmf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_send_dtmf_get")] - public static extern IntPtr switch_io_event_hooks_send_dtmf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_recv_dtmf_set")] - public static extern void switch_io_event_hooks_recv_dtmf_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_recv_dtmf_get")] - public static extern IntPtr switch_io_event_hooks_recv_dtmf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_change_set")] - public static extern void switch_io_event_hooks_state_change_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_change_get")] - public static extern IntPtr switch_io_event_hooks_state_change_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_run_set")] - public static extern void switch_io_event_hooks_state_run_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_run_get")] - public static extern IntPtr switch_io_event_hooks_state_run_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hooks")] - public static extern IntPtr new_switch_io_event_hooks(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hooks")] - public static extern void delete_switch_io_event_hooks(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_outgoing_channel")] - public static extern int switch_core_event_hook_add_outgoing_channel(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_receive_message")] - public static extern int switch_core_event_hook_add_receive_message(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_receive_event")] - public static extern int switch_core_event_hook_add_receive_event(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_state_change")] - public static extern int switch_core_event_hook_add_state_change(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_state_run")] - public static extern int switch_core_event_hook_add_state_run(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_read_frame")] - public static extern int switch_core_event_hook_add_read_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_write_frame")] - public static extern int switch_core_event_hook_add_write_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_video_read_frame")] - public static extern int switch_core_event_hook_add_video_read_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_video_write_frame")] - public static extern int switch_core_event_hook_add_video_write_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_kill_channel")] - public static extern int switch_core_event_hook_add_kill_channel(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_send_dtmf")] - public static extern int switch_core_event_hook_add_send_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_recv_dtmf")] - public static extern int switch_core_event_hook_add_recv_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_outgoing_channel")] - public static extern int switch_core_event_hook_remove_outgoing_channel(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_receive_message")] - public static extern int switch_core_event_hook_remove_receive_message(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_receive_event")] - public static extern int switch_core_event_hook_remove_receive_event(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_state_change")] - public static extern int switch_core_event_hook_remove_state_change(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_state_run")] - public static extern int switch_core_event_hook_remove_state_run(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_read_frame")] - public static extern int switch_core_event_hook_remove_read_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_write_frame")] - public static extern int switch_core_event_hook_remove_write_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_video_read_frame")] - public static extern int switch_core_event_hook_remove_video_read_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_video_write_frame")] - public static extern int switch_core_event_hook_remove_video_write_frame(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_kill_channel")] - public static extern int switch_core_event_hook_remove_kill_channel(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_send_dtmf")] - public static extern int switch_core_event_hook_remove_send_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_recv_dtmf")] - public static extern int switch_core_event_hook_remove_recv_dtmf(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_created_set")] - public static extern void switch_scheduler_task_created_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_created_get")] - public static extern long switch_scheduler_task_created_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_runtime_set")] - public static extern void switch_scheduler_task_runtime_set(HandleRef jarg1, long jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_runtime_get")] - public static extern long switch_scheduler_task_runtime_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_id_set")] - public static extern void switch_scheduler_task_cmd_id_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_id_get")] - public static extern uint switch_scheduler_task_cmd_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_repeat_set")] - public static extern void switch_scheduler_task_repeat_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_repeat_get")] - public static extern uint switch_scheduler_task_repeat_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_group_set")] - public static extern void switch_scheduler_task_group_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_group_get")] - public static extern string switch_scheduler_task_group_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_arg_set")] - public static extern void switch_scheduler_task_cmd_arg_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_arg_get")] - public static extern IntPtr switch_scheduler_task_cmd_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_task_id_set")] - public static extern void switch_scheduler_task_task_id_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_task_id_get")] - public static extern uint switch_scheduler_task_task_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_hash_set")] - public static extern void switch_scheduler_task_hash_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_hash_get")] - public static extern uint switch_scheduler_task_hash_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_scheduler_task")] - public static extern IntPtr new_switch_scheduler_task(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_scheduler_task")] - public static extern void delete_switch_scheduler_task(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_add_task")] - public static extern uint switch_scheduler_add_task(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, uint jarg5, HandleRef jarg6, uint jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_del_task_id")] - public static extern uint switch_scheduler_del_task_id(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_del_task_group")] - public static extern uint switch_scheduler_del_task_group(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_thread_start")] - public static extern void switch_scheduler_task_thread_start(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_thread_stop")] - public static extern void switch_scheduler_task_thread_stop(); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_file_set")] - public static extern void switch_config_file_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_file_get")] - public static extern IntPtr switch_config_file_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_path_set")] - public static extern void switch_config_path_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_path_get")] - public static extern string switch_config_path_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_category_set")] - public static extern void switch_config_category_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_category_get")] - public static extern string switch_config_category_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_section_set")] - public static extern void switch_config_section_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_section_get")] - public static extern string switch_config_section_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_buf_set")] - public static extern void switch_config_buf_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_buf_get")] - public static extern string switch_config_buf_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lineno_set")] - public static extern void switch_config_lineno_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lineno_get")] - public static extern int switch_config_lineno_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_catno_set")] - public static extern void switch_config_catno_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_catno_get")] - public static extern int switch_config_catno_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_sectno_set")] - public static extern void switch_config_sectno_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_sectno_get")] - public static extern int switch_config_sectno_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lockto_set")] - public static extern void switch_config_lockto_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lockto_get")] - public static extern int switch_config_lockto_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_config")] - public static extern IntPtr new_switch_config(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_config")] - public static extern void delete_switch_config(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_open_file")] - public static extern int switch_config_open_file(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_close_file")] - public static extern void switch_config_close_file(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_config_next_pair")] - public static extern int switch_config_next_pair(HandleRef jarg1, ref string jarg2, ref string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_setGlobalVariable")] - public static extern void setGlobalVariable(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_getGlobalVariable")] - public static extern string getGlobalVariable(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_consoleLog")] - public static extern void consoleLog(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_consoleLog2")] - public static extern void consoleLog2(string jarg1, string jarg2, string jarg3, int jarg4, string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_consoleCleanLog")] - public static extern void consoleCleanLog(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_running")] - public static extern bool running(); - - [DllImport("mod_managed", EntryPoint="CSharp_email")] - public static extern bool email(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_new_IvrMenu")] - public static extern IntPtr new_IvrMenu(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, string jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_IvrMenu")] - public static extern void delete_IvrMenu(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_IvrMenu_bindAction")] - public static extern void IvrMenu_bindAction(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_IvrMenu_Execute")] - public static extern void IvrMenu_Execute(HandleRef jarg1, HandleRef jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_new_Api")] - public static extern IntPtr new_Api(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_Api")] - public static extern void delete_Api(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Api_Execute")] - public static extern string Api_Execute(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_Api_ExecuteString")] - public static extern string Api_ExecuteString(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Api_getTime")] - public static extern string Api_getTime(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_function_set")] - public static extern void input_callback_state_t_function_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_function_get")] - public static extern IntPtr input_callback_state_t_function_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_threadState_set")] - public static extern void input_callback_state_t_threadState_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_threadState_get")] - public static extern IntPtr input_callback_state_t_threadState_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_extra_set")] - public static extern void input_callback_state_t_extra_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_extra_get")] - public static extern IntPtr input_callback_state_t_extra_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_funcargs_set")] - public static extern void input_callback_state_t_funcargs_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_funcargs_get")] - public static extern string input_callback_state_t_funcargs_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_input_callback_state_t")] - public static extern IntPtr new_input_callback_state_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_input_callback_state_t")] - public static extern void delete_input_callback_state_t(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_DTMF_digit_set")] - public static extern void DTMF_digit_set(HandleRef jarg1, char jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_DTMF_digit_get")] - public static extern char DTMF_digit_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_DTMF_duration_set")] - public static extern void DTMF_duration_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_DTMF_duration_get")] - public static extern uint DTMF_duration_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_DTMF")] - public static extern IntPtr new_DTMF(char jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_DTMF")] - public static extern void delete_DTMF(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_Stream__SWIG_0")] - public static extern IntPtr new_Stream__SWIG_0(); - - [DllImport("mod_managed", EntryPoint="CSharp_new_Stream__SWIG_1")] - public static extern IntPtr new_Stream__SWIG_1(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_Stream")] - public static extern void delete_Stream(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Stream_read")] - public static extern string Stream_read(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Stream_Write")] - public static extern void Stream_Write(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Stream_raw_write")] - public static extern void Stream_raw_write(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_Stream_get_data")] - public static extern string Stream_get_data(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_InternalEvent_set")] - public static extern void Event_InternalEvent_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_InternalEvent_get")] - public static extern IntPtr Event_InternalEvent_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_serialized_string_set")] - public static extern void Event_serialized_string_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_serialized_string_get")] - public static extern string Event_serialized_string_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_mine_set")] - public static extern void Event_mine_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_mine_get")] - public static extern int Event_mine_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_Event__SWIG_0")] - public static extern IntPtr new_Event__SWIG_0(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_new_Event__SWIG_1")] - public static extern IntPtr new_Event__SWIG_1(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_Event")] - public static extern void delete_Event(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_chat_execute")] - public static extern int Event_chat_execute(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_chat_send")] - public static extern int Event_chat_send(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_Serialize")] - public static extern string Event_Serialize(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_SetPriority")] - public static extern bool Event_SetPriority(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_GetHeader")] - public static extern string Event_GetHeader(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_GetBody")] - public static extern string Event_GetBody(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_GetEventType")] - public static extern string Event_GetEventType(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_AddBody")] - public static extern bool Event_AddBody(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_AddHeader")] - public static extern bool Event_AddHeader(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_DeleteHeader")] - public static extern bool Event_DeleteHeader(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_Event_Fire")] - public static extern bool Event_Fire(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_events_set")] - public static extern void EventConsumer_events_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_events_get")] - public static extern IntPtr EventConsumer_events_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_event_id_set")] - public static extern void EventConsumer_e_event_id_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_event_id_get")] - public static extern int EventConsumer_e_event_id_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_callback_set")] - public static extern void EventConsumer_e_callback_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_callback_get")] - public static extern string EventConsumer_e_callback_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_subclass_name_set")] - public static extern void EventConsumer_e_subclass_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_subclass_name_get")] - public static extern string EventConsumer_e_subclass_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_cb_arg_set")] - public static extern void EventConsumer_e_cb_arg_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_cb_arg_get")] - public static extern string EventConsumer_e_cb_arg_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_enodes_set")] - public static extern void EventConsumer_enodes_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_enodes_get")] - public static extern IntPtr EventConsumer_enodes_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_node_index_set")] - public static extern void EventConsumer_node_index_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_node_index_get")] - public static extern uint EventConsumer_node_index_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_EventConsumer")] - public static extern IntPtr new_EventConsumer(string jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_EventConsumer")] - public static extern void delete_EventConsumer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_bind")] - public static extern int EventConsumer_bind(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_pop")] - public static extern IntPtr EventConsumer_pop(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_cleanup")] - public static extern void EventConsumer_cleanup(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_CoreSession")] - public static extern void delete_CoreSession(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_InternalSession_set")] - public static extern void CoreSession_InternalSession_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_InternalSession_get")] - public static extern IntPtr CoreSession_InternalSession_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_channel_set")] - public static extern void CoreSession_channel_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_channel_get")] - public static extern IntPtr CoreSession_channel_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flags_set")] - public static extern void CoreSession_flags_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flags_get")] - public static extern uint CoreSession_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_allocated_set")] - public static extern void CoreSession_allocated_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_allocated_get")] - public static extern int CoreSession_allocated_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cb_state_set")] - public static extern void CoreSession_cb_state_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cb_state_get")] - public static extern IntPtr CoreSession_cb_state_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_HookState_set")] - public static extern void CoreSession_HookState_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_HookState_get")] - public static extern int CoreSession_HookState_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cause_set")] - public static extern void CoreSession_cause_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cause_get")] - public static extern int CoreSession_cause_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_uuid_set")] - public static extern void CoreSession_uuid_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_uuid_get")] - public static extern string CoreSession_uuid_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_tts_name_set")] - public static extern void CoreSession_tts_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_tts_name_get")] - public static extern string CoreSession_tts_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_voice_name_set")] - public static extern void CoreSession_voice_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_voice_name_get")] - public static extern string CoreSession_voice_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_insertFile")] - public static extern int CoreSession_insertFile(HandleRef jarg1, string jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Answer")] - public static extern int CoreSession_Answer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_preAnswer")] - public static extern int CoreSession_preAnswer(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Hangup")] - public static extern void CoreSession_Hangup(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_hangupState")] - public static extern void CoreSession_hangupState(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetVariable")] - public static extern void CoreSession_SetVariable(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetPrivate")] - public static extern void CoreSession_SetPrivate(HandleRef jarg1, string jarg2, HandleRef jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetPrivate")] - public static extern IntPtr CoreSession_GetPrivate(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetVariable")] - public static extern string CoreSession_GetVariable(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Say")] - public static extern void CoreSession_Say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SayPhrase")] - public static extern void CoreSession_SayPhrase(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_hangupCause")] - public static extern string CoreSession_hangupCause(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_getState")] - public static extern string CoreSession_getState(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_RecordFile")] - public static extern int CoreSession_RecordFile(HandleRef jarg1, string jarg2, int jarg3, int jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_originate")] - 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); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Speak")] - public static extern int CoreSession_Speak(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetTtsParameters")] - public static extern void CoreSession_SetTtsParameters(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_set_tts_params")] - public static extern void CoreSession_set_tts_params(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_CollectDigits__SWIG_0")] - public static extern int CoreSession_CollectDigits__SWIG_0(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_CollectDigits__SWIG_1")] - public static extern int CoreSession_CollectDigits__SWIG_1(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetDigits__SWIG_0")] - public static extern string CoreSession_GetDigits__SWIG_0(HandleRef jarg1, int jarg2, string jarg3, int jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetDigits__SWIG_1")] - public static extern string CoreSession_GetDigits__SWIG_1(HandleRef jarg1, int jarg2, string jarg3, int jarg4, int jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Transfer")] - public static extern int CoreSession_Transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_read")] - public static extern string CoreSession_read(HandleRef jarg1, int jarg2, int jarg3, string jarg4, int jarg5, string jarg6, int jarg7); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_PlayAndGetDigits")] - public static extern string CoreSession_PlayAndGetDigits(HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, int jarg11, string jarg12); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_StreamFile")] - public static extern int CoreSession_StreamFile(HandleRef jarg1, string jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_sleep")] - public static extern int CoreSession_sleep(HandleRef jarg1, int jarg2, int jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flushEvents")] - public static extern int CoreSession_flushEvents(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flushDigits")] - public static extern int CoreSession_flushDigits(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetAutoHangup")] - public static extern int CoreSession_SetAutoHangup(HandleRef jarg1, bool jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Ready")] - public static extern bool CoreSession_Ready(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_bridged")] - public static extern bool CoreSession_bridged(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_answered")] - public static extern bool CoreSession_answered(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_mediaReady")] - public static extern bool CoreSession_mediaReady(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_waitForAnswer")] - public static extern void CoreSession_waitForAnswer(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Execute")] - public static extern void CoreSession_Execute(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_sendEvent")] - public static extern void CoreSession_sendEvent(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_setEventData")] - public static extern void CoreSession_setEventData(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_getXMLCDR")] - public static extern string CoreSession_getXMLCDR(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_begin_allow_threads")] - public static extern bool CoreSession_begin_allow_threads(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_end_allow_threads")] - public static extern bool CoreSession_end_allow_threads(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetUuid")] - public static extern string CoreSession_GetUuid(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_get_cb_args")] - public static extern IntPtr CoreSession_get_cb_args(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_check_hangup_hook")] - public static extern void CoreSession_check_hangup_hook(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_consoleLog")] - public static extern void CoreSession_consoleLog(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_consoleLog2")] - public static extern void CoreSession_consoleLog2(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5, string jarg6); - - [DllImport("mod_managed", EntryPoint="CSharp_console_log")] - public static extern void console_log(string jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_console_log2")] - public static extern void console_log2(string jarg1, string jarg2, string jarg3, int jarg4, string jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_console_clean_log")] - public static extern void console_clean_log(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_msleep")] - public static extern void msleep(uint jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_bridge")] - public static extern void bridge(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_hanguphook")] - public static extern int hanguphook(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_dtmf_callback")] - public static extern int dtmf_callback(HandleRef jarg1, HandleRef jarg2, int jarg3, HandleRef jarg4, uint jarg5); - - [DllImport("mod_managed", EntryPoint="CSharp_new_ManagedSession__SWIG_0")] - public static extern IntPtr new_ManagedSession__SWIG_0(); - - [DllImport("mod_managed", EntryPoint="CSharp_new_ManagedSession__SWIG_1")] - public static extern IntPtr new_ManagedSession__SWIG_1(string jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_ManagedSession__SWIG_2")] - public static extern IntPtr new_ManagedSession__SWIG_2(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_ManagedSession")] - public static extern void delete_ManagedSession(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_ManagedSession_SWIGUpcast")] - public static extern IntPtr ManagedSession_SWIGUpcast(IntPtr jarg1); -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class icand_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal icand_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(icand_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~icand_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_icand_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string foundation { - set { - freeswitchPINVOKE.icand_t_foundation_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.icand_t_foundation_get(swigCPtr); - return ret; - } - } - - public int component_id { - set { - freeswitchPINVOKE.icand_t_component_id_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.icand_t_component_id_get(swigCPtr); - return ret; - } - } - - public string transport { - set { - freeswitchPINVOKE.icand_t_transport_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.icand_t_transport_get(swigCPtr); - return ret; - } - } - - public uint priority { - set { - freeswitchPINVOKE.icand_t_priority_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.icand_t_priority_get(swigCPtr); - return ret; - } - } - - public string con_addr { - set { - freeswitchPINVOKE.icand_t_con_addr_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.icand_t_con_addr_get(swigCPtr); - return ret; - } - } - - public ushort con_port { - set { - freeswitchPINVOKE.icand_t_con_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.icand_t_con_port_get(swigCPtr); - return ret; - } - } - - public string cand_type { - set { - freeswitchPINVOKE.icand_t_cand_type_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.icand_t_cand_type_get(swigCPtr); - return ret; - } - } - - public string raddr { - set { - freeswitchPINVOKE.icand_t_raddr_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.icand_t_raddr_get(swigCPtr); - return ret; - } - } - - public ushort rport { - set { - freeswitchPINVOKE.icand_t_rport_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.icand_t_rport_get(swigCPtr); - return ret; - } - } - - public string generation { - set { - freeswitchPINVOKE.icand_t_generation_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.icand_t_generation_get(swigCPtr); - return ret; - } - } - - public byte ready { - set { - freeswitchPINVOKE.icand_t_ready_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.icand_t_ready_get(swigCPtr); - return ret; - } - } - - public icand_t() : this(freeswitchPINVOKE.new_icand_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum ice_proto_t { - IPR_RTP, - IPR_RTCP -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class ice_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal ice_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(ice_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~ice_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_ice_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_a_2__icand_s cands { - set { - freeswitchPINVOKE.ice_t_cands_set(swigCPtr, SWIGTYPE_p_a_2__icand_s.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.ice_t_cands_get(swigCPtr); - SWIGTYPE_p_a_2__icand_s ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_a_2__icand_s(cPtr, false); - return ret; - } - } - - public int cand_idx { - set { - freeswitchPINVOKE.ice_t_cand_idx_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.ice_t_cand_idx_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_int chosen { - set { - freeswitchPINVOKE.ice_t_chosen_set(swigCPtr, SWIGTYPE_p_int.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.ice_t_chosen_get(swigCPtr); - SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); - return ret; - } - } - - public string ufrag { - set { - freeswitchPINVOKE.ice_t_ufrag_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.ice_t_ufrag_get(swigCPtr); - return ret; - } - } - - public string pwd { - set { - freeswitchPINVOKE.ice_t_pwd_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.ice_t_pwd_get(swigCPtr); - return ret; - } - } - - public string options { - set { - freeswitchPINVOKE.ice_t_options_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.ice_t_options_get(swigCPtr); - return ret; - } - } - - public ice_t() : this(freeswitchPINVOKE.new_ice_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class input_callback_state_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal input_callback_state_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(input_callback_state_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~input_callback_state_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_input_callback_state_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_void function { - set { - freeswitchPINVOKE.input_callback_state_t_function_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.input_callback_state_t_function_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void threadState { - set { - freeswitchPINVOKE.input_callback_state_t_threadState_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.input_callback_state_t_threadState_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void extra { - set { - freeswitchPINVOKE.input_callback_state_t_extra_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.input_callback_state_t_extra_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public string funcargs { - set { - freeswitchPINVOKE.input_callback_state_t_funcargs_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.input_callback_state_t_funcargs_get(swigCPtr); - return ret; - } - } - - public input_callback_state_t() : this(freeswitchPINVOKE.new_input_callback_state_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class ip_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal ip_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(ip_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~ip_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_ip_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint v4 { - set { - freeswitchPINVOKE.ip_t_v4_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.ip_t_v4_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_in6_addr v6 { - set { - freeswitchPINVOKE.ip_t_v6_set(swigCPtr, SWIGTYPE_p_in6_addr.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_in6_addr ret = new SWIGTYPE_p_in6_addr(freeswitchPINVOKE.ip_t_v6_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public ip_t() : this(freeswitchPINVOKE.new_ip_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class IvrMenu : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal IvrMenu(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(IvrMenu obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~IvrMenu() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_IvrMenu(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public IvrMenu(IvrMenu main, string name, string greeting_sound, string short_greeting_sound, string invalid_sound, string exit_sound, string transfer_sound, string confirm_macro, string confirm_key, string tts_engine, string tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts) : this(freeswitchPINVOKE.new_IvrMenu(IvrMenu.getCPtr(main), name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts), true) { - } - - public void bindAction(string action, string arg, string bind) { - freeswitchPINVOKE.IvrMenu_bindAction(swigCPtr, action, arg, bind); - } - - public void Execute(CoreSession session, string name) { - freeswitchPINVOKE.IvrMenu_Execute(swigCPtr, CoreSession.getCPtr(session), name); - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public partial class ManagedSession : CoreSession { - private HandleRef swigCPtr; - - internal ManagedSession(IntPtr cPtr, bool cMemoryOwn) : base(freeswitchPINVOKE.ManagedSession_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(ManagedSession obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~ManagedSession() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_ManagedSession(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public ManagedSession() : this(freeswitchPINVOKE.new_ManagedSession__SWIG_0(), true) { - } - - public ManagedSession(string uuid) : this(freeswitchPINVOKE.new_ManagedSession__SWIG_1(uuid), true) { - } - - public ManagedSession(SWIGTYPE_p_switch_core_session session) : this(freeswitchPINVOKE.new_ManagedSession__SWIG_2(SWIGTYPE_p_switch_core_session.getCPtr(session)), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class payload_map_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal payload_map_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(payload_map_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~payload_map_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_payload_map_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_media_type_t type { - set { - freeswitchPINVOKE.payload_map_t_type_set(swigCPtr, (int)value); - } - get { - switch_media_type_t ret = (switch_media_type_t)freeswitchPINVOKE.payload_map_t_type_get(swigCPtr); - return ret; - } - } - - public switch_sdp_type_t sdp_type { - set { - freeswitchPINVOKE.payload_map_t_sdp_type_set(swigCPtr, (int)value); - } - get { - switch_sdp_type_t ret = (switch_sdp_type_t)freeswitchPINVOKE.payload_map_t_sdp_type_get(swigCPtr); - return ret; - } - } - - public uint ptime { - set { - freeswitchPINVOKE.payload_map_t_ptime_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_ptime_get(swigCPtr); - return ret; - } - } - - public uint rate { - set { - freeswitchPINVOKE.payload_map_t_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_rate_get(swigCPtr); - return ret; - } - } - - public byte allocated { - set { - freeswitchPINVOKE.payload_map_t_allocated_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.payload_map_t_allocated_get(swigCPtr); - return ret; - } - } - - public byte negotiated { - set { - freeswitchPINVOKE.payload_map_t_negotiated_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.payload_map_t_negotiated_get(swigCPtr); - return ret; - } - } - - public byte current { - set { - freeswitchPINVOKE.payload_map_t_current_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.payload_map_t_current_get(swigCPtr); - return ret; - } - } - - public uint hash { - set { - freeswitchPINVOKE.payload_map_t_hash_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_hash_get(swigCPtr); - return ret; - } - } - - public string rm_encoding { - set { - freeswitchPINVOKE.payload_map_t_rm_encoding_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.payload_map_t_rm_encoding_get(swigCPtr); - return ret; - } - } - - public string iananame { - set { - freeswitchPINVOKE.payload_map_t_iananame_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.payload_map_t_iananame_get(swigCPtr); - return ret; - } - } - - public byte pt { - set { - freeswitchPINVOKE.payload_map_t_pt_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.payload_map_t_pt_get(swigCPtr); - return ret; - } - } - - public uint rm_rate { - set { - freeswitchPINVOKE.payload_map_t_rm_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_rm_rate_get(swigCPtr); - return ret; - } - } - - public uint adv_rm_rate { - set { - freeswitchPINVOKE.payload_map_t_adv_rm_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_adv_rm_rate_get(swigCPtr); - return ret; - } - } - - public uint codec_ms { - set { - freeswitchPINVOKE.payload_map_t_codec_ms_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_codec_ms_get(swigCPtr); - return ret; - } - } - - public uint bitrate { - set { - freeswitchPINVOKE.payload_map_t_bitrate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.payload_map_t_bitrate_get(swigCPtr); - return ret; - } - } - - public string rm_fmtp { - set { - freeswitchPINVOKE.payload_map_t_rm_fmtp_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.payload_map_t_rm_fmtp_get(swigCPtr); - return ret; - } - } - - public byte agreed_pt { - set { - freeswitchPINVOKE.payload_map_t_agreed_pt_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.payload_map_t_agreed_pt_get(swigCPtr); - return ret; - } - } - - public byte recv_pt { - set { - freeswitchPINVOKE.payload_map_t_recv_pt_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.payload_map_t_recv_pt_get(swigCPtr); - return ret; - } - } - - public string fmtp_out { - set { - freeswitchPINVOKE.payload_map_t_fmtp_out_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.payload_map_t_fmtp_out_get(swigCPtr); - return ret; - } - } - - public string remote_sdp_ip { - set { - freeswitchPINVOKE.payload_map_t_remote_sdp_ip_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.payload_map_t_remote_sdp_ip_get(swigCPtr); - return ret; - } - } - - public ushort remote_sdp_port { - set { - freeswitchPINVOKE.payload_map_t_remote_sdp_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.payload_map_t_remote_sdp_port_get(swigCPtr); - return ret; - } - } - - public int channels { - set { - freeswitchPINVOKE.payload_map_t_channels_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.payload_map_t_channels_get(swigCPtr); - return ret; - } - } - - public int adv_channels { - set { - freeswitchPINVOKE.payload_map_t_adv_channels_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.payload_map_t_adv_channels_get(swigCPtr); - return ret; - } - } - - public payload_map_t next { - set { - freeswitchPINVOKE.payload_map_t_next_set(swigCPtr, payload_map_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.payload_map_t_next_get(swigCPtr); - payload_map_t ret = (cPtr == IntPtr.Zero) ? null : new payload_map_t(cPtr, false); - return ret; - } - } - - public payload_map_t() : this(freeswitchPINVOKE.new_payload_map_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class profile_node_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal profile_node_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(profile_node_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~profile_node_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_profile_node_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string var { - set { - freeswitchPINVOKE.profile_node_t_var_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.profile_node_t_var_get(swigCPtr); - return ret; - } - } - - public string val { - set { - freeswitchPINVOKE.profile_node_t_val_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.profile_node_t_val_get(swigCPtr); - return ret; - } - } - - public profile_node_t next { - set { - freeswitchPINVOKE.profile_node_t_next_set(swigCPtr, profile_node_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.profile_node_t_next_get(swigCPtr); - profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false); - return ret; - } - } - - public profile_node_t() : this(freeswitchPINVOKE.new_profile_node_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum session_flag_t { - S_HUP = (1 << 0), - S_FREE = (1 << 1), - S_RDLOCK = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public partial class Stream : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Stream(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(Stream obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~Stream() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_Stream(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public Stream() : this(freeswitchPINVOKE.new_Stream__SWIG_0(), true) { - } - - public Stream(switch_stream_handle arg0) : this(freeswitchPINVOKE.new_Stream__SWIG_1(switch_stream_handle.getCPtr(arg0)), true) { - } - - public string read(SWIGTYPE_p_int len) { - string ret = freeswitchPINVOKE.Stream_read(swigCPtr, SWIGTYPE_p_int.getCPtr(len)); - return ret; - } - - public void Write(string data) { - freeswitchPINVOKE.Stream_Write(swigCPtr, data); - } - - public void raw_write(string data, int len) { - freeswitchPINVOKE.Stream_raw_write(swigCPtr, data, len); - } - - public string get_data() { - string ret = freeswitchPINVOKE.Stream_get_data(swigCPtr); - return ret; - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_a_2__icand_s { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_a_2__icand_s(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_2__icand_s() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_a_2__icand_s obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_apr_pool_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_apr_pool_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_apr_pool_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_apr_pool_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_cJSON { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_cJSON(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cJSON() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_cJSON obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_FILE { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_FILE(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_FILE() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_FILE obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_float { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_float(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_float() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_float obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_codec__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_codec__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_codec__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session__int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session__int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session__int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session__int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_p_void__p_void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_p_void__p_void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_p_void__p_void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_void__p_void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_event__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_event__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_event__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_event__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_event__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_event__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_file_handle__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_file_handle__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_file_handle__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_media_bug_p_void__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_media_bug_p_void__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_media_bug_p_void__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_media_bug_p_void__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_scheduler_task__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_scheduler_task__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_scheduler_task__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_scheduler_task__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_speech_handle__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_speech_handle__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_speech_handle__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_switch_timer__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_switch_timer__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_switch_timer__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_timer__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_void_p_q_const__char__int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_void_p_q_const__char__int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_void_p_q_const__char__int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void_p_q_const__char__int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_void_p_switch_event__int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_void_p_switch_event__int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_void_p_switch_event__int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void_p_switch_event__int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_p_void__void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_p_void__void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_p_void__void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void__void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_void__p_char { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_void__p_char(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_void__p_char() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_void__p_char obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_f_void__switch_status_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_f_void__switch_status_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_void__switch_status_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_f_void__switch_status_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_in6_addr { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_in6_addr(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_in6_addr() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_in6_addr obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_apr_pool_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_apr_pool_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_apr_pool_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_apr_pool_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_char { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_char() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_char obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_cJSON { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_cJSON(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_cJSON() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_cJSON obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_pid_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_pid_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_pid_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_pid_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_payload_map_s { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_payload_map_s(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_payload_map_s() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_payload_map_s obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_p_char { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_p_char(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_p_char() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_p_char obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_real_pcre { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_real_pcre(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_real_pcre() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_real_pcre obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_sqlite3 { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_sqlite3(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_sqlite3() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_sqlite3 obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_sqlite3_stmt { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_sqlite3_stmt(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_sqlite3_stmt() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_sqlite3_stmt obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_audio_resampler_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_audio_resampler_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_audio_resampler_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_audio_resampler_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_buffer { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_buffer(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_buffer() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_buffer obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_cache_db_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_cache_db_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_cache_db_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_cache_db_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_caller_extension { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_caller_extension(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_caller_extension() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_caller_extension obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_channel { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_channel(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_channel() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_channel obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_codec_implementation { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_codec_implementation(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_codec_implementation() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_codec_implementation obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_console_callback_match { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_console_callback_match(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_console_callback_match() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_console_callback_match obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_core_port_allocator { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_core_port_allocator(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_core_port_allocator() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_core_port_allocator obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_core_session { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_core_session(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_core_session() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_core_session obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_core_session_message { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_core_session_message(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_core_session_message() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_core_session_message obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_device_record_s { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_device_record_s(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_device_record_s() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_device_record_s obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_event { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_event(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_event() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_event obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_event_node { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_event_node(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_event_node() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_event_node obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_file_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_file_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_file_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_file_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_frame { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_frame(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_frame() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_hashtable { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_hashtable(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_hashtable() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_hashtable obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_hashtable_iterator { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_hashtable_iterator(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_hashtable_iterator() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_hashtable_iterator obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_ivr_digit_stream { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_ivr_digit_stream(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_ivr_digit_stream() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_digit_stream obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_ivr_digit_stream_parser { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_ivr_digit_stream_parser(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_ivr_digit_stream_parser() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_digit_stream_parser obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_ivr_dmachine { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_ivr_dmachine(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_ivr_dmachine() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_dmachine obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_ivr_dmachine_match { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_ivr_dmachine_match(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_ivr_dmachine_match() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_dmachine_match obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_ivr_menu { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_ivr_menu(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_ivr_menu() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_menu obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_ivr_menu_xml_ctx { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_ivr_menu_xml_ctx(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_ivr_menu_xml_ctx() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_menu_xml_ctx obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_live_array_s { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_live_array_s(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_live_array_s() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_live_array_s obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_log_node_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_log_node_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_log_node_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_log_node_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_media_bug { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_media_bug(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_media_bug() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_media_bug obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_network_list { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_network_list(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_network_list() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_network_list obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_rtp { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_rtp(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_rtp() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_rtp obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_say_file_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_say_file_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_say_file_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_say_file_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_sql_queue_manager { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_sql_queue_manager(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_sql_queue_manager() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_sql_queue_manager obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_thread_data_s { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_thread_data_s(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_thread_data_s() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_thread_data_s obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_xml_binding { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_xml_binding(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_xml_binding() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_xml_binding obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_switch_xml { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_switch_xml(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_switch_xml() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_xml obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_p_void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_p_void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_p_void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_real_pcre { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_real_pcre(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_real_pcre() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_real_pcre obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_short { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_short(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_short() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_short obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_sockaddr { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_sockaddr(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_sockaddr() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_sockaddr obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_sockaddr_in6 { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_sockaddr_in6(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_sockaddr_in6() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_sockaddr_in6 obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_socklen_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_socklen_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_socklen_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_socklen_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_sqlite3 { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_sqlite3(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_sqlite3() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_sqlite3 obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_sqlite3_stmt { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_sqlite3_stmt(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_sqlite3_stmt() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_sqlite3_stmt obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_stfu_instance_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_stfu_instance_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_stfu_instance_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_stfu_instance_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_buffer { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_buffer(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_buffer() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_buffer obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_cache_db_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_cache_db_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_cache_db_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_cache_db_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_call_cause_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_call_cause_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_call_cause_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_call_cause_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_channel { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_channel(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_channel() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_channel obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_core_port_allocator { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_core_port_allocator(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_core_port_allocator() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_core_port_allocator obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_core_session { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_core_session(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_core_session() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_core_session obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_event_types_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_event_types_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_event_types_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_event_types_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_file_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_file_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_file_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_file_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_hashtable { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_hashtable(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_hashtable() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_hashtable obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_hashtable_iterator { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_hashtable_iterator(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_hashtable_iterator() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_hashtable_iterator obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_interval_time_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_interval_time_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_interval_time_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_interval_time_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ivr_action_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ivr_action_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ivr_action_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_action_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ivr_digit_stream { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ivr_digit_stream(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ivr_digit_stream() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_digit_stream obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ivr_digit_stream_parser { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ivr_digit_stream_parser(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ivr_digit_stream_parser() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_digit_stream_parser obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ivr_dmachine { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ivr_dmachine(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ivr_dmachine() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_dmachine obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ivr_menu { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ivr_menu(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ivr_menu() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_menu obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ivr_menu_xml_ctx { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ivr_menu_xml_ctx(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ivr_menu_xml_ctx() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_menu_xml_ctx obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_live_array_s { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_live_array_s(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_live_array_s() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_live_array_s obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_media_bug { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_media_bug(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_media_bug() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_media_bug obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_mutex_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_mutex_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_mutex_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_mutex_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_network_list { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_network_list(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_network_list() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_network_list obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_odbc_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_odbc_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_odbc_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_odbc_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_pgsql_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_pgsql_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_pgsql_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_pgsql_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_pollfd_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_pollfd_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_pollfd_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_pollfd_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_queue_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_queue_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_queue_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_queue_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_rtcp_frame { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_rtcp_frame(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_rtcp_frame() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_rtcp_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_rtp { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_rtp(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_rtp() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_rtp obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_rtp_flag_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_rtp_flag_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_rtp_flag_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_rtp_flag_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_say_file_handle { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_say_file_handle(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_say_file_handle() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_say_file_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_size_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_size_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_size_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_size_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_sockaddr_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_sockaddr_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_sockaddr_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_sockaddr_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_socket_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_socket_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_socket_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_socket_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_sql_queue_manager { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_sql_queue_manager(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_sql_queue_manager() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_sql_queue_manager obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_ssize_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_ssize_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_ssize_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_ssize_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_thread_rwlock_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_thread_rwlock_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_thread_rwlock_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_thread_rwlock_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_thread_start_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_thread_start_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_thread_start_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_thread_start_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_time_exp_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_time_exp_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_time_exp_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_time_exp_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_time_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_time_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_time_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_time_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_switch_xml_binding { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_switch_xml_binding(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_switch_xml_binding() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_switch_xml_binding obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_time_t { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_time_t(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_time_t() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_time_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_unsigned_char { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_char(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_char() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_unsigned_int { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_int(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_int() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_unsigned_long { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_long(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_long() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_long obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_unsigned_short { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_short(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_short() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class SWIGTYPE_p_void { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_void() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_void obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_abc_type_t { - SWITCH_ABC_TYPE_INIT, - SWITCH_ABC_TYPE_READ, - SWITCH_ABC_TYPE_WRITE, - SWITCH_ABC_TYPE_WRITE_REPLACE, - SWITCH_ABC_TYPE_READ_REPLACE, - SWITCH_ABC_TYPE_READ_PING, - SWITCH_ABC_TYPE_TAP_NATIVE_READ, - SWITCH_ABC_TYPE_TAP_NATIVE_WRITE, - SWITCH_ABC_TYPE_CLOSE -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_api_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_api_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_api_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_api_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_api_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_api_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_api_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public string desc { - set { - freeswitchPINVOKE.switch_api_interface_desc_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_api_interface_desc_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t function { - set { - freeswitchPINVOKE.switch_api_interface_function_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_function_get(swigCPtr); - SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public string syntax { - set { - freeswitchPINVOKE.switch_api_interface_syntax_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_api_interface_syntax_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_api_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_api_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_api_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_api_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_api_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_api_interface next { - set { - freeswitchPINVOKE.switch_api_interface_next_set(swigCPtr, switch_api_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_next_get(swigCPtr); - switch_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_api_interface(cPtr, false); - return ret; - } - } - - public switch_api_interface() : this(freeswitchPINVOKE.new_switch_api_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_application_flag_enum_t { - SAF_NONE = 0, - SAF_SUPPORT_NOMEDIA = (1 << 0), - SAF_ROUTING_EXEC = (1 << 1), - SAF_MEDIA_TAP = (1 << 2), - SAF_ZOMBIE_EXEC = (1 << 3), - SAF_NO_LOOPBACK = (1 << 4) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_application_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_application_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_application_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_application_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_application_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_application_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_application_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void application_function { - set { - freeswitchPINVOKE.switch_application_interface_application_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_application_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void(cPtr, false); - return ret; - } - } - - public string long_desc { - set { - freeswitchPINVOKE.switch_application_interface_long_desc_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_application_interface_long_desc_get(swigCPtr); - return ret; - } - } - - public string short_desc { - set { - freeswitchPINVOKE.switch_application_interface_short_desc_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_application_interface_short_desc_get(swigCPtr); - return ret; - } - } - - public string syntax { - set { - freeswitchPINVOKE.switch_application_interface_syntax_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_application_interface_syntax_get(swigCPtr); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_application_interface_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_application_interface_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_application_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_application_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_application_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_application_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_application_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_application_interface next { - set { - freeswitchPINVOKE.switch_application_interface_next_set(swigCPtr, switch_application_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_next_get(swigCPtr); - switch_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_application_interface(cPtr, false); - return ret; - } - } - - public switch_application_interface() : this(freeswitchPINVOKE.new_switch_application_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_app_log : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_app_log(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_app_log obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_app_log() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_app_log(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string app { - set { - freeswitchPINVOKE.switch_app_log_app_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_app_log_app_get(swigCPtr); - return ret; - } - } - - public string arg { - set { - freeswitchPINVOKE.switch_app_log_arg_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_app_log_arg_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t stamp { - set { - freeswitchPINVOKE.switch_app_log_stamp_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_app_log_stamp_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_app_log next { - set { - freeswitchPINVOKE.switch_app_log_next_set(swigCPtr, switch_app_log.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_app_log_next_get(swigCPtr); - switch_app_log ret = (cPtr == IntPtr.Zero) ? null : new switch_app_log(cPtr, false); - return ret; - } - } - - public switch_app_log() : this(freeswitchPINVOKE.new_switch_app_log(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_asr_flag_enum_t { - SWITCH_ASR_FLAG_NONE = 0, - SWITCH_ASR_FLAG_DATA = (1 << 0), - SWITCH_ASR_FLAG_FREE_POOL = (1 << 1), - SWITCH_ASR_FLAG_CLOSED = (1 << 2), - SWITCH_ASR_FLAG_FIRE_EVENTS = (1 << 3), - SWITCH_ASR_FLAG_AUTO_RESUME = (1 << 4) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_asr_handle : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_asr_handle(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_asr_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_asr_handle() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_asr_handle(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_asr_interface asr_interface { - set { - freeswitchPINVOKE.switch_asr_handle_asr_interface_set(swigCPtr, switch_asr_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_asr_interface_get(swigCPtr); - switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_asr_handle_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_asr_handle_flags_get(swigCPtr); - return ret; - } - } - - public string name { - set { - freeswitchPINVOKE.switch_asr_handle_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_asr_handle_name_get(swigCPtr); - return ret; - } - } - - public string codec { - set { - freeswitchPINVOKE.switch_asr_handle_codec_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_asr_handle_codec_get(swigCPtr); - return ret; - } - } - - public uint rate { - set { - freeswitchPINVOKE.switch_asr_handle_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_asr_handle_rate_get(swigCPtr); - return ret; - } - } - - public string grammar { - set { - freeswitchPINVOKE.switch_asr_handle_grammar_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_asr_handle_grammar_get(swigCPtr); - return ret; - } - } - - public string param { - set { - freeswitchPINVOKE.switch_asr_handle_param_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_asr_handle_param_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t memory_pool { - set { - freeswitchPINVOKE.switch_asr_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_memory_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_buffer buffer { - set { - freeswitchPINVOKE.switch_asr_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_buffer_get(swigCPtr); - SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char dbuf { - set { - freeswitchPINVOKE.switch_asr_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_dbuf_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t dbuflen { - set { - freeswitchPINVOKE.switch_asr_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_asr_handle_dbuflen_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_audio_resampler_t resampler { - set { - freeswitchPINVOKE.switch_asr_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_resampler_get(swigCPtr); - switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false); - return ret; - } - } - - public uint samplerate { - set { - freeswitchPINVOKE.switch_asr_handle_samplerate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_asr_handle_samplerate_get(swigCPtr); - return ret; - } - } - - public uint native_rate { - set { - freeswitchPINVOKE.switch_asr_handle_native_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_asr_handle_native_rate_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_asr_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public switch_asr_handle() : this(freeswitchPINVOKE.new_switch_asr_handle(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_asr_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_asr_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_asr_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_asr_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_asr_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_asr_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_asr_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t asr_open { - set { - freeswitchPINVOKE.switch_asr_interface_asr_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_open_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t asr_load_grammar { - set { - freeswitchPINVOKE.switch_asr_interface_asr_load_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_load_grammar_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t asr_unload_grammar { - set { - freeswitchPINVOKE.switch_asr_interface_asr_unload_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_unload_grammar_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t asr_close { - set { - freeswitchPINVOKE.switch_asr_interface_asr_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_close_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t asr_feed { - set { - freeswitchPINVOKE.switch_asr_interface_asr_feed_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_feed_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_resume { - set { - freeswitchPINVOKE.switch_asr_interface_asr_resume_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_resume_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_pause { - set { - freeswitchPINVOKE.switch_asr_interface_asr_pause_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_pause_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t asr_check_results { - set { - freeswitchPINVOKE.switch_asr_interface_asr_check_results_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_check_results_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t asr_get_results { - set { - freeswitchPINVOKE.switch_asr_interface_asr_get_results_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_get_results_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t asr_get_result_headers { - set { - freeswitchPINVOKE.switch_asr_interface_asr_get_result_headers_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_get_result_headers_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_start_input_timers { - set { - freeswitchPINVOKE.switch_asr_interface_asr_start_input_timers_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_start_input_timers_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void asr_text_param { - set { - freeswitchPINVOKE.switch_asr_interface_asr_text_param_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_text_param_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void asr_numeric_param { - set { - freeswitchPINVOKE.switch_asr_interface_asr_numeric_param_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_numeric_param_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void asr_float_param { - set { - freeswitchPINVOKE.switch_asr_interface_asr_float_param_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_float_param_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_asr_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_asr_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_asr_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_asr_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_asr_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_asr_interface next { - set { - freeswitchPINVOKE.switch_asr_interface_next_set(swigCPtr, switch_asr_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_next_get(swigCPtr); - switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t asr_enable_grammar { - set { - freeswitchPINVOKE.switch_asr_interface_asr_enable_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_enable_grammar_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t asr_disable_grammar { - set { - freeswitchPINVOKE.switch_asr_interface_asr_disable_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_disable_grammar_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_disable_all_grammars { - set { - freeswitchPINVOKE.switch_asr_interface_asr_disable_all_grammars_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_disable_all_grammars_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t asr_feed_dtmf { - set { - freeswitchPINVOKE.switch_asr_interface_asr_feed_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_feed_dtmf_get(swigCPtr); - SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_asr_interface() : this(freeswitchPINVOKE.new_switch_asr_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_audio_col_t { - SWITCH_AUDIO_COL_STR_TITLE = 0x01, - SWITCH_AUDIO_COL_STR_COPYRIGHT = 0x02, - SWITCH_AUDIO_COL_STR_SOFTWARE = 0x03, - SWITCH_AUDIO_COL_STR_ARTIST = 0x04, - SWITCH_AUDIO_COL_STR_COMMENT = 0x05, - SWITCH_AUDIO_COL_STR_DATE = 0x06 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_audio_resampler_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_audio_resampler_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_audio_resampler_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_audio_resampler_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_audio_resampler_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_void resampler { - set { - freeswitchPINVOKE.switch_audio_resampler_t_resampler_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_audio_resampler_t_resampler_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public int from_rate { - set { - freeswitchPINVOKE.switch_audio_resampler_t_from_rate_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_audio_resampler_t_from_rate_get(swigCPtr); - return ret; - } - } - - public int to_rate { - set { - freeswitchPINVOKE.switch_audio_resampler_t_to_rate_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_audio_resampler_t_to_rate_get(swigCPtr); - return ret; - } - } - - public double factor { - set { - freeswitchPINVOKE.switch_audio_resampler_t_factor_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_audio_resampler_t_factor_get(swigCPtr); - return ret; - } - } - - public double rfactor { - set { - freeswitchPINVOKE.switch_audio_resampler_t_rfactor_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_audio_resampler_t_rfactor_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_short to { - set { - freeswitchPINVOKE.switch_audio_resampler_t_to_set(swigCPtr, SWIGTYPE_p_short.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_audio_resampler_t_to_get(swigCPtr); - SWIGTYPE_p_short ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_short(cPtr, false); - return ret; - } - } - - public uint to_len { - set { - freeswitchPINVOKE.switch_audio_resampler_t_to_len_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_audio_resampler_t_to_len_get(swigCPtr); - return ret; - } - } - - public uint to_size { - set { - freeswitchPINVOKE.switch_audio_resampler_t_to_size_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_audio_resampler_t_to_size_get(swigCPtr); - return ret; - } - } - - public int channels { - set { - freeswitchPINVOKE.switch_audio_resampler_t_channels_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_audio_resampler_t_channels_get(swigCPtr); - return ret; - } - } - - public switch_audio_resampler_t() : this(freeswitchPINVOKE.new_switch_audio_resampler_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_bind_flag_enum_t { - SBF_DIAL_ALEG = (1 << 0), - SBF_EXEC_ALEG = (1 << 1), - SBF_DIAL_BLEG = (1 << 2), - SBF_EXEC_BLEG = (1 << 3), - SBF_EXEC_OPPOSITE = (1 << 4), - SBF_EXEC_SAME = (1 << 5), - SBF_ONCE = (1 << 6), - SBF_EXEC_INLINE = (1 << 7) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_bitpack_mode_t { - SWITCH_BITPACK_MODE_RFC3551, - SWITCH_BITPACK_MODE_AAL2 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_bitpack_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_bitpack_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_bitpack_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_bitpack_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_bitpack_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_unsigned_char buf { - set { - freeswitchPINVOKE.switch_bitpack_t_buf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_bitpack_t_buf_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public uint buflen { - set { - freeswitchPINVOKE.switch_bitpack_t_buflen_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_bitpack_t_buflen_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char cur { - set { - freeswitchPINVOKE.switch_bitpack_t_cur_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_bitpack_t_cur_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public uint bytes { - set { - freeswitchPINVOKE.switch_bitpack_t_bytes_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_bitpack_t_bytes_get(swigCPtr); - return ret; - } - } - - public uint bits_tot { - set { - freeswitchPINVOKE.switch_bitpack_t_bits_tot_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_bitpack_t_bits_tot_get(swigCPtr); - return ret; - } - } - - public byte bits_cur { - set { - freeswitchPINVOKE.switch_bitpack_t_bits_cur_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_bits_cur_get(swigCPtr); - return ret; - } - } - - public byte bits_rem { - set { - freeswitchPINVOKE.switch_bitpack_t_bits_rem_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_bits_rem_get(swigCPtr); - return ret; - } - } - - public byte frame_bits { - set { - freeswitchPINVOKE.switch_bitpack_t_frame_bits_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_frame_bits_get(swigCPtr); - return ret; - } - } - - public byte shiftby { - set { - freeswitchPINVOKE.switch_bitpack_t_shiftby_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_shiftby_get(swigCPtr); - return ret; - } - } - - public byte this_byte { - set { - freeswitchPINVOKE.switch_bitpack_t_this_byte_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_this_byte_get(swigCPtr); - return ret; - } - } - - public byte under { - set { - freeswitchPINVOKE.switch_bitpack_t_under_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_under_get(swigCPtr); - return ret; - } - } - - public byte over { - set { - freeswitchPINVOKE.switch_bitpack_t_over_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_bitpack_t_over_get(swigCPtr); - return ret; - } - } - - public switch_bitpack_mode_t mode { - set { - freeswitchPINVOKE.switch_bitpack_t_mode_set(swigCPtr, (int)value); - } - get { - switch_bitpack_mode_t ret = (switch_bitpack_mode_t)freeswitchPINVOKE.switch_bitpack_t_mode_get(swigCPtr); - return ret; - } - } - - public switch_bitpack_t() : this(freeswitchPINVOKE.new_switch_bitpack_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_bool_t { - SWITCH_FALSE = 0, - SWITCH_TRUE = 1 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_cache_db_connection_options_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_cache_db_connection_options_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_cache_db_connection_options_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_cache_db_connection_options_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_cache_db_connection_options_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_cache_db_core_db_options_t core_db_options { - set { - freeswitchPINVOKE.switch_cache_db_connection_options_t_core_db_options_set(swigCPtr, switch_cache_db_core_db_options_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_connection_options_t_core_db_options_get(swigCPtr); - switch_cache_db_core_db_options_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_core_db_options_t(cPtr, false); - return ret; - } - } - - public switch_cache_db_odbc_options_t odbc_options { - set { - freeswitchPINVOKE.switch_cache_db_connection_options_t_odbc_options_set(swigCPtr, switch_cache_db_odbc_options_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_connection_options_t_odbc_options_get(swigCPtr); - switch_cache_db_odbc_options_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_odbc_options_t(cPtr, false); - return ret; - } - } - - public switch_cache_db_pgsql_options_t pgsql_options { - set { - freeswitchPINVOKE.switch_cache_db_connection_options_t_pgsql_options_set(swigCPtr, switch_cache_db_pgsql_options_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_connection_options_t_pgsql_options_get(swigCPtr); - switch_cache_db_pgsql_options_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_pgsql_options_t(cPtr, false); - return ret; - } - } - - public switch_cache_db_connection_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_connection_options_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_cache_db_core_db_options_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_cache_db_core_db_options_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_cache_db_core_db_options_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_cache_db_core_db_options_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_cache_db_core_db_options_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string db_path { - set { - freeswitchPINVOKE.switch_cache_db_core_db_options_t_db_path_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_core_db_options_t_db_path_get(swigCPtr); - return ret; - } - } - - public switch_cache_db_core_db_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_core_db_options_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_cache_db_handle_type_t { - SCDB_TYPE_CORE_DB, - SCDB_TYPE_ODBC, - SCDB_TYPE_PGSQL -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_cache_db_native_handle_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_cache_db_native_handle_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_cache_db_native_handle_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_cache_db_native_handle_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_cache_db_native_handle_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_sqlite3 core_db_dbh { - set { - freeswitchPINVOKE.switch_cache_db_native_handle_t_core_db_dbh_set(swigCPtr, SWIGTYPE_p_sqlite3.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_native_handle_t_core_db_dbh_get(swigCPtr); - SWIGTYPE_p_sqlite3 ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_sqlite3(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_odbc_handle odbc_dbh { - set { - freeswitchPINVOKE.switch_cache_db_native_handle_t_odbc_dbh_set(swigCPtr, SWIGTYPE_p_switch_odbc_handle.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_native_handle_t_odbc_dbh_get(swigCPtr); - SWIGTYPE_p_switch_odbc_handle ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_odbc_handle(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_pgsql_handle pgsql_dbh { - set { - freeswitchPINVOKE.switch_cache_db_native_handle_t_pgsql_dbh_set(swigCPtr, SWIGTYPE_p_switch_pgsql_handle.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_native_handle_t_pgsql_dbh_get(swigCPtr); - SWIGTYPE_p_switch_pgsql_handle ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_pgsql_handle(cPtr, false); - return ret; - } - } - - public switch_cache_db_native_handle_t() : this(freeswitchPINVOKE.new_switch_cache_db_native_handle_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_cache_db_odbc_options_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_cache_db_odbc_options_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_cache_db_odbc_options_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_cache_db_odbc_options_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_cache_db_odbc_options_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string dsn { - set { - freeswitchPINVOKE.switch_cache_db_odbc_options_t_dsn_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_odbc_options_t_dsn_get(swigCPtr); - return ret; - } - } - - public string user { - set { - freeswitchPINVOKE.switch_cache_db_odbc_options_t_user_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_odbc_options_t_user_get(swigCPtr); - return ret; - } - } - - public string pass { - set { - freeswitchPINVOKE.switch_cache_db_odbc_options_t_pass_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_odbc_options_t_pass_get(swigCPtr); - return ret; - } - } - - public switch_cache_db_odbc_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_odbc_options_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_cache_db_pgsql_options_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_cache_db_pgsql_options_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_cache_db_pgsql_options_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_cache_db_pgsql_options_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_cache_db_pgsql_options_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string dsn { - set { - freeswitchPINVOKE.switch_cache_db_pgsql_options_t_dsn_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_pgsql_options_t_dsn_get(swigCPtr); - return ret; - } - } - - public switch_cache_db_pgsql_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_pgsql_options_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_call_cause_t { - SWITCH_CAUSE_NONE = 0, - SWITCH_CAUSE_UNALLOCATED_NUMBER = 1, - SWITCH_CAUSE_NO_ROUTE_TRANSIT_NET = 2, - SWITCH_CAUSE_NO_ROUTE_DESTINATION = 3, - SWITCH_CAUSE_CHANNEL_UNACCEPTABLE = 6, - SWITCH_CAUSE_CALL_AWARDED_DELIVERED = 7, - SWITCH_CAUSE_NORMAL_CLEARING = 16, - SWITCH_CAUSE_USER_BUSY = 17, - SWITCH_CAUSE_NO_USER_RESPONSE = 18, - SWITCH_CAUSE_NO_ANSWER = 19, - SWITCH_CAUSE_SUBSCRIBER_ABSENT = 20, - SWITCH_CAUSE_CALL_REJECTED = 21, - SWITCH_CAUSE_NUMBER_CHANGED = 22, - SWITCH_CAUSE_REDIRECTION_TO_NEW_DESTINATION = 23, - SWITCH_CAUSE_EXCHANGE_ROUTING_ERROR = 25, - SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER = 27, - SWITCH_CAUSE_INVALID_NUMBER_FORMAT = 28, - SWITCH_CAUSE_FACILITY_REJECTED = 29, - SWITCH_CAUSE_RESPONSE_TO_STATUS_ENQUIRY = 30, - SWITCH_CAUSE_NORMAL_UNSPECIFIED = 31, - SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION = 34, - SWITCH_CAUSE_NETWORK_OUT_OF_ORDER = 38, - SWITCH_CAUSE_NORMAL_TEMPORARY_FAILURE = 41, - SWITCH_CAUSE_SWITCH_CONGESTION = 42, - SWITCH_CAUSE_ACCESS_INFO_DISCARDED = 43, - SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL = 44, - SWITCH_CAUSE_PRE_EMPTED = 45, - SWITCH_CAUSE_FACILITY_NOT_SUBSCRIBED = 50, - SWITCH_CAUSE_OUTGOING_CALL_BARRED = 52, - SWITCH_CAUSE_INCOMING_CALL_BARRED = 54, - SWITCH_CAUSE_BEARERCAPABILITY_NOTAUTH = 57, - SWITCH_CAUSE_BEARERCAPABILITY_NOTAVAIL = 58, - SWITCH_CAUSE_SERVICE_UNAVAILABLE = 63, - SWITCH_CAUSE_BEARERCAPABILITY_NOTIMPL = 65, - SWITCH_CAUSE_CHAN_NOT_IMPLEMENTED = 66, - SWITCH_CAUSE_FACILITY_NOT_IMPLEMENTED = 69, - SWITCH_CAUSE_SERVICE_NOT_IMPLEMENTED = 79, - SWITCH_CAUSE_INVALID_CALL_REFERENCE = 81, - SWITCH_CAUSE_INCOMPATIBLE_DESTINATION = 88, - SWITCH_CAUSE_INVALID_MSG_UNSPECIFIED = 95, - SWITCH_CAUSE_MANDATORY_IE_MISSING = 96, - SWITCH_CAUSE_MESSAGE_TYPE_NONEXIST = 97, - SWITCH_CAUSE_WRONG_MESSAGE = 98, - SWITCH_CAUSE_IE_NONEXIST = 99, - SWITCH_CAUSE_INVALID_IE_CONTENTS = 100, - SWITCH_CAUSE_WRONG_CALL_STATE = 101, - SWITCH_CAUSE_RECOVERY_ON_TIMER_EXPIRE = 102, - SWITCH_CAUSE_MANDATORY_IE_LENGTH_ERROR = 103, - SWITCH_CAUSE_PROTOCOL_ERROR = 111, - SWITCH_CAUSE_INTERWORKING = 127, - SWITCH_CAUSE_SUCCESS = 142, - SWITCH_CAUSE_ORIGINATOR_CANCEL = 487, - SWITCH_CAUSE_CRASH = 500, - SWITCH_CAUSE_SYSTEM_SHUTDOWN = 501, - SWITCH_CAUSE_LOSE_RACE = 502, - SWITCH_CAUSE_MANAGER_REQUEST = 503, - SWITCH_CAUSE_BLIND_TRANSFER = 600, - SWITCH_CAUSE_ATTENDED_TRANSFER = 601, - SWITCH_CAUSE_ALLOTTED_TIMEOUT = 602, - SWITCH_CAUSE_USER_CHALLENGE = 603, - SWITCH_CAUSE_MEDIA_TIMEOUT = 604, - SWITCH_CAUSE_PICKED_OFF = 605, - SWITCH_CAUSE_USER_NOT_REGISTERED = 606, - SWITCH_CAUSE_PROGRESS_TIMEOUT = 607, - SWITCH_CAUSE_INVALID_GATEWAY = 608, - SWITCH_CAUSE_GATEWAY_DOWN = 609, - SWITCH_CAUSE_INVALID_URL = 610, - SWITCH_CAUSE_INVALID_PROFILE = 611, - SWITCH_CAUSE_NO_PICKUP = 612, - SWITCH_CAUSE_SRTP_READ_ERROR = 613 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_call_direction_t { - SWITCH_CALL_DIRECTION_INBOUND, - SWITCH_CALL_DIRECTION_OUTBOUND -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_caller_application : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_caller_application(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_caller_application obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_caller_application() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_caller_application(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string application_name { - set { - freeswitchPINVOKE.switch_caller_application_application_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_application_application_name_get(swigCPtr); - return ret; - } - } - - public string application_data { - set { - freeswitchPINVOKE.switch_caller_application_application_data_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_application_application_data_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void application_function { - set { - freeswitchPINVOKE.switch_caller_application_application_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_application_application_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void(cPtr, false); - return ret; - } - } - - public switch_caller_application next { - set { - freeswitchPINVOKE.switch_caller_application_next_set(swigCPtr, switch_caller_application.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_application_next_get(swigCPtr); - switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); - return ret; - } - } - - public switch_caller_application() : this(freeswitchPINVOKE.new_switch_caller_application(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_caller_extension : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_caller_extension(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_caller_extension obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_caller_extension() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_caller_extension(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string extension_name { - set { - freeswitchPINVOKE.switch_caller_extension_extension_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_extension_extension_name_get(swigCPtr); - return ret; - } - } - - public string extension_number { - set { - freeswitchPINVOKE.switch_caller_extension_extension_number_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_extension_extension_number_get(swigCPtr); - return ret; - } - } - - public switch_caller_application current_application { - set { - freeswitchPINVOKE.switch_caller_extension_current_application_set(swigCPtr, switch_caller_application.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_current_application_get(swigCPtr); - switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); - return ret; - } - } - - public switch_caller_application last_application { - set { - freeswitchPINVOKE.switch_caller_extension_last_application_set(swigCPtr, switch_caller_application.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_last_application_get(swigCPtr); - switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); - return ret; - } - } - - public switch_caller_application applications { - set { - freeswitchPINVOKE.switch_caller_extension_applications_set(swigCPtr, switch_caller_application.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_applications_get(swigCPtr); - switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); - return ret; - } - } - - public switch_caller_profile children { - set { - freeswitchPINVOKE.switch_caller_extension_children_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_children_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_caller_extension next { - set { - freeswitchPINVOKE.switch_caller_extension_next_set(swigCPtr, switch_caller_extension.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_next_get(swigCPtr); - switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); - return ret; - } - } - - public switch_caller_extension() : this(freeswitchPINVOKE.new_switch_caller_extension(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_caller_profile : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_caller_profile(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_caller_profile obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_caller_profile() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_caller_profile(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string username { - set { - freeswitchPINVOKE.switch_caller_profile_username_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_username_get(swigCPtr); - return ret; - } - } - - public string dialplan { - set { - freeswitchPINVOKE.switch_caller_profile_dialplan_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_dialplan_get(swigCPtr); - return ret; - } - } - - public string caller_id_name { - set { - freeswitchPINVOKE.switch_caller_profile_caller_id_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_caller_id_name_get(swigCPtr); - return ret; - } - } - - public string caller_id_number { - set { - freeswitchPINVOKE.switch_caller_profile_caller_id_number_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_caller_id_number_get(swigCPtr); - return ret; - } - } - - public string orig_caller_id_name { - set { - freeswitchPINVOKE.switch_caller_profile_orig_caller_id_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_orig_caller_id_name_get(swigCPtr); - return ret; - } - } - - public string orig_caller_id_number { - set { - freeswitchPINVOKE.switch_caller_profile_orig_caller_id_number_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_orig_caller_id_number_get(swigCPtr); - return ret; - } - } - - public string callee_id_name { - set { - freeswitchPINVOKE.switch_caller_profile_callee_id_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_callee_id_name_get(swigCPtr); - return ret; - } - } - - public string callee_id_number { - set { - freeswitchPINVOKE.switch_caller_profile_callee_id_number_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_callee_id_number_get(swigCPtr); - return ret; - } - } - - public byte caller_ton { - set { - freeswitchPINVOKE.switch_caller_profile_caller_ton_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_caller_ton_get(swigCPtr); - return ret; - } - } - - public byte caller_numplan { - set { - freeswitchPINVOKE.switch_caller_profile_caller_numplan_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_caller_numplan_get(swigCPtr); - return ret; - } - } - - public string network_addr { - set { - freeswitchPINVOKE.switch_caller_profile_network_addr_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_network_addr_get(swigCPtr); - return ret; - } - } - - public string ani { - set { - freeswitchPINVOKE.switch_caller_profile_ani_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_ani_get(swigCPtr); - return ret; - } - } - - public byte ani_ton { - set { - freeswitchPINVOKE.switch_caller_profile_ani_ton_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_ani_ton_get(swigCPtr); - return ret; - } - } - - public byte ani_numplan { - set { - freeswitchPINVOKE.switch_caller_profile_ani_numplan_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_ani_numplan_get(swigCPtr); - return ret; - } - } - - public string aniii { - set { - freeswitchPINVOKE.switch_caller_profile_aniii_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_aniii_get(swigCPtr); - return ret; - } - } - - public string rdnis { - set { - freeswitchPINVOKE.switch_caller_profile_rdnis_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_rdnis_get(swigCPtr); - return ret; - } - } - - public byte rdnis_ton { - set { - freeswitchPINVOKE.switch_caller_profile_rdnis_ton_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_rdnis_ton_get(swigCPtr); - return ret; - } - } - - public byte rdnis_numplan { - set { - freeswitchPINVOKE.switch_caller_profile_rdnis_numplan_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_rdnis_numplan_get(swigCPtr); - return ret; - } - } - - public string destination_number { - set { - freeswitchPINVOKE.switch_caller_profile_destination_number_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_destination_number_get(swigCPtr); - return ret; - } - } - - public byte destination_number_ton { - set { - freeswitchPINVOKE.switch_caller_profile_destination_number_ton_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_destination_number_ton_get(swigCPtr); - return ret; - } - } - - public byte destination_number_numplan { - set { - freeswitchPINVOKE.switch_caller_profile_destination_number_numplan_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_caller_profile_destination_number_numplan_get(swigCPtr); - return ret; - } - } - - public string source { - set { - freeswitchPINVOKE.switch_caller_profile_source_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_source_get(swigCPtr); - return ret; - } - } - - public string chan_name { - set { - freeswitchPINVOKE.switch_caller_profile_chan_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_chan_name_get(swigCPtr); - return ret; - } - } - - public string uuid { - set { - freeswitchPINVOKE.switch_caller_profile_uuid_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_uuid_get(swigCPtr); - return ret; - } - } - - public string context { - set { - freeswitchPINVOKE.switch_caller_profile_context_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_context_get(swigCPtr); - return ret; - } - } - - public string profile_index { - set { - freeswitchPINVOKE.switch_caller_profile_profile_index_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_profile_index_get(swigCPtr); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_caller_profile_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_caller_profile_flags_get(swigCPtr); - return ret; - } - } - - public switch_caller_profile originator_caller_profile { - set { - freeswitchPINVOKE.switch_caller_profile_originator_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_originator_caller_profile_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_caller_profile originatee_caller_profile { - set { - freeswitchPINVOKE.switch_caller_profile_originatee_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_originatee_caller_profile_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_caller_profile origination_caller_profile { - set { - freeswitchPINVOKE.switch_caller_profile_origination_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_origination_caller_profile_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_caller_profile hunt_caller_profile { - set { - freeswitchPINVOKE.switch_caller_profile_hunt_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_hunt_caller_profile_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_channel_timetable times { - set { - freeswitchPINVOKE.switch_caller_profile_times_set(swigCPtr, switch_channel_timetable.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_times_get(swigCPtr); - switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); - return ret; - } - } - - public switch_channel_timetable old_times { - set { - freeswitchPINVOKE.switch_caller_profile_old_times_set(swigCPtr, switch_channel_timetable.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_old_times_get(swigCPtr); - switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); - return ret; - } - } - - public switch_caller_extension caller_extension { - set { - freeswitchPINVOKE.switch_caller_profile_caller_extension_set(swigCPtr, switch_caller_extension.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_caller_extension_get(swigCPtr); - switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t pool { - set { - freeswitchPINVOKE.switch_caller_profile_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public switch_caller_profile next { - set { - freeswitchPINVOKE.switch_caller_profile_next_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_next_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_call_direction_t direction { - set { - freeswitchPINVOKE.switch_caller_profile_direction_set(swigCPtr, (int)value); - } - get { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_caller_profile_direction_get(swigCPtr); - return ret; - } - } - - public switch_call_direction_t logical_direction { - set { - freeswitchPINVOKE.switch_caller_profile_logical_direction_set(swigCPtr, (int)value); - } - get { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_caller_profile_logical_direction_get(swigCPtr); - return ret; - } - } - - public profile_node_t soft { - set { - freeswitchPINVOKE.switch_caller_profile_soft_set(swigCPtr, profile_node_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_soft_get(swigCPtr); - profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false); - return ret; - } - } - - public string uuid_str { - set { - freeswitchPINVOKE.switch_caller_profile_uuid_str_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_uuid_str_get(swigCPtr); - return ret; - } - } - - public string clone_of { - set { - freeswitchPINVOKE.switch_caller_profile_clone_of_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_clone_of_get(swigCPtr); - return ret; - } - } - - public string transfer_source { - set { - freeswitchPINVOKE.switch_caller_profile_transfer_source_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_caller_profile_transfer_source_get(swigCPtr); - return ret; - } - } - - public switch_caller_profile() : this(freeswitchPINVOKE.new_switch_caller_profile(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_caller_profile_flag_enum_t { - SWITCH_CPF_NONE = 0, - SWITCH_CPF_SCREEN = (1 << 0), - SWITCH_CPF_HIDE_NAME = (1 << 1), - SWITCH_CPF_HIDE_NUMBER = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_channel_app_flag_t { - CF_APP_TAGGED = (1 << 0), - CF_APP_T38 = (1 << 1), - CF_APP_T38_REQ = (1 << 2), - CF_APP_T38_FAIL = (1 << 3), - CF_APP_T38_NEGOTIATED = (1 << 4) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_channel_callstate_t { - CCS_DOWN, - CCS_DIALING, - CCS_RINGING, - CCS_EARLY, - CCS_ACTIVE, - CCS_HELD, - CCS_RING_WAIT, - CCS_HANGUP, - CCS_UNHELD -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_channel_cap_t { - CC_MEDIA_ACK = 1, - CC_BYPASS_MEDIA, - CC_PROXY_MEDIA, - CC_JITTERBUFFER, - CC_FS_RTP, - CC_QUEUEABLE_DTMF_DELAY, - CC_FLAG_MAX -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_channel_flag_t { - CF_ANSWERED = 1, - CF_OUTBOUND, - CF_EARLY_MEDIA, - CF_BRIDGE_ORIGINATOR, - CF_UUID_BRIDGE_ORIGINATOR, - CF_TRANSFER, - CF_ACCEPT_CNG, - CF_REDIRECT, - CF_BRIDGED, - CF_HOLD, - CF_SERVICE, - CF_TAGGED, - CF_WINNER, - CF_CONTROLLED, - CF_PROXY_MODE, - CF_SUSPEND, - CF_EVENT_PARSE, - CF_GEN_RINGBACK, - CF_RING_READY, - CF_BREAK, - CF_BROADCAST, - CF_UNICAST, - CF_VIDEO, - CF_EVENT_LOCK, - CF_EVENT_LOCK_PRI, - CF_RESET, - CF_ORIGINATING, - CF_STOP_BROADCAST, - CF_PROXY_MEDIA, - CF_INNER_BRIDGE, - CF_REQ_MEDIA, - CF_VERBOSE_EVENTS, - CF_PAUSE_BUGS, - CF_DIVERT_EVENTS, - CF_BLOCK_STATE, - CF_FS_RTP, - CF_REPORTING, - CF_PARK, - CF_TIMESTAMP_SET, - CF_ORIGINATOR, - CF_XFER_ZOMBIE, - CF_MEDIA_ACK, - CF_THREAD_SLEEPING, - CF_DISABLE_RINGBACK, - CF_NOT_READY, - CF_SIGNAL_BRIDGE_TTL, - CF_MEDIA_BRIDGE_TTL, - CF_BYPASS_MEDIA_AFTER_BRIDGE, - CF_LEG_HOLDING, - CF_BROADCAST_DROP_MEDIA, - CF_EARLY_HANGUP, - CF_MEDIA_SET, - CF_CONSUME_ON_ORIGINATE, - CF_PASSTHRU_PTIME_MISMATCH, - CF_BRIDGE_NOWRITE, - CF_RECOVERED, - CF_JITTERBUFFER, - CF_JITTERBUFFER_PLC, - CF_DIALPLAN, - CF_BLEG, - CF_BLOCK_BROADCAST_UNTIL_MEDIA, - CF_CNG_PLC, - CF_ATTENDED_TRANSFER, - CF_LAZY_ATTENDED_TRANSFER, - CF_SIGNAL_DATA, - CF_SIMPLIFY, - CF_ZOMBIE_EXEC, - CF_INTERCEPT, - CF_INTERCEPTED, - CF_VIDEO_REFRESH_REQ, - CF_SERVICE_AUDIO, - CF_SERVICE_VIDEO, - CF_ZRTP_PASSTHRU_REQ, - CF_ZRTP_PASSTHRU, - CF_ZRTP_HASH, - CF_CHANNEL_SWAP, - CF_DEVICE_LEG, - CF_FINAL_DEVICE_LEG, - CF_PICKUP, - CF_CONFIRM_BLIND_TRANSFER, - CF_NO_PRESENCE, - CF_CONFERENCE, - CF_CONFERENCE_ADV, - CF_RECOVERING, - CF_RECOVERING_BRIDGE, - CF_TRACKED, - CF_TRACKABLE, - CF_NO_CDR, - CF_EARLY_OK, - CF_MEDIA_TRANS, - CF_HOLD_ON_BRIDGE, - CF_SECURE, - CF_LIBERAL_DTMF, - CF_SLA_BARGE, - CF_SLA_BARGING, - CF_PROTO_HOLD, - CF_HOLD_LOCK, - CF_VIDEO_POSSIBLE, - CF_NOTIMER_DURING_BRIDGE, - CF_PASS_RFC2833, - CF_T38_PASSTHRU, - CF_DROP_DTMF, - CF_REINVITE, - CF_AUTOFLUSH_DURING_BRIDGE, - CF_RTP_NOTIMER_DURING_BRIDGE, - CF_WEBRTC, - CF_WEBRTC_MOZ, - CF_ICE, - CF_DTLS, - CF_VERBOSE_SDP, - CF_DTLS_OK, - CF_3PCC, - CF_VIDEO_PASSIVE, - CF_NOVIDEO, - CF_VIDEO_ECHO, - CF_SLA_INTERCEPT, - CF_VIDEO_BREAK, - CF_AUDIO_PAUSE, - CF_VIDEO_PAUSE, - CF_BYPASS_MEDIA_AFTER_HOLD, - CF_HANGUP_HELD, - CF_CONFERENCE_RESET_MEDIA, - CF_FLAG_MAX -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_channel_state_t { - CS_NEW, - CS_INIT, - CS_ROUTING, - CS_SOFT_EXECUTE, - CS_EXECUTE, - CS_EXCHANGE_MEDIA, - CS_PARK, - CS_CONSUME_MEDIA, - CS_HIBERNATE, - CS_RESET, - CS_HANGUP, - CS_REPORTING, - CS_DESTROY, - CS_NONE -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_channel_timetable : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_channel_timetable(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_channel_timetable obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_channel_timetable() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_channel_timetable(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_time_t profile_created { - set { - freeswitchPINVOKE.switch_channel_timetable_profile_created_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_profile_created_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t created { - set { - freeswitchPINVOKE.switch_channel_timetable_created_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_created_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t answered { - set { - freeswitchPINVOKE.switch_channel_timetable_answered_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_answered_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t progress { - set { - freeswitchPINVOKE.switch_channel_timetable_progress_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_progress_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t progress_media { - set { - freeswitchPINVOKE.switch_channel_timetable_progress_media_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_progress_media_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t hungup { - set { - freeswitchPINVOKE.switch_channel_timetable_hungup_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_hungup_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t transferred { - set { - freeswitchPINVOKE.switch_channel_timetable_transferred_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_transferred_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t resurrected { - set { - freeswitchPINVOKE.switch_channel_timetable_resurrected_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_resurrected_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t bridged { - set { - freeswitchPINVOKE.switch_channel_timetable_bridged_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_bridged_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t last_hold { - set { - freeswitchPINVOKE.switch_channel_timetable_last_hold_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_last_hold_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t hold_accum { - set { - freeswitchPINVOKE.switch_channel_timetable_hold_accum_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_hold_accum_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_channel_timetable next { - set { - freeswitchPINVOKE.switch_channel_timetable_next_set(swigCPtr, switch_channel_timetable.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_channel_timetable_next_get(swigCPtr); - switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); - return ret; - } - } - - public switch_channel_timetable() : this(freeswitchPINVOKE.new_switch_channel_timetable(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_chat_application_flag_enum_t { - SCAF_NONE = 0 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_chat_application_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_chat_application_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_chat_application_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_chat_application_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_chat_application_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_chat_application_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_chat_application_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t chat_application_function { - set { - freeswitchPINVOKE.switch_chat_application_interface_chat_application_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_chat_application_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public string long_desc { - set { - freeswitchPINVOKE.switch_chat_application_interface_long_desc_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_chat_application_interface_long_desc_get(swigCPtr); - return ret; - } - } - - public string short_desc { - set { - freeswitchPINVOKE.switch_chat_application_interface_short_desc_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_chat_application_interface_short_desc_get(swigCPtr); - return ret; - } - } - - public string syntax { - set { - freeswitchPINVOKE.switch_chat_application_interface_syntax_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_chat_application_interface_syntax_get(swigCPtr); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_chat_application_interface_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_chat_application_interface_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_chat_application_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_chat_application_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_chat_application_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_chat_application_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_chat_application_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_chat_application_interface next { - set { - freeswitchPINVOKE.switch_chat_application_interface_next_set(swigCPtr, switch_chat_application_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_next_get(swigCPtr); - switch_chat_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_application_interface(cPtr, false); - return ret; - } - } - - public switch_chat_application_interface() : this(freeswitchPINVOKE.new_switch_chat_application_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_chat_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_chat_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_chat_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_chat_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_chat_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_chat_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_chat_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_event__switch_status_t chat_send { - set { - freeswitchPINVOKE.switch_chat_interface_chat_send_set(swigCPtr, SWIGTYPE_p_f_p_switch_event__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_chat_send_get(swigCPtr); - SWIGTYPE_p_f_p_switch_event__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_event__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_chat_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_chat_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_chat_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_chat_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_chat_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_chat_interface next { - set { - freeswitchPINVOKE.switch_chat_interface_next_set(swigCPtr, switch_chat_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_next_get(swigCPtr); - switch_chat_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_interface(cPtr, false); - return ret; - } - } - - public switch_chat_interface() : this(freeswitchPINVOKE.new_switch_chat_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_codec : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_codec(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_codec obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_codec() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_codec(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_codec_interface codec_interface { - set { - freeswitchPINVOKE.switch_codec_codec_interface_set(swigCPtr, switch_codec_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_codec_interface_get(swigCPtr); - switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); - return ret; - } - } - - public switch_codec_implementation implementation { - set { - freeswitchPINVOKE.switch_codec_implementation_set(swigCPtr, switch_codec_implementation.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_get(swigCPtr); - switch_codec_implementation ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_implementation(cPtr, false); - return ret; - } - } - - public string fmtp_in { - set { - freeswitchPINVOKE.switch_codec_fmtp_in_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_codec_fmtp_in_get(swigCPtr); - return ret; - } - } - - public string fmtp_out { - set { - freeswitchPINVOKE.switch_codec_fmtp_out_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_codec_fmtp_out_get(swigCPtr); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_codec_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t memory_pool { - set { - freeswitchPINVOKE.switch_codec_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_memory_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_codec_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public byte agreed_pt { - set { - freeswitchPINVOKE.switch_codec_agreed_pt_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_codec_agreed_pt_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t mutex { - set { - freeswitchPINVOKE.switch_codec_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_mutex_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_codec next { - set { - freeswitchPINVOKE.switch_codec_next_set(swigCPtr, switch_codec.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_next_get(swigCPtr); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_core_session session { - set { - freeswitchPINVOKE.switch_codec_session_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_session_get(swigCPtr); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - } - - public switch_frame cur_frame { - set { - freeswitchPINVOKE.switch_codec_cur_frame_set(swigCPtr, switch_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_cur_frame_get(swigCPtr); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - } - - public switch_codec() : this(freeswitchPINVOKE.new_switch_codec(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_codec_flag_enum_t { - SWITCH_CODEC_FLAG_ENCODE = (1 << 0), - SWITCH_CODEC_FLAG_DECODE = (1 << 1), - SWITCH_CODEC_FLAG_SILENCE_START = (1 << 2), - SWITCH_CODEC_FLAG_SILENCE_STOP = (1 << 3), - SWITCH_CODEC_FLAG_SILENCE = (1 << 4), - SWITCH_CODEC_FLAG_FREE_POOL = (1 << 5), - SWITCH_CODEC_FLAG_AAL2 = (1 << 6), - SWITCH_CODEC_FLAG_PASSTHROUGH = (1 << 7), - SWITCH_CODEC_FLAG_READY = (1 << 8) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_codec_fmtp : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_codec_fmtp(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_codec_fmtp obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_codec_fmtp() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_codec_fmtp(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint actual_samples_per_second { - set { - freeswitchPINVOKE.switch_codec_fmtp_actual_samples_per_second_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_fmtp_actual_samples_per_second_get(swigCPtr); - return ret; - } - } - - public int bits_per_second { - set { - freeswitchPINVOKE.switch_codec_fmtp_bits_per_second_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_fmtp_bits_per_second_get(swigCPtr); - return ret; - } - } - - public int microseconds_per_packet { - set { - freeswitchPINVOKE.switch_codec_fmtp_microseconds_per_packet_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_fmtp_microseconds_per_packet_get(swigCPtr); - return ret; - } - } - - public int stereo { - set { - freeswitchPINVOKE.switch_codec_fmtp_stereo_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_fmtp_stereo_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_codec_fmtp_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_fmtp_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public switch_codec_fmtp() : this(freeswitchPINVOKE.new_switch_codec_fmtp(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_codec_implementation : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_codec_implementation(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_codec_implementation obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_codec_implementation() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_codec_implementation(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_codec_type_t codec_type { - set { - freeswitchPINVOKE.switch_codec_implementation_codec_type_set(swigCPtr, (int)value); - } - get { - switch_codec_type_t ret = (switch_codec_type_t)freeswitchPINVOKE.switch_codec_implementation_codec_type_get(swigCPtr); - return ret; - } - } - - public byte ianacode { - set { - freeswitchPINVOKE.switch_codec_implementation_ianacode_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_codec_implementation_ianacode_get(swigCPtr); - return ret; - } - } - - public string iananame { - set { - freeswitchPINVOKE.switch_codec_implementation_iananame_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_codec_implementation_iananame_get(swigCPtr); - return ret; - } - } - - public string fmtp { - set { - freeswitchPINVOKE.switch_codec_implementation_fmtp_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_codec_implementation_fmtp_get(swigCPtr); - return ret; - } - } - - public uint samples_per_second { - set { - freeswitchPINVOKE.switch_codec_implementation_samples_per_second_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_samples_per_second_get(swigCPtr); - return ret; - } - } - - public uint actual_samples_per_second { - set { - freeswitchPINVOKE.switch_codec_implementation_actual_samples_per_second_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_actual_samples_per_second_get(swigCPtr); - return ret; - } - } - - public int bits_per_second { - set { - freeswitchPINVOKE.switch_codec_implementation_bits_per_second_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_implementation_bits_per_second_get(swigCPtr); - return ret; - } - } - - public int microseconds_per_packet { - set { - freeswitchPINVOKE.switch_codec_implementation_microseconds_per_packet_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_implementation_microseconds_per_packet_get(swigCPtr); - return ret; - } - } - - public uint samples_per_packet { - set { - freeswitchPINVOKE.switch_codec_implementation_samples_per_packet_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_samples_per_packet_get(swigCPtr); - return ret; - } - } - - public uint decoded_bytes_per_packet { - set { - freeswitchPINVOKE.switch_codec_implementation_decoded_bytes_per_packet_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_decoded_bytes_per_packet_get(swigCPtr); - return ret; - } - } - - public uint encoded_bytes_per_packet { - set { - freeswitchPINVOKE.switch_codec_implementation_encoded_bytes_per_packet_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_encoded_bytes_per_packet_get(swigCPtr); - return ret; - } - } - - public byte number_of_channels { - set { - freeswitchPINVOKE.switch_codec_implementation_number_of_channels_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_codec_implementation_number_of_channels_get(swigCPtr); - return ret; - } - } - - public int codec_frames_per_packet { - set { - freeswitchPINVOKE.switch_codec_implementation_codec_frames_per_packet_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_implementation_codec_frames_per_packet_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t init { - set { - freeswitchPINVOKE.switch_codec_implementation_init_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_init_get(swigCPtr); - SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t encode { - set { - freeswitchPINVOKE.switch_codec_implementation_encode_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_encode_get(swigCPtr); - SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t decode { - set { - freeswitchPINVOKE.switch_codec_implementation_decode_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_decode_get(swigCPtr); - SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_codec__switch_status_t destroy { - set { - freeswitchPINVOKE.switch_codec_implementation_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_destroy_get(swigCPtr); - SWIGTYPE_p_f_p_switch_codec__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec__switch_status_t(cPtr, false); - return ret; - } - } - - public uint codec_id { - set { - freeswitchPINVOKE.switch_codec_implementation_codec_id_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_codec_id_get(swigCPtr); - return ret; - } - } - - public uint impl_id { - set { - freeswitchPINVOKE.switch_codec_implementation_impl_id_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_implementation_impl_id_get(swigCPtr); - return ret; - } - } - - public switch_codec_implementation next { - set { - freeswitchPINVOKE.switch_codec_implementation_next_set(swigCPtr, switch_codec_implementation.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_next_get(swigCPtr); - switch_codec_implementation ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_implementation(cPtr, false); - return ret; - } - } - - public switch_codec_implementation() : this(freeswitchPINVOKE.new_switch_codec_implementation(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_codec_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_codec_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_codec_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_codec_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_codec_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_codec_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_codec_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public switch_codec_implementation implementations { - set { - freeswitchPINVOKE.switch_codec_interface_implementations_set(swigCPtr, switch_codec_implementation.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_implementations_get(swigCPtr); - switch_codec_implementation ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_implementation(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t parse_fmtp { - set { - freeswitchPINVOKE.switch_codec_interface_parse_fmtp_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_parse_fmtp_get(swigCPtr); - SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t(cPtr, false); - return ret; - } - } - - public uint codec_id { - set { - freeswitchPINVOKE.switch_codec_interface_codec_id_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_codec_interface_codec_id_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_codec_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_codec_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_codec_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_codec_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_codec_interface next { - set { - freeswitchPINVOKE.switch_codec_interface_next_set(swigCPtr, switch_codec_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_next_get(swigCPtr); - switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); - return ret; - } - } - - public switch_codec_interface() : this(freeswitchPINVOKE.new_switch_codec_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_codec_settings : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_codec_settings(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_codec_settings obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_codec_settings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_codec_settings(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public int unused { - set { - freeswitchPINVOKE.switch_codec_settings_unused_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_codec_settings_unused_get(swigCPtr); - return ret; - } - } - - public switch_codec_settings() : this(freeswitchPINVOKE.new_switch_codec_settings(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_codec_type_t { - SWITCH_CODEC_TYPE_AUDIO, - SWITCH_CODEC_TYPE_VIDEO, - SWITCH_CODEC_TYPE_T38, - SWITCH_CODEC_TYPE_APP -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_config : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_config(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_config obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_config() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_config(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_FILE file { - set { - freeswitchPINVOKE.switch_config_file_set(swigCPtr, SWIGTYPE_p_FILE.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_config_file_get(swigCPtr); - SWIGTYPE_p_FILE ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_FILE(cPtr, false); - return ret; - } - } - - public string path { - set { - freeswitchPINVOKE.switch_config_path_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_config_path_get(swigCPtr); - return ret; - } - } - - public string category { - set { - freeswitchPINVOKE.switch_config_category_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_config_category_get(swigCPtr); - return ret; - } - } - - public string section { - set { - freeswitchPINVOKE.switch_config_section_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_config_section_get(swigCPtr); - return ret; - } - } - - public string buf { - set { - freeswitchPINVOKE.switch_config_buf_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_config_buf_get(swigCPtr); - return ret; - } - } - - public int lineno { - set { - freeswitchPINVOKE.switch_config_lineno_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_config_lineno_get(swigCPtr); - return ret; - } - } - - public int catno { - set { - freeswitchPINVOKE.switch_config_catno_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_config_catno_get(swigCPtr); - return ret; - } - } - - public int sectno { - set { - freeswitchPINVOKE.switch_config_sectno_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_config_sectno_get(swigCPtr); - return ret; - } - } - - public int lockto { - set { - freeswitchPINVOKE.switch_config_lockto_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_config_lockto_get(swigCPtr); - return ret; - } - } - - public switch_config() : this(freeswitchPINVOKE.new_switch_config(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_console_callback_match : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_console_callback_match(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_console_callback_match obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_console_callback_match() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_console_callback_match(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_console_callback_match_node head { - set { - freeswitchPINVOKE.switch_console_callback_match_head_set(swigCPtr, switch_console_callback_match_node.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_console_callback_match_head_get(swigCPtr); - switch_console_callback_match_node ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match_node(cPtr, false); - return ret; - } - } - - public switch_console_callback_match_node end { - set { - freeswitchPINVOKE.switch_console_callback_match_end_set(swigCPtr, switch_console_callback_match_node.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_console_callback_match_end_get(swigCPtr); - switch_console_callback_match_node ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match_node(cPtr, false); - return ret; - } - } - - public int count { - set { - freeswitchPINVOKE.switch_console_callback_match_count_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_console_callback_match_count_get(swigCPtr); - return ret; - } - } - - public int dynamic { - set { - freeswitchPINVOKE.switch_console_callback_match_dynamic_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_console_callback_match_dynamic_get(swigCPtr); - return ret; - } - } - - public switch_console_callback_match() : this(freeswitchPINVOKE.new_switch_console_callback_match(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_console_callback_match_node : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_console_callback_match_node(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_console_callback_match_node obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_console_callback_match_node() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_console_callback_match_node(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string val { - set { - freeswitchPINVOKE.switch_console_callback_match_node_val_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_console_callback_match_node_val_get(swigCPtr); - return ret; - } - } - - public switch_console_callback_match_node next { - set { - freeswitchPINVOKE.switch_console_callback_match_node_next_set(swigCPtr, switch_console_callback_match_node.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_console_callback_match_node_next_get(swigCPtr); - switch_console_callback_match_node ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match_node(cPtr, false); - return ret; - } - } - - public switch_console_callback_match_node() : this(freeswitchPINVOKE.new_switch_console_callback_match_node(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_core_flag_enum_t { - SCF_NONE = 0, - SCF_USE_SQL = (1 << 0), - SCF_NO_NEW_OUTBOUND_SESSIONS = (1 << 1), - SCF_NO_NEW_INBOUND_SESSIONS = (1 << 2), - SCF_NO_NEW_SESSIONS = (SCF_NO_NEW_OUTBOUND_SESSIONS|SCF_NO_NEW_INBOUND_SESSIONS), - SCF_SHUTTING_DOWN = (1 << 3), - SCF_VG = (1 << 4), - SCF_RESTART = (1 << 5), - SCF_SHUTDOWN_REQUESTED = (1 << 6), - SCF_USE_AUTO_NAT = (1 << 7), - SCF_EARLY_HANGUP = (1 << 8), - SCF_CALIBRATE_CLOCK = (1 << 9), - SCF_USE_HEAVY_TIMING = (1 << 10), - SCF_USE_CLOCK_RT = (1 << 11), - SCF_VERBOSE_EVENTS = (1 << 12), - SCF_USE_WIN32_MONOTONIC = (1 << 13), - SCF_AUTO_SCHEMAS = (1 << 14), - SCF_MINIMAL = (1 << 15), - SCF_USE_NAT_MAPPING = (1 << 16), - SCF_CLEAR_SQL = (1 << 17), - SCF_THREADED_SYSTEM_EXEC = (1 << 18), - SCF_SYNC_CLOCK_REQUESTED = (1 << 19), - SCF_CORE_NON_SQLITE_DB_REQ = (1 << 20), - SCF_DEBUG_SQL = (1 << 21), - SCF_API_EXPANSION = (1 << 22), - SCF_SESSION_THREAD_POOL = (1 << 23) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_core_media_ice_type_t { - ICE_GOOGLE_JINGLE = (1 << 0), - ICE_VANILLA = (1 << 1), - ICE_CONTROLLED = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_core_session_message : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_core_session_message(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_core_session_message obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_core_session_message() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_core_session_message(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string from { - set { - freeswitchPINVOKE.switch_core_session_message_from_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_core_session_message_from_get(swigCPtr); - return ret; - } - } - - public switch_core_session_message_types_t message_id { - set { - freeswitchPINVOKE.switch_core_session_message_message_id_set(swigCPtr, (int)value); - } - get { - switch_core_session_message_types_t ret = (switch_core_session_message_types_t)freeswitchPINVOKE.switch_core_session_message_message_id_get(swigCPtr); - return ret; - } - } - - public int numeric_arg { - set { - freeswitchPINVOKE.switch_core_session_message_numeric_arg_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_core_session_message_numeric_arg_get(swigCPtr); - return ret; - } - } - - public string string_arg { - set { - freeswitchPINVOKE.switch_core_session_message_string_arg_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_core_session_message_string_arg_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t string_arg_size { - set { - freeswitchPINVOKE.switch_core_session_message_string_arg_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_string_arg_size_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_void pointer_arg { - set { - freeswitchPINVOKE.switch_core_session_message_pointer_arg_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_message_pointer_arg_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t pointer_arg_size { - set { - freeswitchPINVOKE.switch_core_session_message_pointer_arg_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_pointer_arg_size_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public int numeric_reply { - set { - freeswitchPINVOKE.switch_core_session_message_numeric_reply_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_core_session_message_numeric_reply_get(swigCPtr); - return ret; - } - } - - public string string_reply { - set { - freeswitchPINVOKE.switch_core_session_message_string_reply_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_core_session_message_string_reply_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t string_reply_size { - set { - freeswitchPINVOKE.switch_core_session_message_string_reply_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_string_reply_size_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_void pointer_reply { - set { - freeswitchPINVOKE.switch_core_session_message_pointer_reply_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_message_pointer_reply_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t pointer_reply_size { - set { - freeswitchPINVOKE.switch_core_session_message_pointer_reply_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_pointer_reply_size_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_core_session_message_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_session_message_flags_get(swigCPtr); - return ret; - } - } - - public string _file { - set { - freeswitchPINVOKE.switch_core_session_message__file_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_core_session_message__file_get(swigCPtr); - return ret; - } - } - - public string _func { - set { - freeswitchPINVOKE.switch_core_session_message__func_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_core_session_message__func_get(swigCPtr); - return ret; - } - } - - public int _line { - set { - freeswitchPINVOKE.switch_core_session_message__line_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_core_session_message__line_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_p_char string_array_arg { - set { - freeswitchPINVOKE.switch_core_session_message_string_array_arg_set(swigCPtr, SWIGTYPE_p_p_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_message_string_array_arg_get(swigCPtr); - SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_time_t delivery_time { - set { - freeswitchPINVOKE.switch_core_session_message_delivery_time_set(swigCPtr, SWIGTYPE_p_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_time_t ret = new SWIGTYPE_p_time_t(freeswitchPINVOKE.switch_core_session_message_delivery_time_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_core_session_message() : this(freeswitchPINVOKE.new_switch_core_session_message(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_core_session_message_flag_enum_t { - SCSMF_DYNAMIC = (1 << 0), - SCSMF_FREE_STRING_REPLY = (1 << 1), - SCSMF_FREE_POINTER_REPLY = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_core_session_message_types_t { - SWITCH_MESSAGE_REDIRECT_AUDIO, - SWITCH_MESSAGE_TRANSMIT_TEXT, - SWITCH_MESSAGE_INDICATE_ANSWER, - SWITCH_MESSAGE_INDICATE_PROGRESS, - SWITCH_MESSAGE_INDICATE_BRIDGE, - SWITCH_MESSAGE_INDICATE_UNBRIDGE, - SWITCH_MESSAGE_INDICATE_TRANSFER, - SWITCH_MESSAGE_INDICATE_RINGING, - SWITCH_MESSAGE_INDICATE_MEDIA, - SWITCH_MESSAGE_INDICATE_NOMEDIA, - SWITCH_MESSAGE_INDICATE_HOLD, - SWITCH_MESSAGE_INDICATE_UNHOLD, - SWITCH_MESSAGE_INDICATE_REDIRECT, - SWITCH_MESSAGE_INDICATE_RESPOND, - SWITCH_MESSAGE_INDICATE_BROADCAST, - SWITCH_MESSAGE_INDICATE_MEDIA_REDIRECT, - SWITCH_MESSAGE_INDICATE_DEFLECT, - SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ, - SWITCH_MESSAGE_INDICATE_DISPLAY, - SWITCH_MESSAGE_INDICATE_TRANSCODING_NECESSARY, - SWITCH_MESSAGE_INDICATE_AUDIO_SYNC, - SWITCH_MESSAGE_INDICATE_REQUEST_IMAGE_MEDIA, - SWITCH_MESSAGE_INDICATE_UUID_CHANGE, - SWITCH_MESSAGE_INDICATE_SIMPLIFY, - SWITCH_MESSAGE_INDICATE_DEBUG_MEDIA, - SWITCH_MESSAGE_INDICATE_PROXY_MEDIA, - SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC, - SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC_COMPLETE, - SWITCH_MESSAGE_INDICATE_PHONE_EVENT, - SWITCH_MESSAGE_INDICATE_T38_DESCRIPTION, - SWITCH_MESSAGE_INDICATE_UDPTL_MODE, - SWITCH_MESSAGE_INDICATE_CLEAR_PROGRESS, - SWITCH_MESSAGE_INDICATE_JITTER_BUFFER, - SWITCH_MESSAGE_INDICATE_RECOVERY_REFRESH, - SWITCH_MESSAGE_INDICATE_SIGNAL_DATA, - SWITCH_MESSAGE_INDICATE_MESSAGE, - SWITCH_MESSAGE_INDICATE_INFO, - SWITCH_MESSAGE_INDICATE_AUDIO_DATA, - SWITCH_MESSAGE_INDICATE_BLIND_TRANSFER_RESPONSE, - SWITCH_MESSAGE_INDICATE_STUN_ERROR, - SWITCH_MESSAGE_INDICATE_MEDIA_RENEG, - SWITCH_MESSAGE_INDICATE_KEEPALIVE, - SWITCH_MESSAGE_REFER_EVENT, - SWITCH_MESSAGE_ANSWER_EVENT, - SWITCH_MESSAGE_PROGRESS_EVENT, - SWITCH_MESSAGE_RING_EVENT, - SWITCH_MESSAGE_RESAMPLE_EVENT, - SWITCH_MESSAGE_HEARTBEAT_EVENT, - SWITCH_MESSAGE_INVALID -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_core_thread_session : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_core_thread_session(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_core_thread_session obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_core_thread_session() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_core_thread_session(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public int running { - set { - freeswitchPINVOKE.switch_core_thread_session_running_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_core_thread_session_running_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t mutex { - set { - freeswitchPINVOKE.switch_core_thread_session_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_mutex_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_p_void objs { - set { - freeswitchPINVOKE.switch_core_thread_session_objs_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_objs_get(swigCPtr); - SWIGTYPE_p_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t input_callback { - set { - freeswitchPINVOKE.switch_core_thread_session_input_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_input_callback_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t pool { - set { - freeswitchPINVOKE.switch_core_thread_session_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public switch_core_thread_session() : this(freeswitchPINVOKE.new_switch_core_thread_session(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_core_time_duration : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_core_time_duration(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_core_time_duration obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_core_time_duration() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_core_time_duration(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint mms { - set { - freeswitchPINVOKE.switch_core_time_duration_mms_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_mms_get(swigCPtr); - return ret; - } - } - - public uint ms { - set { - freeswitchPINVOKE.switch_core_time_duration_ms_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_ms_get(swigCPtr); - return ret; - } - } - - public uint sec { - set { - freeswitchPINVOKE.switch_core_time_duration_sec_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_sec_get(swigCPtr); - return ret; - } - } - - public uint min { - set { - freeswitchPINVOKE.switch_core_time_duration_min_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_min_get(swigCPtr); - return ret; - } - } - - public uint hr { - set { - freeswitchPINVOKE.switch_core_time_duration_hr_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_hr_get(swigCPtr); - return ret; - } - } - - public uint day { - set { - freeswitchPINVOKE.switch_core_time_duration_day_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_day_get(swigCPtr); - return ret; - } - } - - public uint yr { - set { - freeswitchPINVOKE.switch_core_time_duration_yr_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_core_time_duration_yr_get(swigCPtr); - return ret; - } - } - - public switch_core_time_duration() : this(freeswitchPINVOKE.new_switch_core_time_duration(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_device_node_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_device_node_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_device_node_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_device_node_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_device_node_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string uuid { - set { - freeswitchPINVOKE.switch_device_node_t_uuid_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_device_node_t_uuid_get(swigCPtr); - return ret; - } - } - - public switch_xml xml_cdr { - set { - freeswitchPINVOKE.switch_device_node_t_xml_cdr_set(swigCPtr, switch_xml.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_xml_cdr_get(swigCPtr); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - } - - public switch_event _event { - set { - freeswitchPINVOKE.switch_device_node_t__event_set(swigCPtr, switch_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t__event_get(swigCPtr); - switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); - return ret; - } - } - - public switch_channel_callstate_t callstate { - set { - freeswitchPINVOKE.switch_device_node_t_callstate_set(swigCPtr, (int)value); - } - get { - switch_channel_callstate_t ret = (switch_channel_callstate_t)freeswitchPINVOKE.switch_device_node_t_callstate_get(swigCPtr); - return ret; - } - } - - public switch_hold_record_t hold_record { - set { - freeswitchPINVOKE.switch_device_node_t_hold_record_set(swigCPtr, switch_hold_record_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_hold_record_get(swigCPtr); - switch_hold_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_hold_record_t(cPtr, false); - return ret; - } - } - - public switch_caller_profile hup_profile { - set { - freeswitchPINVOKE.switch_device_node_t_hup_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_hup_profile_get(swigCPtr); - switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); - return ret; - } - } - - public switch_call_direction_t direction { - set { - freeswitchPINVOKE.switch_device_node_t_direction_set(swigCPtr, (int)value); - } - get { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_device_node_t_direction_get(swigCPtr); - return ret; - } - } - - public switch_device_record_t parent { - set { - freeswitchPINVOKE.switch_device_node_t_parent_set(swigCPtr, switch_device_record_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_parent_get(swigCPtr); - switch_device_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_record_t(cPtr, false); - return ret; - } - } - - public switch_device_node_t next { - set { - freeswitchPINVOKE.switch_device_node_t_next_set(swigCPtr, switch_device_node_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_next_get(swigCPtr); - switch_device_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_node_t(cPtr, false); - return ret; - } - } - - public switch_device_node_t() : this(freeswitchPINVOKE.new_switch_device_node_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_device_record_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_device_record_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_device_record_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_device_record_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_device_record_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string device_id { - set { - freeswitchPINVOKE.switch_device_record_t_device_id_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_device_record_t_device_id_get(swigCPtr); - return ret; - } - } - - public string uuid { - set { - freeswitchPINVOKE.switch_device_record_t_uuid_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_device_record_t_uuid_get(swigCPtr); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_device_record_t_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_device_record_t_refs_get(swigCPtr); - return ret; - } - } - - public switch_device_stats_t stats { - set { - freeswitchPINVOKE.switch_device_record_t_stats_set(swigCPtr, switch_device_stats_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_stats_get(swigCPtr); - switch_device_stats_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_stats_t(cPtr, false); - return ret; - } - } - - public switch_device_stats_t last_stats { - set { - freeswitchPINVOKE.switch_device_record_t_last_stats_set(swigCPtr, switch_device_stats_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_last_stats_get(swigCPtr); - switch_device_stats_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_stats_t(cPtr, false); - return ret; - } - } - - public switch_device_state_t state { - set { - freeswitchPINVOKE.switch_device_record_t_state_set(swigCPtr, (int)value); - } - get { - switch_device_state_t ret = (switch_device_state_t)freeswitchPINVOKE.switch_device_record_t_state_get(swigCPtr); - return ret; - } - } - - public switch_device_state_t last_state { - set { - freeswitchPINVOKE.switch_device_record_t_last_state_set(swigCPtr, (int)value); - } - get { - switch_device_state_t ret = (switch_device_state_t)freeswitchPINVOKE.switch_device_record_t_last_state_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t active_start { - set { - freeswitchPINVOKE.switch_device_record_t_active_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_active_start_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t active_stop { - set { - freeswitchPINVOKE.switch_device_record_t_active_stop_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_active_stop_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t last_call_time { - set { - freeswitchPINVOKE.switch_device_record_t_last_call_time_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_last_call_time_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t ring_start { - set { - freeswitchPINVOKE.switch_device_record_t_ring_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_ring_start_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t ring_stop { - set { - freeswitchPINVOKE.switch_device_record_t_ring_stop_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_ring_stop_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t hold_start { - set { - freeswitchPINVOKE.switch_device_record_t_hold_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_hold_start_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t hold_stop { - set { - freeswitchPINVOKE.switch_device_record_t_hold_stop_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_hold_stop_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t call_start { - set { - freeswitchPINVOKE.switch_device_record_t_call_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_call_start_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_device_node_t uuid_list { - set { - freeswitchPINVOKE.switch_device_record_t_uuid_list_set(swigCPtr, switch_device_node_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_uuid_list_get(swigCPtr); - switch_device_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_node_t(cPtr, false); - return ret; - } - } - - public switch_device_node_t uuid_tail { - set { - freeswitchPINVOKE.switch_device_record_t_uuid_tail_set(swigCPtr, switch_device_node_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_uuid_tail_get(swigCPtr); - switch_device_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_node_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t mutex { - set { - freeswitchPINVOKE.switch_device_record_t_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_mutex_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t pool { - set { - freeswitchPINVOKE.switch_device_record_t_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void user_data { - set { - freeswitchPINVOKE.switch_device_record_t_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public switch_device_record_t() : this(freeswitchPINVOKE.new_switch_device_record_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_device_state_t { - SDS_DOWN, - SDS_RINGING, - SDS_ACTIVE, - SDS_ACTIVE_MULTI, - SDS_HELD, - SDS_UNHELD, - SDS_HANGUP -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_device_stats_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_device_stats_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_device_stats_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_device_stats_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_device_stats_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint total { - set { - freeswitchPINVOKE.switch_device_stats_t_total_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_total_get(swigCPtr); - return ret; - } - } - - public uint total_in { - set { - freeswitchPINVOKE.switch_device_stats_t_total_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_total_in_get(swigCPtr); - return ret; - } - } - - public uint total_out { - set { - freeswitchPINVOKE.switch_device_stats_t_total_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_total_out_get(swigCPtr); - return ret; - } - } - - public uint offhook { - set { - freeswitchPINVOKE.switch_device_stats_t_offhook_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_offhook_get(swigCPtr); - return ret; - } - } - - public uint offhook_in { - set { - freeswitchPINVOKE.switch_device_stats_t_offhook_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_offhook_in_get(swigCPtr); - return ret; - } - } - - public uint offhook_out { - set { - freeswitchPINVOKE.switch_device_stats_t_offhook_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_offhook_out_get(swigCPtr); - return ret; - } - } - - public uint active { - set { - freeswitchPINVOKE.switch_device_stats_t_active_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_active_get(swigCPtr); - return ret; - } - } - - public uint active_in { - set { - freeswitchPINVOKE.switch_device_stats_t_active_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_active_in_get(swigCPtr); - return ret; - } - } - - public uint active_out { - set { - freeswitchPINVOKE.switch_device_stats_t_active_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_active_out_get(swigCPtr); - return ret; - } - } - - public uint held { - set { - freeswitchPINVOKE.switch_device_stats_t_held_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_held_get(swigCPtr); - return ret; - } - } - - public uint held_in { - set { - freeswitchPINVOKE.switch_device_stats_t_held_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_held_in_get(swigCPtr); - return ret; - } - } - - public uint held_out { - set { - freeswitchPINVOKE.switch_device_stats_t_held_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_held_out_get(swigCPtr); - return ret; - } - } - - public uint unheld { - set { - freeswitchPINVOKE.switch_device_stats_t_unheld_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_unheld_get(swigCPtr); - return ret; - } - } - - public uint unheld_in { - set { - freeswitchPINVOKE.switch_device_stats_t_unheld_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_unheld_in_get(swigCPtr); - return ret; - } - } - - public uint unheld_out { - set { - freeswitchPINVOKE.switch_device_stats_t_unheld_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_unheld_out_get(swigCPtr); - return ret; - } - } - - public uint hup { - set { - freeswitchPINVOKE.switch_device_stats_t_hup_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_hup_get(swigCPtr); - return ret; - } - } - - public uint hup_in { - set { - freeswitchPINVOKE.switch_device_stats_t_hup_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_hup_in_get(swigCPtr); - return ret; - } - } - - public uint hup_out { - set { - freeswitchPINVOKE.switch_device_stats_t_hup_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_hup_out_get(swigCPtr); - return ret; - } - } - - public uint ringing { - set { - freeswitchPINVOKE.switch_device_stats_t_ringing_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_ringing_get(swigCPtr); - return ret; - } - } - - public uint ringing_in { - set { - freeswitchPINVOKE.switch_device_stats_t_ringing_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_ringing_in_get(swigCPtr); - return ret; - } - } - - public uint ringing_out { - set { - freeswitchPINVOKE.switch_device_stats_t_ringing_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_ringing_out_get(swigCPtr); - return ret; - } - } - - public uint early { - set { - freeswitchPINVOKE.switch_device_stats_t_early_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_early_get(swigCPtr); - return ret; - } - } - - public uint early_in { - set { - freeswitchPINVOKE.switch_device_stats_t_early_in_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_early_in_get(swigCPtr); - return ret; - } - } - - public uint early_out { - set { - freeswitchPINVOKE.switch_device_stats_t_early_out_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_early_out_get(swigCPtr); - return ret; - } - } - - public uint ring_wait { - set { - freeswitchPINVOKE.switch_device_stats_t_ring_wait_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_device_stats_t_ring_wait_get(swigCPtr); - return ret; - } - } - - public switch_device_stats_t() : this(freeswitchPINVOKE.new_switch_device_stats_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_dialplan_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_dialplan_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_dialplan_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_dialplan_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_dialplan_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_dialplan_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_dialplan_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension hunt_function { - set { - freeswitchPINVOKE.switch_dialplan_interface_hunt_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_hunt_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_dialplan_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_dialplan_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_dialplan_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_dialplan_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_dialplan_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_dialplan_interface next { - set { - freeswitchPINVOKE.switch_dialplan_interface_next_set(swigCPtr, switch_dialplan_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_next_get(swigCPtr); - switch_dialplan_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_dialplan_interface(cPtr, false); - return ret; - } - } - - public switch_dialplan_interface() : this(freeswitchPINVOKE.new_switch_dialplan_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_digit_action_target_t { - DIGIT_TARGET_SELF, - DIGIT_TARGET_PEER, - DIGIT_TARGET_BOTH -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_directories : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_directories(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_directories obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_directories() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_directories(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string base_dir { - set { - freeswitchPINVOKE.switch_directories_base_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_base_dir_get(swigCPtr); - return ret; - } - } - - public string mod_dir { - set { - freeswitchPINVOKE.switch_directories_mod_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_mod_dir_get(swigCPtr); - return ret; - } - } - - public string conf_dir { - set { - freeswitchPINVOKE.switch_directories_conf_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_conf_dir_get(swigCPtr); - return ret; - } - } - - public string log_dir { - set { - freeswitchPINVOKE.switch_directories_log_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_log_dir_get(swigCPtr); - return ret; - } - } - - public string run_dir { - set { - freeswitchPINVOKE.switch_directories_run_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_run_dir_get(swigCPtr); - return ret; - } - } - - public string db_dir { - set { - freeswitchPINVOKE.switch_directories_db_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_db_dir_get(swigCPtr); - return ret; - } - } - - public string script_dir { - set { - freeswitchPINVOKE.switch_directories_script_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_script_dir_get(swigCPtr); - return ret; - } - } - - public string temp_dir { - set { - freeswitchPINVOKE.switch_directories_temp_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_temp_dir_get(swigCPtr); - return ret; - } - } - - public string htdocs_dir { - set { - freeswitchPINVOKE.switch_directories_htdocs_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_htdocs_dir_get(swigCPtr); - return ret; - } - } - - public string grammar_dir { - set { - freeswitchPINVOKE.switch_directories_grammar_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_grammar_dir_get(swigCPtr); - return ret; - } - } - - public string storage_dir { - set { - freeswitchPINVOKE.switch_directories_storage_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_storage_dir_get(swigCPtr); - return ret; - } - } - - public string cache_dir { - set { - freeswitchPINVOKE.switch_directories_cache_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_cache_dir_get(swigCPtr); - return ret; - } - } - - public string recordings_dir { - set { - freeswitchPINVOKE.switch_directories_recordings_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_recordings_dir_get(swigCPtr); - return ret; - } - } - - public string sounds_dir { - set { - freeswitchPINVOKE.switch_directories_sounds_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_sounds_dir_get(swigCPtr); - return ret; - } - } - - public string lib_dir { - set { - freeswitchPINVOKE.switch_directories_lib_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_lib_dir_get(swigCPtr); - return ret; - } - } - - public string certs_dir { - set { - freeswitchPINVOKE.switch_directories_certs_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_certs_dir_get(swigCPtr); - return ret; - } - } - - public switch_directories() : this(freeswitchPINVOKE.new_switch_directories(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_directory_flag_enum_t { - SWITCH_DIRECTORY_FLAG_FREE_POOL = (1 << 0) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_directory_handle : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_directory_handle(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_directory_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_directory_handle() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_directory_handle(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_directory_interface directory_interface { - set { - freeswitchPINVOKE.switch_directory_handle_directory_interface_set(swigCPtr, switch_directory_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_handle_directory_interface_get(swigCPtr); - switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_directory_handle_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_directory_handle_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t memory_pool { - set { - freeswitchPINVOKE.switch_directory_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_handle_memory_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_directory_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_handle_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public switch_directory_handle() : this(freeswitchPINVOKE.new_switch_directory_handle(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_directory_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_directory_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_directory_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_directory_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_directory_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_directory_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directory_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t directory_open { - set { - freeswitchPINVOKE.switch_directory_interface_directory_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_open_get(swigCPtr); - SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t directory_close { - set { - freeswitchPINVOKE.switch_directory_interface_directory_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_close_get(swigCPtr); - SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t directory_query { - set { - freeswitchPINVOKE.switch_directory_interface_directory_query_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_query_get(swigCPtr); - SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t directory_next { - set { - freeswitchPINVOKE.switch_directory_interface_directory_next_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_next_get(swigCPtr); - SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t directory_next_pair { - set { - freeswitchPINVOKE.switch_directory_interface_directory_next_pair_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_next_pair_get(swigCPtr); - SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_directory_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_directory_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_directory_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_directory_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_directory_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_directory_interface next { - set { - freeswitchPINVOKE.switch_directory_interface_next_set(swigCPtr, switch_directory_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_next_get(swigCPtr); - switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); - return ret; - } - } - - public switch_directory_interface() : this(freeswitchPINVOKE.new_switch_directory_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_dtmf_direction_t { - SWITCH_DTMF_RECV = 0, - SWITCH_DTMF_SEND = 1 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_dtmf_source_t { - SWITCH_DTMF_UNKNOWN, - SWITCH_DTMF_INBAND_AUDIO, - SWITCH_DTMF_RTP, - SWITCH_DTMF_ENDPOINT, - SWITCH_DTMF_APP -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_dtmf_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_dtmf_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_dtmf_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_dtmf_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_dtmf_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public char digit { - set { - freeswitchPINVOKE.switch_dtmf_t_digit_set(swigCPtr, value); - } - get { - char ret = freeswitchPINVOKE.switch_dtmf_t_digit_get(swigCPtr); - return ret; - } - } - - public uint duration { - set { - freeswitchPINVOKE.switch_dtmf_t_duration_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_dtmf_t_duration_get(swigCPtr); - return ret; - } - } - - public int flags { - set { - freeswitchPINVOKE.switch_dtmf_t_flags_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_dtmf_t_flags_get(swigCPtr); - return ret; - } - } - - public switch_dtmf_source_t source { - set { - freeswitchPINVOKE.switch_dtmf_t_source_set(swigCPtr, (int)value); - } - get { - switch_dtmf_source_t ret = (switch_dtmf_source_t)freeswitchPINVOKE.switch_dtmf_t_source_get(swigCPtr); - return ret; - } - } - - public switch_dtmf_t() : this(freeswitchPINVOKE.new_switch_dtmf_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_eavesdrop_flag_enum_t { - ED_NONE = 0, - ED_MUX_READ = (1 << 0), - ED_MUX_WRITE = (1 << 1), - ED_DTMF = (1 << 2), - ED_COPY_DISPLAY = (1 << 3) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_endpoint_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_endpoint_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_endpoint_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_endpoint_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_endpoint_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_endpoint_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_endpoint_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public switch_io_routines io_routines { - set { - freeswitchPINVOKE.switch_endpoint_interface_io_routines_set(swigCPtr, switch_io_routines.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_io_routines_get(swigCPtr); - switch_io_routines ret = (cPtr == IntPtr.Zero) ? null : new switch_io_routines(cPtr, false); - return ret; - } - } - - public switch_state_handler_table state_handler { - set { - freeswitchPINVOKE.switch_endpoint_interface_state_handler_set(swigCPtr, switch_state_handler_table.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_state_handler_get(swigCPtr); - switch_state_handler_table ret = (cPtr == IntPtr.Zero) ? null : new switch_state_handler_table(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_endpoint_interface_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_endpoint_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_endpoint_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_endpoint_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_endpoint_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_endpoint_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_endpoint_interface next { - set { - freeswitchPINVOKE.switch_endpoint_interface_next_set(swigCPtr, switch_endpoint_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_next_get(swigCPtr); - switch_endpoint_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_endpoint_interface(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__int recover_callback { - set { - freeswitchPINVOKE.switch_endpoint_interface_recover_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__int.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_recover_callback_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__int(cPtr, false); - return ret; - } - } - - public switch_endpoint_interface() : this(freeswitchPINVOKE.new_switch_endpoint_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_event : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_event(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_event obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_event() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_event(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_event_types_t event_id { - set { - freeswitchPINVOKE.switch_event_event_id_set(swigCPtr, (int)value); - } - get { - switch_event_types_t ret = (switch_event_types_t)freeswitchPINVOKE.switch_event_event_id_get(swigCPtr); - return ret; - } - } - - public switch_priority_t priority { - set { - freeswitchPINVOKE.switch_event_priority_set(swigCPtr, (int)value); - } - get { - switch_priority_t ret = (switch_priority_t)freeswitchPINVOKE.switch_event_priority_get(swigCPtr); - return ret; - } - } - - public string owner { - set { - freeswitchPINVOKE.switch_event_owner_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_event_owner_get(swigCPtr); - return ret; - } - } - - public string subclass_name { - set { - freeswitchPINVOKE.switch_event_subclass_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_event_subclass_name_get(swigCPtr); - return ret; - } - } - - public switch_event_header headers { - set { - freeswitchPINVOKE.switch_event_headers_set(swigCPtr, switch_event_header.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_event_headers_get(swigCPtr); - switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); - return ret; - } - } - - public switch_event_header last_header { - set { - freeswitchPINVOKE.switch_event_last_header_set(swigCPtr, switch_event_header.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_event_last_header_get(swigCPtr); - switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); - return ret; - } - } - - public string body { - set { - freeswitchPINVOKE.switch_event_body_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_event_body_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void bind_user_data { - set { - freeswitchPINVOKE.switch_event_bind_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_event_bind_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void event_user_data { - set { - freeswitchPINVOKE.switch_event_event_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_event_event_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public uint key { - set { - freeswitchPINVOKE.switch_event_key_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_event_key_get(swigCPtr); - return ret; - } - } - - public switch_event next { - set { - freeswitchPINVOKE.switch_event_next_set(swigCPtr, switch_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_event_next_get(swigCPtr); - switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); - return ret; - } - } - - public int flags { - set { - freeswitchPINVOKE.switch_event_flags_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_event_flags_get(swigCPtr); - return ret; - } - } - - public switch_event() : this(freeswitchPINVOKE.new_switch_event(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_event_flag_t { - EF_UNIQ_HEADERS = (1 << 0), - EF_NO_CHAT_EXEC = (1 << 1), - EF_DEFAULT_ALLOW = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_event_header : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_event_header(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_event_header obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_event_header() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_event_header(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string name { - set { - freeswitchPINVOKE.switch_event_header_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_event_header_name_get(swigCPtr); - return ret; - } - } - - public string value { - set { - freeswitchPINVOKE.switch_event_header_value_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_event_header_value_get(swigCPtr); - return ret; - } - } - - public string array { - set { freeswitchPINVOKE.switch_event_header_array_set(swigCPtr, ref value); } - - get { - return freeswitchPINVOKE.switch_event_header_array_get(swigCPtr); - } - - } - - public int idx { - set { - freeswitchPINVOKE.switch_event_header_idx_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_event_header_idx_get(swigCPtr); - return ret; - } - } - - public uint hash { - set { - freeswitchPINVOKE.switch_event_header_hash_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_event_header_hash_get(swigCPtr); - return ret; - } - } - - public switch_event_header next { - set { - freeswitchPINVOKE.switch_event_header_next_set(swigCPtr, switch_event_header.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_event_header_next_get(swigCPtr); - switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); - return ret; - } - } - - public switch_event_header() : this(freeswitchPINVOKE.new_switch_event_header(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_event_types_t { - SWITCH_EVENT_CUSTOM, - SWITCH_EVENT_CLONE, - SWITCH_EVENT_CHANNEL_CREATE, - SWITCH_EVENT_CHANNEL_DESTROY, - SWITCH_EVENT_CHANNEL_STATE, - SWITCH_EVENT_CHANNEL_CALLSTATE, - SWITCH_EVENT_CHANNEL_ANSWER, - SWITCH_EVENT_CHANNEL_HANGUP, - SWITCH_EVENT_CHANNEL_HANGUP_COMPLETE, - SWITCH_EVENT_CHANNEL_EXECUTE, - SWITCH_EVENT_CHANNEL_EXECUTE_COMPLETE, - SWITCH_EVENT_CHANNEL_HOLD, - SWITCH_EVENT_CHANNEL_UNHOLD, - SWITCH_EVENT_CHANNEL_BRIDGE, - SWITCH_EVENT_CHANNEL_UNBRIDGE, - SWITCH_EVENT_CHANNEL_PROGRESS, - SWITCH_EVENT_CHANNEL_PROGRESS_MEDIA, - SWITCH_EVENT_CHANNEL_OUTGOING, - SWITCH_EVENT_CHANNEL_PARK, - SWITCH_EVENT_CHANNEL_UNPARK, - SWITCH_EVENT_CHANNEL_APPLICATION, - SWITCH_EVENT_CHANNEL_ORIGINATE, - SWITCH_EVENT_CHANNEL_UUID, - SWITCH_EVENT_API, - SWITCH_EVENT_LOG, - SWITCH_EVENT_INBOUND_CHAN, - SWITCH_EVENT_OUTBOUND_CHAN, - SWITCH_EVENT_STARTUP, - SWITCH_EVENT_SHUTDOWN, - SWITCH_EVENT_PUBLISH, - SWITCH_EVENT_UNPUBLISH, - SWITCH_EVENT_TALK, - SWITCH_EVENT_NOTALK, - SWITCH_EVENT_SESSION_CRASH, - SWITCH_EVENT_MODULE_LOAD, - SWITCH_EVENT_MODULE_UNLOAD, - SWITCH_EVENT_DTMF, - SWITCH_EVENT_MESSAGE, - SWITCH_EVENT_PRESENCE_IN, - SWITCH_EVENT_NOTIFY_IN, - SWITCH_EVENT_PRESENCE_OUT, - SWITCH_EVENT_PRESENCE_PROBE, - SWITCH_EVENT_MESSAGE_WAITING, - SWITCH_EVENT_MESSAGE_QUERY, - SWITCH_EVENT_ROSTER, - SWITCH_EVENT_CODEC, - SWITCH_EVENT_BACKGROUND_JOB, - SWITCH_EVENT_DETECTED_SPEECH, - SWITCH_EVENT_DETECTED_TONE, - SWITCH_EVENT_PRIVATE_COMMAND, - SWITCH_EVENT_HEARTBEAT, - SWITCH_EVENT_TRAP, - SWITCH_EVENT_ADD_SCHEDULE, - SWITCH_EVENT_DEL_SCHEDULE, - SWITCH_EVENT_EXE_SCHEDULE, - SWITCH_EVENT_RE_SCHEDULE, - SWITCH_EVENT_RELOADXML, - SWITCH_EVENT_NOTIFY, - SWITCH_EVENT_PHONE_FEATURE, - SWITCH_EVENT_PHONE_FEATURE_SUBSCRIBE, - SWITCH_EVENT_SEND_MESSAGE, - SWITCH_EVENT_RECV_MESSAGE, - SWITCH_EVENT_REQUEST_PARAMS, - SWITCH_EVENT_CHANNEL_DATA, - SWITCH_EVENT_GENERAL, - SWITCH_EVENT_COMMAND, - SWITCH_EVENT_SESSION_HEARTBEAT, - SWITCH_EVENT_CLIENT_DISCONNECTED, - SWITCH_EVENT_SERVER_DISCONNECTED, - SWITCH_EVENT_SEND_INFO, - SWITCH_EVENT_RECV_INFO, - SWITCH_EVENT_RECV_RTCP_MESSAGE, - SWITCH_EVENT_CALL_SECURE, - SWITCH_EVENT_NAT, - SWITCH_EVENT_RECORD_START, - SWITCH_EVENT_RECORD_STOP, - SWITCH_EVENT_PLAYBACK_START, - SWITCH_EVENT_PLAYBACK_STOP, - SWITCH_EVENT_CALL_UPDATE, - SWITCH_EVENT_FAILURE, - SWITCH_EVENT_SOCKET_DATA, - SWITCH_EVENT_MEDIA_BUG_START, - SWITCH_EVENT_MEDIA_BUG_STOP, - SWITCH_EVENT_CONFERENCE_DATA_QUERY, - SWITCH_EVENT_CONFERENCE_DATA, - SWITCH_EVENT_CALL_SETUP_REQ, - SWITCH_EVENT_CALL_SETUP_RESULT, - SWITCH_EVENT_CALL_DETAIL, - SWITCH_EVENT_DEVICE_STATE, - SWITCH_EVENT_ALL -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_file_flag_enum_t { - SWITCH_FILE_FLAG_READ = (1 << 0), - SWITCH_FILE_FLAG_WRITE = (1 << 1), - SWITCH_FILE_FLAG_FREE_POOL = (1 << 2), - SWITCH_FILE_DATA_SHORT = (1 << 3), - SWITCH_FILE_DATA_INT = (1 << 4), - SWITCH_FILE_DATA_FLOAT = (1 << 5), - SWITCH_FILE_DATA_DOUBLE = (1 << 6), - SWITCH_FILE_DATA_RAW = (1 << 7), - SWITCH_FILE_PAUSE = (1 << 8), - SWITCH_FILE_NATIVE = (1 << 9), - SWITCH_FILE_SEEK = (1 << 10), - SWITCH_FILE_OPEN = (1 << 11), - SWITCH_FILE_CALLBACK = (1 << 12), - SWITCH_FILE_DONE = (1 << 13), - SWITCH_FILE_BUFFER_DONE = (1 << 14), - SWITCH_FILE_WRITE_APPEND = (1 << 15), - SWITCH_FILE_WRITE_OVER = (1 << 16), - SWITCH_FILE_NOMUX = (1 << 17), - SWITCH_FILE_BREAK_ON_CHANGE = (1 << 18) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_file_handle : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_file_handle(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_file_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_file_handle() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_file_handle(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_file_interface file_interface { - set { - freeswitchPINVOKE.switch_file_handle_file_interface_set(swigCPtr, switch_file_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_file_interface_get(swigCPtr); - switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_file_handle_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_file_t fd { - set { - freeswitchPINVOKE.switch_file_handle_fd_set(swigCPtr, SWIGTYPE_p_switch_file_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_fd_get(swigCPtr); - SWIGTYPE_p_switch_file_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_file_t(cPtr, false); - return ret; - } - } - - public uint samples { - set { - freeswitchPINVOKE.switch_file_handle_samples_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_samples_get(swigCPtr); - return ret; - } - } - - public uint samplerate { - set { - freeswitchPINVOKE.switch_file_handle_samplerate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_samplerate_get(swigCPtr); - return ret; - } - } - - public uint native_rate { - set { - freeswitchPINVOKE.switch_file_handle_native_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_native_rate_get(swigCPtr); - return ret; - } - } - - public uint channels { - set { - freeswitchPINVOKE.switch_file_handle_channels_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_channels_get(swigCPtr); - return ret; - } - } - - public uint real_channels { - set { - freeswitchPINVOKE.switch_file_handle_real_channels_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_real_channels_get(swigCPtr); - return ret; - } - } - - public uint format { - set { - freeswitchPINVOKE.switch_file_handle_format_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_format_get(swigCPtr); - return ret; - } - } - - public uint sections { - set { - freeswitchPINVOKE.switch_file_handle_sections_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_sections_get(swigCPtr); - return ret; - } - } - - public int seekable { - set { - freeswitchPINVOKE.switch_file_handle_seekable_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_file_handle_seekable_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t sample_count { - set { - freeswitchPINVOKE.switch_file_handle_sample_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_sample_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public int speed { - set { - freeswitchPINVOKE.switch_file_handle_speed_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_file_handle_speed_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t memory_pool { - set { - freeswitchPINVOKE.switch_file_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_memory_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public uint prebuf { - set { - freeswitchPINVOKE.switch_file_handle_prebuf_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_prebuf_get(swigCPtr); - return ret; - } - } - - public uint interval { - set { - freeswitchPINVOKE.switch_file_handle_interval_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_interval_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_file_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public string handler { - set { - freeswitchPINVOKE.switch_file_handle_handler_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_handle_handler_get(swigCPtr); - return ret; - } - } - - public long pos { - set { - freeswitchPINVOKE.switch_file_handle_pos_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_file_handle_pos_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_buffer audio_buffer { - set { - freeswitchPINVOKE.switch_file_handle_audio_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_audio_buffer_get(swigCPtr); - SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_buffer sp_audio_buffer { - set { - freeswitchPINVOKE.switch_file_handle_sp_audio_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_sp_audio_buffer_get(swigCPtr); - SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); - return ret; - } - } - - public uint thresh { - set { - freeswitchPINVOKE.switch_file_handle_thresh_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_thresh_get(swigCPtr); - return ret; - } - } - - public uint silence_hits { - set { - freeswitchPINVOKE.switch_file_handle_silence_hits_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_silence_hits_get(swigCPtr); - return ret; - } - } - - public uint offset_pos { - set { - freeswitchPINVOKE.switch_file_handle_offset_pos_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_offset_pos_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t samples_in { - set { - freeswitchPINVOKE.switch_file_handle_samples_in_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_samples_in_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t samples_out { - set { - freeswitchPINVOKE.switch_file_handle_samples_out_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_samples_out_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public int vol { - set { - freeswitchPINVOKE.switch_file_handle_vol_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_file_handle_vol_get(swigCPtr); - return ret; - } - } - - public switch_audio_resampler_t resampler { - set { - freeswitchPINVOKE.switch_file_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_resampler_get(swigCPtr); - switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_buffer buffer { - set { - freeswitchPINVOKE.switch_file_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_buffer_get(swigCPtr); - SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char dbuf { - set { - freeswitchPINVOKE.switch_file_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_dbuf_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t dbuflen { - set { - freeswitchPINVOKE.switch_file_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_dbuflen_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_buffer pre_buffer { - set { - freeswitchPINVOKE.switch_file_handle_pre_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_pre_buffer_get(swigCPtr); - SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char pre_buffer_data { - set { - freeswitchPINVOKE.switch_file_handle_pre_buffer_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_pre_buffer_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t pre_buffer_datalen { - set { - freeswitchPINVOKE.switch_file_handle_pre_buffer_datalen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_pre_buffer_datalen_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public string file { - set { - freeswitchPINVOKE.switch_file_handle_file_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_handle_file_get(swigCPtr); - return ret; - } - } - - public string func { - set { - freeswitchPINVOKE.switch_file_handle_func_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_handle_func_get(swigCPtr); - return ret; - } - } - - public int line { - set { - freeswitchPINVOKE.switch_file_handle_line_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_file_handle_line_get(swigCPtr); - return ret; - } - } - - public string file_path { - set { - freeswitchPINVOKE.switch_file_handle_file_path_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_handle_file_path_get(swigCPtr); - return ret; - } - } - - public string spool_path { - set { - freeswitchPINVOKE.switch_file_handle_spool_path_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_handle_spool_path_get(swigCPtr); - return ret; - } - } - - public string prefix { - set { - freeswitchPINVOKE.switch_file_handle_prefix_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_handle_prefix_get(swigCPtr); - return ret; - } - } - - public int max_samples { - set { - freeswitchPINVOKE.switch_file_handle_max_samples_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_file_handle_max_samples_get(swigCPtr); - return ret; - } - } - - public switch_event _params { - set { - freeswitchPINVOKE.switch_file_handle__params_set(swigCPtr, switch_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_handle__params_get(swigCPtr); - switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); - return ret; - } - } - - public uint cur_channels { - set { - freeswitchPINVOKE.switch_file_handle_cur_channels_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_cur_channels_get(swigCPtr); - return ret; - } - } - - public uint cur_samplerate { - set { - freeswitchPINVOKE.switch_file_handle_cur_samplerate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_file_handle_cur_samplerate_get(swigCPtr); - return ret; - } - } - - public switch_file_handle() : this(freeswitchPINVOKE.new_switch_file_handle(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_file_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_file_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_file_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_file_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_file_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_file_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_file_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t file_open { - set { - freeswitchPINVOKE.switch_file_interface_file_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_open_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle__switch_status_t file_close { - set { - freeswitchPINVOKE.switch_file_interface_file_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_close_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t file_truncate { - set { - freeswitchPINVOKE.switch_file_interface_file_truncate_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_truncate_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_read { - set { - freeswitchPINVOKE.switch_file_interface_file_read_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_read_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_write { - set { - freeswitchPINVOKE.switch_file_interface_file_write_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_write_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_read_video { - set { - freeswitchPINVOKE.switch_file_interface_file_read_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_read_video_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_write_video { - set { - freeswitchPINVOKE.switch_file_interface_file_write_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_write_video_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t file_seek { - set { - freeswitchPINVOKE.switch_file_interface_file_seek_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_seek_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t file_set_string { - set { - freeswitchPINVOKE.switch_file_interface_file_set_string_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_set_string_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t file_get_string { - set { - freeswitchPINVOKE.switch_file_interface_file_get_string_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_get_string_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public string extens { - set { freeswitchPINVOKE.switch_file_interface_extens_set(swigCPtr, ref value); } - - get { - return freeswitchPINVOKE.switch_file_interface_extens_get(swigCPtr); - } - - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_file_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_file_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_file_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_file_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_file_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_file_interface next { - set { - freeswitchPINVOKE.switch_file_interface_next_set(swigCPtr, switch_file_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_next_get(swigCPtr); - switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); - return ret; - } - } - - public switch_file_interface() : this(freeswitchPINVOKE.new_switch_file_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_filenames : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_filenames(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_filenames obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_filenames() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_filenames(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string conf_name { - set { - freeswitchPINVOKE.switch_filenames_conf_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_filenames_conf_name_get(swigCPtr); - return ret; - } - } - - public switch_filenames() : this(freeswitchPINVOKE.new_switch_filenames(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_frame : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_frame(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_frame() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_frame(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_codec codec { - set { - freeswitchPINVOKE.switch_frame_codec_set(swigCPtr, switch_codec.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_frame_codec_get(swigCPtr); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - } - - public string source { - set { - freeswitchPINVOKE.switch_frame_source_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_frame_source_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void packet { - set { - freeswitchPINVOKE.switch_frame_packet_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_frame_packet_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public uint packetlen { - set { - freeswitchPINVOKE.switch_frame_packetlen_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_packetlen_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void extra_data { - set { - freeswitchPINVOKE.switch_frame_extra_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_frame_extra_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void data { - set { - freeswitchPINVOKE.switch_frame_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_frame_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public uint datalen { - set { - freeswitchPINVOKE.switch_frame_datalen_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_datalen_get(swigCPtr); - return ret; - } - } - - public uint buflen { - set { - freeswitchPINVOKE.switch_frame_buflen_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_buflen_get(swigCPtr); - return ret; - } - } - - public uint samples { - set { - freeswitchPINVOKE.switch_frame_samples_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_samples_get(swigCPtr); - return ret; - } - } - - public uint rate { - set { - freeswitchPINVOKE.switch_frame_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_rate_get(swigCPtr); - return ret; - } - } - - public uint channels { - set { - freeswitchPINVOKE.switch_frame_channels_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_channels_get(swigCPtr); - return ret; - } - } - - public byte payload { - set { - freeswitchPINVOKE.switch_frame_payload_set(swigCPtr, value); - } - get { - byte ret = freeswitchPINVOKE.switch_frame_payload_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t timestamp { - set { - freeswitchPINVOKE.switch_frame_timestamp_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_frame_timestamp_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public ushort seq { - set { - freeswitchPINVOKE.switch_frame_seq_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_frame_seq_get(swigCPtr); - return ret; - } - } - - public uint ssrc { - set { - freeswitchPINVOKE.switch_frame_ssrc_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_ssrc_get(swigCPtr); - return ret; - } - } - - public switch_bool_t m { - set { - freeswitchPINVOKE.switch_frame_m_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_frame_m_get(swigCPtr); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_frame_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_frame_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void user_data { - set { - freeswitchPINVOKE.switch_frame_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_frame_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public payload_map_t pmap { - set { - freeswitchPINVOKE.switch_frame_pmap_set(swigCPtr, payload_map_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_frame_pmap_get(swigCPtr); - payload_map_t ret = (cPtr == IntPtr.Zero) ? null : new payload_map_t(cPtr, false); - return ret; - } - } - - public switch_frame() : this(freeswitchPINVOKE.new_switch_frame(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_frame_flag_enum_t { - SFF_NONE = 0, - SFF_CNG = (1 << 0), - SFF_RAW_RTP = (1 << 1), - SFF_RTP_HEADER = (1 << 2), - SFF_PLC = (1 << 3), - SFF_RFC2833 = (1 << 4), - SFF_PROXY_PACKET = (1 << 5), - SFF_DYNAMIC = (1 << 6), - SFF_ZRTP = (1 << 7), - SFF_UDPTL_PACKET = (1 << 8), - SFF_NOT_AUDIO = (1 << 9), - SFF_RTCP = (1 << 10) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_hold_record_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_hold_record_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_hold_record_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_hold_record_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_hold_record_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_time_t on { - set { - freeswitchPINVOKE.switch_hold_record_t_on_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_hold_record_t_on_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t off { - set { - freeswitchPINVOKE.switch_hold_record_t_off_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_hold_record_t_off_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public string uuid { - set { - freeswitchPINVOKE.switch_hold_record_t_uuid_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_hold_record_t_uuid_get(swigCPtr); - return ret; - } - } - - public switch_hold_record_t next { - set { - freeswitchPINVOKE.switch_hold_record_t_next_set(swigCPtr, switch_hold_record_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_hold_record_t_next_get(swigCPtr); - switch_hold_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_hold_record_t(cPtr, false); - return ret; - } - } - - public switch_hold_record_t() : this(freeswitchPINVOKE.new_switch_hold_record_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_http_request_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_http_request_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_http_request_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_http_request_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_http_request_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string method { - set { - freeswitchPINVOKE.switch_http_request_t_method_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_method_get(swigCPtr); - return ret; - } - } - - public string uri { - set { - freeswitchPINVOKE.switch_http_request_t_uri_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_uri_get(swigCPtr); - return ret; - } - } - - public string qs { - set { - freeswitchPINVOKE.switch_http_request_t_qs_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_qs_get(swigCPtr); - return ret; - } - } - - public string host { - set { - freeswitchPINVOKE.switch_http_request_t_host_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_host_get(swigCPtr); - return ret; - } - } - - public ushort port { - set { - freeswitchPINVOKE.switch_http_request_t_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_http_request_t_port_get(swigCPtr); - return ret; - } - } - - public string from { - set { - freeswitchPINVOKE.switch_http_request_t_from_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_from_get(swigCPtr); - return ret; - } - } - - public string user_agent { - set { - freeswitchPINVOKE.switch_http_request_t_user_agent_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_user_agent_get(swigCPtr); - return ret; - } - } - - public string referer { - set { - freeswitchPINVOKE.switch_http_request_t_referer_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_referer_get(swigCPtr); - return ret; - } - } - - public string user { - set { - freeswitchPINVOKE.switch_http_request_t_user_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_user_get(swigCPtr); - return ret; - } - } - - public switch_bool_t keepalive { - set { - freeswitchPINVOKE.switch_http_request_t_keepalive_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_http_request_t_keepalive_get(swigCPtr); - return ret; - } - } - - public string content_type { - set { - freeswitchPINVOKE.switch_http_request_t_content_type_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t_content_type_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t content_length { - set { - freeswitchPINVOKE.switch_http_request_t_content_length_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_content_length_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t bytes_header { - set { - freeswitchPINVOKE.switch_http_request_t_bytes_header_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_bytes_header_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t bytes_read { - set { - freeswitchPINVOKE.switch_http_request_t_bytes_read_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_bytes_read_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t bytes_buffered { - set { - freeswitchPINVOKE.switch_http_request_t_bytes_buffered_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_bytes_buffered_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_event headers { - set { - freeswitchPINVOKE.switch_http_request_t_headers_set(swigCPtr, switch_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_http_request_t_headers_get(swigCPtr); - switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void user_data { - set { - freeswitchPINVOKE.switch_http_request_t_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_http_request_t_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public string _buffer { - set { - freeswitchPINVOKE.switch_http_request_t__buffer_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t__buffer_get(swigCPtr); - return ret; - } - } - - public switch_bool_t _destroy_headers { - set { - freeswitchPINVOKE.switch_http_request_t__destroy_headers_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_http_request_t__destroy_headers_get(swigCPtr); - return ret; - } - } - - public switch_http_request_t() : this(freeswitchPINVOKE.new_switch_http_request_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_hup_type_t { - SHT_NONE = 0, - SHT_UNANSWERED = (1 << 0), - SHT_ANSWERED = (1 << 1) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_input_args_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_input_args_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_input_args_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_input_args_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_input_args_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t input_callback { - set { - freeswitchPINVOKE.switch_input_args_t_input_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_input_callback_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void buf { - set { - freeswitchPINVOKE.switch_input_args_t_buf_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_buf_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public uint buflen { - set { - freeswitchPINVOKE.switch_input_args_t_buflen_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_input_args_t_buflen_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t read_frame_callback { - set { - freeswitchPINVOKE.switch_input_args_t_read_frame_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_read_frame_callback_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void user_data { - set { - freeswitchPINVOKE.switch_input_args_t_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_ivr_dmachine dmachine { - set { - freeswitchPINVOKE.switch_input_args_t_dmachine_set(swigCPtr, SWIGTYPE_p_switch_ivr_dmachine.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_dmachine_get(swigCPtr); - SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); - return ret; - } - } - - public int loops { - set { - freeswitchPINVOKE.switch_input_args_t_loops_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_input_args_t_loops_get(swigCPtr); - return ret; - } - } - - public switch_input_args_t() : this(freeswitchPINVOKE.new_switch_input_args_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_input_type_t { - SWITCH_INPUT_TYPE_DTMF, - SWITCH_INPUT_TYPE_EVENT -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_kill_channel : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_kill_channel(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_kill_channel obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_kill_channel() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_kill_channel(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel { - set { - freeswitchPINVOKE.switch_io_event_hook_kill_channel_kill_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_kill_channel_kill_channel_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_kill_channel next { - set { - freeswitchPINVOKE.switch_io_event_hook_kill_channel_next_set(swigCPtr, switch_io_event_hook_kill_channel.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_kill_channel_next_get(swigCPtr); - switch_io_event_hook_kill_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_kill_channel(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_kill_channel() : this(freeswitchPINVOKE.new_switch_io_event_hook_kill_channel(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_outgoing_channel : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_outgoing_channel(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_outgoing_channel obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_outgoing_channel() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_outgoing_channel(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t outgoing_channel { - set { - freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_outgoing_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_outgoing_channel_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_outgoing_channel next { - set { - freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_next_set(swigCPtr, switch_io_event_hook_outgoing_channel.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_next_get(swigCPtr); - switch_io_event_hook_outgoing_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_outgoing_channel(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_outgoing_channel() : this(freeswitchPINVOKE.new_switch_io_event_hook_outgoing_channel(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_read_frame : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_read_frame(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_read_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_read_frame() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_read_frame(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame { - set { - freeswitchPINVOKE.switch_io_event_hook_read_frame_read_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_read_frame_read_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_read_frame next { - set { - freeswitchPINVOKE.switch_io_event_hook_read_frame_next_set(swigCPtr, switch_io_event_hook_read_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_read_frame_next_get(swigCPtr); - switch_io_event_hook_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_read_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_read_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_read_frame(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_receive_event : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_receive_event(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_receive_event obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_receive_event() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_receive_event(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event { - set { - freeswitchPINVOKE.switch_io_event_hook_receive_event_receive_event_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_event_receive_event_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_receive_event next { - set { - freeswitchPINVOKE.switch_io_event_hook_receive_event_next_set(swigCPtr, switch_io_event_hook_receive_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_event_next_get(swigCPtr); - switch_io_event_hook_receive_event ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_event(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_receive_event() : this(freeswitchPINVOKE.new_switch_io_event_hook_receive_event(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_receive_message : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_receive_message(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_receive_message obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_receive_message() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_receive_message(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message { - set { - freeswitchPINVOKE.switch_io_event_hook_receive_message_receive_message_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_message_receive_message_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_receive_message next { - set { - freeswitchPINVOKE.switch_io_event_hook_receive_message_next_set(swigCPtr, switch_io_event_hook_receive_message.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_message_next_get(swigCPtr); - switch_io_event_hook_receive_message ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_message(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_receive_message() : this(freeswitchPINVOKE.new_switch_io_event_hook_receive_message(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_recv_dtmf : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_recv_dtmf(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_recv_dtmf obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_recv_dtmf() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_recv_dtmf(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t recv_dtmf { - set { - freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_recv_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_recv_dtmf_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_recv_dtmf next { - set { - freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_next_set(swigCPtr, switch_io_event_hook_recv_dtmf.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_next_get(swigCPtr); - switch_io_event_hook_recv_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_recv_dtmf(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_recv_dtmf() : this(freeswitchPINVOKE.new_switch_io_event_hook_recv_dtmf(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hooks : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hooks(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hooks obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hooks() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hooks(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_io_event_hook_outgoing_channel outgoing_channel { - set { - freeswitchPINVOKE.switch_io_event_hooks_outgoing_channel_set(swigCPtr, switch_io_event_hook_outgoing_channel.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_outgoing_channel_get(swigCPtr); - switch_io_event_hook_outgoing_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_outgoing_channel(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_receive_message receive_message { - set { - freeswitchPINVOKE.switch_io_event_hooks_receive_message_set(swigCPtr, switch_io_event_hook_receive_message.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_receive_message_get(swigCPtr); - switch_io_event_hook_receive_message ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_message(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_receive_event receive_event { - set { - freeswitchPINVOKE.switch_io_event_hooks_receive_event_set(swigCPtr, switch_io_event_hook_receive_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_receive_event_get(swigCPtr); - switch_io_event_hook_receive_event ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_event(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_read_frame read_frame { - set { - freeswitchPINVOKE.switch_io_event_hooks_read_frame_set(swigCPtr, switch_io_event_hook_read_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_read_frame_get(swigCPtr); - switch_io_event_hook_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_read_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_video_read_frame video_read_frame { - set { - freeswitchPINVOKE.switch_io_event_hooks_video_read_frame_set(swigCPtr, switch_io_event_hook_video_read_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_video_read_frame_get(swigCPtr); - switch_io_event_hook_video_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_read_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_write_frame write_frame { - set { - freeswitchPINVOKE.switch_io_event_hooks_write_frame_set(swigCPtr, switch_io_event_hook_write_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_write_frame_get(swigCPtr); - switch_io_event_hook_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_write_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_video_write_frame video_write_frame { - set { - freeswitchPINVOKE.switch_io_event_hooks_video_write_frame_set(swigCPtr, switch_io_event_hook_video_write_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_video_write_frame_get(swigCPtr); - switch_io_event_hook_video_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_write_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_kill_channel kill_channel { - set { - freeswitchPINVOKE.switch_io_event_hooks_kill_channel_set(swigCPtr, switch_io_event_hook_kill_channel.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_kill_channel_get(swigCPtr); - switch_io_event_hook_kill_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_kill_channel(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_send_dtmf send_dtmf { - set { - freeswitchPINVOKE.switch_io_event_hooks_send_dtmf_set(swigCPtr, switch_io_event_hook_send_dtmf.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_send_dtmf_get(swigCPtr); - switch_io_event_hook_send_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_send_dtmf(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_recv_dtmf recv_dtmf { - set { - freeswitchPINVOKE.switch_io_event_hooks_recv_dtmf_set(swigCPtr, switch_io_event_hook_recv_dtmf.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_recv_dtmf_get(swigCPtr); - switch_io_event_hook_recv_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_recv_dtmf(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_state_change state_change { - set { - freeswitchPINVOKE.switch_io_event_hooks_state_change_set(swigCPtr, switch_io_event_hook_state_change.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_state_change_get(swigCPtr); - switch_io_event_hook_state_change ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_change(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_state_run state_run { - set { - freeswitchPINVOKE.switch_io_event_hooks_state_run_set(swigCPtr, switch_io_event_hook_state_run.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_state_run_get(swigCPtr); - switch_io_event_hook_state_run ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_run(cPtr, false); - return ret; - } - } - - public switch_io_event_hooks() : this(freeswitchPINVOKE.new_switch_io_event_hooks(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_send_dtmf : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_send_dtmf(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_send_dtmf obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_send_dtmf() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_send_dtmf(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t send_dtmf { - set { - freeswitchPINVOKE.switch_io_event_hook_send_dtmf_send_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_send_dtmf_send_dtmf_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_send_dtmf next { - set { - freeswitchPINVOKE.switch_io_event_hook_send_dtmf_next_set(swigCPtr, switch_io_event_hook_send_dtmf.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_send_dtmf_next_get(swigCPtr); - switch_io_event_hook_send_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_send_dtmf(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_send_dtmf() : this(freeswitchPINVOKE.new_switch_io_event_hook_send_dtmf(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_state_change : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_state_change(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_state_change obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_state_change() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_state_change(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change { - set { - freeswitchPINVOKE.switch_io_event_hook_state_change_state_change_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_change_state_change_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_state_change next { - set { - freeswitchPINVOKE.switch_io_event_hook_state_change_next_set(swigCPtr, switch_io_event_hook_state_change.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_change_next_get(swigCPtr); - switch_io_event_hook_state_change ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_change(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_state_change() : this(freeswitchPINVOKE.new_switch_io_event_hook_state_change(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_state_run : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_state_run(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_state_run obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_state_run() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_state_run(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run { - set { - freeswitchPINVOKE.switch_io_event_hook_state_run_state_run_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_run_state_run_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_state_run next { - set { - freeswitchPINVOKE.switch_io_event_hook_state_run_next_set(swigCPtr, switch_io_event_hook_state_run.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_run_next_get(swigCPtr); - switch_io_event_hook_state_run ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_run(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_state_run() : this(freeswitchPINVOKE.new_switch_io_event_hook_state_run(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_video_read_frame : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_video_read_frame(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_video_read_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_video_read_frame() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_video_read_frame(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t video_read_frame { - set { - freeswitchPINVOKE.switch_io_event_hook_video_read_frame_video_read_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_read_frame_video_read_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_video_read_frame next { - set { - freeswitchPINVOKE.switch_io_event_hook_video_read_frame_next_set(swigCPtr, switch_io_event_hook_video_read_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_read_frame_next_get(swigCPtr); - switch_io_event_hook_video_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_read_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_video_read_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_video_read_frame(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_video_write_frame : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_video_write_frame(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_video_write_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_video_write_frame() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_video_write_frame(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t video_write_frame { - set { - freeswitchPINVOKE.switch_io_event_hook_video_write_frame_video_write_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_write_frame_video_write_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_video_write_frame next { - set { - freeswitchPINVOKE.switch_io_event_hook_video_write_frame_next_set(swigCPtr, switch_io_event_hook_video_write_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_write_frame_next_get(swigCPtr); - switch_io_event_hook_video_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_write_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_video_write_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_video_write_frame(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_event_hook_write_frame : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_event_hook_write_frame(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_event_hook_write_frame obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_event_hook_write_frame() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_event_hook_write_frame(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame { - set { - freeswitchPINVOKE.switch_io_event_hook_write_frame_write_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_write_frame_write_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_write_frame next { - set { - freeswitchPINVOKE.switch_io_event_hook_write_frame_next_set(swigCPtr, switch_io_event_hook_write_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_write_frame_next_get(swigCPtr); - switch_io_event_hook_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_write_frame(cPtr, false); - return ret; - } - } - - public switch_io_event_hook_write_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_write_frame(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_io_flag_enum_t { - SWITCH_IO_FLAG_NONE = 0, - SWITCH_IO_FLAG_NOBLOCK = (1 << 0), - SWITCH_IO_FLAG_SINGLE_READ = (1 << 1) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_io_routine_name_t { - SWITCH_IO_OUTGOING_CHANNEL, - SWITCH_IO_READ_FRAME, - SWITCH_IO_WRITE_FRAME, - SWITCH_IO_KILL_CHANNEL, - SWITCH_IO_SEND_DTMF, - SWITCH_IO_RECEIVE_MESSAGE, - SWITCH_IO_RECEIVE_EVENT, - SWITCH_IO_STATE_CHANGE, - SWITCH_IO_READ_VIDEO_FRAME, - SWITCH_IO_WRITE_VIDEO_FRAME, - SWITCH_IO_GET_JB -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_io_routines : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_io_routines(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_io_routines obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_io_routines() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_io_routines(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t outgoing_channel { - set { - freeswitchPINVOKE.switch_io_routines_outgoing_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_outgoing_channel_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame { - set { - freeswitchPINVOKE.switch_io_routines_read_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_read_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame { - set { - freeswitchPINVOKE.switch_io_routines_write_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_write_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel { - set { - freeswitchPINVOKE.switch_io_routines_kill_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_kill_channel_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t send_dtmf { - set { - freeswitchPINVOKE.switch_io_routines_send_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_send_dtmf_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message { - set { - freeswitchPINVOKE.switch_io_routines_receive_message_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_receive_message_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event { - set { - freeswitchPINVOKE.switch_io_routines_receive_event_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_receive_event_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change { - set { - freeswitchPINVOKE.switch_io_routines_state_change_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_state_change_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_video_frame { - set { - freeswitchPINVOKE.switch_io_routines_read_video_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_read_video_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_video_frame { - set { - freeswitchPINVOKE.switch_io_routines_write_video_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_write_video_frame_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run { - set { - freeswitchPINVOKE.switch_io_routines_state_run_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_state_run_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t get_jb { - set { - freeswitchPINVOKE.switch_io_routines_get_jb_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_get_jb_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_p_void padding { - set { - freeswitchPINVOKE.switch_io_routines_padding_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_padding_get(swigCPtr); - SWIGTYPE_p_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); - return ret; - } - } - - public switch_io_routines() : this(freeswitchPINVOKE.new_switch_io_routines(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_ivr_action_t { - SWITCH_IVR_ACTION_DIE, - SWITCH_IVR_ACTION_EXECMENU, - SWITCH_IVR_ACTION_EXECAPP, - SWITCH_IVR_ACTION_PLAYSOUND, - SWITCH_IVR_ACTION_BACK, - SWITCH_IVR_ACTION_TOMAIN, - SWITCH_IVR_ACTION_NOOP -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_ivr_dmachine_match : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_ivr_dmachine_match(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_ivr_dmachine_match obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_ivr_dmachine_match() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_ivr_dmachine_match(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_ivr_dmachine dmachine { - set { - freeswitchPINVOKE.switch_ivr_dmachine_match_dmachine_set(swigCPtr, SWIGTYPE_p_switch_ivr_dmachine.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_ivr_dmachine_match_dmachine_get(swigCPtr); - SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); - return ret; - } - } - - public string match_digits { - set { - freeswitchPINVOKE.switch_ivr_dmachine_match_match_digits_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_ivr_dmachine_match_match_digits_get(swigCPtr); - return ret; - } - } - - public int match_key { - set { - freeswitchPINVOKE.switch_ivr_dmachine_match_match_key_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_ivr_dmachine_match_match_key_get(swigCPtr); - return ret; - } - } - - public dm_match_type_t type { - set { - freeswitchPINVOKE.switch_ivr_dmachine_match_type_set(swigCPtr, (int)value); - } - get { - dm_match_type_t ret = (dm_match_type_t)freeswitchPINVOKE.switch_ivr_dmachine_match_type_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void user_data { - set { - freeswitchPINVOKE.switch_ivr_dmachine_match_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_ivr_dmachine_match_user_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public switch_ivr_dmachine_match() : this(freeswitchPINVOKE.new_switch_ivr_dmachine_match(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_ivr_menu_flags { - SWITCH_IVR_MENU_FLAG_FALLTOMAIN = (1 << 0), - SWITCH_IVR_MENU_FLAG_FREEPOOL = (1 << 1), - SWITCH_IVR_MENU_FLAG_STACK = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_ivr_option_enum_t { - SWITCH_IVR_OPTION_NONE = 0, - SWITCH_IVR_OPTION_ASYNC = (1 << 0), - SWITCH_IVR_OPTION_FILE = (1 << 1) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_json_api_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_json_api_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_json_api_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_json_api_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_json_api_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_json_api_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_json_api_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public string desc { - set { - freeswitchPINVOKE.switch_json_api_interface_desc_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_json_api_interface_desc_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t function { - set { - freeswitchPINVOKE.switch_json_api_interface_function_set(swigCPtr, SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_function_get(swigCPtr); - SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t(cPtr, false); - return ret; - } - } - - public string syntax { - set { - freeswitchPINVOKE.switch_json_api_interface_syntax_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_json_api_interface_syntax_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_json_api_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_json_api_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_json_api_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_json_api_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_json_api_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_json_api_interface next { - set { - freeswitchPINVOKE.switch_json_api_interface_next_set(swigCPtr, switch_json_api_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_next_get(swigCPtr); - switch_json_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_json_api_interface(cPtr, false); - return ret; - } - } - - public switch_json_api_interface() : this(freeswitchPINVOKE.new_switch_json_api_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_limit_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_limit_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_limit_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_limit_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_limit_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_limit_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_limit_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t incr { - set { - freeswitchPINVOKE.switch_limit_interface_incr_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_incr_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t release { - set { - freeswitchPINVOKE.switch_limit_interface_release_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_release_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int usage { - set { - freeswitchPINVOKE.switch_limit_interface_usage_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_usage_get(swigCPtr); - SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_void__switch_status_t reset { - set { - freeswitchPINVOKE.switch_limit_interface_reset_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_reset_get(swigCPtr); - SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_void__p_char status { - set { - freeswitchPINVOKE.switch_limit_interface_status_set(swigCPtr, SWIGTYPE_p_f_void__p_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_status_get(swigCPtr); - SWIGTYPE_p_f_void__p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__p_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t interval_reset { - set { - freeswitchPINVOKE.switch_limit_interface_interval_reset_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_interval_reset_get(swigCPtr); - SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_limit_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_limit_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_limit_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_limit_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_limit_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_limit_interface next { - set { - freeswitchPINVOKE.switch_limit_interface_next_set(swigCPtr, switch_limit_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_next_get(swigCPtr); - switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); - return ret; - } - } - - public switch_limit_interface() : this(freeswitchPINVOKE.new_switch_limit_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_loadable_module_function_table_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_loadable_module_function_table_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_loadable_module_function_table_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_loadable_module_function_table_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_loadable_module_function_table_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public int switch_api_version { - set { - freeswitchPINVOKE.switch_loadable_module_function_table_t_switch_api_version_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_loadable_module_function_table_t_switch_api_version_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t load { - set { - freeswitchPINVOKE.switch_loadable_module_function_table_t_load_set(swigCPtr, SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_function_table_t_load_get(swigCPtr); - SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_void__switch_status_t shutdown { - set { - freeswitchPINVOKE.switch_loadable_module_function_table_t_shutdown_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_function_table_t_shutdown_get(swigCPtr); - SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_void__switch_status_t runtime { - set { - freeswitchPINVOKE.switch_loadable_module_function_table_t_runtime_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_function_table_t_runtime_get(swigCPtr); - SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_loadable_module_function_table_t_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_loadable_module_function_table_t_flags_get(swigCPtr); - return ret; - } - } - - public switch_loadable_module_function_table_t() : this(freeswitchPINVOKE.new_switch_loadable_module_function_table_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_loadable_module_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_loadable_module_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_loadable_module_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_loadable_module_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_loadable_module_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string module_name { - set { - freeswitchPINVOKE.switch_loadable_module_interface_module_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_loadable_module_interface_module_name_get(swigCPtr); - return ret; - } - } - - public switch_endpoint_interface endpoint_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_endpoint_interface_set(swigCPtr, switch_endpoint_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_endpoint_interface_get(swigCPtr); - switch_endpoint_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_endpoint_interface(cPtr, false); - return ret; - } - } - - public switch_timer_interface timer_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_timer_interface_set(swigCPtr, switch_timer_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_timer_interface_get(swigCPtr); - switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); - return ret; - } - } - - public switch_dialplan_interface dialplan_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_dialplan_interface_set(swigCPtr, switch_dialplan_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_dialplan_interface_get(swigCPtr); - switch_dialplan_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_dialplan_interface(cPtr, false); - return ret; - } - } - - public switch_codec_interface codec_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_codec_interface_set(swigCPtr, switch_codec_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_codec_interface_get(swigCPtr); - switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); - return ret; - } - } - - public switch_application_interface application_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_application_interface_set(swigCPtr, switch_application_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_application_interface_get(swigCPtr); - switch_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_application_interface(cPtr, false); - return ret; - } - } - - public switch_chat_application_interface chat_application_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_chat_application_interface_set(swigCPtr, switch_chat_application_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_chat_application_interface_get(swigCPtr); - switch_chat_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_application_interface(cPtr, false); - return ret; - } - } - - public switch_api_interface api_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_api_interface_set(swigCPtr, switch_api_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_api_interface_get(swigCPtr); - switch_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_api_interface(cPtr, false); - return ret; - } - } - - public switch_json_api_interface json_api_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_json_api_interface_set(swigCPtr, switch_json_api_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_json_api_interface_get(swigCPtr); - switch_json_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_json_api_interface(cPtr, false); - return ret; - } - } - - public switch_file_interface file_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_file_interface_set(swigCPtr, switch_file_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_file_interface_get(swigCPtr); - switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); - return ret; - } - } - - public switch_speech_interface speech_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_speech_interface_set(swigCPtr, switch_speech_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_speech_interface_get(swigCPtr); - switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); - return ret; - } - } - - public switch_directory_interface directory_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_directory_interface_set(swigCPtr, switch_directory_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_directory_interface_get(swigCPtr); - switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); - return ret; - } - } - - public switch_chat_interface chat_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_chat_interface_set(swigCPtr, switch_chat_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_chat_interface_get(swigCPtr); - switch_chat_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_interface(cPtr, false); - return ret; - } - } - - public switch_say_interface say_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_say_interface_set(swigCPtr, switch_say_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_say_interface_get(swigCPtr); - switch_say_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_say_interface(cPtr, false); - return ret; - } - } - - public switch_asr_interface asr_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_asr_interface_set(swigCPtr, switch_asr_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_asr_interface_get(swigCPtr); - switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); - return ret; - } - } - - public switch_management_interface management_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_management_interface_set(swigCPtr, switch_management_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_management_interface_get(swigCPtr); - switch_management_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_management_interface(cPtr, false); - return ret; - } - } - - public switch_limit_interface limit_interface { - set { - freeswitchPINVOKE.switch_loadable_module_interface_limit_interface_set(swigCPtr, switch_limit_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_limit_interface_get(swigCPtr); - switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_loadable_module_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_loadable_module_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_loadable_module_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t pool { - set { - freeswitchPINVOKE.switch_loadable_module_interface_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface() : this(freeswitchPINVOKE.new_switch_loadable_module_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_log_level_t { - SWITCH_LOG_DEBUG10 = 110, - SWITCH_LOG_DEBUG9 = 109, - SWITCH_LOG_DEBUG8 = 108, - SWITCH_LOG_DEBUG7 = 107, - SWITCH_LOG_DEBUG6 = 106, - SWITCH_LOG_DEBUG5 = 105, - SWITCH_LOG_DEBUG4 = 104, - SWITCH_LOG_DEBUG3 = 103, - SWITCH_LOG_DEBUG2 = 102, - SWITCH_LOG_DEBUG1 = 101, - SWITCH_LOG_DEBUG = 7, - SWITCH_LOG_INFO = 6, - SWITCH_LOG_NOTICE = 5, - SWITCH_LOG_WARNING = 4, - SWITCH_LOG_ERROR = 3, - SWITCH_LOG_CRIT = 2, - SWITCH_LOG_ALERT = 1, - SWITCH_LOG_CONSOLE = 0, - SWITCH_LOG_INVALID = 64, - SWITCH_LOG_UNINIT = 1000 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_log_node_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_log_node_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_log_node_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_log_node_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_log_node_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string data { - set { - freeswitchPINVOKE.switch_log_node_t_data_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_log_node_t_data_get(swigCPtr); - return ret; - } - } - - public string file { - set { - freeswitchPINVOKE.switch_log_node_t_file_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_log_node_t_file_get(swigCPtr); - return ret; - } - } - - public uint line { - set { - freeswitchPINVOKE.switch_log_node_t_line_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_log_node_t_line_get(swigCPtr); - return ret; - } - } - - public string func { - set { - freeswitchPINVOKE.switch_log_node_t_func_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_log_node_t_func_get(swigCPtr); - return ret; - } - } - - public switch_log_level_t level { - set { - freeswitchPINVOKE.switch_log_node_t_level_set(swigCPtr, (int)value); - } - get { - switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_log_node_t_level_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_time_t timestamp { - set { - freeswitchPINVOKE.switch_log_node_t_timestamp_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_log_node_t_timestamp_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public string content { - set { - freeswitchPINVOKE.switch_log_node_t_content_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_log_node_t_content_get(swigCPtr); - return ret; - } - } - - public string userdata { - set { - freeswitchPINVOKE.switch_log_node_t_userdata_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_log_node_t_userdata_get(swigCPtr); - return ret; - } - } - - public switch_text_channel_t channel { - set { - freeswitchPINVOKE.switch_log_node_t_channel_set(swigCPtr, (int)value); - } - get { - switch_text_channel_t ret = (switch_text_channel_t)freeswitchPINVOKE.switch_log_node_t_channel_get(swigCPtr); - return ret; - } - } - - public switch_log_level_t slevel { - set { - freeswitchPINVOKE.switch_log_node_t_slevel_set(swigCPtr, (int)value); - } - get { - switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_log_node_t_slevel_get(swigCPtr); - return ret; - } - } - - public switch_log_node_t() : this(freeswitchPINVOKE.new_switch_log_node_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_management_action_t { - SMA_NONE, - SMA_GET, - SMA_SET -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_management_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_management_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_management_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_management_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_management_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string relative_oid { - set { - freeswitchPINVOKE.switch_management_interface_relative_oid_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_management_interface_relative_oid_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t management_function { - set { - freeswitchPINVOKE.switch_management_interface_management_function_set(swigCPtr, SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_management_function_get(swigCPtr); - SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_management_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_management_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_management_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_management_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_management_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_management_interface next { - set { - freeswitchPINVOKE.switch_management_interface_next_set(swigCPtr, switch_management_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_next_get(swigCPtr); - switch_management_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_management_interface(cPtr, false); - return ret; - } - } - - public switch_management_interface() : this(freeswitchPINVOKE.new_switch_management_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_media_bug_flag_enum_t { - SMBF_BOTH = 0, - SMBF_READ_STREAM = (1 << 0), - SMBF_WRITE_STREAM = (1 << 1), - SMBF_WRITE_REPLACE = (1 << 2), - SMBF_READ_REPLACE = (1 << 3), - SMBF_READ_PING = (1 << 4), - SMBF_STEREO = (1 << 5), - SMBF_ANSWER_REQ = (1 << 6), - SMBF_BRIDGE_REQ = (1 << 7), - SMBF_THREAD_LOCK = (1 << 8), - SMBF_PRUNE = (1 << 9), - SMBF_NO_PAUSE = (1 << 10), - SMBF_STEREO_SWAP = (1 << 11), - SMBF_LOCK = (1 << 12), - SMBF_TAP_NATIVE_READ = (1 << 13), - SMBF_TAP_NATIVE_WRITE = (1 << 14), - SMBF_ONE_ONLY = (1 << 15), - SMBF_MASK = (1 << 16) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_media_flag_enum_t { - SMF_NONE = 0, - SMF_REBRIDGE = (1 << 0), - SMF_ECHO_ALEG = (1 << 1), - SMF_ECHO_BLEG = (1 << 2), - SMF_FORCE = (1 << 3), - SMF_LOOP = (1 << 4), - SMF_HOLD_BLEG = (1 << 5), - SMF_IMMEDIATE = (1 << 6), - SMF_EXEC_INLINE = (1 << 7), - SMF_PRIORITY = (1 << 8) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_media_type_t { - SWITCH_MEDIA_TYPE_AUDIO, - SWITCH_MEDIA_TYPE_VIDEO -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_module_flag_enum_t { - SMODF_NONE = 0, - SMODF_GLOBAL_SYMBOLS = (1 << 0) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_module_interface_name_t { - SWITCH_ENDPOINT_INTERFACE, - SWITCH_TIMER_INTERFACE, - SWITCH_DIALPLAN_INTERFACE, - SWITCH_CODEC_INTERFACE, - SWITCH_APPLICATION_INTERFACE, - SWITCH_API_INTERFACE, - SWITCH_FILE_INTERFACE, - SWITCH_SPEECH_INTERFACE, - SWITCH_DIRECTORY_INTERFACE, - SWITCH_CHAT_INTERFACE, - SWITCH_SAY_INTERFACE, - SWITCH_ASR_INTERFACE, - SWITCH_MANAGEMENT_INTERFACE, - SWITCH_LIMIT_INTERFACE, - SWITCH_CHAT_APPLICATION_INTERFACE, - SWITCH_JSON_API_INTERFACE -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_originate_flag_enum_t { - SOF_NONE = 0, - SOF_NOBLOCK = (1 << 0), - SOF_FORKED_DIAL = (1 << 1), - SOF_NO_EFFECTIVE_ANI = (1 << 2), - SOF_NO_EFFECTIVE_ANIII = (1 << 3), - SOF_NO_EFFECTIVE_CID_NUM = (1 << 4), - SOF_NO_EFFECTIVE_CID_NAME = (1 << 5), - SOF_NO_LIMITS = (1 << 6) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_poll_t { - SWITCH_POLL_READ = (1 << 0), - SWITCH_POLL_WRITE = (1 << 1), - SWITCH_POLL_ERROR = (1 << 2), - SWITCH_POLL_HUP = (1 << 3), - SWITCH_POLL_RDNORM = (1 << 4), - SWITCH_POLL_RDBAND = (1 << 5), - SWITCH_POLL_PRI = (1 << 6), - SWITCH_POLL_INVALID = (1 << 7) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_port_flag_enum_t { - SPF_NONE = 0, - SPF_ODD = (1 << 0), - SPF_EVEN = (1 << 1), - SPF_ROBUST_TCP = (1 << 2), - SPF_ROBUST_UDP = (1 << 3) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_priority_t { - SWITCH_PRIORITY_NORMAL, - SWITCH_PRIORITY_LOW, - SWITCH_PRIORITY_HIGH -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_pvt_class_t { - SWITCH_PVT_PRIMARY = 0, - SWITCH_PVT_SECONDARY -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_ring_ready_t { - SWITCH_RING_READY_NONE, - SWITCH_RING_READY_RINGING, - SWITCH_RING_READY_QUEUED -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtcp_hdr_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtcp_hdr_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtcp_hdr_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtcp_hdr_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtcp_hdr_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint version { - set { - freeswitchPINVOKE.switch_rtcp_hdr_t_version_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_version_get(swigCPtr); - return ret; - } - } - - public uint p { - set { - freeswitchPINVOKE.switch_rtcp_hdr_t_p_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_p_get(swigCPtr); - return ret; - } - } - - public uint count { - set { - freeswitchPINVOKE.switch_rtcp_hdr_t_count_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_count_get(swigCPtr); - return ret; - } - } - - public uint type { - set { - freeswitchPINVOKE.switch_rtcp_hdr_t_type_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_type_get(swigCPtr); - return ret; - } - } - - public uint length { - set { - freeswitchPINVOKE.switch_rtcp_hdr_t_length_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_length_get(swigCPtr); - return ret; - } - } - - public switch_rtcp_hdr_t() : this(freeswitchPINVOKE.new_switch_rtcp_hdr_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtcp_numbers_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtcp_numbers_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtcp_numbers_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtcp_numbers_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtcp_numbers_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint packet_count { - set { - freeswitchPINVOKE.switch_rtcp_numbers_t_packet_count_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_packet_count_get(swigCPtr); - return ret; - } - } - - public uint octet_count { - set { - freeswitchPINVOKE.switch_rtcp_numbers_t_octet_count_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_octet_count_get(swigCPtr); - return ret; - } - } - - public uint peer_ssrc { - set { - freeswitchPINVOKE.switch_rtcp_numbers_t_peer_ssrc_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_peer_ssrc_get(swigCPtr); - return ret; - } - } - - public switch_rtcp_numbers_t() : this(freeswitchPINVOKE.new_switch_rtcp_numbers_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_rtp_bug_flag_t { - RTP_BUG_NONE = 0, - RTP_BUG_CISCO_SKIP_MARK_BIT_2833 = (1 << 0), - RTP_BUG_SONUS_SEND_INVALID_TIMESTAMP_2833 = (1 << 1), - RTP_BUG_IGNORE_MARK_BIT = (1 << 2), - RTP_BUG_SEND_LINEAR_TIMESTAMPS = (1 << 3), - RTP_BUG_START_SEQ_AT_ZERO = (1 << 4), - RTP_BUG_NEVER_SEND_MARKER = (1 << 5), - RTP_BUG_IGNORE_DTMF_DURATION = (1 << 6), - RTP_BUG_ACCEPT_ANY_PACKETS = (1 << 7), - RTP_BUG_GEN_ONE_GEN_ALL = (1 << 8), - RTP_BUG_CHANGE_SSRC_ON_MARKER = (1 << 9), - RTP_BUG_FLUSH_JB_ON_DTMF = (1 << 10), - RTP_BUG_ACCEPT_ANY_PAYLOAD = (1 << 11) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_rtp_crypto_direction_t { - SWITCH_RTP_CRYPTO_SEND, - SWITCH_RTP_CRYPTO_RECV, - SWITCH_RTP_CRYPTO_SEND_RTCP, - SWITCH_RTP_CRYPTO_RECV_RTCP, - SWITCH_RTP_CRYPTO_MAX -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtp_crypto_key : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtp_crypto_key(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtp_crypto_key obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtp_crypto_key() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtp_crypto_key(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint index { - set { - freeswitchPINVOKE.switch_rtp_crypto_key_index_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_crypto_key_index_get(swigCPtr); - return ret; - } - } - - public switch_rtp_crypto_key_type_t type { - set { - freeswitchPINVOKE.switch_rtp_crypto_key_type_set(swigCPtr, (int)value); - } - get { - switch_rtp_crypto_key_type_t ret = (switch_rtp_crypto_key_type_t)freeswitchPINVOKE.switch_rtp_crypto_key_type_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char key { - set { - freeswitchPINVOKE.switch_rtp_crypto_key_key_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_crypto_key_key_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t keylen { - set { - freeswitchPINVOKE.switch_rtp_crypto_key_keylen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_crypto_key_keylen_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_rtp_crypto_key next { - set { - freeswitchPINVOKE.switch_rtp_crypto_key_next_set(swigCPtr, switch_rtp_crypto_key.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_crypto_key_next_get(swigCPtr); - switch_rtp_crypto_key ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_crypto_key(cPtr, false); - return ret; - } - } - - public switch_rtp_crypto_key() : this(freeswitchPINVOKE.new_switch_rtp_crypto_key(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_rtp_crypto_key_type_t { - AEAD_AES_256_GCM_8, - AEAD_AES_128_GCM_8, - AES_CM_256_HMAC_SHA1_80, - AES_CM_192_HMAC_SHA1_80, - AES_CM_128_HMAC_SHA1_80, - AES_CM_256_HMAC_SHA1_32, - AES_CM_192_HMAC_SHA1_32, - AES_CM_128_HMAC_SHA1_32, - AES_CM_128_NULL_AUTH, - CRYPTO_INVALID -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_rtp_flag_t { - SWITCH_RTP_FLAG_NOBLOCK = 0, - SWITCH_RTP_FLAG_DTMF_ON, - SWITCH_RTP_FLAG_IO, - SWITCH_RTP_FLAG_USE_TIMER, - SWITCH_RTP_FLAG_RTCP_PASSTHRU, - SWITCH_RTP_FLAG_SECURE_SEND, - SWITCH_RTP_FLAG_SECURE_RECV, - SWITCH_RTP_FLAG_AUTOADJ, - SWITCH_RTP_FLAG_RAW_WRITE, - SWITCH_RTP_FLAG_GOOGLEHACK, - SWITCH_RTP_FLAG_VAD, - SWITCH_RTP_FLAG_BREAK, - SWITCH_RTP_FLAG_UDPTL, - SWITCH_RTP_FLAG_DATAWAIT, - SWITCH_RTP_FLAG_BYTESWAP, - SWITCH_RTP_FLAG_PASS_RFC2833, - SWITCH_RTP_FLAG_AUTO_CNG, - SWITCH_RTP_FLAG_SECURE_SEND_RESET, - SWITCH_RTP_FLAG_SECURE_RECV_RESET, - SWITCH_RTP_FLAG_PROXY_MEDIA, - SWITCH_RTP_FLAG_SHUTDOWN, - SWITCH_RTP_FLAG_FLUSH, - SWITCH_RTP_FLAG_AUTOFLUSH, - SWITCH_RTP_FLAG_STICKY_FLUSH, - SWITCH_ZRTP_FLAG_SECURE_SEND, - SWITCH_ZRTP_FLAG_SECURE_RECV, - SWITCH_ZRTP_FLAG_SECURE_MITM_SEND, - SWITCH_ZRTP_FLAG_SECURE_MITM_RECV, - SWITCH_RTP_FLAG_DEBUG_RTP_READ, - SWITCH_RTP_FLAG_DEBUG_RTP_WRITE, - SWITCH_RTP_FLAG_VIDEO, - SWITCH_RTP_FLAG_ENABLE_RTCP, - SWITCH_RTP_FLAG_RTCP_MUX, - SWITCH_RTP_FLAG_KILL_JB, - SWITCH_RTP_FLAG_VIDEO_BREAK, - SWITCH_RTP_FLAG_PAUSE, - SWITCH_RTP_FLAG_FIR, - SWITCH_RTP_FLAG_PLI, - SWITCH_RTP_FLAG_RESET, - SWITCH_RTP_FLAG_INVALID -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_rtp_flush_t { - SWITCH_RTP_FLUSH_ONCE, - SWITCH_RTP_FLUSH_STICK, - SWITCH_RTP_FLUSH_UNSTICK -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtp_hdr_ext_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtp_hdr_ext_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtp_hdr_ext_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtp_hdr_ext_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtp_hdr_ext_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint length { - set { - freeswitchPINVOKE.switch_rtp_hdr_ext_t_length_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_ext_t_length_get(swigCPtr); - return ret; - } - } - - public uint profile { - set { - freeswitchPINVOKE.switch_rtp_hdr_ext_t_profile_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_ext_t_profile_get(swigCPtr); - return ret; - } - } - - public switch_rtp_hdr_ext_t() : this(freeswitchPINVOKE.new_switch_rtp_hdr_ext_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtp_hdr_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtp_hdr_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtp_hdr_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtp_hdr_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtp_hdr_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public uint version { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_version_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_version_get(swigCPtr); - return ret; - } - } - - public uint p { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_p_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_p_get(swigCPtr); - return ret; - } - } - - public uint x { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_x_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_x_get(swigCPtr); - return ret; - } - } - - public uint cc { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_cc_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_cc_get(swigCPtr); - return ret; - } - } - - public uint m { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_m_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_m_get(swigCPtr); - return ret; - } - } - - public uint pt { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_pt_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_pt_get(swigCPtr); - return ret; - } - } - - public uint seq { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_seq_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_seq_get(swigCPtr); - return ret; - } - } - - public uint ts { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_ts_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_ts_get(swigCPtr); - return ret; - } - } - - public uint ssrc { - set { - freeswitchPINVOKE.switch_rtp_hdr_t_ssrc_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_ssrc_get(swigCPtr); - return ret; - } - } - - public switch_rtp_hdr_t() : this(freeswitchPINVOKE.new_switch_rtp_hdr_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtp_numbers_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtp_numbers_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtp_numbers_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtp_numbers_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtp_numbers_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_size_t raw_bytes { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_raw_bytes_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_raw_bytes_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t media_bytes { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_media_bytes_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_media_bytes_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t period_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_period_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_period_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t media_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_media_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_media_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t skip_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_skip_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_skip_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t jb_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_jb_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_jb_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t dtmf_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_dtmf_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_dtmf_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t cng_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_cng_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_cng_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t flush_packet_count { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_flush_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_flush_packet_count_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t largest_jb_size { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_largest_jb_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_largest_jb_size_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public long last_proc_time { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_last_proc_time_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_rtp_numbers_t_last_proc_time_get(swigCPtr); - return ret; - } - } - - public long jitter_n { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_jitter_n_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_rtp_numbers_t_jitter_n_get(swigCPtr); - return ret; - } - } - - public long jitter_add { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_jitter_add_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_rtp_numbers_t_jitter_add_get(swigCPtr); - return ret; - } - } - - public long jitter_addsq { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_jitter_addsq_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_rtp_numbers_t_jitter_addsq_get(swigCPtr); - return ret; - } - } - - public double variance { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_variance_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_variance_get(swigCPtr); - return ret; - } - } - - public double min_variance { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_min_variance_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_min_variance_get(swigCPtr); - return ret; - } - } - - public double max_variance { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_max_variance_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_max_variance_get(swigCPtr); - return ret; - } - } - - public double std_deviation { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_std_deviation_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_std_deviation_get(swigCPtr); - return ret; - } - } - - public double lossrate { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_lossrate_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_lossrate_get(swigCPtr); - return ret; - } - } - - public double burstrate { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_burstrate_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_burstrate_get(swigCPtr); - return ret; - } - } - - public double mean_interval { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_mean_interval_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_mean_interval_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_int loss { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_loss_set(swigCPtr, SWIGTYPE_p_int.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_numbers_t_loss_get(swigCPtr); - SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); - return ret; - } - } - - public int last_loss { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_last_loss_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_rtp_numbers_t_last_loss_get(swigCPtr); - return ret; - } - } - - public int recved { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_recved_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_rtp_numbers_t_recved_get(swigCPtr); - return ret; - } - } - - public int last_processed_seq { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_last_processed_seq_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_rtp_numbers_t_last_processed_seq_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t flaws { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_flaws_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_flaws_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t last_flaw { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_last_flaw_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_last_flaw_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public double R { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_R_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_R_get(swigCPtr); - return ret; - } - } - - public double mos { - set { - freeswitchPINVOKE.switch_rtp_numbers_t_mos_set(swigCPtr, value); - } - get { - double ret = freeswitchPINVOKE.switch_rtp_numbers_t_mos_get(swigCPtr); - return ret; - } - } - - public switch_rtp_numbers_t() : this(freeswitchPINVOKE.new_switch_rtp_numbers_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_rtp_stats_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_rtp_stats_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_rtp_stats_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_rtp_stats_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_rtp_stats_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_rtp_numbers_t inbound { - set { - freeswitchPINVOKE.switch_rtp_stats_t_inbound_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value)); - } - get { - 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 outbound { - set { - freeswitchPINVOKE.switch_rtp_stats_t_outbound_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value)); - } - get { - 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; - } - } - - public switch_rtcp_numbers_t rtcp { - set { - freeswitchPINVOKE.switch_rtp_stats_t_rtcp_set(swigCPtr, switch_rtcp_numbers_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_rtp_stats_t_rtcp_get(swigCPtr); - switch_rtcp_numbers_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtcp_numbers_t(cPtr, false); - return ret; - } - } - - public uint read_count { - set { - freeswitchPINVOKE.switch_rtp_stats_t_read_count_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_rtp_stats_t_read_count_get(swigCPtr); - return ret; - } - } - - public switch_rtp_stats_t() : this(freeswitchPINVOKE.new_switch_rtp_stats_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_say_args_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_say_args_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_say_args_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_say_args_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_say_args_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_say_type_t type { - set { - freeswitchPINVOKE.switch_say_args_t_type_set(swigCPtr, (int)value); - } - get { - switch_say_type_t ret = (switch_say_type_t)freeswitchPINVOKE.switch_say_args_t_type_get(swigCPtr); - return ret; - } - } - - public switch_say_method_t method { - set { - freeswitchPINVOKE.switch_say_args_t_method_set(swigCPtr, (int)value); - } - get { - switch_say_method_t ret = (switch_say_method_t)freeswitchPINVOKE.switch_say_args_t_method_get(swigCPtr); - return ret; - } - } - - public switch_say_gender_t gender { - set { - freeswitchPINVOKE.switch_say_args_t_gender_set(swigCPtr, (int)value); - } - get { - switch_say_gender_t ret = (switch_say_gender_t)freeswitchPINVOKE.switch_say_args_t_gender_get(swigCPtr); - return ret; - } - } - - public string ext { - set { - freeswitchPINVOKE.switch_say_args_t_ext_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_say_args_t_ext_get(swigCPtr); - return ret; - } - } - - public switch_say_args_t() : this(freeswitchPINVOKE.new_switch_say_args_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_say_gender_t { - SSG_MASCULINE, - SSG_FEMININE, - SSG_NEUTER, - SSG_UTRUM -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_say_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_say_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_say_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_say_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_say_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_say_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_say_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t say_function { - set { - freeswitchPINVOKE.switch_say_interface_say_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_say_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t say_string_function { - set { - freeswitchPINVOKE.switch_say_interface_say_string_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_say_string_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_say_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_say_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_say_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_say_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_say_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_say_interface next { - set { - freeswitchPINVOKE.switch_say_interface_next_set(swigCPtr, switch_say_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_next_get(swigCPtr); - switch_say_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_say_interface(cPtr, false); - return ret; - } - } - - public switch_say_interface() : this(freeswitchPINVOKE.new_switch_say_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_say_method_t { - SSM_NA, - SSM_PRONOUNCED, - SSM_ITERATED, - SSM_COUNTED, - SSM_PRONOUNCED_YEAR -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_say_type_t { - SST_NUMBER, - SST_ITEMS, - SST_PERSONS, - SST_MESSAGES, - SST_CURRENCY, - SST_TIME_MEASUREMENT, - SST_CURRENT_DATE, - SST_CURRENT_TIME, - SST_CURRENT_DATE_TIME, - SST_TELEPHONE_NUMBER, - SST_TELEPHONE_EXTENSION, - SST_URL, - SST_IP_ADDRESS, - SST_EMAIL_ADDRESS, - SST_POSTAL_ADDRESS, - SST_ACCOUNT_NUMBER, - SST_NAME_SPELLED, - SST_NAME_PHONETIC, - SST_SHORT_DATE_TIME -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_scheduler_flag_enum_t { - SSHF_NONE = 0, - SSHF_OWN_THREAD = (1 << 0), - SSHF_FREE_ARG = (1 << 1), - SSHF_NO_DEL = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_scheduler_task : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_scheduler_task(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_scheduler_task obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_scheduler_task() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_scheduler_task(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public long created { - set { - freeswitchPINVOKE.switch_scheduler_task_created_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_scheduler_task_created_get(swigCPtr); - return ret; - } - } - - public long runtime { - set { - freeswitchPINVOKE.switch_scheduler_task_runtime_set(swigCPtr, value); - } - get { - long ret = freeswitchPINVOKE.switch_scheduler_task_runtime_get(swigCPtr); - return ret; - } - } - - public uint cmd_id { - set { - freeswitchPINVOKE.switch_scheduler_task_cmd_id_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_scheduler_task_cmd_id_get(swigCPtr); - return ret; - } - } - - public uint repeat { - set { - freeswitchPINVOKE.switch_scheduler_task_repeat_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_scheduler_task_repeat_get(swigCPtr); - return ret; - } - } - - public string group { - set { - freeswitchPINVOKE.switch_scheduler_task_group_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_scheduler_task_group_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void cmd_arg { - set { - freeswitchPINVOKE.switch_scheduler_task_cmd_arg_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_scheduler_task_cmd_arg_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public uint task_id { - set { - freeswitchPINVOKE.switch_scheduler_task_task_id_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_scheduler_task_task_id_get(swigCPtr); - return ret; - } - } - - public uint hash { - set { - freeswitchPINVOKE.switch_scheduler_task_hash_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_scheduler_task_hash_get(swigCPtr); - return ret; - } - } - - public switch_scheduler_task() : this(freeswitchPINVOKE.new_switch_scheduler_task(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_sdp_type_t { - SDP_TYPE_REQUEST, - SDP_TYPE_RESPONSE -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_serial_event_header_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_serial_event_header_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_serial_event_header_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_serial_event_header_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_serial_event_header_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string name { - set { - freeswitchPINVOKE.switch_serial_event_header_t_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_serial_event_header_t_name_get(swigCPtr); - return ret; - } - } - - public string value { - set { - freeswitchPINVOKE.switch_serial_event_header_t_value_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_serial_event_header_t_value_get(swigCPtr); - return ret; - } - } - - public switch_serial_event_header_t() : this(freeswitchPINVOKE.new_switch_serial_event_header_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_serial_event_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_serial_event_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_serial_event_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_serial_event_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_serial_event_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public int event_id { - set { - freeswitchPINVOKE.switch_serial_event_t_event_id_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_serial_event_t_event_id_get(swigCPtr); - return ret; - } - } - - public int priority { - set { - freeswitchPINVOKE.switch_serial_event_t_priority_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_serial_event_t_priority_get(swigCPtr); - return ret; - } - } - - public int flags { - set { - freeswitchPINVOKE.switch_serial_event_t_flags_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_serial_event_t_flags_get(swigCPtr); - return ret; - } - } - - public string owner { - set { - freeswitchPINVOKE.switch_serial_event_t_owner_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_serial_event_t_owner_get(swigCPtr); - return ret; - } - } - - public string subclass_name { - set { - freeswitchPINVOKE.switch_serial_event_t_subclass_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_serial_event_t_subclass_name_get(swigCPtr); - return ret; - } - } - - public string body { - set { - freeswitchPINVOKE.switch_serial_event_t_body_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_serial_event_t_body_get(swigCPtr); - return ret; - } - } - - public switch_serial_event_t() : this(freeswitchPINVOKE.new_switch_serial_event_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_session_ctl_t { - SCSC_PAUSE_INBOUND, - SCSC_PAUSE_OUTBOUND, - SCSC_PAUSE_ALL, - SCSC_HUPALL, - SCSC_SHUTDOWN, - SCSC_CHECK_RUNNING, - SCSC_LOGLEVEL, - SCSC_SPS, - SCSC_LAST_SPS, - SCSC_RECLAIM, - SCSC_MAX_SESSIONS, - SCSC_SYNC_CLOCK, - SCSC_MAX_DTMF_DURATION, - SCSC_MIN_DTMF_DURATION, - SCSC_DEFAULT_DTMF_DURATION, - SCSC_SHUTDOWN_ELEGANT, - SCSC_SHUTDOWN_ASAP, - SCSC_CANCEL_SHUTDOWN, - SCSC_SEND_SIGHUP, - SCSC_DEBUG_LEVEL, - SCSC_FLUSH_DB_HANDLES, - SCSC_SHUTDOWN_NOW, - SCSC_REINCARNATE_NOW, - SCSC_CALIBRATE_CLOCK, - SCSC_SAVE_HISTORY, - SCSC_CRASH, - SCSC_MIN_IDLE_CPU, - SCSC_VERBOSE_EVENTS, - SCSC_SHUTDOWN_CHECK, - SCSC_PAUSE_INBOUND_CHECK, - SCSC_PAUSE_OUTBOUND_CHECK, - SCSC_PAUSE_CHECK, - SCSC_READY_CHECK, - SCSC_THREADED_SYSTEM_EXEC, - SCSC_SYNC_CLOCK_WHEN_IDLE, - SCSC_DEBUG_SQL, - SCSC_SQL, - SCSC_API_EXPANSION, - SCSC_RECOVER, - SCSC_SPS_PEAK, - SCSC_SPS_PEAK_FIVEMIN, - SCSC_SESSIONS_PEAK, - SCSC_SESSIONS_PEAK_FIVEMIN -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_signal_t { - SWITCH_SIG_NONE, - SWITCH_SIG_KILL, - SWITCH_SIG_XFER, - SWITCH_SIG_BREAK -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_slin_data : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_slin_data(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_slin_data obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_slin_data() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_slin_data(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_core_session session { - set { - freeswitchPINVOKE.switch_slin_data_session_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_slin_data_session_get(swigCPtr); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - } - - public switch_frame write_frame { - set { - freeswitchPINVOKE.switch_slin_data_write_frame_set(swigCPtr, switch_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_slin_data_write_frame_get(swigCPtr); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - } - - public switch_codec codec { - set { - freeswitchPINVOKE.switch_slin_data_codec_set(swigCPtr, switch_codec.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_slin_data_codec_get(swigCPtr); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - } - - public string frame_data { - set { - freeswitchPINVOKE.switch_slin_data_frame_data_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_slin_data_frame_data_get(swigCPtr); - return ret; - } - } - - public switch_slin_data() : this(freeswitchPINVOKE.new_switch_slin_data(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_speech_flag_enum_t { - SWITCH_SPEECH_FLAG_NONE = 0, - SWITCH_SPEECH_FLAG_HASTEXT = (1 << 0), - SWITCH_SPEECH_FLAG_PEEK = (1 << 1), - SWITCH_SPEECH_FLAG_FREE_POOL = (1 << 2), - SWITCH_SPEECH_FLAG_BLOCKING = (1 << 3), - SWITCH_SPEECH_FLAG_PAUSE = (1 << 4), - SWITCH_SPEECH_FLAG_OPEN = (1 << 5), - SWITCH_SPEECH_FLAG_DONE = (1 << 6) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_speech_handle : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_speech_handle(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_speech_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_speech_handle() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_speech_handle(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public switch_speech_interface speech_interface { - set { - freeswitchPINVOKE.switch_speech_handle_speech_interface_set(swigCPtr, switch_speech_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_speech_interface_get(swigCPtr); - switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_speech_handle_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_flags_get(swigCPtr); - return ret; - } - } - - public string name { - set { - freeswitchPINVOKE.switch_speech_handle_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_speech_handle_name_get(swigCPtr); - return ret; - } - } - - public uint rate { - set { - freeswitchPINVOKE.switch_speech_handle_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_rate_get(swigCPtr); - return ret; - } - } - - public uint speed { - set { - freeswitchPINVOKE.switch_speech_handle_speed_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_speed_get(swigCPtr); - return ret; - } - } - - public uint samples { - set { - freeswitchPINVOKE.switch_speech_handle_samples_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_samples_get(swigCPtr); - return ret; - } - } - - public uint channels { - set { - freeswitchPINVOKE.switch_speech_handle_channels_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_channels_get(swigCPtr); - return ret; - } - } - - public uint real_channels { - set { - freeswitchPINVOKE.switch_speech_handle_real_channels_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_real_channels_get(swigCPtr); - return ret; - } - } - - public string voice { - set { - freeswitchPINVOKE.switch_speech_handle_voice_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_speech_handle_voice_get(swigCPtr); - return ret; - } - } - - public string engine { - set { - freeswitchPINVOKE.switch_speech_handle_engine_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_speech_handle_engine_get(swigCPtr); - return ret; - } - } - - public string param { - set { - freeswitchPINVOKE.switch_speech_handle_param_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_speech_handle_param_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t memory_pool { - set { - freeswitchPINVOKE.switch_speech_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_memory_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public switch_audio_resampler_t resampler { - set { - freeswitchPINVOKE.switch_speech_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_resampler_get(swigCPtr); - switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_buffer buffer { - set { - freeswitchPINVOKE.switch_speech_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_buffer_get(swigCPtr); - SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char dbuf { - set { - freeswitchPINVOKE.switch_speech_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_dbuf_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t dbuflen { - set { - freeswitchPINVOKE.switch_speech_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_speech_handle_dbuflen_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public uint samplerate { - set { - freeswitchPINVOKE.switch_speech_handle_samplerate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_samplerate_get(swigCPtr); - return ret; - } - } - - public uint native_rate { - set { - freeswitchPINVOKE.switch_speech_handle_native_rate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_speech_handle_native_rate_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_speech_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public switch_speech_handle() : this(freeswitchPINVOKE.new_switch_speech_handle(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_speech_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_speech_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_speech_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_speech_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_speech_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_speech_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_speech_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t speech_open { - set { - freeswitchPINVOKE.switch_speech_interface_speech_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_open_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t speech_close { - set { - freeswitchPINVOKE.switch_speech_interface_speech_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_close_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t speech_feed_tts { - set { - freeswitchPINVOKE.switch_speech_interface_speech_feed_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_feed_tts_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t speech_read_tts { - set { - freeswitchPINVOKE.switch_speech_interface_speech_read_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_read_tts_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle__void speech_flush_tts { - set { - freeswitchPINVOKE.switch_speech_interface_speech_flush_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_flush_tts_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void speech_text_param_tts { - set { - freeswitchPINVOKE.switch_speech_interface_speech_text_param_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_text_param_tts_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void speech_numeric_param_tts { - set { - freeswitchPINVOKE.switch_speech_interface_speech_numeric_param_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_numeric_param_tts_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void speech_float_param_tts { - set { - freeswitchPINVOKE.switch_speech_interface_speech_float_param_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_float_param_tts_get(swigCPtr); - SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_speech_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_speech_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_speech_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_speech_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_speech_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_speech_interface next { - set { - freeswitchPINVOKE.switch_speech_interface_next_set(swigCPtr, switch_speech_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_next_get(swigCPtr); - switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); - return ret; - } - } - - public switch_speech_interface() : this(freeswitchPINVOKE.new_switch_speech_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_srtp_crypto_suite_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_srtp_crypto_suite_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_srtp_crypto_suite_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_srtp_crypto_suite_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_srtp_crypto_suite_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string name { - set { - freeswitchPINVOKE.switch_srtp_crypto_suite_t_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_srtp_crypto_suite_t_name_get(swigCPtr); - return ret; - } - } - - public switch_rtp_crypto_key_type_t type { - set { - freeswitchPINVOKE.switch_srtp_crypto_suite_t_type_set(swigCPtr, (int)value); - } - get { - switch_rtp_crypto_key_type_t ret = (switch_rtp_crypto_key_type_t)freeswitchPINVOKE.switch_srtp_crypto_suite_t_type_get(swigCPtr); - return ret; - } - } - - public int keylen { - set { - freeswitchPINVOKE.switch_srtp_crypto_suite_t_keylen_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_srtp_crypto_suite_t_keylen_get(swigCPtr); - return ret; - } - } - - public switch_srtp_crypto_suite_t() : this(freeswitchPINVOKE.new_switch_srtp_crypto_suite_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_stack_t { - SWITCH_STACK_BOTTOM = (1 << 0), - SWITCH_STACK_TOP = (1 << 1), - SWITCH_STACK_NODUP = (1 << 2), - SWITCH_STACK_UNSHIFT = (1 << 3), - SWITCH_STACK_PUSH = (1 << 4) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_state_handler_flag_t { - SSH_FLAG_STICKY = (1 << 0) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_state_handler_name_t { - SWITCH_SHN_ON_INIT, - SWITCH_SHN_ON_ROUTING, - SWITCH_SHN_ON_EXECUTE, - SWITCH_SHN_ON_HANGUP, - SWITCH_SHN_ON_EXCHANGE_MEDIA, - SWITCH_SHN_ON_SOFT_EXECUTE, - SWITCH_SHN_ON_CONSUME_MEDIA, - SWITCH_SHN_ON_HIBERNATE, - SWITCH_SHN_ON_RESET, - SWITCH_SHN_ON_PARK, - SWITCH_SHN_ON_REPORTING, - SWITCH_SHN_ON_DESTROY -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_state_handler_table : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_state_handler_table(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_state_handler_table obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_state_handler_table() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_state_handler_table(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_init { - set { - freeswitchPINVOKE.switch_state_handler_table_on_init_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_init_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_routing { - set { - freeswitchPINVOKE.switch_state_handler_table_on_routing_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_routing_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_execute { - set { - freeswitchPINVOKE.switch_state_handler_table_on_execute_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_execute_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_hangup { - set { - freeswitchPINVOKE.switch_state_handler_table_on_hangup_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_hangup_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_exchange_media { - set { - freeswitchPINVOKE.switch_state_handler_table_on_exchange_media_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_exchange_media_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_soft_execute { - set { - freeswitchPINVOKE.switch_state_handler_table_on_soft_execute_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_soft_execute_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_consume_media { - set { - freeswitchPINVOKE.switch_state_handler_table_on_consume_media_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_consume_media_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_hibernate { - set { - freeswitchPINVOKE.switch_state_handler_table_on_hibernate_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_hibernate_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_reset { - set { - freeswitchPINVOKE.switch_state_handler_table_on_reset_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_reset_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_park { - set { - freeswitchPINVOKE.switch_state_handler_table_on_park_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_park_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_reporting { - set { - freeswitchPINVOKE.switch_state_handler_table_on_reporting_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_reporting_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_destroy { - set { - freeswitchPINVOKE.switch_state_handler_table_on_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_destroy_get(swigCPtr); - SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); - return ret; - } - } - - public int flags { - set { - freeswitchPINVOKE.switch_state_handler_table_flags_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_state_handler_table_flags_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_p_void padding { - set { - freeswitchPINVOKE.switch_state_handler_table_padding_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_padding_get(swigCPtr); - SWIGTYPE_p_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); - return ret; - } - } - - public switch_state_handler_table() : this(freeswitchPINVOKE.new_switch_state_handler_table(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_status_t { - SWITCH_STATUS_SUCCESS, - SWITCH_STATUS_FALSE, - SWITCH_STATUS_TIMEOUT, - SWITCH_STATUS_RESTART, - SWITCH_STATUS_INTR, - SWITCH_STATUS_NOTIMPL, - SWITCH_STATUS_MEMERR, - SWITCH_STATUS_NOOP, - SWITCH_STATUS_RESAMPLE, - SWITCH_STATUS_GENERR, - SWITCH_STATUS_INUSE, - SWITCH_STATUS_BREAK, - SWITCH_STATUS_SOCKERR, - SWITCH_STATUS_MORE_DATA, - SWITCH_STATUS_NOTFOUND, - SWITCH_STATUS_UNLOAD, - SWITCH_STATUS_NOUNLOAD, - SWITCH_STATUS_IGNORE, - SWITCH_STATUS_TOO_SMALL, - SWITCH_STATUS_FOUND, - SWITCH_STATUS_CONTINUE, - SWITCH_STATUS_TERM, - SWITCH_STATUS_NOT_INITALIZED, - SWITCH_STATUS_XBREAK = 35, - SWITCH_STATUS_WINBREAK = 730035 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_stream_handle : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_stream_handle(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_stream_handle obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_stream_handle() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_stream_handle(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char read_function { - set { - freeswitchPINVOKE.switch_stream_handle_read_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_read_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t write_function { - set { - freeswitchPINVOKE.switch_stream_handle_write_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_write_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t raw_write_function { - set { - freeswitchPINVOKE.switch_stream_handle_raw_write_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_raw_write_function_get(swigCPtr); - SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void data { - set { - freeswitchPINVOKE.switch_stream_handle_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void end { - set { - freeswitchPINVOKE.switch_stream_handle_end_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_end_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t data_size { - set { - freeswitchPINVOKE.switch_stream_handle_data_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_data_size_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t data_len { - set { - freeswitchPINVOKE.switch_stream_handle_data_len_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_data_len_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t alloc_len { - set { - freeswitchPINVOKE.switch_stream_handle_alloc_len_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_alloc_len_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t alloc_chunk { - set { - freeswitchPINVOKE.switch_stream_handle_alloc_chunk_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_alloc_chunk_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_event param_event { - set { - freeswitchPINVOKE.switch_stream_handle_param_event_set(swigCPtr, switch_event.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_param_event_get(swigCPtr); - switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); - return ret; - } - } - - public switch_stream_handle() : this(freeswitchPINVOKE.new_switch_stream_handle(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_t38_options_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_t38_options_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_t38_options_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_t38_options_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_t38_options_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public ushort T38FaxVersion { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxVersion_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxVersion_get(swigCPtr); - return ret; - } - } - - public uint T38MaxBitRate { - set { - freeswitchPINVOKE.switch_t38_options_t_T38MaxBitRate_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_t38_options_t_T38MaxBitRate_get(swigCPtr); - return ret; - } - } - - public switch_bool_t T38FaxFillBitRemoval { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxFillBitRemoval_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_t38_options_t_T38FaxFillBitRemoval_get(swigCPtr); - return ret; - } - } - - public switch_bool_t T38FaxTranscodingMMR { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingMMR_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingMMR_get(swigCPtr); - return ret; - } - } - - public switch_bool_t T38FaxTranscodingJBIG { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingJBIG_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingJBIG_get(swigCPtr); - return ret; - } - } - - public string T38FaxRateManagement { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxRateManagement_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxRateManagement_get(swigCPtr); - return ret; - } - } - - public uint T38FaxMaxBuffer { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxBuffer_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxBuffer_get(swigCPtr); - return ret; - } - } - - public uint T38FaxMaxDatagram { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxDatagram_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxDatagram_get(swigCPtr); - return ret; - } - } - - public string T38FaxUdpEC { - set { - freeswitchPINVOKE.switch_t38_options_t_T38FaxUdpEC_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxUdpEC_get(swigCPtr); - return ret; - } - } - - public string T38VendorInfo { - set { - freeswitchPINVOKE.switch_t38_options_t_T38VendorInfo_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_t38_options_t_T38VendorInfo_get(swigCPtr); - return ret; - } - } - - public string remote_ip { - set { - freeswitchPINVOKE.switch_t38_options_t_remote_ip_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_t38_options_t_remote_ip_get(swigCPtr); - return ret; - } - } - - public ushort remote_port { - set { - freeswitchPINVOKE.switch_t38_options_t_remote_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_t38_options_t_remote_port_get(swigCPtr); - return ret; - } - } - - public string local_ip { - set { - freeswitchPINVOKE.switch_t38_options_t_local_ip_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_t38_options_t_local_ip_get(swigCPtr); - return ret; - } - } - - public ushort local_port { - set { - freeswitchPINVOKE.switch_t38_options_t_local_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_t38_options_t_local_port_get(swigCPtr); - return ret; - } - } - - public string sdp_o_line { - set { - freeswitchPINVOKE.switch_t38_options_t_sdp_o_line_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_t38_options_t_sdp_o_line_get(swigCPtr); - return ret; - } - } - - public switch_t38_options_t() : this(freeswitchPINVOKE.new_switch_t38_options_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_text_channel_t { - SWITCH_CHANNEL_ID_LOG, - SWITCH_CHANNEL_ID_LOG_CLEAN, - SWITCH_CHANNEL_ID_EVENT, - SWITCH_CHANNEL_ID_SESSION -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_thread_data_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_thread_data_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_thread_data_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_thread_data_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_thread_data_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_thread_start_t func { - set { - freeswitchPINVOKE.switch_thread_data_t_func_set(swigCPtr, SWIGTYPE_p_switch_thread_start_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_thread_start_t ret = new SWIGTYPE_p_switch_thread_start_t(freeswitchPINVOKE.switch_thread_data_t_func_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_void obj { - set { - freeswitchPINVOKE.switch_thread_data_t_obj_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_thread_data_t_obj_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public int alloc { - set { - freeswitchPINVOKE.switch_thread_data_t_alloc_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_thread_data_t_alloc_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t pool { - set { - freeswitchPINVOKE.switch_thread_data_t_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_thread_data_t_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public switch_thread_data_t() : this(freeswitchPINVOKE.new_switch_thread_data_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_thread_priority_t { - SWITCH_PRI_LOW = 1, - SWITCH_PRI_NORMAL = 10, - SWITCH_PRI_IMPORTANT = 50, - SWITCH_PRI_REALTIME = 99 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_timer : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_timer(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_timer obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_timer() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_timer(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public int interval { - set { - freeswitchPINVOKE.switch_timer_interval_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_timer_interval_get(swigCPtr); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_timer_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_timer_flags_get(swigCPtr); - return ret; - } - } - - public uint samples { - set { - freeswitchPINVOKE.switch_timer_samples_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_timer_samples_get(swigCPtr); - return ret; - } - } - - public uint samplecount { - set { - freeswitchPINVOKE.switch_timer_samplecount_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_timer_samplecount_get(swigCPtr); - return ret; - } - } - - public switch_timer_interface timer_interface { - set { - freeswitchPINVOKE.switch_timer_timer_interface_set(swigCPtr, switch_timer_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_timer_interface_get(swigCPtr); - switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t memory_pool { - set { - freeswitchPINVOKE.switch_timer_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_memory_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void private_info { - set { - freeswitchPINVOKE.switch_timer_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_private_info_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t diff { - set { - freeswitchPINVOKE.switch_timer_diff_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_timer_diff_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t tick { - set { - freeswitchPINVOKE.switch_timer_tick_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_timer_tick_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_timer() : this(freeswitchPINVOKE.new_switch_timer(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_timer_flag_enum_t { - SWITCH_TIMER_FLAG_FREE_POOL = (1 << 0) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_timer_func_name_t { - SWITCH_TIMER_FUNC_TIMER_INIT, - SWITCH_TIMER_FUNC_TIMER_NEXT, - SWITCH_TIMER_FUNC_TIMER_STEP, - SWITCH_TIMER_FUNC_TIMER_SYNC, - SWITCH_TIMER_FUNC_TIMER_CHECK, - SWITCH_TIMER_FUNC_TIMER_DESTROY -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_timer_interface : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_timer_interface(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_timer_interface obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_timer_interface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_timer_interface(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string interface_name { - set { - freeswitchPINVOKE.switch_timer_interface_interface_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_timer_interface_interface_name_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_init { - set { - freeswitchPINVOKE.switch_timer_interface_timer_init_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_init_get(swigCPtr); - SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_next { - set { - freeswitchPINVOKE.switch_timer_interface_timer_next_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_next_get(swigCPtr); - SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_step { - set { - freeswitchPINVOKE.switch_timer_interface_timer_step_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_step_get(swigCPtr); - SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_sync { - set { - freeswitchPINVOKE.switch_timer_interface_timer_sync_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_sync_get(swigCPtr); - SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t timer_check { - set { - freeswitchPINVOKE.switch_timer_interface_timer_check_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_check_get(swigCPtr); - SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_destroy { - set { - freeswitchPINVOKE.switch_timer_interface_timer_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_destroy_get(swigCPtr); - SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_thread_rwlock_t rwlock { - set { - freeswitchPINVOKE.switch_timer_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_rwlock_get(swigCPtr); - SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); - return ret; - } - } - - public int refs { - set { - freeswitchPINVOKE.switch_timer_interface_refs_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_timer_interface_refs_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t reflock { - set { - freeswitchPINVOKE.switch_timer_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_reflock_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public switch_loadable_module_interface parent { - set { - freeswitchPINVOKE.switch_timer_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_parent_get(swigCPtr); - switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); - return ret; - } - } - - public switch_timer_interface next { - set { - freeswitchPINVOKE.switch_timer_interface_next_set(swigCPtr, switch_timer_interface.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_next_get(swigCPtr); - switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); - return ret; - } - } - - public switch_timer_interface() : this(freeswitchPINVOKE.new_switch_timer_interface(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_unicast_conninfo : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_unicast_conninfo(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_unicast_conninfo obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_unicast_conninfo() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_unicast_conninfo(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_switch_core_session session { - set { - freeswitchPINVOKE.switch_unicast_conninfo_session_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_session_get(swigCPtr); - SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); - return ret; - } - } - - public switch_codec read_codec { - set { - freeswitchPINVOKE.switch_unicast_conninfo_read_codec_set(swigCPtr, switch_codec.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_read_codec_get(swigCPtr); - switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); - return ret; - } - } - - public switch_frame write_frame { - set { - freeswitchPINVOKE.switch_unicast_conninfo_write_frame_set(swigCPtr, switch_frame.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_write_frame_get(swigCPtr); - switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_unsigned_char write_frame_data { - set { - freeswitchPINVOKE.switch_unicast_conninfo_write_frame_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_write_frame_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_socket_t socket { - set { - freeswitchPINVOKE.switch_unicast_conninfo_socket_set(swigCPtr, SWIGTYPE_p_switch_socket_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_socket_get(swigCPtr); - SWIGTYPE_p_switch_socket_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_socket_t(cPtr, false); - return ret; - } - } - - public string local_ip { - set { - freeswitchPINVOKE.switch_unicast_conninfo_local_ip_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_unicast_conninfo_local_ip_get(swigCPtr); - return ret; - } - } - - public ushort local_port { - set { - freeswitchPINVOKE.switch_unicast_conninfo_local_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_unicast_conninfo_local_port_get(swigCPtr); - return ret; - } - } - - public string remote_ip { - set { - freeswitchPINVOKE.switch_unicast_conninfo_remote_ip_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_unicast_conninfo_remote_ip_get(swigCPtr); - return ret; - } - } - - public ushort remote_port { - set { - freeswitchPINVOKE.switch_unicast_conninfo_remote_port_set(swigCPtr, value); - } - get { - ushort ret = freeswitchPINVOKE.switch_unicast_conninfo_remote_port_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_sockaddr_t local_addr { - set { - freeswitchPINVOKE.switch_unicast_conninfo_local_addr_set(swigCPtr, SWIGTYPE_p_switch_sockaddr_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_local_addr_get(swigCPtr); - SWIGTYPE_p_switch_sockaddr_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_sockaddr_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_sockaddr_t remote_addr { - set { - freeswitchPINVOKE.switch_unicast_conninfo_remote_addr_set(swigCPtr, SWIGTYPE_p_switch_sockaddr_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_remote_addr_get(swigCPtr); - SWIGTYPE_p_switch_sockaddr_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_sockaddr_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t flag_mutex { - set { - freeswitchPINVOKE.switch_unicast_conninfo_flag_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_flag_mutex_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public int flags { - set { - freeswitchPINVOKE.switch_unicast_conninfo_flags_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_unicast_conninfo_flags_get(swigCPtr); - return ret; - } - } - - public int type { - set { - freeswitchPINVOKE.switch_unicast_conninfo_type_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_unicast_conninfo_type_get(swigCPtr); - return ret; - } - } - - public int transport { - set { - freeswitchPINVOKE.switch_unicast_conninfo_transport_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_unicast_conninfo_transport_get(swigCPtr); - return ret; - } - } - - public int stream_id { - set { - freeswitchPINVOKE.switch_unicast_conninfo_stream_id_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_unicast_conninfo_stream_id_get(swigCPtr); - return ret; - } - } - - public switch_unicast_conninfo() : this(freeswitchPINVOKE.new_switch_unicast_conninfo(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_unicast_flag_enum_t { - SUF_NONE = 0, - SUF_THREAD_RUNNING = (1 << 0), - SUF_READY = (1 << 1), - SUF_NATIVE = (1 << 2) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -public enum switch_uri_flags { - SWITCH_URI_NUMERIC_HOST = 1, - SWITCH_URI_NUMERIC_PORT = 2, - SWITCH_URI_NO_SCOPE = 4 -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_vad_flag_enum_t { - SWITCH_VAD_FLAG_TALKING = (1 << 0), - SWITCH_VAD_FLAG_EVENTS_TALK = (1 << 1), - SWITCH_VAD_FLAG_EVENTS_NOTALK = (1 << 2), - SWITCH_VAD_FLAG_CNG = (1 << 3) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_waitlist_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_waitlist_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_waitlist_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_waitlist_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_waitlist_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public int sock { - set { - freeswitchPINVOKE.switch_waitlist_t_sock_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_waitlist_t_sock_get(swigCPtr); - return ret; - } - } - - public uint events { - set { - freeswitchPINVOKE.switch_waitlist_t_events_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_waitlist_t_events_get(swigCPtr); - return ret; - } - } - - public uint revents { - set { - freeswitchPINVOKE.switch_waitlist_t_revents_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_waitlist_t_revents_get(swigCPtr); - return ret; - } - } - - public switch_waitlist_t() : this(freeswitchPINVOKE.new_switch_waitlist_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - -public class switch_xml : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_xml(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_xml obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_xml() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_xml(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string name { - set { - freeswitchPINVOKE.switch_xml_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_xml_name_get(swigCPtr); - return ret; - } - } - - public string attr { - set { freeswitchPINVOKE.switch_xml_attr_set(swigCPtr, ref value); } - - get { - return freeswitchPINVOKE.switch_xml_attr_get(swigCPtr); - } - - } - - public string txt { - set { - freeswitchPINVOKE.switch_xml_txt_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_xml_txt_get(swigCPtr); - return ret; - } - } - - public string free_path { - set { - freeswitchPINVOKE.switch_xml_free_path_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_xml_free_path_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t off { - set { - freeswitchPINVOKE.switch_xml_off_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_xml_off_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public switch_xml next { - set { - freeswitchPINVOKE.switch_xml_next_set(swigCPtr, switch_xml.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_next_get(swigCPtr); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - } - - public switch_xml sibling { - set { - freeswitchPINVOKE.switch_xml_sibling_set(swigCPtr, switch_xml.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_sibling_get(swigCPtr); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - } - - public switch_xml ordered { - set { - freeswitchPINVOKE.switch_xml_ordered_set(swigCPtr, switch_xml.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_ordered_get(swigCPtr); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - } - - public switch_xml child { - set { - freeswitchPINVOKE.switch_xml_child_set(swigCPtr, switch_xml.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_child_get(swigCPtr); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - } - - public switch_xml parent { - set { - freeswitchPINVOKE.switch_xml_parent_set(swigCPtr, switch_xml.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_xml_parent_get(swigCPtr); - switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); - return ret; - } - } - - public uint flags { - set { - freeswitchPINVOKE.switch_xml_flags_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_xml_flags_get(swigCPtr); - return ret; - } - } - - public switch_bool_t is_switch_xml_root_t { - set { - freeswitchPINVOKE.switch_xml_is_switch_xml_root_t_set(swigCPtr, (int)value); - } - get { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_xml_is_switch_xml_root_t_get(swigCPtr); - return ret; - } - } - - public uint refs { - set { - freeswitchPINVOKE.switch_xml_refs_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_xml_refs_get(swigCPtr); - return ret; - } - } - - public switch_xml() : this(freeswitchPINVOKE.new_switch_xml(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_xml_flag_t { - SWITCH_XML_ROOT = (1 << 0), - SWITCH_XML_NAMEM = (1 << 1), - SWITCH_XML_TXTM = (1 << 2), - SWITCH_XML_DUP = (1 << 3) -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -[System.Flags] public enum switch_xml_section_enum_t { - SWITCH_XML_SECTION_RESULT = 0, - SWITCH_XML_SECTION_CONFIG = (1 << 0), - SWITCH_XML_SECTION_DIRECTORY = (1 << 1), - SWITCH_XML_SECTION_DIALPLAN = (1 << 2), - SWITCH_XML_SECTION_LANGUAGES = (1 << 3), - SWITCH_XML_SECTION_CHATPLAN = (1 << 4), - SWITCH_XML_SECTION_MAX = (1 << 4) -} - -} diff --git a/src/mod/languages/mod_perl/freeswitch.pm b/src/mod/languages/mod_perl/freeswitch.pm index f8b56f02bc..6622989171 100644 --- a/src/mod/languages/mod_perl/freeswitch.pm +++ b/src/mod/languages/mod_perl/freeswitch.pm @@ -1,8 +1,5 @@ -# This file was automatically generated by SWIG (http://www.swig.org). -# Version 1.3.35 -# +# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. - package freeswitch; require Exporter; @ISA = qw(Exporter); diff --git a/src/mod/languages/mod_perl/mod_perl_wrap.cpp b/src/mod/languages/mod_perl/mod_perl_wrap.cpp index 8784ad7060..8ba241815b 100644 --- a/src/mod/languages/mod_perl/mod_perl_wrap.cpp +++ b/src/mod/languages/mod_perl/mod_perl_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -12,7 +12,7 @@ #define SWIG_CASTRANK_MODE #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -25,10 +25,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template T SwigValueInit() { - return T(); -} #endif /* ----------------------------------------------------------------------------- @@ -38,14 +34,14 @@ template T SwigValueInit() { /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -124,16 +120,10 @@ template T SwigValueInit() { #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -143,7 +133,7 @@ template T SwigValueInit() { /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" +#define SWIG_RUNTIME_VERSION "2" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -178,7 +168,6 @@ template T SwigValueInit() { /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -319,10 +308,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *, int *); +typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store information on one type */ +/* Structure to store inforomation on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -367,7 +356,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (int)((l1 - f1) - (l2 - f2)); + return (l1 - f1) - (l2 - f2); } /* @@ -449,8 +438,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +SWIG_TypeCast(swig_cast_info *ty, void *ptr) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* @@ -803,10 +792,6 @@ extern "C" { # endif #endif /* !INT2PTR */ -#ifndef SvPV_nolen -# define SvPV_nolen(x) SvPV(x,PL_na) -#endif - #ifndef get_sv # define get_sv perl_get_sv #endif @@ -955,11 +940,6 @@ extern "C" { /* SWIG Perl macros */ -/* Macro to declare an XS function */ -#ifndef XSPROTO -# define XSPROTO(name) void name(pTHX_ CV* cv) -#endif - /* Macro to call an XS function */ #ifdef PERL_OBJECT # define SWIG_CALLXS(_name) _name(cv,pPerl) @@ -971,50 +951,51 @@ extern "C" { # endif #endif +/* Note: SwigMagicFuncHack is a typedef used to get the C++ compiler to just shut up already */ + #ifdef PERL_OBJECT #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; +typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus extern "C" { #endif -typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); +typedef int (CPerlObj::*SwigMagicFuncHack)(SV *, MAGIC *); #ifdef __cplusplus } #endif #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #define SWIGCLASS_STATIC - -#else /* PERL_OBJECT */ - +#else #define MAGIC_PPERL #define SWIGCLASS_STATIC static SWIGUNUSED - #ifndef MULTIPLICITY #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) +typedef int (*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus extern "C" { #endif -typedef int (*SwigMagicFunc)(SV *, MAGIC *); +typedef int (*SwigMagicFuncHack)(SV *, MAGIC *); #ifdef __cplusplus } #endif -#else /* MULTIPLICITY */ +#else #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) - -#ifdef __cplusplus -extern "C" { -#endif typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); #ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFuncHack)(struct interpreter *, SV *, MAGIC *); +#ifdef __cplusplus } #endif -#endif /* MULTIPLICITY */ -#endif /* PERL_OBJECT */ +#endif +#endif /* Workaround for bug in perl 5.6.x croak and earlier */ #if (PERL_VERSION < 8) @@ -1038,35 +1019,6 @@ static void SWIG_croak_null() #endif -/* - Define how strict is the cast between strings and integers/doubles - when overloading between these types occurs. - - The default is making it as strict as possible by using SWIG_AddCast - when needed. - - You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to - disable the SWIG_AddCast, making the casting between string and - numbers less strict. - - In the end, we try to solve the overloading between strings and - numerical types in the more natural way, but if you can avoid it, - well, avoid it using %rename, for example. -*/ -#ifndef SWIG_PERL_NO_STRICT_STR2NUM -# ifndef SWIG_PERL_STRICT_STR2NUM -# define SWIG_PERL_STRICT_STR2NUM -# endif -#endif -#ifdef SWIG_PERL_STRICT_STR2NUM -/* string takes precedence */ -#define SWIG_Str2NumCast(x) SWIG_AddCast(x) -#else -/* number takes precedence */ -#define SWIG_Str2NumCast(x) x -#endif - - #include @@ -1083,7 +1035,7 @@ SWIG_Perl_TypeProxyName(const swig_type_info *type) { SWIGRUNTIME swig_cast_info * SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { - SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) + SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp((char*)iter->type->name, c) == 0)) || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty); } @@ -1141,11 +1093,7 @@ SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info * if (!tc) { return SWIG_ERROR; } - { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } + *ptr = SWIG_TypeCast(tc,voidptr); } else { *ptr = voidptr; } @@ -1235,7 +1183,7 @@ SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_ const char *c = 0; if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; - c = SvPV_nolen(obj); + c = SvPV(obj, PL_na); /* Pointer values must start with leading underscore */ if (*c != '_') return SWIG_ERROR; c++; @@ -1252,7 +1200,7 @@ SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } -typedef XSPROTO(SwigPerlWrapper); +typedef XS(SwigPerlWrapper); typedef SwigPerlWrapper *SwigPerlWrapperPtr; /* Structure for command table */ @@ -1305,8 +1253,8 @@ SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, i sv_magic(sv,sv,'U',(char *) name,strlen(name)); mg = mg_find(sv,'U'); mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); - mg->mg_virtual->svt_get = (SwigMagicFunc) get; - mg->mg_virtual->svt_set = (SwigMagicFunc) set; + mg->mg_virtual->svt_get = (SwigMagicFuncHack) get; + mg->mg_virtual->svt_set = (SwigMagicFuncHack) set; mg->mg_virtual->svt_len = 0; mg->mg_virtual->svt_clear = 0; mg->mg_virtual->svt_free = 0; @@ -1320,7 +1268,7 @@ SWIG_Perl_GetModule(void) { /* first check if pointer already created */ if (!type_pointer) { - pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE); if (pointer && SvOK(pointer)) { type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); } @@ -1334,7 +1282,7 @@ SWIG_Perl_SetModule(swig_module_info *module) { SV *pointer; /* create a new pointer */ - pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE); sv_setiv(pointer, PTR2IV(module)); } @@ -1429,12 +1377,6 @@ SWIG_Perl_SetModule(swig_module_info *module) { #ifdef check #undef check #endif -#ifdef seekdir - #undef seekdir -#endif -#ifdef open - #undef open -#endif @@ -1487,8 +1429,7 @@ static swig_module_info swig_module = {swig_types, 29, 0, 0, 0, 0}; #define SWIG_name "freeswitchc::boot_freeswitch" #define SWIG_prefix "freeswitchc::" -#define SWIGVERSION 0x010335 -#define SWIG_VERSION SWIGVERSION +#define SWIGVERSION 0x010329 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) @@ -1517,7 +1458,7 @@ SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) +SWIG_pchar_descriptor() { static int init = 0; static swig_type_info* info = 0; @@ -1571,8 +1512,16 @@ SWIGINTERNINLINE SV * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { SV *obj = sv_newmortal(); - if (carray) { - sv_setpvn(obj, carray, size); + if (size && carray) { + if (carray[size - 1] == 0) { + sv_setpv(obj, carray); + } else { + char *tmp = (new char[size + 1]); + memcpy(tmp, carray, size); + tmp[size] = 0; + sv_setpv(obj, tmp); + delete[] tmp; + } } else { sv_setsv(obj, &PL_sv_undef); } @@ -1588,12 +1537,14 @@ SWIG_FromCharPtr(const char *cptr) #include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif +#ifndef LLONG_MIN +# define LLONG_MIN LONG_LONG_MIN +#endif +#ifndef LLONG_MAX +# define LLONG_MAX LONG_LONG_MAX +#endif +#ifndef ULLONG_MAX +# define ULLONG_MAX ULONG_LONG_MAX #endif @@ -1607,7 +1558,7 @@ SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) if (val) *val = (double) SvIV(obj); return SWIG_AddCast(SWIG_OK); } else { - const char *nptr = SvPV_nolen(obj); + const char *nptr = SvPV(obj, PL_na); if (nptr) { char *endptr; double v = strtod(nptr, &endptr); @@ -1617,7 +1568,7 @@ SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) } else { if (*endptr == '\0') { if (val) *val = v; - return SWIG_Str2NumCast(SWIG_OK); + return SWIG_AddCast(SWIG_OK); } } } @@ -1670,19 +1621,17 @@ SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) return SWIG_OK; } else { int dispatch = 0; - const char *nptr = SvPV_nolen(obj); + const char *nptr = SvPV(obj, PL_na); if (nptr) { char *endptr; - long v; - errno = 0; - v = strtol(nptr, &endptr,0); + long v = strtol(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; - return SWIG_Str2NumCast(SWIG_OK); + return SWIG_AddCast(SWIG_OK); } } } @@ -1810,19 +1759,17 @@ SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) } } else { int dispatch = 0; - const char *nptr = SvPV_nolen(obj); + const char *nptr = SvPV(obj, PL_na); if (nptr) { char *endptr; - unsigned long v; - errno = 0; - v = strtoul(nptr, &endptr,0); + unsigned long v = strtoul(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; - return SWIG_Str2NumCast(SWIG_OK); + return SWIG_AddCast(SWIG_OK); } } } @@ -1887,10 +1834,6 @@ SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val) return SWIG_TypeError; } -#ifdef __cplusplus -extern "C" { -#endif - #ifdef PERL_OBJECT #define MAGIC_CLASS _wrap_freeswitch_var:: class _wrap_freeswitch_var : public CPerlObj { @@ -1909,10 +1852,6 @@ SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SW }; #endif -#ifdef __cplusplus -} -#endif - #ifdef __cplusplus extern "C" { #endif @@ -1936,12 +1875,12 @@ XS(_wrap_setGlobalVariable) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setGlobalVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; setGlobalVariable(arg1,arg2); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -1972,9 +1911,9 @@ XS(_wrap_getGlobalVariable) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; result = (char *)getGlobalVariable(arg1); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc1 == SWIG_NEWOBJ) delete[] buf1; free(result); XSRETURN(argvi); @@ -2005,12 +1944,12 @@ XS(_wrap_consoleLog) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; consoleLog(arg1,arg2); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -2055,17 +1994,17 @@ XS(_wrap_consoleLog2) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog2" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "consoleLog2" "', argument " "4"" of type '" "int""'"); @@ -2075,7 +2014,7 @@ XS(_wrap_consoleLog2) { if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "consoleLog2" "', argument " "5"" of type '" "char *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; consoleLog2(arg1,arg2,arg3,arg4,arg5); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -2111,7 +2050,7 @@ XS(_wrap_consoleCleanLog) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleCleanLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; consoleCleanLog(arg1); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -2182,46 +2121,46 @@ XS(_wrap_email) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "email" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "email" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "email" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "email" "', argument " "4"" of type '" "char *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; } if (items > 4) { res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "email" "', argument " "5"" of type '" "char *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; } if (items > 5) { res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "email" "', argument " "6"" of type '" "char *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; } if (items > 6) { res7 = SWIG_AsCharPtrAndSize(ST(6), &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "email" "', argument " "7"" of type '" "char *""'"); } - arg7 = reinterpret_cast< char * >(buf7); + arg7 = buf7; } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -2325,52 +2264,52 @@ XS(_wrap_new_IVRMenu) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IVRMenu" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_IVRMenu" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IVRMenu" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_IVRMenu" "', argument " "5"" of type '" "char const *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_IVRMenu" "', argument " "6"" of type '" "char const *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; res7 = SWIG_AsCharPtrAndSize(ST(6), &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_IVRMenu" "', argument " "7"" of type '" "char const *""'"); } - arg7 = reinterpret_cast< char * >(buf7); + arg7 = buf7; res8 = SWIG_AsCharPtrAndSize(ST(7), &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_IVRMenu" "', argument " "8"" of type '" "char const *""'"); } - arg8 = reinterpret_cast< char * >(buf8); + arg8 = buf8; res9 = SWIG_AsCharPtrAndSize(ST(8), &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_IVRMenu" "', argument " "9"" of type '" "char const *""'"); } - arg9 = reinterpret_cast< char * >(buf9); + arg9 = buf9; res10 = SWIG_AsCharPtrAndSize(ST(9), &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_IVRMenu" "', argument " "10"" of type '" "char const *""'"); } - arg10 = reinterpret_cast< char * >(buf10); + arg10 = buf10; res11 = SWIG_AsCharPtrAndSize(ST(10), &buf11, NULL, &alloc11); if (!SWIG_IsOK(res11)) { SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_IVRMenu" "', argument " "11"" of type '" "char const *""'"); } - arg11 = reinterpret_cast< char * >(buf11); + arg11 = buf11; ecode12 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(11), &val12); if (!SWIG_IsOK(ecode12)) { SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_IVRMenu" "', argument " "12"" of type '" "int""'"); @@ -2504,17 +2443,17 @@ XS(_wrap_IVRMenu_bindAction) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IVRMenu_bindAction" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_bindAction" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IVRMenu_bindAction" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); @@ -2564,7 +2503,7 @@ XS(_wrap_IVRMenu_execute) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->execute(arg2,(char const *)arg3); @@ -2667,16 +2606,16 @@ XS(_wrap_API_execute) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "API_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -2716,9 +2655,9 @@ XS(_wrap_API_executeString) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_executeString" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (char *)(arg1)->executeString((char const *)arg2); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; free(result); @@ -2749,7 +2688,7 @@ XS(_wrap_API_getTime) { } arg1 = reinterpret_cast< API * >(argp1); result = (char *)(arg1)->getTime(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -2975,11 +2914,11 @@ XS(_wrap_input_callback_state_t_funcargs_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_funcargs_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->funcargs) delete[] arg1->funcargs; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->funcargs = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->funcargs = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->funcargs = 0; } @@ -3013,7 +2952,7 @@ XS(_wrap_input_callback_state_t_funcargs_get) { } arg1 = reinterpret_cast< input_callback_state_t * >(argp1); result = (char *) ((arg1)->funcargs); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -3426,7 +3365,7 @@ XS(_wrap_Stream_read) { } arg2 = reinterpret_cast< int * >(argp2); result = (char *)(arg1)->read(arg2); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); @@ -3462,7 +3401,7 @@ XS(_wrap_Stream_write) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; (arg1)->write((char const *)arg2); @@ -3503,7 +3442,7 @@ XS(_wrap_Stream_raw_write) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_raw_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Stream_raw_write" "', argument " "3"" of type '" "int""'"); @@ -3542,7 +3481,7 @@ XS(_wrap_Stream_get_data) { } arg1 = reinterpret_cast< Stream * >(argp1); result = (char *)(arg1)->get_data(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -3642,11 +3581,11 @@ XS(_wrap_Event_serialized_string_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialized_string_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->serialized_string) delete[] arg1->serialized_string; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->serialized_string = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->serialized_string = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->serialized_string = 0; } @@ -3680,7 +3619,7 @@ XS(_wrap_Event_serialized_string_get) { } arg1 = reinterpret_cast< Event * >(argp1); result = (char *) ((arg1)->serialized_string); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -3777,13 +3716,13 @@ XS(_wrap_new_Event__SWIG_0) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Event" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; if (items > 1) { res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Event" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } result = (Event *)new Event((char const *)arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_OWNER | SWIG_SHADOW); argvi++ ; @@ -3978,13 +3917,13 @@ XS(_wrap_Event_chat_execute) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_chat_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -4027,7 +3966,7 @@ XS(_wrap_Event_chat_send) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_send" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } result = (int)(arg1)->chat_send((char const *)arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -4068,10 +4007,10 @@ XS(_wrap_Event_serialize) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialize" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } result = (char *)(arg1)->serialize((char const *)arg2); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); @@ -4152,9 +4091,9 @@ XS(_wrap_Event_getHeader) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_getHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (char *)(arg1)->getHeader((char const *)arg2); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); @@ -4184,7 +4123,7 @@ XS(_wrap_Event_getBody) { } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getBody(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -4212,7 +4151,7 @@ XS(_wrap_Event_getType) { } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getType(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -4247,7 +4186,7 @@ XS(_wrap_Event_addBody) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addBody" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (bool)(arg1)->addBody((char const *)arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -4290,12 +4229,12 @@ XS(_wrap_Event_addHeader) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_addHeader" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -4336,7 +4275,7 @@ XS(_wrap_Event_delHeader) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_delHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (bool)(arg1)->delHeader((char const *)arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -4538,11 +4477,11 @@ XS(_wrap_EventConsumer_e_callback_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_callback_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->e_callback) delete[] arg1->e_callback; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->e_callback = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->e_callback = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->e_callback = 0; } @@ -4576,7 +4515,7 @@ XS(_wrap_EventConsumer_e_callback_get) { } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_callback); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -4610,11 +4549,11 @@ XS(_wrap_EventConsumer_e_subclass_name_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_subclass_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->e_subclass_name) delete[] arg1->e_subclass_name; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->e_subclass_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->e_subclass_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->e_subclass_name = 0; } @@ -4648,7 +4587,7 @@ XS(_wrap_EventConsumer_e_subclass_name_get) { } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_subclass_name); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -4682,11 +4621,11 @@ XS(_wrap_EventConsumer_e_cb_arg_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_cb_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->e_cb_arg) delete[] arg1->e_cb_arg; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->e_cb_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->e_cb_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->e_cb_arg = 0; } @@ -4720,7 +4659,7 @@ XS(_wrap_EventConsumer_e_cb_arg_get) { } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_cb_arg); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -4897,14 +4836,14 @@ XS(_wrap_new_EventConsumer) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventConsumer" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; } if (items > 1) { res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EventConsumer" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } if (items > 2) { ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); @@ -4985,13 +4924,13 @@ XS(_wrap_EventConsumer_bind) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_bind" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "EventConsumer_bind" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -5609,11 +5548,11 @@ XS(_wrap_CoreSession_uuid_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_uuid_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->uuid) delete[] arg1->uuid; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->uuid = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->uuid = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->uuid = 0; } @@ -5647,7 +5586,7 @@ XS(_wrap_CoreSession_uuid_get) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->uuid); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -5681,11 +5620,11 @@ XS(_wrap_CoreSession_tts_name_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_tts_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->tts_name) delete[] arg1->tts_name; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->tts_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->tts_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->tts_name = 0; } @@ -5719,7 +5658,7 @@ XS(_wrap_CoreSession_tts_name_get) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->tts_name); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -5753,11 +5692,11 @@ XS(_wrap_CoreSession_voice_name_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_voice_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->voice_name) delete[] arg1->voice_name; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->voice_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->voice_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->voice_name = 0; } @@ -5791,7 +5730,7 @@ XS(_wrap_CoreSession_voice_name_get) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->voice_name); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -5833,12 +5772,12 @@ XS(_wrap_CoreSession_insertFile) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_insertFile" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_insertFile" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_insertFile" "', argument " "4"" of type '" "int""'"); @@ -5942,7 +5881,7 @@ XS(_wrap_CoreSession_hangup) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_hangup" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } (arg1)->hangup((char const *)arg2); @@ -6012,12 +5951,12 @@ XS(_wrap_CoreSession_setVariable) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setVariable" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->setVariable(arg2,arg3); @@ -6059,7 +5998,7 @@ XS(_wrap_CoreSession_setPrivate) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setPrivate" "', argument " "3"" of type '" "void *""'"); @@ -6104,7 +6043,7 @@ XS(_wrap_CoreSession_getPrivate) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (void *)(arg1)->getPrivate(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; @@ -6143,9 +6082,9 @@ XS(_wrap_CoreSession_getVariable) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (char *)(arg1)->getVariable(arg2); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); @@ -6182,7 +6121,7 @@ XS(_wrap_CoreSession_process_callback_result) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_process_callback_result" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (arg1)->process_callback_result(arg2); ST(argvi) = SWIG_NewPointerObj((new switch_status_t(static_cast< const switch_status_t& >(result))), SWIGTYPE_p_switch_status_t, SWIG_POINTER_OWN | 0); argvi++ ; @@ -6236,28 +6175,28 @@ XS(_wrap_CoreSession_say) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_say" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_say" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_say" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CoreSession_say" "', argument " "5"" of type '" "char const *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; if (items > 5) { res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_say" "', argument " "6"" of type '" "char const *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); @@ -6312,20 +6251,20 @@ XS(_wrap_CoreSession_sayPhrase) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_sayPhrase" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_sayPhrase" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_sayPhrase" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); @@ -6362,7 +6301,7 @@ XS(_wrap_CoreSession_hangupCause) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->hangupCause(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -6390,7 +6329,7 @@ XS(_wrap_CoreSession_getState) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getState(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -6434,7 +6373,7 @@ XS(_wrap_CoreSession_recordFile) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_recordFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { @@ -6514,7 +6453,7 @@ XS(_wrap_CoreSession_originate) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_originate" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; if (items > 3) { ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { @@ -6605,7 +6544,7 @@ XS(_wrap_CoreSession_setDTMFCallback) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setDTMFCallback" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->setDTMFCallback(arg2,arg3); @@ -6646,7 +6585,7 @@ XS(_wrap_CoreSession_speak) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_speak" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (int)(arg1)->speak(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -6688,12 +6627,12 @@ XS(_wrap_CoreSession_set_tts_parms) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_parms" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_parms" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->set_tts_parms(arg2,arg3); @@ -6737,12 +6676,12 @@ XS(_wrap_CoreSession_set_tts_params) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_params" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_params" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->set_tts_params(arg2,arg3); @@ -6972,14 +6911,14 @@ XS(_wrap_CoreSession_getDigits__SWIG_0) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -7034,7 +6973,7 @@ XS(_wrap_CoreSession_getDigits__SWIG_1) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); @@ -7046,7 +6985,7 @@ XS(_wrap_CoreSession_getDigits__SWIG_1) { } arg5 = static_cast< int >(val5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -7225,20 +7164,20 @@ XS(_wrap_CoreSession_transfer) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_transfer" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_transfer" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_transfer" "', argument " "4"" of type '" "char *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; } result = (int)(arg1)->transfer(arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -7308,7 +7247,7 @@ XS(_wrap_CoreSession_read) { if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_read" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_read" "', argument " "5"" of type '" "int""'"); @@ -7318,7 +7257,7 @@ XS(_wrap_CoreSession_read) { if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_read" "', argument " "6"" of type '" "char const *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; if (items > 6) { ecode7 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { @@ -7327,7 +7266,7 @@ XS(_wrap_CoreSession_read) { arg7 = static_cast< int >(val7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; @@ -7429,28 +7368,28 @@ XS(_wrap_CoreSession_playAndGetDigits) { if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_playAndGetDigits" "', argument " "6"" of type '" "char *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; res7 = SWIG_AsCharPtrAndSize(ST(6), &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CoreSession_playAndGetDigits" "', argument " "7"" of type '" "char *""'"); } - arg7 = reinterpret_cast< char * >(buf7); + arg7 = buf7; res8 = SWIG_AsCharPtrAndSize(ST(7), &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CoreSession_playAndGetDigits" "', argument " "8"" of type '" "char *""'"); } - arg8 = reinterpret_cast< char * >(buf8); + arg8 = buf8; res9 = SWIG_AsCharPtrAndSize(ST(8), &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CoreSession_playAndGetDigits" "', argument " "9"" of type '" "char *""'"); } - arg9 = reinterpret_cast< char * >(buf9); + arg9 = buf9; if (items > 9) { res10 = SWIG_AsCharPtrAndSize(ST(9), &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "CoreSession_playAndGetDigits" "', argument " "10"" of type '" "char const *""'"); } - arg10 = reinterpret_cast< char * >(buf10); + arg10 = buf10; } if (items > 10) { ecode11 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(10), &val11); @@ -7464,10 +7403,10 @@ XS(_wrap_CoreSession_playAndGetDigits) { if (!SWIG_IsOK(res12)) { SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "CoreSession_playAndGetDigits" "', argument " "12"" of type '" "char const *""'"); } - arg12 = reinterpret_cast< char * >(buf12); + arg12 = buf12; } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; @@ -7527,7 +7466,7 @@ XS(_wrap_CoreSession_streamFile) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_streamFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { @@ -7906,13 +7845,13 @@ XS(_wrap_CoreSession_execute) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } (arg1)->execute((char const *)arg2,(char const *)arg3); @@ -8021,7 +7960,7 @@ XS(_wrap_CoreSession_getXMLCDR) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getXMLCDR(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -8105,7 +8044,7 @@ XS(_wrap_CoreSession_get_uuid) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)((CoreSession const *)arg1)->get_uuid(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -8251,12 +8190,12 @@ XS(_wrap_CoreSession_consoleLog) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->consoleLog(arg2,arg3); @@ -8311,17 +8250,17 @@ XS(_wrap_CoreSession_consoleLog2) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_consoleLog2" "', argument " "4"" of type '" "char *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_consoleLog2" "', argument " "5"" of type '" "int""'"); @@ -8331,7 +8270,7 @@ XS(_wrap_CoreSession_consoleLog2) { if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_consoleLog2" "', argument " "6"" of type '" "char *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); @@ -8373,12 +8312,12 @@ XS(_wrap_console_log) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; console_log(arg1,arg2); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8423,17 +8362,17 @@ XS(_wrap_console_log2) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log2" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log2" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "console_log2" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "console_log2" "', argument " "4"" of type '" "int""'"); @@ -8443,7 +8382,7 @@ XS(_wrap_console_log2) { if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "console_log2" "', argument " "5"" of type '" "char *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; console_log2(arg1,arg2,arg3,arg4,arg5); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8479,7 +8418,7 @@ XS(_wrap_console_clean_log) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_clean_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; console_clean_log(arg1); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8701,7 +8640,7 @@ XS(_wrap_new_Session__SWIG_1) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CoreSession, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Session" "', argument " "2"" of type '" "CoreSession *""'"); @@ -8747,20 +8686,10 @@ XS(_wrap_new_Session__SWIG_2) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); - result = (PERL::Session *)new PERL::Session(arg1); - if (result->allocated) { - result->setPERL(my_perl); - foo = get_sv(result->suuid, TRUE); - SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); - result->setME(foo); - } else { - foo = sv_newmortal(); - SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); - } - ST(argvi) = foo; argvi++ ; + arg1 = buf1; + result = (PERL::Session *)new PERL::Session(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - XSRETURN(argvi); fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8776,7 +8705,6 @@ XS(_wrap_new_Session__SWIG_3) { void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; - SV *foo; dXSARGS; if ((items < 1) || (items > 1)) { @@ -8788,18 +8716,8 @@ XS(_wrap_new_Session__SWIG_3) { } arg1 = reinterpret_cast< switch_core_session_t * >(argp1); result = (PERL::Session *)new PERL::Session(arg1); - if (result->allocated) { - result->setPERL(my_perl); - foo = get_sv(result->suuid, TRUE); - SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); - result->setME(foo); - } else { - foo = sv_newmortal(); - SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); - } - - ST(argvi) = foo; argvi++ ; - + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); fail: @@ -9027,6 +8945,7 @@ XS(_wrap_Session_check_hangup_hook) { void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; + SV *foo; dXSARGS; if ((items < 1) || (items > 1)) { @@ -9157,12 +9076,12 @@ XS(_wrap_Session_setInputCallback__SWIG_0) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setInputCallback" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Session_setInputCallback" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->setInputCallback(arg2,arg3); @@ -9202,7 +9121,7 @@ XS(_wrap_Session_setInputCallback__SWIG_1) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setInputCallback" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; (arg1)->setInputCallback(arg2); @@ -9407,12 +9326,12 @@ XS(_wrap_Session_setHangupHook__SWIG_0) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setHangupHook" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Session_setHangupHook" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->setHangupHook(arg2,arg3); @@ -9452,7 +9371,7 @@ XS(_wrap_Session_setHangupHook__SWIG_1) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setHangupHook" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; (arg1)->setHangupHook(arg2); @@ -9604,11 +9523,11 @@ XS(_wrap_Session_suuid_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_suuid_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->suuid) delete[] arg1->suuid; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->suuid = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->suuid = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->suuid = 0; } @@ -9642,7 +9561,7 @@ XS(_wrap_Session_suuid_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->suuid); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -9676,11 +9595,11 @@ XS(_wrap_Session_cb_function_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_cb_function_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->cb_function) delete[] arg1->cb_function; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->cb_function = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->cb_function = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->cb_function = 0; } @@ -9714,7 +9633,7 @@ XS(_wrap_Session_cb_function_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->cb_function); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -9748,11 +9667,11 @@ XS(_wrap_Session_cb_arg_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_cb_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->cb_arg) delete[] arg1->cb_arg; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->cb_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->cb_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->cb_arg = 0; } @@ -9786,7 +9705,7 @@ XS(_wrap_Session_cb_arg_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->cb_arg); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -9820,11 +9739,11 @@ XS(_wrap_Session_hangup_func_str_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_hangup_func_str_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->hangup_func_str) delete[] arg1->hangup_func_str; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->hangup_func_str = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->hangup_func_str = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->hangup_func_str = 0; } @@ -9858,7 +9777,7 @@ XS(_wrap_Session_hangup_func_str_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->hangup_func_str); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -9892,11 +9811,11 @@ XS(_wrap_Session_hangup_func_arg_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_hangup_func_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->hangup_func_arg) delete[] arg1->hangup_func_arg; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->hangup_func_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->hangup_func_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->hangup_func_arg = 0; } @@ -9930,7 +9849,7 @@ XS(_wrap_Session_hangup_func_arg_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->hangup_func_arg); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; XSRETURN(argvi); fail: @@ -9980,7 +9899,7 @@ XS(_wrap_Session_setPERL) { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_PERL__SessionTo_p_CoreSession(void *x, int *newmemory) { +static void *_p_PERL__SessionTo_p_CoreSession(void *x) { return (void *)((CoreSession *) ((PERL::Session *) x)); } static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)"freeswitch::API", 0}; @@ -9993,7 +9912,7 @@ static swig_type_info _swigt__p_PERL__Session = {"_p_PERL__Session", "PERL::Sess static swig_type_info _swigt__p_PerlInterpreter = {"_p_PerlInterpreter", "PerlInterpreter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)"freeswitch::Stream", 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)"freeswitch::input_callback_state_t", 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)"freeswitch::input_callback_state_t", 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum session_flag_t *|session_flag_t *", 0, 0, (void*)0, 0}; @@ -10312,7 +10231,7 @@ static swig_command_info swig_commands[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. + * array. We just loop though that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -10350,58 +10269,32 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif - SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head, *iter; - int found, init; + swig_module_info *module_head; + static int init_run = 0; clientdata = clientdata; - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } + if (init_run) return; + init_run = 1; + + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + if (module_head) { swig_module.next = module_head->next; module_head->next = &swig_module; + } else { + /* This is the first module loaded */ + swig_module.next = &swig_module; + SWIG_SetModule(clientdata, &swig_module); } - /* When multiple interpeters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -10555,7 +10448,7 @@ XS(SWIG_init) { /* Install variables */ for (i = 0; swig_variables[i].name; i++) { SV *sv; - sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); + sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2); if (swig_variables[i].type) { SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); } else { @@ -10567,7 +10460,7 @@ XS(SWIG_init) { /* Install constant */ for (i = 0; swig_constants[i].type; i++) { SV *sv; - sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); + sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2); switch(swig_constants[i].type) { case SWIG_INT: sv_setiv(sv, (IV) swig_constants[i].lvalue); @@ -10593,18 +10486,18 @@ XS(SWIG_init) { SWIG_TypeClientData(SWIGTYPE_p_IVRMenu, (void*) "freeswitch::IVRMenu"); SWIG_TypeClientData(SWIGTYPE_p_API, (void*) "freeswitch::API"); SWIG_TypeClientData(SWIGTYPE_p_input_callback_state, (void*) "freeswitch::input_callback_state_t"); - /*@SWIG://share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2 | GV_ADDMULTI); + /*@SWIG:%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_HUP))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG://share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2 | GV_ADDMULTI); + /*@SWIG:%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_FREE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG://share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2 | GV_ADDMULTI); + /*@SWIG:%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_RDLOCK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; diff --git a/src/mod/languages/mod_python/freeswitch.py b/src/mod/languages/mod_python/freeswitch.py index e2831b47db..f69db966bd 100644 --- a/src/mod/languages/mod_python/freeswitch.py +++ b/src/mod/languages/mod_python/freeswitch.py @@ -1,16 +1,10 @@ -# This file was automatically generated by SWIG (http://www.swig.org). -# Version 1.3.35 -# +# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _freeswitch import new new_instancemethod = new.instancemethod -try: - _swig_property = property -except NameError: - pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): @@ -98,16 +92,16 @@ class input_callback_state_t(_object): __repr__ = _swig_repr __swig_setmethods__["function"] = _freeswitch.input_callback_state_t_function_set __swig_getmethods__["function"] = _freeswitch.input_callback_state_t_function_get - if _newclass:function = _swig_property(_freeswitch.input_callback_state_t_function_get, _freeswitch.input_callback_state_t_function_set) + if _newclass:function = property(_freeswitch.input_callback_state_t_function_get, _freeswitch.input_callback_state_t_function_set) __swig_setmethods__["threadState"] = _freeswitch.input_callback_state_t_threadState_set __swig_getmethods__["threadState"] = _freeswitch.input_callback_state_t_threadState_get - if _newclass:threadState = _swig_property(_freeswitch.input_callback_state_t_threadState_get, _freeswitch.input_callback_state_t_threadState_set) + if _newclass:threadState = property(_freeswitch.input_callback_state_t_threadState_get, _freeswitch.input_callback_state_t_threadState_set) __swig_setmethods__["extra"] = _freeswitch.input_callback_state_t_extra_set __swig_getmethods__["extra"] = _freeswitch.input_callback_state_t_extra_get - if _newclass:extra = _swig_property(_freeswitch.input_callback_state_t_extra_get, _freeswitch.input_callback_state_t_extra_set) + if _newclass:extra = property(_freeswitch.input_callback_state_t_extra_get, _freeswitch.input_callback_state_t_extra_set) __swig_setmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_set __swig_getmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_get - if _newclass:funcargs = _swig_property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set) + if _newclass:funcargs = property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set) def __init__(self, *args): this = _freeswitch.new_input_callback_state_t(*args) try: self.this.append(this) @@ -128,10 +122,10 @@ class DTMF(_object): __repr__ = _swig_repr __swig_setmethods__["digit"] = _freeswitch.DTMF_digit_set __swig_getmethods__["digit"] = _freeswitch.DTMF_digit_get - if _newclass:digit = _swig_property(_freeswitch.DTMF_digit_get, _freeswitch.DTMF_digit_set) + if _newclass:digit = property(_freeswitch.DTMF_digit_get, _freeswitch.DTMF_digit_set) __swig_setmethods__["duration"] = _freeswitch.DTMF_duration_set __swig_getmethods__["duration"] = _freeswitch.DTMF_duration_get - if _newclass:duration = _swig_property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set) + if _newclass:duration = property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set) def __init__(self, *args): this = _freeswitch.new_DTMF(*args) try: self.this.append(this) @@ -168,13 +162,13 @@ class Event(_object): __repr__ = _swig_repr __swig_setmethods__["event"] = _freeswitch.Event_event_set __swig_getmethods__["event"] = _freeswitch.Event_event_get - if _newclass:event = _swig_property(_freeswitch.Event_event_get, _freeswitch.Event_event_set) + if _newclass:event = property(_freeswitch.Event_event_get, _freeswitch.Event_event_set) __swig_setmethods__["serialized_string"] = _freeswitch.Event_serialized_string_set __swig_getmethods__["serialized_string"] = _freeswitch.Event_serialized_string_get - if _newclass:serialized_string = _swig_property(_freeswitch.Event_serialized_string_get, _freeswitch.Event_serialized_string_set) + if _newclass:serialized_string = property(_freeswitch.Event_serialized_string_get, _freeswitch.Event_serialized_string_set) __swig_setmethods__["mine"] = _freeswitch.Event_mine_set __swig_getmethods__["mine"] = _freeswitch.Event_mine_get - if _newclass:mine = _swig_property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set) + if _newclass:mine = property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set) def __init__(self, *args): this = _freeswitch.new_Event(*args) try: self.this.append(this) @@ -203,25 +197,25 @@ class EventConsumer(_object): __repr__ = _swig_repr __swig_setmethods__["events"] = _freeswitch.EventConsumer_events_set __swig_getmethods__["events"] = _freeswitch.EventConsumer_events_get - if _newclass:events = _swig_property(_freeswitch.EventConsumer_events_get, _freeswitch.EventConsumer_events_set) + if _newclass:events = property(_freeswitch.EventConsumer_events_get, _freeswitch.EventConsumer_events_set) __swig_setmethods__["e_event_id"] = _freeswitch.EventConsumer_e_event_id_set __swig_getmethods__["e_event_id"] = _freeswitch.EventConsumer_e_event_id_get - if _newclass:e_event_id = _swig_property(_freeswitch.EventConsumer_e_event_id_get, _freeswitch.EventConsumer_e_event_id_set) + if _newclass:e_event_id = property(_freeswitch.EventConsumer_e_event_id_get, _freeswitch.EventConsumer_e_event_id_set) __swig_setmethods__["e_callback"] = _freeswitch.EventConsumer_e_callback_set __swig_getmethods__["e_callback"] = _freeswitch.EventConsumer_e_callback_get - if _newclass:e_callback = _swig_property(_freeswitch.EventConsumer_e_callback_get, _freeswitch.EventConsumer_e_callback_set) + if _newclass:e_callback = property(_freeswitch.EventConsumer_e_callback_get, _freeswitch.EventConsumer_e_callback_set) __swig_setmethods__["e_subclass_name"] = _freeswitch.EventConsumer_e_subclass_name_set __swig_getmethods__["e_subclass_name"] = _freeswitch.EventConsumer_e_subclass_name_get - if _newclass:e_subclass_name = _swig_property(_freeswitch.EventConsumer_e_subclass_name_get, _freeswitch.EventConsumer_e_subclass_name_set) + if _newclass:e_subclass_name = property(_freeswitch.EventConsumer_e_subclass_name_get, _freeswitch.EventConsumer_e_subclass_name_set) __swig_setmethods__["e_cb_arg"] = _freeswitch.EventConsumer_e_cb_arg_set __swig_getmethods__["e_cb_arg"] = _freeswitch.EventConsumer_e_cb_arg_get - if _newclass:e_cb_arg = _swig_property(_freeswitch.EventConsumer_e_cb_arg_get, _freeswitch.EventConsumer_e_cb_arg_set) + if _newclass:e_cb_arg = property(_freeswitch.EventConsumer_e_cb_arg_get, _freeswitch.EventConsumer_e_cb_arg_set) __swig_setmethods__["enodes"] = _freeswitch.EventConsumer_enodes_set __swig_getmethods__["enodes"] = _freeswitch.EventConsumer_enodes_get - if _newclass:enodes = _swig_property(_freeswitch.EventConsumer_enodes_get, _freeswitch.EventConsumer_enodes_set) + if _newclass:enodes = property(_freeswitch.EventConsumer_enodes_get, _freeswitch.EventConsumer_enodes_set) __swig_setmethods__["node_index"] = _freeswitch.EventConsumer_node_index_set __swig_getmethods__["node_index"] = _freeswitch.EventConsumer_node_index_get - if _newclass:node_index = _swig_property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set) + if _newclass:node_index = property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set) def __init__(self, *args): this = _freeswitch.new_EventConsumer(*args) try: self.this.append(this) @@ -239,40 +233,40 @@ class CoreSession(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name) - def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" + def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr __swig_destroy__ = _freeswitch.delete_CoreSession __del__ = lambda self : None; __swig_setmethods__["session"] = _freeswitch.CoreSession_session_set __swig_getmethods__["session"] = _freeswitch.CoreSession_session_get - if _newclass:session = _swig_property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set) + if _newclass:session = property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set) __swig_setmethods__["channel"] = _freeswitch.CoreSession_channel_set __swig_getmethods__["channel"] = _freeswitch.CoreSession_channel_get - if _newclass:channel = _swig_property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set) + if _newclass:channel = property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set) __swig_setmethods__["flags"] = _freeswitch.CoreSession_flags_set __swig_getmethods__["flags"] = _freeswitch.CoreSession_flags_get - if _newclass:flags = _swig_property(_freeswitch.CoreSession_flags_get, _freeswitch.CoreSession_flags_set) + if _newclass:flags = property(_freeswitch.CoreSession_flags_get, _freeswitch.CoreSession_flags_set) __swig_setmethods__["allocated"] = _freeswitch.CoreSession_allocated_set __swig_getmethods__["allocated"] = _freeswitch.CoreSession_allocated_get - if _newclass:allocated = _swig_property(_freeswitch.CoreSession_allocated_get, _freeswitch.CoreSession_allocated_set) + if _newclass:allocated = property(_freeswitch.CoreSession_allocated_get, _freeswitch.CoreSession_allocated_set) __swig_setmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_set __swig_getmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_get - if _newclass:cb_state = _swig_property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set) + if _newclass:cb_state = property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set) __swig_setmethods__["hook_state"] = _freeswitch.CoreSession_hook_state_set __swig_getmethods__["hook_state"] = _freeswitch.CoreSession_hook_state_get - if _newclass:hook_state = _swig_property(_freeswitch.CoreSession_hook_state_get, _freeswitch.CoreSession_hook_state_set) + if _newclass:hook_state = property(_freeswitch.CoreSession_hook_state_get, _freeswitch.CoreSession_hook_state_set) __swig_setmethods__["cause"] = _freeswitch.CoreSession_cause_set __swig_getmethods__["cause"] = _freeswitch.CoreSession_cause_get - if _newclass:cause = _swig_property(_freeswitch.CoreSession_cause_get, _freeswitch.CoreSession_cause_set) + if _newclass:cause = property(_freeswitch.CoreSession_cause_get, _freeswitch.CoreSession_cause_set) __swig_setmethods__["uuid"] = _freeswitch.CoreSession_uuid_set __swig_getmethods__["uuid"] = _freeswitch.CoreSession_uuid_get - if _newclass:uuid = _swig_property(_freeswitch.CoreSession_uuid_get, _freeswitch.CoreSession_uuid_set) + if _newclass:uuid = property(_freeswitch.CoreSession_uuid_get, _freeswitch.CoreSession_uuid_set) __swig_setmethods__["tts_name"] = _freeswitch.CoreSession_tts_name_set __swig_getmethods__["tts_name"] = _freeswitch.CoreSession_tts_name_get - if _newclass:tts_name = _swig_property(_freeswitch.CoreSession_tts_name_get, _freeswitch.CoreSession_tts_name_set) + if _newclass:tts_name = property(_freeswitch.CoreSession_tts_name_get, _freeswitch.CoreSession_tts_name_set) __swig_setmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_set __swig_getmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_get - if _newclass:voice_name = _swig_property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set) + if _newclass:voice_name = property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set) def insertFile(*args): return _freeswitch.CoreSession_insertFile(*args) def answer(*args): return _freeswitch.CoreSession_answer(*args) def preAnswer(*args): return _freeswitch.CoreSession_preAnswer(*args) @@ -334,10 +328,10 @@ hanguphook = _freeswitch.hanguphook dtmf_callback = _freeswitch.dtmf_callback class Session(CoreSession): __swig_setmethods__ = {} - for _s in [CoreSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [CoreSession]: __swig_setmethods__.update(_s.__swig_setmethods__) __setattr__ = lambda self, name, value: _swig_setattr(self, Session, name, value) __swig_getmethods__ = {} - for _s in [CoreSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [CoreSession]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, Session, name) __repr__ = _swig_repr def __init__(self, *args): @@ -357,16 +351,16 @@ class Session(CoreSession): def ready(*args): return _freeswitch.Session_ready(*args) __swig_setmethods__["cb_function"] = _freeswitch.Session_cb_function_set __swig_getmethods__["cb_function"] = _freeswitch.Session_cb_function_get - if _newclass:cb_function = _swig_property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set) + if _newclass:cb_function = property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set) __swig_setmethods__["cb_arg"] = _freeswitch.Session_cb_arg_set __swig_getmethods__["cb_arg"] = _freeswitch.Session_cb_arg_get - if _newclass:cb_arg = _swig_property(_freeswitch.Session_cb_arg_get, _freeswitch.Session_cb_arg_set) + if _newclass:cb_arg = property(_freeswitch.Session_cb_arg_get, _freeswitch.Session_cb_arg_set) __swig_setmethods__["hangup_func"] = _freeswitch.Session_hangup_func_set __swig_getmethods__["hangup_func"] = _freeswitch.Session_hangup_func_get - if _newclass:hangup_func = _swig_property(_freeswitch.Session_hangup_func_get, _freeswitch.Session_hangup_func_set) + if _newclass:hangup_func = property(_freeswitch.Session_hangup_func_get, _freeswitch.Session_hangup_func_set) __swig_setmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_set __swig_getmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_get - if _newclass:hangup_func_arg = _swig_property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set) + if _newclass:hangup_func_arg = property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set) def setPython(*args): return _freeswitch.Session_setPython(*args) def setSelf(*args): return _freeswitch.Session_setSelf(*args) Session_swigregister = _freeswitch.Session_swigregister diff --git a/src/mod/languages/mod_python/mod_python_wrap.cpp b/src/mod/languages/mod_python/mod_python_wrap.cpp index e7afa21ba5..92285ce5b9 100644 --- a/src/mod/languages/mod_python/mod_python_wrap.cpp +++ b/src/mod/languages/mod_python/mod_python_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -12,7 +12,7 @@ #define SWIG_PYTHON_DIRECTOR_NO_VTABLE #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -25,10 +25,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template T SwigValueInit() { - return T(); -} #endif /* ----------------------------------------------------------------------------- @@ -38,14 +34,14 @@ template T SwigValueInit() { /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -124,16 +120,10 @@ template T SwigValueInit() { #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* Python.h has to appear first */ #include @@ -147,7 +137,7 @@ template T SwigValueInit() { /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" +#define SWIG_RUNTIME_VERSION "2" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -182,7 +172,6 @@ template T SwigValueInit() { /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -323,10 +312,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *, int *); +typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store information on one type */ +/* Structure to store inforomation on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -371,7 +360,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (int)((l1 - f1) - (l2 - f2)); + return (l1 - f1) - (l2 - f2); } /* @@ -453,8 +442,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +SWIG_TypeCast(swig_cast_info *ty, void *ptr) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* @@ -725,6 +714,8 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { +/* Python.h has to appear first */ +#include /* Add PyOS_snprintf for old Pythons */ #if PY_VERSION_HEX < 0x02020000 @@ -805,14 +796,6 @@ PyObject *PyBool_FromLong(long ok) } #endif -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -#endif /* ----------------------------------------------------------------------------- * error manipulation @@ -878,7 +861,7 @@ SWIG_Python_AddErrorMsg(const char* mesg) Py_DECREF(old_str); Py_DECREF(value); } else { - PyErr_SetString(PyExc_RuntimeError, mesg); + PyErr_Format(PyExc_RuntimeError, mesg); } } @@ -1118,14 +1101,14 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { /* Unpack the argument tuple */ SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) { if (!args) { if (!min && !max) { return 1; } else { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); + name, (min == max ? "" : "at least "), min); return 0; } } @@ -1133,14 +1116,14 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); + register int l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); + name, (min == max ? "" : "at least "), min, l); return 0; } else if (l > max) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); + name, (min == max ? "" : "at most "), max, l); return 0; } else { register int i; @@ -1206,7 +1189,7 @@ extern "C" { SWIGRUNTIMEINLINE PyObject * _SWIG_Py_None(void) { - PyObject *none = Py_BuildValue((char*)""); + PyObject *none = Py_BuildValue(""); Py_DECREF(none); return none; } @@ -1438,7 +1421,7 @@ PySwigObject_dealloc(PyObject *v) { PySwigObject *sobj = (PySwigObject *) v; PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { + if (sobj->own) { swig_type_info *ty = sobj->ty; PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; PyObject *destroy = data ? data->destroy : 0; @@ -1456,13 +1439,12 @@ PySwigObject_dealloc(PyObject *v) res = ((*meth)(mself, v)); } Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { + } else { const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } +#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); #endif + } } Py_XDECREF(next); PyObject_DEL(v); @@ -1620,11 +1602,9 @@ _PySwigObject_type(void) { (unaryfunc)0, /*nb_float*/ (unaryfunc)PySwigObject_oct, /*nb_oct*/ (unaryfunc)PySwigObject_hex, /*nb_hex*/ -#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ #endif }; @@ -1967,7 +1947,7 @@ SWIG_Python_GetSwigThis(PyObject *pyobj) SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { + if (own) { PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); if (sobj) { int oldown = sobj->own; @@ -1988,8 +1968,6 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int return SWIG_OK; } else { PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; while (sobj) { void *vptr = sobj->ptr; if (ty) { @@ -2003,15 +1981,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int if (!tc) { sobj = (PySwigObject *)sobj->next; } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } + if (ptr) *ptr = SWIG_TypeCast(tc,vptr); break; } } @@ -2021,8 +1991,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } if (sobj) { - if (own) - *own = *own | sobj->own; + if (own) *own = sobj->own; if (flags & SWIG_POINTER_DISOWN) { sobj->own = 0; } @@ -2079,7 +2048,7 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { void *vptr = 0; /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) { desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; @@ -2087,13 +2056,8 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { } if (ty) { swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } + if (!tc) return SWIG_ERROR; + *ptr = SWIG_TypeCast(tc,vptr); } else { *ptr = vptr; } @@ -2205,7 +2169,7 @@ SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) return; } #endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); + dict = PyObject_GetAttrString(inst, "__dict__"); PyDict_SetItem(dict, SWIG_This(), swig_this); Py_DECREF(dict); } @@ -2346,7 +2310,7 @@ SWIG_Python_SetModule(swig_module_info *swig_module) { /* The python cached type query */ SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { +SWIG_Python_TypeCache() { static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); return cache; } @@ -2532,7 +2496,7 @@ static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0}; #if (PY_VERSION_HEX <= 0x02000000) # if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" +# error "This python version requires to use swig with the '-classic' option" # endif #endif @@ -2543,8 +2507,7 @@ static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0}; #define SWIG_name "_freeswitch" -#define SWIGVERSION 0x010335 -#define SWIG_VERSION SWIGVERSION +#define SWIGVERSION 0x010329 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) @@ -2571,9 +2534,7 @@ namespace swig { PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) { - if (initial_ref) { - Py_XINCREF(_obj); - } + if (initial_ref) Py_XINCREF(_obj); } PyObject_ptr & operator=(const PyObject_ptr& item) @@ -2621,7 +2582,7 @@ namespace swig { SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) +SWIG_pchar_descriptor() { static int init = 0; static swig_type_info* info = 0; @@ -2637,7 +2598,7 @@ SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { if (PyString_Check(obj)) { - char *cstr; Py_ssize_t len; + char *cstr; int len; PyString_AsStringAndSize(obj, &cstr, &len); if (cptr) { if (alloc) { @@ -2713,12 +2674,14 @@ SWIG_FromCharPtr(const char *cptr) #include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif +#ifndef LLONG_MIN +# define LLONG_MIN LONG_LONG_MIN +#endif +#ifndef LLONG_MAX +# define LLONG_MAX LONG_LONG_MAX +#endif +#ifndef ULLONG_MAX +# define ULLONG_MAX ULONG_LONG_MAX #endif @@ -3002,11 +2965,18 @@ SWIG_From_unsigned_SS_int (unsigned int value) SWIGINTERN int SWIG_AsVal_bool (PyObject *obj, bool *val) { - int r = PyObject_IsTrue(obj); - if (r == -1) - return SWIG_ERROR; - if (val) *val = r ? true : false; - return SWIG_OK; + if (obj == Py_True) { + if (val) *val = true; + return SWIG_OK; + } else if (obj == Py_False) { + if (val) *val = false; + return SWIG_OK; + } else { + long v = 0; + int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); + if (SWIG_IsOK(res) && val) *val = v ? true : false; + return res; + } } #ifdef __cplusplus @@ -3030,12 +3000,12 @@ SWIGINTERN PyObject *_wrap_setGlobalVariable(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setGlobalVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; setGlobalVariable(arg1,arg2); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3062,9 +3032,9 @@ SWIGINTERN PyObject *_wrap_getGlobalVariable(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; result = (char *)getGlobalVariable(arg1); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; free(result); return resultobj; @@ -3092,12 +3062,12 @@ SWIGINTERN PyObject *_wrap_consoleLog(PyObject *SWIGUNUSEDPARM(self), PyObject * if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; consoleLog(arg1,arg2); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3142,17 +3112,17 @@ SWIGINTERN PyObject *_wrap_consoleLog2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog2" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "consoleLog2" "', argument " "4"" of type '" "int""'"); @@ -3162,7 +3132,7 @@ SWIGINTERN PyObject *_wrap_consoleLog2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "consoleLog2" "', argument " "5"" of type '" "char *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; consoleLog2(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3192,7 +3162,7 @@ SWIGINTERN PyObject *_wrap_consoleCleanLog(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleCleanLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; consoleCleanLog(arg1); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3260,46 +3230,46 @@ SWIGINTERN PyObject *_wrap_email(PyObject *SWIGUNUSEDPARM(self), PyObject *args) if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "email" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "email" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "email" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "email" "', argument " "4"" of type '" "char *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; } if (obj4) { res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "email" "', argument " "5"" of type '" "char *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; } if (obj5) { res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "email" "', argument " "6"" of type '" "char *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; } if (obj6) { res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "email" "', argument " "7"" of type '" "char *""'"); } - arg7 = reinterpret_cast< char * >(buf7); + arg7 = buf7; } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); @@ -3415,52 +3385,52 @@ SWIGINTERN PyObject *_wrap_new_IVRMenu(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IVRMenu" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_IVRMenu" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IVRMenu" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_IVRMenu" "', argument " "5"" of type '" "char const *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_IVRMenu" "', argument " "6"" of type '" "char const *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_IVRMenu" "', argument " "7"" of type '" "char const *""'"); } - arg7 = reinterpret_cast< char * >(buf7); + arg7 = buf7; res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_IVRMenu" "', argument " "8"" of type '" "char const *""'"); } - arg8 = reinterpret_cast< char * >(buf8); + arg8 = buf8; res9 = SWIG_AsCharPtrAndSize(obj8, &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_IVRMenu" "', argument " "9"" of type '" "char const *""'"); } - arg9 = reinterpret_cast< char * >(buf9); + arg9 = buf9; res10 = SWIG_AsCharPtrAndSize(obj9, &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_IVRMenu" "', argument " "10"" of type '" "char const *""'"); } - arg10 = reinterpret_cast< char * >(buf10); + arg10 = buf10; res11 = SWIG_AsCharPtrAndSize(obj10, &buf11, NULL, &alloc11); if (!SWIG_IsOK(res11)) { SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_IVRMenu" "', argument " "11"" of type '" "char const *""'"); } - arg11 = reinterpret_cast< char * >(buf11); + arg11 = buf11; ecode12 = SWIG_AsVal_int(obj11, &val12); if (!SWIG_IsOK(ecode12)) { SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_IVRMenu" "', argument " "12"" of type '" "int""'"); @@ -3573,17 +3543,17 @@ SWIGINTERN PyObject *_wrap_IVRMenu_bindAction(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IVRMenu_bindAction" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_bindAction" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IVRMenu_bindAction" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -3629,7 +3599,7 @@ SWIGINTERN PyObject *_wrap_IVRMenu_execute(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->execute(arg2,(char const *)arg3); resultobj = SWIG_Py_Void(); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -3642,7 +3612,7 @@ fail: SWIGINTERN PyObject *IVRMenu_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_IVRMenu, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -3721,16 +3691,16 @@ SWIGINTERN PyObject *_wrap_API_execute(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "API_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return resultobj; @@ -3764,9 +3734,9 @@ SWIGINTERN PyObject *_wrap_API_executeString(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_executeString" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (char *)(arg1)->executeString((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -3790,7 +3760,7 @@ SWIGINTERN PyObject *_wrap_API_getTime(PyObject *SWIGUNUSEDPARM(self), PyObject } arg1 = reinterpret_cast< API * >(argp1); result = (char *)(arg1)->getTime(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -3799,7 +3769,7 @@ fail: SWIGINTERN PyObject *API_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_API, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -3979,11 +3949,11 @@ SWIGINTERN PyObject *_wrap_input_callback_state_t_funcargs_set(PyObject *SWIGUNU if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_funcargs_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->funcargs) delete[] arg1->funcargs; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->funcargs = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->funcargs = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->funcargs = 0; } @@ -4011,7 +3981,7 @@ SWIGINTERN PyObject *_wrap_input_callback_state_t_funcargs_get(PyObject *SWIGUNU } arg1 = reinterpret_cast< input_callback_state_t * >(argp1); result = (char *) ((arg1)->funcargs); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -4055,7 +4025,7 @@ fail: SWIGINTERN PyObject *input_callback_state_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_input_callback_state, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -4239,7 +4209,7 @@ fail: SWIGINTERN PyObject *DTMF_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_DTMF, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -4285,7 +4255,7 @@ SWIGINTERN PyObject *_wrap_new_Stream(PyObject *self, PyObject *args) { int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 1); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -4303,10 +4273,7 @@ SWIGINTERN PyObject *_wrap_new_Stream(PyObject *self, PyObject *args) { } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Stream'.\n" - " Possible C/C++ prototypes are:\n" - " Stream()\n" - " Stream(switch_stream_handle_t *)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_Stream'"); return NULL; } @@ -4357,7 +4324,7 @@ SWIGINTERN PyObject *_wrap_Stream_read(PyObject *SWIGUNUSEDPARM(self), PyObject } arg2 = reinterpret_cast< int * >(argp2); result = (char *)(arg1)->read(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -4386,7 +4353,7 @@ SWIGINTERN PyObject *_wrap_Stream_write(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; (arg1)->write((char const *)arg2); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -4423,7 +4390,7 @@ SWIGINTERN PyObject *_wrap_Stream_raw_write(PyObject *SWIGUNUSEDPARM(self), PyOb if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_raw_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Stream_raw_write" "', argument " "3"" of type '" "int""'"); @@ -4454,7 +4421,7 @@ SWIGINTERN PyObject *_wrap_Stream_get_data(PyObject *SWIGUNUSEDPARM(self), PyObj } arg1 = reinterpret_cast< Stream * >(argp1); result = (char *)(arg1)->get_data(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -4463,7 +4430,7 @@ fail: SWIGINTERN PyObject *Stream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Stream, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -4543,11 +4510,11 @@ SWIGINTERN PyObject *_wrap_Event_serialized_string_set(PyObject *SWIGUNUSEDPARM( if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialized_string_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->serialized_string) delete[] arg1->serialized_string; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->serialized_string = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->serialized_string = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->serialized_string = 0; } @@ -4575,7 +4542,7 @@ SWIGINTERN PyObject *_wrap_Event_serialized_string_get(PyObject *SWIGUNUSEDPARM( } arg1 = reinterpret_cast< Event * >(argp1); result = (char *) ((arg1)->serialized_string); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -4654,13 +4621,13 @@ SWIGINTERN PyObject *_wrap_new_Event__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Event" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; if (obj1) { res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Event" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } result = (Event *)new Event((char const *)arg1,(char const *)arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_NEW | 0 ); @@ -4713,7 +4680,7 @@ SWIGINTERN PyObject *_wrap_new_Event(PyObject *self, PyObject *args) { int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 2); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -4752,10 +4719,7 @@ SWIGINTERN PyObject *_wrap_new_Event(PyObject *self, PyObject *args) { } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Event'.\n" - " Possible C/C++ prototypes are:\n" - " Event(char const *,char const *)\n" - " Event(switch_event_t *,int)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_Event'"); return NULL; } @@ -4810,13 +4774,13 @@ SWIGINTERN PyObject *_wrap_Event_chat_execute(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_chat_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -4854,7 +4818,7 @@ SWIGINTERN PyObject *_wrap_Event_chat_send(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_send" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } result = (int)(arg1)->chat_send((char const *)arg2); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -4890,10 +4854,10 @@ SWIGINTERN PyObject *_wrap_Event_serialize(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialize" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } result = (char *)(arg1)->serialize((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -4966,9 +4930,9 @@ SWIGINTERN PyObject *_wrap_Event_getHeader(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_getHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (char *)(arg1)->getHeader((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -4992,7 +4956,7 @@ SWIGINTERN PyObject *_wrap_Event_getBody(PyObject *SWIGUNUSEDPARM(self), PyObjec } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getBody(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -5014,7 +4978,7 @@ SWIGINTERN PyObject *_wrap_Event_getType(PyObject *SWIGUNUSEDPARM(self), PyObjec } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getType(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -5044,7 +5008,7 @@ SWIGINTERN PyObject *_wrap_Event_addBody(PyObject *SWIGUNUSEDPARM(self), PyObjec if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addBody" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (bool)(arg1)->addBody((char const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -5083,12 +5047,12 @@ SWIGINTERN PyObject *_wrap_Event_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_addHeader" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -5124,7 +5088,7 @@ SWIGINTERN PyObject *_wrap_Event_delHeader(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_delHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (bool)(arg1)->delHeader((char const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -5159,7 +5123,7 @@ fail: SWIGINTERN PyObject *Event_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Event, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -5300,11 +5264,11 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_callback_set(PyObject *SWIGUNUSEDPARM if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_callback_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->e_callback) delete[] arg1->e_callback; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->e_callback = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->e_callback = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->e_callback = 0; } @@ -5332,7 +5296,7 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_callback_get(PyObject *SWIGUNUSEDPARM } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_callback); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -5361,11 +5325,11 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_subclass_name_set(PyObject *SWIGUNUSE if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_subclass_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->e_subclass_name) delete[] arg1->e_subclass_name; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->e_subclass_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->e_subclass_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->e_subclass_name = 0; } @@ -5393,7 +5357,7 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_subclass_name_get(PyObject *SWIGUNUSE } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_subclass_name); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -5422,11 +5386,11 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_cb_arg_set(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_cb_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->e_cb_arg) delete[] arg1->e_cb_arg; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->e_cb_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->e_cb_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->e_cb_arg = 0; } @@ -5454,7 +5418,7 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_cb_arg_get(PyObject *SWIGUNUSEDPARM(s } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_cb_arg); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -5605,14 +5569,14 @@ SWIGINTERN PyObject *_wrap_new_EventConsumer(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventConsumer" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; } if (obj1) { res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EventConsumer" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } if (obj2) { ecode3 = SWIG_AsVal_int(obj2, &val3); @@ -5683,13 +5647,13 @@ SWIGINTERN PyObject *_wrap_EventConsumer_bind(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_bind" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "EventConsumer_bind" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -5772,7 +5736,7 @@ fail: SWIGINTERN PyObject *EventConsumer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_EventConsumer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -6208,11 +6172,11 @@ SWIGINTERN PyObject *_wrap_CoreSession_uuid_set(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_uuid_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->uuid) delete[] arg1->uuid; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->uuid = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->uuid = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->uuid = 0; } @@ -6240,7 +6204,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_uuid_get(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->uuid); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -6269,11 +6233,11 @@ SWIGINTERN PyObject *_wrap_CoreSession_tts_name_set(PyObject *SWIGUNUSEDPARM(sel if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_tts_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->tts_name) delete[] arg1->tts_name; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->tts_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->tts_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->tts_name = 0; } @@ -6301,7 +6265,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_tts_name_get(PyObject *SWIGUNUSEDPARM(sel } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->tts_name); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -6330,11 +6294,11 @@ SWIGINTERN PyObject *_wrap_CoreSession_voice_name_set(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_voice_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (arg1->voice_name) delete[] arg1->voice_name; if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->voice_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); + size_t size = strlen(arg2) + 1; + arg1->voice_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); } else { arg1->voice_name = 0; } @@ -6362,7 +6326,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_voice_name_get(PyObject *SWIGUNUSEDPARM(s } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->voice_name); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -6401,12 +6365,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_insertFile(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_insertFile" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_insertFile" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_insertFile" "', argument " "4"" of type '" "int""'"); @@ -6491,7 +6455,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_hangup(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_hangup" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; } (arg1)->hangup((char const *)arg2); resultobj = SWIG_Py_Void(); @@ -6551,12 +6515,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_setVariable(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setVariable" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->setVariable(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -6594,7 +6558,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_setPrivate(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setPrivate" "', argument " "3"" of type '" "void *""'"); @@ -6632,7 +6596,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getPrivate(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (void *)(arg1)->getPrivate(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -6666,9 +6630,9 @@ SWIGINTERN PyObject *_wrap_CoreSession_getVariable(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (char *)(arg1)->getVariable(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -6700,7 +6664,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_process_callback_result(PyObject *SWIGUNU if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_process_callback_result" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (arg1)->process_callback_result(arg2); resultobj = SWIG_NewPointerObj((new switch_status_t(static_cast< const switch_status_t& >(result))), SWIGTYPE_p_switch_status_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -6753,28 +6717,28 @@ SWIGINTERN PyObject *_wrap_CoreSession_say(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_say" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_say" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_say" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CoreSession_say" "', argument " "5"" of type '" "char const *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; if (obj5) { res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_say" "', argument " "6"" of type '" "char const *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); resultobj = SWIG_Py_Void(); @@ -6826,20 +6790,20 @@ SWIGINTERN PyObject *_wrap_CoreSession_sayPhrase(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_sayPhrase" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_sayPhrase" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_sayPhrase" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); resultobj = SWIG_Py_Void(); @@ -6870,7 +6834,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_hangupCause(PyObject *SWIGUNUSEDPARM(self } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->hangupCause(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -6892,7 +6856,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getState(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getState(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -6934,7 +6898,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_recordFile(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_recordFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -7006,7 +6970,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_originate(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_originate" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; if (obj3) { ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { @@ -7081,7 +7045,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_setDTMFCallback(PyObject *SWIGUNUSEDPARM( if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setDTMFCallback" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->setDTMFCallback(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -7115,7 +7079,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_speak(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_speak" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; result = (int)(arg1)->speak(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -7153,12 +7117,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_set_tts_parms(PyObject *SWIGUNUSEDPARM(se if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_parms" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_parms" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->set_tts_parms(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -7198,12 +7162,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_set_tts_params(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_params" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_params" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->set_tts_params(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -7293,7 +7257,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_collectDigits(PyObject *self, PyObject *a int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 3); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -7335,10 +7299,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_collectDigits(PyObject *self, PyObject *a } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_collectDigits'.\n" - " Possible C/C++ prototypes are:\n" - " collectDigits(CoreSession *,int)\n" - " collectDigits(CoreSession *,int,int)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'CoreSession_collectDigits'"); return NULL; } @@ -7379,14 +7340,14 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_0(PyObject *SWIGUNUSEDPAR if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return resultobj; fail: @@ -7435,7 +7396,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_1(PyObject *SWIGUNUSEDPAR if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); @@ -7447,7 +7408,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_1(PyObject *SWIGUNUSEDPAR } arg5 = static_cast< int >(val5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return resultobj; fail: @@ -7462,7 +7423,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits(PyObject *self, PyObject *args) int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 5); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -7524,10 +7485,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits(PyObject *self, PyObject *args) } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_getDigits'.\n" - " Possible C/C++ prototypes are:\n" - " getDigits(CoreSession *,int,char *,int)\n" - " getDigits(CoreSession *,int,char *,int,int)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'CoreSession_getDigits'"); return NULL; } @@ -7565,20 +7523,20 @@ SWIGINTERN PyObject *_wrap_CoreSession_transfer(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_transfer" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_transfer" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_transfer" "', argument " "4"" of type '" "char *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; } result = (int)(arg1)->transfer(arg2,arg3,arg4); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -7648,7 +7606,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_read(PyObject *SWIGUNUSEDPARM(self), PyOb if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_read" "', argument " "4"" of type '" "char const *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_read" "', argument " "5"" of type '" "int""'"); @@ -7658,7 +7616,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_read(PyObject *SWIGUNUSEDPARM(self), PyOb if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_read" "', argument " "6"" of type '" "char const *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; if (obj6) { ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { @@ -7667,7 +7625,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_read(PyObject *SWIGUNUSEDPARM(self), PyOb arg7 = static_cast< int >(val7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc4 == SWIG_NEWOBJ) delete[] buf4; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return resultobj; @@ -7766,28 +7724,28 @@ SWIGINTERN PyObject *_wrap_CoreSession_playAndGetDigits(PyObject *SWIGUNUSEDPARM if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_playAndGetDigits" "', argument " "6"" of type '" "char *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CoreSession_playAndGetDigits" "', argument " "7"" of type '" "char *""'"); } - arg7 = reinterpret_cast< char * >(buf7); + arg7 = buf7; res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CoreSession_playAndGetDigits" "', argument " "8"" of type '" "char *""'"); } - arg8 = reinterpret_cast< char * >(buf8); + arg8 = buf8; res9 = SWIG_AsCharPtrAndSize(obj8, &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CoreSession_playAndGetDigits" "', argument " "9"" of type '" "char *""'"); } - arg9 = reinterpret_cast< char * >(buf9); + arg9 = buf9; if (obj9) { res10 = SWIG_AsCharPtrAndSize(obj9, &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "CoreSession_playAndGetDigits" "', argument " "10"" of type '" "char const *""'"); } - arg10 = reinterpret_cast< char * >(buf10); + arg10 = buf10; } if (obj10) { ecode11 = SWIG_AsVal_int(obj10, &val11); @@ -7801,10 +7759,10 @@ SWIGINTERN PyObject *_wrap_CoreSession_playAndGetDigits(PyObject *SWIGUNUSEDPARM if (!SWIG_IsOK(res12)) { SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "CoreSession_playAndGetDigits" "', argument " "12"" of type '" "char const *""'"); } - arg12 = reinterpret_cast< char * >(buf12); + arg12 = buf12; } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); if (alloc6 == SWIG_NEWOBJ) delete[] buf6; if (alloc7 == SWIG_NEWOBJ) delete[] buf7; if (alloc8 == SWIG_NEWOBJ) delete[] buf8; @@ -7850,7 +7808,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_streamFile(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_streamFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -8158,13 +8116,13 @@ SWIGINTERN PyObject *_wrap_CoreSession_execute(PyObject *SWIGUNUSEDPARM(self), P if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; } (arg1)->execute((char const *)arg2,(char const *)arg3); resultobj = SWIG_Py_Void(); @@ -8253,7 +8211,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getXMLCDR(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getXMLCDR(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -8319,7 +8277,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_get_uuid(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)((CoreSession const *)arg1)->get_uuid(); - resultobj = SWIG_FromCharPtr((const char *)result); + resultobj = SWIG_FromCharPtr(result); return resultobj; fail: return NULL; @@ -8445,12 +8403,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_consoleLog(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; (arg1)->consoleLog(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -8504,17 +8462,17 @@ SWIGINTERN PyObject *_wrap_CoreSession_consoleLog2(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_consoleLog2" "', argument " "4"" of type '" "char *""'"); } - arg4 = reinterpret_cast< char * >(buf4); + arg4 = buf4; ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_consoleLog2" "', argument " "5"" of type '" "int""'"); @@ -8524,7 +8482,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_consoleLog2(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_consoleLog2" "', argument " "6"" of type '" "char *""'"); } - arg6 = reinterpret_cast< char * >(buf6); + arg6 = buf6; (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -8543,7 +8501,7 @@ fail: SWIGINTERN PyObject *CoreSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CoreSession, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -8566,12 +8524,12 @@ SWIGINTERN PyObject *_wrap_console_log(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; console_log(arg1,arg2); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8616,17 +8574,17 @@ SWIGINTERN PyObject *_wrap_console_log2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log2" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log2" "', argument " "2"" of type '" "char *""'"); } - arg2 = reinterpret_cast< char * >(buf2); + arg2 = buf2; res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "console_log2" "', argument " "3"" of type '" "char *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg3 = buf3; ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "console_log2" "', argument " "4"" of type '" "int""'"); @@ -8636,7 +8594,7 @@ SWIGINTERN PyObject *_wrap_console_log2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "console_log2" "', argument " "5"" of type '" "char *""'"); } - arg5 = reinterpret_cast< char * >(buf5); + arg5 = buf5; console_log2(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8666,7 +8624,7 @@ SWIGINTERN PyObject *_wrap_console_clean_log(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_clean_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; console_clean_log(arg1); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8849,7 +8807,7 @@ SWIGINTERN PyObject *_wrap_new_Session__SWIG_1(PyObject *self, PyObject *args) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CoreSession, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Session" "', argument " "2"" of type '" "CoreSession *""'"); @@ -8879,7 +8837,7 @@ SWIGINTERN PyObject *_wrap_new_Session__SWIG_2(PyObject *self, PyObject *args) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = buf1; result = (PYTHON::Session *)new PYTHON::Session(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PYTHON__Session, SWIG_POINTER_NEW | 0 ); result->setPython(self); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8918,7 +8876,7 @@ SWIGINTERN PyObject *_wrap_new_Session(PyObject *self, PyObject *args) { int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 2); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -8957,12 +8915,7 @@ SWIGINTERN PyObject *_wrap_new_Session(PyObject *self, PyObject *args) { } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Session'.\n" - " Possible C/C++ prototypes are:\n" - " PYTHON::Session()\n" - " PYTHON::Session(char *,CoreSession *)\n" - " PYTHON::Session(char *)\n" - " PYTHON::Session(switch_core_session_t *)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_Session'"); return NULL; } @@ -9178,7 +9131,7 @@ SWIGINTERN PyObject *_wrap_Session_setInputCallback(PyObject *self, PyObject *ar int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 3); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -9211,10 +9164,7 @@ SWIGINTERN PyObject *_wrap_Session_setInputCallback(PyObject *self, PyObject *ar } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Session_setInputCallback'.\n" - " Possible C/C++ prototypes are:\n" - " setInputCallback(PYTHON::Session *,PyObject *,PyObject *)\n" - " setInputCallback(PYTHON::Session *,PyObject *)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Session_setInputCallback'"); return NULL; } @@ -9297,7 +9247,7 @@ SWIGINTERN PyObject *_wrap_Session_setHangupHook(PyObject *self, PyObject *args) int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); + argc = PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 3); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -9330,10 +9280,7 @@ SWIGINTERN PyObject *_wrap_Session_setHangupHook(PyObject *self, PyObject *args) } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Session_setHangupHook'.\n" - " Possible C/C++ prototypes are:\n" - " setHangupHook(PYTHON::Session *,PyObject *,PyObject *)\n" - " setHangupHook(PYTHON::Session *,PyObject *)\n"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Session_setHangupHook'"); return NULL; } @@ -9598,7 +9545,7 @@ fail: SWIGINTERN PyObject *Session_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_PYTHON__Session, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -9793,7 +9740,7 @@ static PyMethodDef SwigMethods[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_PYTHON__SessionTo_p_CoreSession(void *x, int *newmemory) { +static void *_p_PYTHON__SessionTo_p_CoreSession(void *x) { return (void *)((CoreSession *) ((PYTHON::Session *) x)); } static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)0, 0}; @@ -9805,7 +9752,7 @@ static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (voi static swig_type_info _swigt__p_PYTHON__Session = {"_p_PYTHON__Session", "PYTHON::Session *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum session_flag_t *|session_flag_t *", 0, 0, (void*)0, 0}; @@ -9939,7 +9886,7 @@ static swig_const_info swig_const_table[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. + * array. We just loop though that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -9977,58 +9924,32 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif - SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head, *iter; - int found, init; + swig_module_info *module_head; + static int init_run = 0; clientdata = clientdata; - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } + if (init_run) return; + init_run = 1; + + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + if (module_head) { swig_module.next = module_head->next; module_head->next = &swig_module; + } else { + /* This is the first module loaded */ + swig_module.next = &swig_module; + SWIG_SetModule(clientdata, &swig_module); } - /* When multiple interpeters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -10339,7 +10260,7 @@ extern "C" { } SWIGINTERN PyObject * - SWIG_globals(void) { + SWIG_globals() { static PyObject *_SWIG_globals = 0; if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); return _SWIG_globals; @@ -10384,11 +10305,11 @@ extern "C" { swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; + char *c = methods[i].ml_doc; if (c && (c = strstr(c, "swig_ptr: "))) { int j; swig_const_info *ci = 0; - const char *name = c + 10; + char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, strlen(const_table[j].name)) == 0) { diff --git a/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp b/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp index 1e2147f31f..42015c8d6e 100644 --- a/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp +++ b/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 + * Version 1.3.29 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -10,7 +10,7 @@ #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -23,10 +23,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template T SwigValueInit() { - return T(); -} #endif /* ----------------------------------------------------------------------------- @@ -36,14 +32,14 @@ template T SwigValueInit() { /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -122,16 +118,10 @@ template T SwigValueInit() { #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -141,7 +131,7 @@ template T SwigValueInit() { /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" +#define SWIG_RUNTIME_VERSION "2" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -176,7 +166,6 @@ template T SwigValueInit() { /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -317,10 +306,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *, int *); +typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store information on one type */ +/* Structure to store inforomation on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -365,7 +354,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (int)((l1 - f1) - (l2 - f2)); + return (l1 - f1) - (l2 - f2); } /* @@ -447,8 +436,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +SWIG_TypeCast(swig_cast_info *ty, void *ptr) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* @@ -719,8 +708,7 @@ extern "C" { #include "lua.h" #include "lauxlib.h" -#include /* for malloc */ -#include /* for a few sanity tests */ +#include /* for a few sanity tests */ /* ----------------------------------------------------------------------------- * global swig types @@ -731,7 +719,12 @@ extern "C" { #define SWIG_LUA_STRING 3 #define SWIG_LUA_POINTER 4 #define SWIG_LUA_BINARY 5 -#define SWIG_LUA_CHAR 6 + +/* Structure for command table (replaced by luaLib's luaL_reg) */ +/*typedef struct { + const char *name; + lua_CFunction wrapper; +} swig_lua_command_info;*/ /* Structure for variable linking table */ typedef struct { @@ -762,42 +755,29 @@ typedef struct { } swig_lua_attribute; typedef struct swig_lua_class { - const char *name; + const char *name; swig_type_info **type; - lua_CFunction constructor; - void (*destructor)(void *); - swig_lua_method *methods; + lua_CFunction constructor; + void (*destructor)(void *); + swig_lua_method *methods; swig_lua_attribute *attributes; struct swig_lua_class **bases; - const char **base_names; } swig_lua_class; -/* this is the struct for wrappering all pointers in SwigLua -*/ typedef struct { + void *ptr; swig_type_info *type; - int own; /* 1 if owned & must be destroyed */ - void *ptr; + int own; /* 1 if owned & must be destroyed */ } swig_lua_userdata; -/* this is the struct for wrapping arbitary packed binary data -(currently it is only used for member function pointers) -the data ordering is similar to swig_lua_userdata, but it is currently not possible -to tell the two structures apart within Swig, other than by looking at the type -*/ -typedef struct { - swig_type_info *type; - int own; /* 1 if owned & must be destroyed */ - char data[1]; /* arbitary amount of data */ -} swig_lua_rawdata; /* Common SWIG API */ -#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) -#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) -#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) -#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) +#define SWIG_NewPointerObj(L, ptr, type, owner) \ + SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) +#define SWIG_ConvertPtr(L,idx, ptr, type, flags) \ + SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) +#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) \ + SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) @@ -808,193 +788,141 @@ typedef struct { #define SWIG_contract_assert(expr, msg) \ if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else + + /* helper #defines */ #define SWIG_fail {goto fail;} -#define SWIG_fail_arg(func_name,argnum,type) \ - {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ - func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ - goto fail;} -#define SWIG_fail_ptr(func_name,argnum,type) \ - SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") -#define SWIG_check_num_args(func_name,a,b) \ - if (lua_gettop(L)b) \ - {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ - goto fail;} - +#define SWIG_fail_arg(I) {lua_pushfstring(L,"argument %d incorrect/missing",I);goto fail;} #define SWIG_Lua_get_table(L,n) \ - (lua_pushstring(L, n), lua_rawget(L,-2)) + (lua_pushstring(L, n), lua_rawget(L,-2)) #define SWIG_Lua_add_function(L,n,f) \ - (lua_pushstring(L, n), \ - lua_pushcfunction(L, f), \ - lua_rawset(L,-3)) - -/* special helper for allowing 'nil' for usertypes */ -#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) - -#ifdef __cplusplus -/* Special helper for member function pointers -it gets the address, casts it, then dereferences it */ -//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) -#endif - -/* storing/access of swig_module_info */ -SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { - swig_module_info *ret = 0; - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_rawget(L,LUA_REGISTRYINDEX); - if (lua_islightuserdata(L,-1)) - ret=(swig_module_info*)lua_touserdata(L,-1); - lua_pop(L,1); /* tidy */ - return ret; -} - -SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { - /* add this all into the Lua registry: */ - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_pushlightuserdata(L,(void*)module); - lua_rawset(L,LUA_REGISTRYINDEX); -} + (lua_pushstring(L, n), \ + lua_pushcfunction(L, f), \ + lua_rawset(L,-3)) /* ----------------------------------------------------------------------------- * global variable support code: modules * ----------------------------------------------------------------------------- */ -/* this function is called when trying to set an immutable. -default value is to print an error. -This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ -SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) -{ -/* there should be 1 param passed in: the new value */ -#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE - lua_pop(L,1); /* remove it */ - lua_pushstring(L,"This variable is immutable"); - lua_error(L); -#endif - return 0; /* should not return anything */ -} - /* the module.get method used for getting linked data */ SWIGINTERN int SWIG_Lua_module_get(lua_State* L) { -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); +/* there should be 2 params passed in + (1) table (not the meta table) + (2) string name of the attribute + printf("SWIG_Lua_module_get %p(%s) '%s'\n", + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2)); */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* get the .get table */ + lua_remove(L,3); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,3); /* remove .get */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_call(L,0,1); + return 1; + } + lua_pop(L,1); /* remove the top */ + } + lua_pop(L,1); /* remove the .get */ + lua_pushnil(L); /* return a nil */ return 1; } /* the module.set method used for setting linked data */ SWIGINTERN int SWIG_Lua_module_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; - } - } - lua_settop(L,3); /* reset back to start */ - /* we now have the table, key & new value, so just set directly */ - lua_rawset(L,1); /* add direct */ - return 0; + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".set"); /* get the .set table */ + lua_remove(L,4); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,4); /* remove .set */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,3); /* value */ + lua_call(L,1,0); + return 0; + } + lua_pop(L,1); /* remove the top */ + } + lua_pop(L,1); /* remove the .set */ + return 0; } /* registering a module in lua */ SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushstring(L,name); + lua_newtable(L); /* the table */ + /* add meta table */ + lua_newtable(L); /* the meta table */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); + lua_pushstring(L,".get"); + lua_newtable(L); /* the .get table */ + lua_rawset(L,-3); /* add .get into metatable */ + lua_pushstring(L,".set"); + lua_newtable(L); /* the .set table */ + lua_rawset(L,-3); /* add .set into metatable */ + lua_setmetatable(L,-2); /* sets meta table in module */ + lua_rawset(L,-3); /* add module into parent */ + SWIG_Lua_get_table(L,name); /* get the table back out */ } /* ending the register */ SWIGINTERN void SWIG_Lua_module_end(lua_State* L) { - lua_pop(L,1); /* tidy stack (remove module) */ + lua_pop(L,1); /* tidy stack (remove module) */ } /* adding a linked variable to the module */ SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_istable(L,-1)); /* just in case */ + lua_getmetatable(L,-1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) /* if there is a set fn */ + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } + lua_pop(L,1); /* tidy stack (remove meta) */ } /* adding a function module */ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_add_function(L,name,fn); } /* ----------------------------------------------------------------------------- @@ -1004,383 +932,307 @@ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_ /* the class.get method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_get(lua_State* L) { -/* there should be 2 params passed in - (1) userdata (not the meta table) - (2) string name of the attribute +/* there should be 2 params passed in + (1) userdata (not the meta table) + (2) string name of the attribute */ - assert(lua_isuserdata(L,-2)); /* just in case */ - lua_getmetatable(L,-2); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,-2); /* stack tidy, remove .get table */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* ok, so try the .fn table */ - SWIG_Lua_get_table(L,".fn"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); /* look for the fn */ - lua_remove(L,-2); /* stack tidy, remove .fn table */ - if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */ - { /* found it so return the fn & let lua call it */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* NEW: looks for the __getitem() fn - this is a user provided get fn */ - SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; /* sorry not known */ + assert(lua_isuserdata(L,-2)); /* just in case */ + lua_getmetatable(L,-2); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,-2); /* stack tidy, remove .get table */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* ok, so try the .fn table */ + SWIG_Lua_get_table(L,".fn"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); /* look for the fn */ + lua_remove(L,-2); /* stack tidy, remove .fn table */ + if (lua_iscfunction(L,-1)) + { /* found it so return the fn & let lua call it */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* NEW: looks for the __getitem() fn + this is a user provided get fn */ + SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; /* sorry not known */ } /* the class.set method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2), + lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ + assert(lua_isuserdata(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ - lua_call(L,2,0); - return 0; - } - lua_pop(L,1); /* remove the value */ - } - lua_pop(L,1); /* remove the value .set table */ - /* NEW: looks for the __setitem() fn - this is a user provided set fn */ - SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ - lua_call(L,3,0); /* 3 values in ,0 out */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* userdata */ + lua_pushvalue(L,3); /* value */ + lua_call(L,2,0); + return 0; + } + lua_pop(L,1); /* remove the value */ + } + lua_pop(L,1); /* remove the value .set table */ + /* NEW: looks for the __setitem() fn + this is a user provided set fn */ + SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_pushvalue(L,3); /* the value */ + lua_call(L,3,0); /* 3 values in ,0 out */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; } /* the class.destruct method called by the interpreter */ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) { -/* there should be 1 params passed in - (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; - assert(lua_isuserdata(L,-1)); /* just in case */ - usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ - /* if must be destroyed & has a destructor */ - if (usr->own) /* if must be destroyed */ - { - clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ - if (clss && clss->destructor) /* there is a destroy fn */ - { - clss->destructor(usr->ptr); /* bye bye */ - } - } - return 0; +/* there should be 1 params passed in + (1) userdata (not the meta table) */ + swig_lua_userdata* usr; + swig_lua_class* clss; + assert(lua_isuserdata(L,-1)); /* just in case */ + usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ + /* if must be destroyed & has a destructor */ + if (usr->own) /* if must be destroyed */ + { + clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ + if (clss && clss->destructor) /* there is a destroy fn */ + { + clss->destructor(usr->ptr); /* bye bye */ + } + } + return 0; } /* gets the swig class registry (or creates it) */ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) { - /* add this all into the swig registry: */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ - if (!lua_istable(L,-1)) /* not there */ - { /* must be first time, so add it */ - lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); - /* then get it */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); - } + /* add this all into the swig registry: */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ + if (!lua_istable(L,-1)) /* not there */ + { /* must be first time, so add it */ + lua_pop(L,1); /* remove the result */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + lua_rawset(L,LUA_REGISTRYINDEX); + /* then get it */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); + } } /* helper fn to get the classes metatable from the register */ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) { - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,cname); /* get the name */ - lua_rawget(L,-2); /* get it */ - lua_remove(L,-2); /* tidy up (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,cname); /* get the name */ + lua_rawget(L,-2); /* get it */ + lua_remove(L,-2); /* tidy up (remove registry) */ } /* helper add a variable to a registered class */ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } } /* helper to recursively add class details (attributes & operations) */ SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) { - int i; - /* call all the base classes first: we can then override these later: */ - for(i=0;clss->bases[i];i++) - { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ - for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); - } - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - } -} - -/* set up the base classes pointers. -Each class structure has a list of pointers to the base class structures. -This function fills them. -It cannot be done at compile time, as this will not work with hireachies -spread over more than one swig file. -Therefore it must be done at runtime, querying the SWIG type system. -*/ -SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) -{ - int i=0; - swig_module_info* module=SWIG_GetModule(L); - for(i=0;clss->base_names[i];i++) - { - if (clss->bases[i]==0) /* not found yet */ - { - /* lookup and cache the base class */ - swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); - if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; - } - } + int i; + /* call all the base classes first: we can then override these later: */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_add_class_details(L,clss->bases[i]); + } + /* add fns */ + for(i=0;clss->attributes[i].name;i++){ + SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + } + /* add methods to the metatable */ + SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ + assert(lua_istable(L,-1)); /* just in case */ + for(i=0;clss->methods[i].name;i++){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + lua_pop(L,1); /* tidy stack (remove table) */ + /* add operator overloads + these look ANY method which start with "__" and assume they + are operator overloads & add them to the metatable + (this might mess up is someone defines a method __gc (the destructor)*/ + for(i=0;clss->methods[i].name;i++){ + if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + } } /* performs the entire class registration process */ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) { - /* add its constructor to module with the name of the class - so you can do MyClass(...) as well as new_MyClass(...) - BUT only if a constructor is defined - (this overcomes the problem of pure virtual classes without constructors)*/ - if (clss->constructor) - SWIG_Lua_add_function(L,clss->name,clss->constructor); +/* add its constructor to module with the name of the class + so you can do MyClass(...) as well as new_MyClass(...) + BUT only if a constructor is defined + (this overcomes the problem of pure virtual classes without constructors)*/ + if (clss->constructor) + SWIG_Lua_add_function(L,clss->name,clss->constructor); - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ - lua_newtable(L); /* create the metatable */ - /* add string of class name called ".type" */ - lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); - lua_rawset(L,-3); - /* add a table called ".get" */ - lua_pushstring(L,".get"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".set" */ - lua_pushstring(L,".set"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".fn" */ - lua_pushstring(L,".fn"); - lua_newtable(L); - lua_rawset(L,-3); - /* add accessor fns for using the .get,.set&.fn */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); - SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add it */ - lua_rawset(L,-3); /* metatable into registry */ - lua_pop(L,1); /* tidy stack (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->name); /* get the name */ + lua_newtable(L); /* create the metatable */ + /* add string of class name called ".type" */ + lua_pushstring(L,".type"); + lua_pushstring(L,clss->name); + lua_rawset(L,-3); + /* add a table called ".get" */ + lua_pushstring(L,".get"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".set" */ + lua_pushstring(L,".set"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".fn" */ + lua_pushstring(L,".fn"); + lua_newtable(L); + lua_rawset(L,-3); + /* add accessor fns for using the .get,.set&.fn */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); + SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); + /* add it */ + lua_rawset(L,-3); /* metatable into registry */ + lua_pop(L,1); /* tidy stack (remove registry) */ - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ - lua_pop(L,1); /* tidy stack (remove class metatable) */ + SWIG_Lua_get_class_metatable(L,clss->name); + SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ + lua_pop(L,1); /* tidy stack (remove class metatable) */ } /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ -/* helper to add metatable to new lua object */ -SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) -{ - if (type->clientdata) /* there is clientdata: so add the metatable */ - { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); - if (lua_istable(L,-1)) - { - lua_setmetatable(L,-2); - } - else - { - lua_pop(L,1); - } - } -} - /* pushes a new object into the lua stack */ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; - if (!ptr){ - lua_pushnil(L); - return; - } - usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ - usr->ptr=ptr; /* set the ptr */ - usr->type=type; - usr->own=own; - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + swig_lua_userdata* usr; + if (!ptr){ + lua_pushnil(L); + return; + } + usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ + usr->ptr=ptr; /* set the ptr */ + usr->type=type; + usr->own=own; + if (type->clientdata) /* there is clientdata: so add the metatable */ + { + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + if (lua_istable(L,-1)) + { + lua_setmetatable(L,-2); + } + else + { + lua_pop(L,1); + } + } } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; - swig_cast_info *cast; - if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ - usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ - if (usr) - { - if (flags & SWIG_POINTER_DISOWN) /* must disown the object */ - { - usr->own=0; - } - if (!type) /* special cast void*, no casting fn */ - { - *ptr=usr->ptr; - return SWIG_OK; /* ok */ - } - cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */ - if (cast) - { - int newmemory = 0; - *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - return SWIG_OK; /* ok */ - } - } - return SWIG_ERROR; /* error */ + swig_lua_userdata* usr; + swig_cast_info *cast; + usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ + if (usr) + { + cast=SWIG_TypeCheckStruct(usr->type,type); + if (cast) + { + *ptr=SWIG_TypeCast(cast,usr->ptr); + return 0; /* ok */ + } + } + return 1; /* error */ } SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; - if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ - lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", - func_name,(type && type->str)?type->str:"void*",argnum); - lua_error(L); - } - return result; -} - -/* pushes a packed userdata. user for member fn pointers only */ -SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) -{ - swig_lua_rawdata* raw; - assert(ptr); /* not acceptable to pass in a NULL value */ - raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ - raw->type=type; - raw->own=0; - memcpy(raw->data,ptr,size); /* copy the data */ - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ -} - -/* converts a packed userdata. user for member fn pointers only */ -SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) -{ - swig_lua_rawdata* raw; - raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ - if (!raw) return SWIG_ERROR; /* error */ - if (type==0 || type==raw->type) /* void* or identical type */ - { - memcpy(ptr,raw->data,size); /* copy it */ - return SWIG_OK; /* ok */ - } - return SWIG_ERROR; /* error */ -} - -/* a function to get the typestring of a piece of data */ -SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) -{ - swig_lua_userdata* usr; - if (lua_isuserdata(L,tp)) - { - usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - if (usr && usr->type && usr->type->str) - return usr->type->str; - return "userdata (unknown type)"; - } - return lua_typename(L,lua_type(L,tp)); + int argnum,const char* func_name){ + void* result; + if (SWIG_ConvertPtr(L,index,&result,type,flags)){ + lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", + func_name,(type && type->str)?type->str:"void*",argnum); + lua_error(L); + } + return result; } /* lua callable function to get the userdata's type */ SWIGRUNTIME int SWIG_Lua_type(lua_State* L) { - lua_pushstring(L,SWIG_Lua_typename(L,1)); - return 1; + swig_lua_userdata* usr; + if (!lua_isuserdata(L,1)) /* just in case */ + return 0; /* nil reply */ + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + lua_pushstring(L,usr->type->name); + return 1; } /* lua callable function to compare userdata's value @@ -1388,18 +1240,18 @@ the issue is that two userdata may point to the same thing but to lua, they are different objects */ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) { - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ - result=(usr1->ptr==usr2->ptr); - lua_pushboolean(L,result); - return 1; + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); + lua_pushboolean(L,result); + return 1; } + /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1412,17 +1264,12 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].lvalue); + lua_pushnumber(L,(double)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].dvalue); - lua_rawset(L,-3); - break; - case SWIG_LUA_CHAR: - lua_pushstring(L,constants[i].name); - lua_pushfstring(L,"%c",(char)constants[i].lvalue); + lua_pushnumber(L,(double)constants[i].dvalue); lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1436,9 +1283,8 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { lua_rawset(L,-3); break; case SWIG_LUA_BINARY: - lua_pushstring(L,constants[i].name); - SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); - lua_rawset(L,-3); + /* TODO?? */ +/* obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); */ break; default: break; @@ -1446,34 +1292,25 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { } } -/* ----------------------------------------------------------------------------- - * executing lua code from within the wrapper - * ----------------------------------------------------------------------------- */ +/* storing/access of swig_module_info */ +SWIGRUNTIME swig_module_info * +SWIG_Lua_GetModule(lua_State* L) { + swig_module_info *ret = 0; + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_rawget(L,LUA_REGISTRYINDEX); + if (lua_islightuserdata(L,-1)) + ret=(swig_module_info*)lua_touserdata(L,-1); + lua_pop(L,1); /* tidy */ + return ret; +} -#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */ -#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) -#endif -/* Executes a C string in Lua a really simple way of calling lua from C -Unfortunately lua keeps changing its API's, so we need a conditional compile -In lua 5.0.X its lua_dostring() -In lua 5.1.X its luaL_dostring() -*/ -SWIGINTERN int -SWIG_Lua_dostring(lua_State *L, const char* str) { - int ok,top; - if (str==0 || str[0]==0) return 0; /* nothing to do */ - top=lua_gettop(L); /* save stack */ -#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) - ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */ -#else - ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */ -#endif - if (ok!=0) { - SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); - } - lua_settop(L,top); /* restore the stack */ - return ok; -} +SWIGRUNTIME void +SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { + /* add this all into the Lua registry: */ + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_pushlightuserdata(L,(void*)module); + lua_rawset(L,LUA_REGISTRYINDEX); +} #ifdef __cplusplus } @@ -1484,15 +1321,15 @@ SWIG_Lua_dostring(lua_State *L, const char* str) { /* -------- TYPES TABLE (BEGIN) -------- */ -#define SWIGTYPE_p_API swig_types[0] -#define SWIGTYPE_p_CoreSession swig_types[1] -#define SWIGTYPE_p_DTMF swig_types[2] -#define SWIGTYPE_p_Event swig_types[3] -#define SWIGTYPE_p_EventConsumer swig_types[4] -#define SWIGTYPE_p_IVRMenu swig_types[5] -#define SWIGTYPE_p_LUA__Dbh swig_types[6] -#define SWIGTYPE_p_LUA__Session swig_types[7] -#define SWIGTYPE_p_SWIGLUA_FN swig_types[8] +#define SWIGTYPE_SWIGLUA_FN swig_types[0] +#define SWIGTYPE_p_API swig_types[1] +#define SWIGTYPE_p_CoreSession swig_types[2] +#define SWIGTYPE_p_DTMF swig_types[3] +#define SWIGTYPE_p_Event swig_types[4] +#define SWIGTYPE_p_EventConsumer swig_types[5] +#define SWIGTYPE_p_IVRMenu swig_types[6] +#define SWIGTYPE_p_LUA__Dbh swig_types[7] +#define SWIGTYPE_p_LUA__Session swig_types[8] #define SWIGTYPE_p_Stream swig_types[9] #define SWIGTYPE_p_input_callback_state swig_types[10] #define SWIGTYPE_p_int swig_types[11] @@ -1514,23 +1351,22 @@ SWIG_Lua_dostring(lua_State *L, const char* str) { #define SWIGTYPE_p_switch_stream_handle_t swig_types[27] #define SWIGTYPE_p_uint32_t swig_types[28] #define SWIGTYPE_p_void swig_types[29] -static swig_type_info *swig_types[31]; -static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0}; +#define SWIGTYPE_switch_call_cause_t swig_types[30] +#define SWIGTYPE_switch_channel_state_t swig_types[31] +#define SWIGTYPE_switch_event_types_t swig_types[32] +#define SWIGTYPE_switch_input_type_t swig_types[33] +#define SWIGTYPE_switch_priority_t swig_types[34] +#define SWIGTYPE_uint32_t swig_types[35] +static swig_type_info *swig_types[37]; +static swig_module_info swig_module = {swig_types, 36, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ -#define SWIG_name "freeswitch" -#define SWIG_init luaopen_freeswitch -#define SWIG_init_user luaopen_freeswitch_user - -#define SWIG_LUACODE luaopen_freeswitch_luacode - - -namespace swig { -typedef struct{} LANGUAGE_OBJ; -} +#define SWIG_init Freeswitch_Init +#define SWIG_name "freeswitch" +#define SWIG_import luaopen_freeswitch #include "switch.h" @@ -1545,18 +1381,15 @@ static int _wrap_setGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("setGlobalVariable",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); setGlobalVariable(arg1,arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1568,17 +1401,14 @@ static int _wrap_getGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("getGlobalVariable",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); result = (char *)getGlobalVariable(arg1); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; free(result); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1590,18 +1420,15 @@ static int _wrap_consoleLog(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("consoleLog",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); consoleLog(arg1,arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1616,24 +1443,21 @@ static int _wrap_consoleLog2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - SWIG_check_num_args("consoleLog2",5,5) - if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int"); - if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char *)lua_tostring(L, 5); + arg5 = (char*)lua_tostring(L, 5); consoleLog2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1644,16 +1468,13 @@ static int _wrap_consoleCleanLog(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - SWIG_check_num_args("consoleCleanLog",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); consoleCleanLog(arg1); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1664,14 +1485,11 @@ static int _wrap_running(lua_State* L) { int SWIG_arg = -1; bool result; - SWIG_check_num_args("running",0,0) result = (bool)running(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1689,38 +1507,35 @@ static int _wrap_email(lua_State* L) { char *arg7 = (char *) NULL ; bool result; - SWIG_check_num_args("email",2,7) - if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *"); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *"); - if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *"); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *"); - if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); + if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg(5); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); + if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg(7); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); } if(lua_gettop(L)>=5){ - arg5 = (char *)lua_tostring(L, 5); + arg5 = (char*)lua_tostring(L, 5); } if(lua_gettop(L)>=6){ - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); } if(lua_gettop(L)>=7){ - arg7 = (char *)lua_tostring(L, 7); + arg7 = (char*)lua_tostring(L, 7); } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1748,39 +1563,34 @@ static int _wrap_new_IVRMenu(lua_State* L) { int arg17 ; IVRMenu *result = 0 ; - SWIG_check_num_args("IVRMenu",17,17) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *"); - if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *"); - if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *"); - if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *"); - if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *"); - if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *"); - if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *"); - if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *"); - if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int"); - if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int"); - if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int"); - if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int"); - if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int"); - if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ - SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); - arg5 = (char *)lua_tostring(L, 5); - arg6 = (char *)lua_tostring(L, 6); - arg7 = (char *)lua_tostring(L, 7); - arg8 = (char *)lua_tostring(L, 8); - arg9 = (char *)lua_tostring(L, 9); - arg10 = (char *)lua_tostring(L, 10); - arg11 = (char *)lua_tostring(L, 11); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + if(!lua_isstring(L,7)) SWIG_fail_arg(7); + if(!lua_isstring(L,8)) SWIG_fail_arg(8); + if(!lua_isstring(L,9)) SWIG_fail_arg(9); + if(!lua_isstring(L,10)) SWIG_fail_arg(10); + if(!lua_isstring(L,11)) SWIG_fail_arg(11); + if(!lua_isnumber(L,12)) SWIG_fail_arg(12); + if(!lua_isnumber(L,13)) SWIG_fail_arg(13); + if(!lua_isnumber(L,14)) SWIG_fail_arg(14); + if(!lua_isnumber(L,15)) SWIG_fail_arg(15); + if(!lua_isnumber(L,16)) SWIG_fail_arg(16); + if(!lua_isnumber(L,17)) SWIG_fail_arg(17); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"new_IVRMenu"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); + arg5 = (char*)lua_tostring(L, 5); + arg6 = (char*)lua_tostring(L, 6); + arg7 = (char*)lua_tostring(L, 7); + arg8 = (char*)lua_tostring(L, 8); + arg9 = (char*)lua_tostring(L, 9); + arg10 = (char*)lua_tostring(L, 10); + arg11 = (char*)lua_tostring(L, 11); arg12 = (int)lua_tonumber(L, 12); arg13 = (int)lua_tonumber(L, 13); arg14 = (int)lua_tonumber(L, 14); @@ -1792,8 +1602,6 @@ static int _wrap_new_IVRMenu(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1804,21 +1612,14 @@ static int _wrap_delete_IVRMenu(lua_State* L) { int SWIG_arg = -1; IVRMenu *arg1 = (IVRMenu *) 0 ; - SWIG_check_num_args("IVRMenu",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"delete_IVRMenu"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1832,26 +1633,19 @@ static int _wrap_IVRMenu_bindAction(lua_State* L) { char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; - SWIG_check_num_args("bindAction",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bindAction",1,"IVRMenu *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ - SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_bindAction"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1864,28 +1658,17 @@ static int _wrap_IVRMenu_execute(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("execute",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"IVRMenu *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("execute",2,"CoreSession *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ - SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("IVRMenu_execute",2,SWIGTYPE_p_CoreSession); - } - - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_execute"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"IVRMenu_execute"); + arg3 = (char*)lua_tostring(L, 3); (arg1)->execute(arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1905,28 +1688,22 @@ static swig_lua_attribute swig_IVRMenu_attributes[] = { {0,0,0} }; static swig_lua_class *swig_IVRMenu_bases[] = {0}; -static const char *swig_IVRMenu_base_names[] = {0}; -static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names }; +swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases }; static int _wrap_new_API(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) NULL ; API *result = 0 ; - SWIG_check_num_args("API",0,1) - if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"CoreSession *"); + if(lua_gettop(L)>=1 && !lua_isuserdata(L,1)) SWIG_fail_arg(1); if(lua_gettop(L)>=1){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession); - } + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"new_API"); } result = (API *)new API(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1937,21 +1714,14 @@ static int _wrap_delete_API(lua_State* L) { int SWIG_arg = -1; API *arg1 = (API *) 0 ; - SWIG_check_num_args("API",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"API *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"delete_API"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1965,27 +1735,20 @@ static int _wrap_API_execute(lua_State* L) { char *arg3 = (char *) NULL ; char *result = 0 ; - SWIG_check_num_args("execute",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"API *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ - SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_execute"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; free(result); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -1998,23 +1761,16 @@ static int _wrap_API_executeString(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("executeString",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("executeString",1,"API *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ - SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_executeString"); + arg2 = (char*)lua_tostring(L, 2); result = (char *)(arg1)->executeString((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; free(result); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2026,20 +1782,13 @@ static int _wrap_API_getTime(lua_State* L) { API *arg1 = (API *) 0 ; char *result = 0 ; - SWIG_check_num_args("getTime",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ - SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_getTime"); result = (char *)(arg1)->getTime(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2060,31 +1809,23 @@ static swig_lua_attribute swig_API_attributes[] = { {0,0,0} }; static swig_lua_class *swig_API_bases[] = {0}; -static const char *swig_API_base_names[] = {0}; -static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names }; +swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases }; static int _wrap_input_callback_state_t_function_set(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("function",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("function",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_set"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; if (arg1) (arg1)->function = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2096,20 +1837,13 @@ static int _wrap_input_callback_state_t_function_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - SWIG_check_num_args("function",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_get"); result = (void *) ((arg1)->function); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2121,23 +1855,16 @@ static int _wrap_input_callback_state_t_threadState_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("threadState",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("threadState",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_set"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; if (arg1) (arg1)->threadState = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2149,20 +1876,13 @@ static int _wrap_input_callback_state_t_threadState_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - SWIG_check_num_args("threadState",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_get"); result = (void *) ((arg1)->threadState); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2174,23 +1894,16 @@ static int _wrap_input_callback_state_t_extra_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("extra",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("extra",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_set"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; if (arg1) (arg1)->extra = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2202,20 +1915,13 @@ static int _wrap_input_callback_state_t_extra_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - SWIG_check_num_args("extra",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_get"); result = (void *) ((arg1)->extra); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2227,20 +1933,15 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("funcargs",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->funcargs) delete [] arg1->funcargs; if (arg2) { - arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->funcargs, (const char *)arg2); + arg1->funcargs = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->funcargs,arg2); } else { arg1->funcargs = 0; } @@ -2249,8 +1950,6 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2262,20 +1961,13 @@ static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *result = 0 ; - SWIG_check_num_args("funcargs",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_get"); result = (char *) ((arg1)->funcargs); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2286,14 +1978,11 @@ static int _wrap_new_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *result = 0 ; - SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0) result = (input_callback_state_t *)new input_callback_state_t(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2304,21 +1993,14 @@ static int _wrap_delete_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; - SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"delete_input_callback_state_t"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2333,38 +2015,30 @@ static swig_lua_method swig_input_callback_state_t_methods[] = { {0,0} }; static swig_lua_attribute swig_input_callback_state_t_attributes[] = { - { "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, - { "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, - { "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, - { "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, + { "function",_wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, + { "threadState",_wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, + { "extra",_wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, + { "funcargs",_wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, {0,0,0} }; static swig_lua_class *swig_input_callback_state_t_bases[] = {0}; -static const char *swig_input_callback_state_t_base_names[] = {0}; -static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names }; +swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases }; static int _wrap_DTMF_digit_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; char arg2 ; - SWIG_check_num_args("digit",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF); - } - - arg2 = (lua_tostring(L, 2))[0]; + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_set"); + arg2 = ((char*)lua_tostring(L, 2))[0]; if (arg1) (arg1)->digit = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2376,20 +2050,13 @@ static int _wrap_DTMF_digit_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; char result; - SWIG_check_num_args("digit",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_get"); result = (char) ((arg1)->digit); SWIG_arg=0; lua_pushfstring(L,"%c",result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2400,30 +2067,21 @@ static int _wrap_DTMF_duration_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; uint32_t arg2 ; - uint32_t *argp2 ; - SWIG_check_num_args("duration",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_set"); + { + uint32_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ - SWIG_fail_ptr("DTMF_duration_set",2,SWIGTYPE_p_uint32_t); - } - arg2 = *argp2; - if (arg1) (arg1)->duration = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2435,23 +2093,17 @@ static int _wrap_DTMF_duration_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; uint32_t result; - SWIG_check_num_args("duration",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ - SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_get"); result = ((arg1)->duration); SWIG_arg=0; { - uint32_t * resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr; + resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2463,25 +2115,22 @@ static int _wrap_new_DTMF(lua_State* L) { char arg1 ; uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ; DTMF *result = 0 ; - uint32_t *argp2 ; - SWIG_check_num_args("DTMF",1,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char"); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t"); - arg1 = (lua_tostring(L, 1))[0]; + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1 = ((char*)lua_tostring(L, 1))[0]; if(lua_gettop(L)>=2){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ - SWIG_fail_ptr("new_DTMF",2,SWIGTYPE_p_uint32_t); + { + uint32_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; + arg2 = *argp; } - arg2 = *argp2; } result = (DTMF *)new DTMF(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2492,21 +2141,14 @@ static int _wrap_delete_DTMF(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; - SWIG_check_num_args("DTMF",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF",1,"DTMF *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"delete_DTMF"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2521,26 +2163,22 @@ static swig_lua_method swig_DTMF_methods[] = { {0,0} }; static swig_lua_attribute swig_DTMF_attributes[] = { - { "digit", _wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, - { "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, + { "digit",_wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, + { "duration",_wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, {0,0,0} }; static swig_lua_class *swig_DTMF_bases[] = {0}; -static const char *swig_DTMF_base_names[] = {0}; -static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names }; +swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases }; static int _wrap_new_Stream__SWIG_0(lua_State* L) { int SWIG_arg = -1; Stream *result = 0 ; - SWIG_check_num_args("Stream",0,0) result = (Stream *)new Stream(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2552,20 +2190,13 @@ static int _wrap_new_Stream__SWIG_1(lua_State* L) { switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; Stream *result = 0 ; - SWIG_check_num_args("Stream",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))){ - SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(switch_stream_handle_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_stream_handle_t,0,1,"new_Stream"); result = (Stream *)new Stream(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2586,7 +2217,7 @@ static int _wrap_new_Stream(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { _v = 0; } else { _v = 1; @@ -2606,21 +2237,14 @@ static int _wrap_delete_Stream(lua_State* L) { int SWIG_arg = -1; Stream *arg1 = (Stream *) 0 ; - SWIG_check_num_args("Stream",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"Stream *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"delete_Stream"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2633,26 +2257,15 @@ static int _wrap_Stream_read(lua_State* L) { int *arg2 = (int *) 0 ; char *result = 0 ; - SWIG_check_num_args("read",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("read",2,"int *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_int,0))){ - SWIG_fail_ptr("Stream_read",2,SWIGTYPE_p_int); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_read"); + arg2=(int *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_int,0,2,"Stream_read"); result = (char *)(arg1)->read(arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2664,22 +2277,15 @@ static int _wrap_Stream_write(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("write",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("write",1,"Stream *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_write"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->write((char const *)arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2692,24 +2298,17 @@ static int _wrap_Stream_raw_write(lua_State* L) { char *arg2 = (char *) 0 ; int arg3 ; - SWIG_check_num_args("raw_write",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_raw_write"); + arg2 = (char*)lua_tostring(L, 2); arg3 = (int)lua_tonumber(L, 3); (arg1)->raw_write((char const *)arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2721,20 +2320,13 @@ static int _wrap_Stream_get_data(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *result = 0 ; - SWIG_check_num_args("get_data",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_data",1,"Stream *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ - SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_get_data"); result = (char *)(arg1)->get_data(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2756,35 +2348,23 @@ static swig_lua_attribute swig_Stream_attributes[] = { {0,0,0} }; static swig_lua_class *swig_Stream_bases[] = {0}; -static const char *swig_Stream_base_names[] = {0}; -static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names }; +swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases }; static int _wrap_Event_event_set(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; - SWIG_check_num_args("event",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("event",2,"switch_event_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_event_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("Event_event_set",2,SWIGTYPE_p_switch_event_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_set"); + arg2=(switch_event_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_event_t,0,2,"Event_event_set"); if (arg1) (arg1)->event = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2796,20 +2376,13 @@ static int _wrap_Event_event_get(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_event_t *result = 0 ; - SWIG_check_num_args("event",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_get"); result = (switch_event_t *) ((arg1)->event); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2821,20 +2394,15 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("serialized_string",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->serialized_string) delete [] arg1->serialized_string; if (arg2) { - arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->serialized_string, (const char *)arg2); + arg1->serialized_string = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->serialized_string,arg2); } else { arg1->serialized_string = 0; } @@ -2843,8 +2411,6 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2856,20 +2422,13 @@ static int _wrap_Event_serialized_string_get(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - SWIG_check_num_args("serialized_string",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_get"); result = (char *) ((arg1)->serialized_string); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2881,14 +2440,9 @@ static int _wrap_Event_mine_set(lua_State* L) { Event *arg1 = (Event *) 0 ; int arg2 ; - SWIG_check_num_args("mine",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_set"); arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->mine = arg2; @@ -2896,8 +2450,6 @@ static int _wrap_Event_mine_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2909,20 +2461,13 @@ static int _wrap_Event_mine_get(lua_State* L) { Event *arg1 = (Event *) 0 ; int result; - SWIG_check_num_args("mine",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_get"); result = (int) ((arg1)->mine); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2935,20 +2480,17 @@ static int _wrap_new_Event__SWIG_0(lua_State* L) { char *arg2 = (char *) NULL ; Event *result = 0 ; - SWIG_check_num_args("Event",1,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } result = (Event *)new Event((char const *)arg1,(char const *)arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2961,14 +2503,9 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { int arg2 = (int) 0 ; Event *result = 0 ; - SWIG_check_num_args("Event",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"switch_event_t *"); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))){ - SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(switch_event_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_event_t,0,1,"new_Event"); if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -2977,8 +2514,6 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -2996,7 +2531,7 @@ static int _wrap_new_Event(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { _v = 0; } else { _v = 1; @@ -3041,21 +2576,14 @@ static int _wrap_delete_Event(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; - SWIG_check_num_args("Event",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"delete_Event"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3069,26 +2597,19 @@ static int _wrap_Event_chat_execute(lua_State* L) { char *arg3 = (char *) NULL ; int result; - SWIG_check_num_args("chat_execute",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_execute",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_execute"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3101,24 +2622,17 @@ static int _wrap_Event_chat_send(lua_State* L) { char *arg2 = (char *) NULL ; int result; - SWIG_check_num_args("chat_send",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_send",1,"Event *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_send"); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } result = (int)(arg1)->chat_send((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3131,24 +2645,17 @@ static int _wrap_Event_serialize(lua_State* L) { char *arg2 = (char *) NULL ; char *result = 0 ; - SWIG_check_num_args("serialize",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialize",1,"Event *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialize"); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } result = (char *)(arg1)->serialize((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3160,29 +2667,22 @@ static int _wrap_Event_setPriority(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; bool result; - switch_priority_t *argp2 ; - - SWIG_check_num_args("setPriority",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPriority",1,"Event *"); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event); - } + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_setPriority"); if(lua_gettop(L)>=2){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_priority_t,0))){ - SWIG_fail_ptr("Event_setPriority",2,SWIGTYPE_p_switch_priority_t); + { + switch_priority_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_priority_t,0)) SWIG_fail; + arg2 = *argp; } - arg2 = *argp2; } result = (bool)(arg1)->setPriority(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3195,22 +2695,15 @@ static int _wrap_Event_getHeader(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("getHeader",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getHeader",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getHeader"); + arg2 = (char*)lua_tostring(L, 2); result = (char *)(arg1)->getHeader((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3222,20 +2715,13 @@ static int _wrap_Event_getBody(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - SWIG_check_num_args("getBody",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getBody",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getBody"); result = (char *)(arg1)->getBody(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3247,20 +2733,13 @@ static int _wrap_Event_getType(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - SWIG_check_num_args("getType",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getType",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getType"); result = (char *)(arg1)->getType(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3273,22 +2752,15 @@ static int _wrap_Event_addBody(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - SWIG_check_num_args("addBody",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addBody",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addBody"); + arg2 = (char*)lua_tostring(L, 2); result = (bool)(arg1)->addBody((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3302,24 +2774,17 @@ static int _wrap_Event_addHeader(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - SWIG_check_num_args("addHeader",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addHeader",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addHeader"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3332,22 +2797,15 @@ static int _wrap_Event_delHeader(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - SWIG_check_num_args("delHeader",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delHeader",1,"Event *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_delHeader"); + arg2 = (char*)lua_tostring(L, 2); result = (bool)(arg1)->delHeader((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3359,20 +2817,13 @@ static int _wrap_Event_fire(lua_State* L) { Event *arg1 = (Event *) 0 ; bool result; - SWIG_check_num_args("fire",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("fire",1,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_fire"); result = (bool)(arg1)->fire(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3398,41 +2849,29 @@ static swig_lua_method swig_Event_methods[] = { {0,0} }; static swig_lua_attribute swig_Event_attributes[] = { - { "event", _wrap_Event_event_get, _wrap_Event_event_set}, - { "serialized_string", _wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, - { "mine", _wrap_Event_mine_get, _wrap_Event_mine_set}, + { "event",_wrap_Event_event_get, _wrap_Event_event_set}, + { "serialized_string",_wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, + { "mine",_wrap_Event_mine_get, _wrap_Event_mine_set}, {0,0,0} }; static swig_lua_class *swig_Event_bases[] = {0}; -static const char *swig_Event_base_names[] = {0}; -static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names }; +swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases }; static int _wrap_EventConsumer_events_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *arg2 = (switch_queue_t *) 0 ; - SWIG_check_num_args("events",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_queue_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("EventConsumer_events_set",2,SWIGTYPE_p_switch_queue_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_set"); + arg2=(switch_queue_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_queue_t,0,2,"EventConsumer_events_set"); if (arg1) (arg1)->events = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3444,20 +2883,13 @@ static int _wrap_EventConsumer_events_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *result = 0 ; - SWIG_check_num_args("events",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_get"); result = (switch_queue_t *) ((arg1)->events); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3468,30 +2900,21 @@ static int _wrap_EventConsumer_e_event_id_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t arg2 ; - switch_event_types_t *argp2 ; - SWIG_check_num_args("e_event_id",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_set"); + { + switch_event_types_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_event_types_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_event_types_t,0))){ - SWIG_fail_ptr("EventConsumer_e_event_id_set",2,SWIGTYPE_p_switch_event_types_t); - } - arg2 = *argp2; - if (arg1) (arg1)->e_event_id = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3503,23 +2926,17 @@ static int _wrap_EventConsumer_e_event_id_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t result; - SWIG_check_num_args("e_event_id",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_get"); result = ((arg1)->e_event_id); SWIG_arg=0; { - switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result); + switch_event_types_t * resultptr; + resultptr = new switch_event_types_t((switch_event_types_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3531,20 +2948,15 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("e_callback",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->e_callback) delete [] arg1->e_callback; if (arg2) { - arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_callback, (const char *)arg2); + arg1->e_callback = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_callback,arg2); } else { arg1->e_callback = 0; } @@ -3553,8 +2965,6 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3566,20 +2976,13 @@ static int _wrap_EventConsumer_e_callback_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - SWIG_check_num_args("e_callback",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_get"); result = (char *) ((arg1)->e_callback); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3591,20 +2994,15 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("e_subclass_name",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->e_subclass_name) delete [] arg1->e_subclass_name; if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_subclass_name, (const char *)arg2); + arg1->e_subclass_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_subclass_name,arg2); } else { arg1->e_subclass_name = 0; } @@ -3613,8 +3011,6 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3626,20 +3022,13 @@ static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - SWIG_check_num_args("e_subclass_name",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_get"); result = (char *) ((arg1)->e_subclass_name); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3651,20 +3040,15 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("e_cb_arg",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->e_cb_arg) delete [] arg1->e_cb_arg; if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->e_cb_arg, (const char *)arg2); + arg1->e_cb_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->e_cb_arg,arg2); } else { arg1->e_cb_arg = 0; } @@ -3673,8 +3057,6 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3686,20 +3068,13 @@ static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - SWIG_check_num_args("e_cb_arg",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_get"); result = (char *) ((arg1)->e_cb_arg); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3711,19 +3086,10 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **arg2 ; - SWIG_check_num_args("enodes",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_switch_event_node_t,0))){ - SWIG_fail_ptr("EventConsumer_enodes_set",2,SWIGTYPE_p_p_switch_event_node_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_set"); + arg2=(switch_event_node_t **)SWIG_MustGetPtr(L,2,SWIGTYPE_p_p_switch_event_node_t,0,2,"EventConsumer_enodes_set"); { size_t ii; switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes; @@ -3733,8 +3099,6 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3746,20 +3110,13 @@ static int _wrap_EventConsumer_enodes_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **result = 0 ; - SWIG_check_num_args("enodes",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_get"); result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3770,30 +3127,21 @@ static int _wrap_EventConsumer_node_index_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t arg2 ; - uint32_t *argp2 ; - SWIG_check_num_args("node_index",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_set"); + { + uint32_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ - SWIG_fail_ptr("EventConsumer_node_index_set",2,SWIGTYPE_p_uint32_t); - } - arg2 = *argp2; - if (arg1) (arg1)->node_index = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3805,23 +3153,17 @@ static int _wrap_EventConsumer_node_index_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t result; - SWIG_check_num_args("node_index",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_get"); result = ((arg1)->node_index); SWIG_arg=0; { - uint32_t * resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr; + resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3835,15 +3177,14 @@ static int _wrap_new_EventConsumer(lua_State* L) { int arg3 = (int) 5000 ; EventConsumer *result = 0 ; - SWIG_check_num_args("EventConsumer",0,3) - if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int"); + if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); if(lua_gettop(L)>=1){ - arg1 = (char *)lua_tostring(L, 1); + arg1 = (char*)lua_tostring(L, 1); } if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -3853,8 +3194,6 @@ static int _wrap_new_EventConsumer(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3865,21 +3204,14 @@ static int _wrap_delete_EventConsumer(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - SWIG_check_num_args("EventConsumer",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"delete_EventConsumer"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3893,26 +3225,19 @@ static int _wrap_EventConsumer_bind(lua_State* L) { char *arg3 = (char *) "" ; int result; - SWIG_check_num_args("bind",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bind",1,"EventConsumer *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_bind"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3926,15 +3251,10 @@ static int _wrap_EventConsumer_pop(lua_State* L) { int arg3 = (int) 0 ; Event *result = 0 ; - SWIG_check_num_args("pop",1,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *"); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_pop"); if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -3946,8 +3266,6 @@ static int _wrap_EventConsumer_pop(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3958,20 +3276,13 @@ static int _wrap_EventConsumer_cleanup(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - SWIG_check_num_args("cleanup",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ - SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_cleanup"); (arg1)->cleanup(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -3989,38 +3300,30 @@ static swig_lua_method swig_EventConsumer_methods[] = { {0,0} }; static swig_lua_attribute swig_EventConsumer_attributes[] = { - { "events", _wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, - { "e_event_id", _wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, - { "e_callback", _wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, - { "e_subclass_name", _wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, - { "e_cb_arg", _wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, - { "enodes", _wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, - { "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, + { "events",_wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, + { "e_event_id",_wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, + { "e_callback",_wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, + { "e_subclass_name",_wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, + { "e_cb_arg",_wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, + { "enodes",_wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, + { "node_index",_wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, {0,0,0} }; static swig_lua_class *swig_EventConsumer_bases[] = {0}; -static const char *swig_EventConsumer_base_names[] = {0}; -static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names }; +swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases }; static int _wrap_delete_CoreSession(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("CoreSession",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"delete_CoreSession"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4032,27 +3335,16 @@ static int _wrap_CoreSession_session_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - SWIG_check_num_args("session",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("session",2,"switch_core_session_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_core_session_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("CoreSession_session_set",2,SWIGTYPE_p_switch_core_session_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_set"); + arg2=(switch_core_session_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_core_session_t,0,2,"CoreSession_session_set"); if (arg1) (arg1)->session = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4064,20 +3356,13 @@ static int _wrap_CoreSession_session_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *result = 0 ; - SWIG_check_num_args("session",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_get"); result = (switch_core_session_t *) ((arg1)->session); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4089,27 +3374,16 @@ static int _wrap_CoreSession_channel_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *arg2 = (switch_channel_t *) 0 ; - SWIG_check_num_args("channel",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("channel",2,"switch_channel_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_channel_t,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("CoreSession_channel_set",2,SWIGTYPE_p_switch_channel_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_set"); + arg2=(switch_channel_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_channel_t,0,2,"CoreSession_channel_set"); if (arg1) (arg1)->channel = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4121,20 +3395,13 @@ static int _wrap_CoreSession_channel_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *result = 0 ; - SWIG_check_num_args("channel",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_get"); result = (switch_channel_t *) ((arg1)->channel); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4146,14 +3413,9 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int arg2 ; - SWIG_check_num_args("flags",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_set"); arg2 = (unsigned int)lua_tonumber(L, 2); if (arg1) (arg1)->flags = arg2; @@ -4161,8 +3423,6 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4174,20 +3434,13 @@ static int _wrap_CoreSession_flags_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int result; - SWIG_check_num_args("flags",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_get"); result = (unsigned int) ((arg1)->flags); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4199,14 +3452,9 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; - SWIG_check_num_args("allocated",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_set"); arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->allocated = arg2; @@ -4214,8 +3462,6 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4227,20 +3473,13 @@ static int _wrap_CoreSession_allocated_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("allocated",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_get"); result = (int) ((arg1)->allocated); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4252,27 +3491,16 @@ static int _wrap_CoreSession_cb_state_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *arg2 = (input_callback_state *) 0 ; - SWIG_check_num_args("cb_state",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("cb_state",2,"input_callback_state *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_input_callback_state,0))){ - SWIG_fail_ptr("CoreSession_cb_state_set",2,SWIGTYPE_p_input_callback_state); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_set"); + arg2=(input_callback_state *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_input_callback_state,0,2,"CoreSession_cb_state_set"); if (arg1) (arg1)->cb_state = *arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4284,20 +3512,13 @@ static int _wrap_CoreSession_cb_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *result = 0 ; - SWIG_check_num_args("cb_state",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_get"); result = (input_callback_state *)& ((arg1)->cb_state); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4308,30 +3529,21 @@ static int _wrap_CoreSession_hook_state_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t arg2 ; - switch_channel_state_t *argp2 ; - SWIG_check_num_args("hook_state",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_set"); + { + switch_channel_state_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_channel_state_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_channel_state_t,0))){ - SWIG_fail_ptr("CoreSession_hook_state_set",2,SWIGTYPE_p_switch_channel_state_t); - } - arg2 = *argp2; - if (arg1) (arg1)->hook_state = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4343,23 +3555,17 @@ static int _wrap_CoreSession_hook_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t result; - SWIG_check_num_args("hook_state",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_get"); result = ((arg1)->hook_state); SWIG_arg=0; { - switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result); + switch_channel_state_t * resultptr; + resultptr = new switch_channel_state_t((switch_channel_state_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4370,30 +3576,21 @@ static int _wrap_CoreSession_cause_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t arg2 ; - switch_call_cause_t *argp2 ; - SWIG_check_num_args("cause",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_set"); + { + switch_call_cause_t * argp; + if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_call_cause_t,0)) SWIG_fail; + arg2 = *argp; } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_call_cause_t,0))){ - SWIG_fail_ptr("CoreSession_cause_set",2,SWIGTYPE_p_switch_call_cause_t); - } - arg2 = *argp2; - if (arg1) (arg1)->cause = arg2; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4405,23 +3602,17 @@ static int _wrap_CoreSession_cause_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t result; - SWIG_check_num_args("cause",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_get"); result = ((arg1)->cause); SWIG_arg=0; { - switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result); + switch_call_cause_t * resultptr; + resultptr = new switch_call_cause_t((switch_call_cause_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4433,20 +3624,15 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("uuid",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->uuid) delete [] arg1->uuid; if (arg2) { - arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->uuid, (const char *)arg2); + arg1->uuid = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->uuid,arg2); } else { arg1->uuid = 0; } @@ -4455,8 +3641,6 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4468,20 +3652,13 @@ static int _wrap_CoreSession_uuid_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("uuid",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_get"); result = (char *) ((arg1)->uuid); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4493,20 +3670,15 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("tts_name",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->tts_name) delete [] arg1->tts_name; if (arg2) { - arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->tts_name, (const char *)arg2); + arg1->tts_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->tts_name,arg2); } else { arg1->tts_name = 0; } @@ -4515,8 +3687,6 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4528,20 +3698,13 @@ static int _wrap_CoreSession_tts_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("tts_name",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_get"); result = (char *) ((arg1)->tts_name); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4553,20 +3716,15 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("voice_name",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->voice_name) delete [] arg1->voice_name; if (arg2) { - arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->voice_name, (const char *)arg2); + arg1->voice_name = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->voice_name,arg2); } else { arg1->voice_name = 0; } @@ -4575,8 +3733,6 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4588,20 +3744,13 @@ static int _wrap_CoreSession_voice_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("voice_name",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_get"); result = (char *) ((arg1)->voice_name); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4616,26 +3765,19 @@ static int _wrap_CoreSession_insertFile(lua_State* L) { int arg4 ; int result; - SWIG_check_num_args("insertFile",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("insertFile",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_insertFile"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4647,20 +3789,13 @@ static int _wrap_CoreSession_answer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("answer",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answer",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answer"); result = (int)(arg1)->answer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4672,20 +3807,13 @@ static int _wrap_CoreSession_preAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("preAnswer",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("preAnswer",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_preAnswer"); result = (int)(arg1)->preAnswer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4697,24 +3825,17 @@ static int _wrap_CoreSession_hangup(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) "normal_clearing" ; - SWIG_check_num_args("hangup",1,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup",1,"CoreSession *"); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangup"); if(lua_gettop(L)>=2){ - arg2 = (char *)lua_tostring(L, 2); + arg2 = (char*)lua_tostring(L, 2); } (arg1)->hangup((char const *)arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4725,20 +3846,13 @@ static int _wrap_CoreSession_hangupState(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("hangupState",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupState",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupState"); (arg1)->hangupState(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4751,24 +3865,17 @@ static int _wrap_CoreSession_setVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setVariable",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setVariable",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setVariable"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->setVariable(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4781,24 +3888,17 @@ static int _wrap_CoreSession_setPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *arg3 = (void *) 0 ; - SWIG_check_num_args("setPrivate",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPrivate",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *"); - if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("setPrivate",3,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setPrivate"); + arg2 = (char*)lua_tostring(L, 2); + arg3=((swig_lua_userdata*)(lua_touserdata(L,3)))->ptr; (arg1)->setPrivate(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4811,22 +3911,15 @@ static int _wrap_CoreSession_getPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *result = 0 ; - SWIG_check_num_args("getPrivate",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getPrivate",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getPrivate"); + arg2 = (char*)lua_tostring(L, 2); result = (void *)(arg1)->getPrivate(arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4839,22 +3932,15 @@ static int _wrap_CoreSession_getVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - SWIG_check_num_args("getVariable",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getVariable",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getVariable"); + arg2 = (char*)lua_tostring(L, 2); result = (char *)(arg1)->getVariable(arg2); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4867,25 +3953,19 @@ static int _wrap_CoreSession_process_callback_result(lua_State* L) { char *arg2 = (char *) 0 ; switch_status_t result; - SWIG_check_num_args("process_callback_result",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("process_callback_result",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_process_callback_result"); + arg2 = (char*)lua_tostring(L, 2); result = (arg1)->process_callback_result(arg2); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4901,32 +3981,25 @@ static int _wrap_CoreSession_say(lua_State* L) { char *arg5 = (char *) 0 ; char *arg6 = (char *) NULL ; - SWIG_check_num_args("say",5,6) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("say",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *"); - if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *"); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); - arg5 = (char *)lua_tostring(L, 5); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_say"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); + arg5 = (char*)lua_tostring(L, 5); if(lua_gettop(L)>=6){ - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4940,30 +4013,23 @@ static int _wrap_CoreSession_sayPhrase(lua_State* L) { char *arg3 = (char *) "" ; char *arg4 = (char *) NULL ; - SWIG_check_num_args("sayPhrase",2,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sayPhrase",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *"); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sayPhrase"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -4975,20 +4041,13 @@ static int _wrap_CoreSession_hangupCause(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("hangupCause",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupCause",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupCause"); result = (char *)(arg1)->hangupCause(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5000,20 +4059,13 @@ static int _wrap_CoreSession_getState(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("getState",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getState",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getState"); result = (char *)(arg1)->getState(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5029,18 +4081,13 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { int arg5 = (int) 0 ; int result; - SWIG_check_num_args("recordFile",2,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("recordFile",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int"); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int"); - if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); + if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg(5); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_recordFile"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -5055,8 +4102,6 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5072,38 +4117,25 @@ static int _wrap_CoreSession_originate(lua_State* L) { switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ; int result; - SWIG_check_num_args("originate",3,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); - if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_originate",2,SWIGTYPE_p_CoreSession); - } - - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); + if(lua_gettop(L)>=5 && !lua_isuserdata(L,5)) SWIG_fail_arg(5); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_originate"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_originate"); + arg3 = (char*)lua_tostring(L, 3); if(lua_gettop(L)>=4){ arg4 = (int)lua_tonumber(L, 4); } if(lua_gettop(L)>=5){ - if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_switch_state_handler_table_t,0))){ - SWIG_fail_ptr("CoreSession_originate",5,SWIGTYPE_p_switch_state_handler_table_t); - } + arg5=(switch_state_handler_table_t *)SWIG_MustGetPtr(L,5,SWIGTYPE_p_switch_state_handler_table_t,0,5,"CoreSession_originate"); } result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5114,20 +4146,13 @@ static int _wrap_CoreSession_destroy(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("destroy",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_destroy"); (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5140,24 +4165,17 @@ static int _wrap_CoreSession_setDTMFCallback(lua_State* L) { void *arg2 = (void *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setDTMFCallback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setDTMFCallback",2,"void *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback"); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setDTMFCallback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + arg3 = (char*)lua_tostring(L, 3); (arg1)->setDTMFCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5170,22 +4188,15 @@ static int _wrap_CoreSession_speak(lua_State* L) { char *arg2 = (char *) 0 ; int result; - SWIG_check_num_args("speak",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("speak",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_speak"); + arg2 = (char*)lua_tostring(L, 2); result = (int)(arg1)->speak(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5198,24 +4209,17 @@ static int _wrap_CoreSession_set_tts_parms(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("set_tts_parms",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_parms",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_parms"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->set_tts_parms(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5228,24 +4232,17 @@ static int _wrap_CoreSession_set_tts_params(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("set_tts_params",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_params",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_params"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->set_tts_params(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5258,22 +4255,15 @@ static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) { int arg2 ; int result; - SWIG_check_num_args("collectDigits",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); arg2 = (int)lua_tonumber(L, 2); result = (int)(arg1)->collectDigits(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5287,15 +4277,10 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { int arg3 ; int result; - SWIG_check_num_args("collectDigits",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); result = (int)(arg1)->collectDigits(arg2,arg3); @@ -5303,8 +4288,6 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5322,7 +4305,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5341,7 +4324,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5375,26 +4358,19 @@ static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) { int arg4 ; char *result = 0 ; - SWIG_check_num_args("getDigits",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); - if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); arg2 = (int)lua_tonumber(L, 2); - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5410,28 +4386,21 @@ static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) { int arg5 ; char *result = 0 ; - SWIG_check_num_args("getDigits",5,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); - if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); arg2 = (int)lua_tonumber(L, 2); - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5449,7 +4418,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5478,7 +4447,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5522,30 +4491,23 @@ static int _wrap_CoreSession_transfer(lua_State* L) { char *arg4 = (char *) NULL ; int result; - SWIG_check_num_args("transfer",2,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("transfer",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *"); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_transfer"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); } result = (int)(arg1)->transfer(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5563,34 +4525,27 @@ static int _wrap_CoreSession_read(lua_State* L) { int arg7 = (int) 0 ; char *result = 0 ; - SWIG_check_num_args("read",6,7) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int"); - if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int"); - if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *"); - if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg(7); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_read"); arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); - arg4 = (char *)lua_tostring(L, 4); + arg4 = (char*)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); if(lua_gettop(L)>=7){ arg7 = (int)lua_tonumber(L, 7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5613,48 +4568,41 @@ static int _wrap_CoreSession_playAndGetDigits(lua_State* L) { char *arg12 = (char *) NULL ; char *result = 0 ; - SWIG_check_num_args("playAndGetDigits",9,12) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int"); - if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *"); - if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *"); - if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *"); - if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *"); - if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *"); - if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int"); - if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(!lua_isnumber(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + if(!lua_isstring(L,7)) SWIG_fail_arg(7); + if(!lua_isstring(L,8)) SWIG_fail_arg(8); + if(!lua_isstring(L,9)) SWIG_fail_arg(9); + if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg(10); + if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg(11); + if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg(12); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_playAndGetDigits"); arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char *)lua_tostring(L, 6); - arg7 = (char *)lua_tostring(L, 7); - arg8 = (char *)lua_tostring(L, 8); - arg9 = (char *)lua_tostring(L, 9); + arg6 = (char*)lua_tostring(L, 6); + arg7 = (char*)lua_tostring(L, 7); + arg8 = (char*)lua_tostring(L, 8); + arg9 = (char*)lua_tostring(L, 9); if(lua_gettop(L)>=10){ - arg10 = (char *)lua_tostring(L, 10); + arg10 = (char*)lua_tostring(L, 10); } if(lua_gettop(L)>=11){ arg11 = (int)lua_tonumber(L, 11); } if(lua_gettop(L)>=12){ - arg12 = (char *)lua_tostring(L, 12); + arg12 = (char*)lua_tostring(L, 12); } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5668,16 +4616,11 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { int arg3 = (int) 0 ; int result; - SWIG_check_num_args("streamFile",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("streamFile",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_streamFile"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -5686,8 +4629,6 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5701,15 +4642,10 @@ static int _wrap_CoreSession_sleep(lua_State* L) { int arg3 = (int) 0 ; int result; - SWIG_check_num_args("sleep",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int"); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isnumber(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sleep"); arg2 = (int)lua_tonumber(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -5719,8 +4655,6 @@ static int _wrap_CoreSession_sleep(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5732,20 +4666,13 @@ static int _wrap_CoreSession_flushEvents(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("flushEvents",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushEvents",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushEvents"); result = (int)(arg1)->flushEvents(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5757,20 +4684,13 @@ static int _wrap_CoreSession_flushDigits(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - SWIG_check_num_args("flushDigits",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushDigits",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushDigits"); result = (int)(arg1)->flushDigits(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5783,22 +4703,15 @@ static int _wrap_CoreSession_setAutoHangup(lua_State* L) { bool arg2 ; int result; - SWIG_check_num_args("setAutoHangup",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setAutoHangup",1,"CoreSession *"); - if(!lua_isboolean(L,2)) SWIG_fail_arg("setAutoHangup",2,"bool"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (lua_toboolean(L, 2)!=0); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isboolean(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setAutoHangup"); + arg2 = (bool)lua_toboolean(L, 2); result = (int)(arg1)->setAutoHangup(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5810,22 +4723,15 @@ static int _wrap_CoreSession_setHangupHook(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; - SWIG_check_num_args("setHangupHook",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setHangupHook",2,"void *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession); - } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook"); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setHangupHook"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5837,20 +4743,13 @@ static int _wrap_CoreSession_ready(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("ready",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_ready"); result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5862,20 +4761,13 @@ static int _wrap_CoreSession_bridged(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("bridged",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_bridged"); result = (bool)(arg1)->bridged(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5887,20 +4779,13 @@ static int _wrap_CoreSession_answered(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("answered",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answered",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answered"); result = (bool)(arg1)->answered(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5912,20 +4797,13 @@ static int _wrap_CoreSession_mediaReady(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("mediaReady",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mediaReady",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_mediaReady"); result = (bool)(arg1)->mediaReady(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5937,26 +4815,15 @@ static int _wrap_CoreSession_waitForAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; - SWIG_check_num_args("waitForAnswer",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("waitForAnswer",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("waitForAnswer",2,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_waitForAnswer",2,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_waitForAnswer"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_waitForAnswer"); (arg1)->waitForAnswer(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -5969,26 +4836,19 @@ static int _wrap_CoreSession_execute(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; - SWIG_check_num_args("execute",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_execute"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char *)lua_tostring(L, 3); + arg3 = (char*)lua_tostring(L, 3); } (arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6000,26 +4860,15 @@ static int _wrap_CoreSession_sendEvent(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - SWIG_check_num_args("sendEvent",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sendEvent",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("sendEvent",2,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("CoreSession_sendEvent",2,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sendEvent"); + arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_sendEvent"); (arg1)->sendEvent(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6031,26 +4880,15 @@ static int _wrap_CoreSession_setEventData(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - SWIG_check_num_args("setEventData",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setEventData",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setEventData",2,"Event *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ - SWIG_fail_ptr("CoreSession_setEventData",2,SWIGTYPE_p_Event); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setEventData"); + arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_setEventData"); (arg1)->setEventData(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6062,20 +4900,13 @@ static int _wrap_CoreSession_getXMLCDR(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("getXMLCDR",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getXMLCDR",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getXMLCDR"); result = (char *)(arg1)->getXMLCDR(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6087,20 +4918,13 @@ static int _wrap_CoreSession_begin_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("begin_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_begin_allow_threads"); result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6112,20 +4936,13 @@ static int _wrap_CoreSession_end_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - SWIG_check_num_args("end_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_end_allow_threads"); result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6137,20 +4954,13 @@ static int _wrap_CoreSession_get_uuid(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - SWIG_check_num_args("get_uuid",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_uuid",1,"CoreSession const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_uuid"); result = (char *)((CoreSession const *)arg1)->get_uuid(); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6162,13 +4972,8 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_input_args_t *result = 0 ; - SWIG_check_num_args("get_cb_args",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_cb_args",1,"CoreSession const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_cb_args"); { switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args(); result = (switch_input_args_t *) &_result_ref; @@ -6177,8 +4982,6 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6189,20 +4992,13 @@ static int _wrap_CoreSession_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - SWIG_check_num_args("check_hangup_hook",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_check_hangup_hook"); (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6215,34 +5011,26 @@ static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; - switch_input_type_t *argp3 ; - SWIG_check_num_args("run_dtmf_callback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); - if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_run_dtmf_callback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + { + switch_input_type_t * argp; + if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; + arg3 = *argp; } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_run_dtmf_callback"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ - SWIG_fail_ptr("CoreSession_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); - } - arg3 = *argp3; - result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6255,24 +5043,17 @@ static int _wrap_CoreSession_consoleLog(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("consoleLog",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->consoleLog(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6288,30 +5069,23 @@ static int _wrap_CoreSession_consoleLog2(lua_State* L) { int arg5 ; char *arg6 = (char *) 0 ; - SWIG_check_num_args("consoleLog2",6,6) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog2",1,"CoreSession *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int"); - if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + if(!lua_isstring(L,6)) SWIG_fail_arg(6); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog2"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char *)lua_tostring(L, 6); + arg6 = (char*)lua_tostring(L, 6); (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6375,39 +5149,35 @@ static swig_lua_method swig_CoreSession_methods[] = { {0,0} }; static swig_lua_attribute swig_CoreSession_attributes[] = { - { "session", _wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, - { "channel", _wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, - { "flags", _wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, - { "allocated", _wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, - { "cb_state", _wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, - { "hook_state", _wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, - { "cause", _wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, - { "uuid", _wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, - { "tts_name", _wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, - { "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, + { "session",_wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, + { "channel",_wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, + { "flags",_wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, + { "allocated",_wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, + { "cb_state",_wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, + { "hook_state",_wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, + { "cause",_wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, + { "uuid",_wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, + { "tts_name",_wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, + { "voice_name",_wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, {0,0,0} }; static swig_lua_class *swig_CoreSession_bases[] = {0}; -static const char *swig_CoreSession_base_names[] = {0}; -static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names }; +swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases }; static int _wrap_console_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("console_log",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); console_log(arg1,arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6422,24 +5192,21 @@ static int _wrap_console_log2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - SWIG_check_num_args("console_log2",5,5) - if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int"); - if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + if(!lua_isstring(L,5)) SWIG_fail_arg(5); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char *)lua_tostring(L, 5); + arg5 = (char*)lua_tostring(L, 5); console_log2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6450,16 +5217,13 @@ static int _wrap_console_clean_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - SWIG_check_num_args("console_clean_log",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); console_clean_log(arg1); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6470,16 +5234,13 @@ static int _wrap_msleep(lua_State* L) { int SWIG_arg = -1; unsigned int arg1 ; - SWIG_check_num_args("switch_msleep",1,1) - if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int"); + if(!lua_isnumber(L,1)) SWIG_fail_arg(1); arg1 = (unsigned int)lua_tonumber(L, 1); switch_msleep(arg1); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6491,26 +5252,15 @@ static int _wrap_bridge(lua_State* L) { CoreSession *arg1 = 0 ; CoreSession *arg2 = 0 ; - SWIG_check_num_args("bridge",2,2) - if(!lua_isuserdata(L,1)) SWIG_fail_arg("bridge",1,"CoreSession &"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("bridge",2,"CoreSession &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("bridge",1,SWIGTYPE_p_CoreSession); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("bridge",2,SWIGTYPE_p_CoreSession); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"bridge"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"bridge"); bridge(*arg1,*arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6522,23 +5272,17 @@ static int _wrap_hanguphook(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_status_t result; - SWIG_check_num_args("hanguphook",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hanguphook",1,"switch_core_session_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ - SWIG_fail_ptr("hanguphook",1,SWIGTYPE_p_switch_core_session_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"hanguphook"); result = hanguphook(arg1); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6553,38 +5297,30 @@ static int _wrap_dtmf_callback(lua_State* L) { void *arg4 = (void *) 0 ; unsigned int arg5 ; switch_status_t result; - switch_input_type_t *argp3 ; - SWIG_check_num_args("dtmf_callback",5,5) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("dtmf_callback",2,"void *"); - if(!lua_isuserdata(L,3)) SWIG_fail_arg("dtmf_callback",3,"switch_input_type_t"); - if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("dtmf_callback",4,"void *"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("dtmf_callback",5,"unsigned int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ - SWIG_fail_ptr("dtmf_callback",1,SWIGTYPE_p_switch_core_session_t); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + if(!lua_isuserdata(L,4)) SWIG_fail_arg(4); + if(!lua_isnumber(L,5)) SWIG_fail_arg(5); + arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"dtmf_callback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + { + switch_input_type_t * argp; + if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; + arg3 = *argp; } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"dtmf_callback"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ - SWIG_fail_ptr("dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); - } - arg3 = *argp3; - - arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback"); + arg4=((swig_lua_userdata*)(lua_touserdata(L,4)))->ptr; arg5 = (unsigned int)lua_tonumber(L, 5); result = dtmf_callback(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6595,14 +5331,11 @@ static int _wrap_new_Session__SWIG_0(lua_State* L) { int SWIG_arg = -1; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",0,0) result = (LUA::Session *)new LUA::Session(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6615,22 +5348,15 @@ static int _wrap_new_Session__SWIG_1(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *"); - arg1 = (char *)lua_tostring(L, 1); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("new_Session",2,SWIGTYPE_p_CoreSession); - } - + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"new_Session"); result = (LUA::Session *)new LUA::Session(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6642,16 +5368,13 @@ static int _wrap_new_Session__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6663,20 +5386,13 @@ static int _wrap_new_Session__SWIG_3(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; LUA::Session *result = 0 ; - SWIG_check_num_args("LUA::Session",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ - SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"new_Session"); result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6697,7 +5413,7 @@ static int _wrap_new_Session(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { _v = 0; } else { _v = 1; @@ -6724,7 +5440,7 @@ static int _wrap_new_Session(lua_State* L) { if (_v) { { void *ptr; - if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -6745,21 +5461,14 @@ static int _wrap_delete_Session(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("LUA::~Session",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"delete_Session"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6771,22 +5480,15 @@ static int _wrap_Session_destroy__SWIG_0(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("destroy",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->destroy((char const *)arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6797,20 +5499,13 @@ static int _wrap_Session_destroy__SWIG_1(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("destroy",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6828,7 +5523,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -6842,7 +5537,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -6868,20 +5563,13 @@ static int _wrap_Session_begin_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - SWIG_check_num_args("begin_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_begin_allow_threads"); result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6893,20 +5581,13 @@ static int _wrap_Session_end_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - SWIG_check_num_args("end_allow_threads",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_end_allow_threads"); result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6917,20 +5598,13 @@ static int _wrap_Session_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("check_hangup_hook",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_check_hangup_hook"); (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6943,34 +5617,26 @@ static int _wrap_Session_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; - switch_input_type_t *argp3 ; - SWIG_check_num_args("run_dtmf_callback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); - if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_run_dtmf_callback"); + arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + { + switch_input_type_t * argp; + if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; + arg3 = *argp; } - - arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"Session_run_dtmf_callback"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ - SWIG_fail_ptr("Session_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); - } - arg3 = *argp3; - result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr; + resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -6981,20 +5647,13 @@ static int _wrap_Session_unsetInputCallback(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - SWIG_check_num_args("unsetInputCallback",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_unsetInputCallback"); (arg1)->unsetInputCallback(); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7007,24 +5666,17 @@ static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setInputCallback",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->setInputCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7036,22 +5688,15 @@ static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("setInputCallback",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->setInputCallback(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7069,7 +5714,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7088,7 +5733,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7120,24 +5765,17 @@ static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - SWIG_check_num_args("setHangupHook",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); (arg1)->setHangupHook(arg2,arg3); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7149,22 +5787,15 @@ static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("setHangupHook",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); + arg2 = (char*)lua_tostring(L, 2); (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7182,7 +5813,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7201,7 +5832,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -7232,20 +5863,13 @@ static int _wrap_Session_ready(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - SWIG_check_num_args("ready",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_ready"); result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7260,30 +5884,19 @@ static int _wrap_Session_originate(lua_State* L) { int arg4 ; int result; - SWIG_check_num_args("originate",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ - SWIG_fail_ptr("Session_originate",2,SWIGTYPE_p_CoreSession); - } - - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isnumber(L,4)) SWIG_fail_arg(4); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_originate"); + arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"Session_originate"); + arg3 = (char*)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->originate(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7295,20 +5908,15 @@ static int _wrap_Session_cb_function_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("cb_function",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->cb_function) delete [] arg1->cb_function; if (arg2) { - arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->cb_function, (const char *)arg2); + arg1->cb_function = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->cb_function,arg2); } else { arg1->cb_function = 0; } @@ -7317,8 +5925,6 @@ static int _wrap_Session_cb_function_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7330,20 +5936,13 @@ static int _wrap_Session_cb_function_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("cb_function",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_get"); result = (char *) ((arg1)->cb_function); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7355,20 +5954,15 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("cb_arg",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->cb_arg) delete [] arg1->cb_arg; if (arg2) { - arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->cb_arg, (const char *)arg2); + arg1->cb_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->cb_arg,arg2); } else { arg1->cb_arg = 0; } @@ -7377,8 +5971,6 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7390,20 +5982,13 @@ static int _wrap_Session_cb_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("cb_arg",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_get"); result = (char *) ((arg1)->cb_arg); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7415,20 +6000,15 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("hangup_func_str",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->hangup_func_str) delete [] arg1->hangup_func_str; if (arg2) { - arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->hangup_func_str, (const char *)arg2); + arg1->hangup_func_str = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->hangup_func_str,arg2); } else { arg1->hangup_func_str = 0; } @@ -7437,8 +6017,6 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7450,20 +6028,13 @@ static int _wrap_Session_hangup_func_str_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("hangup_func_str",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_get"); result = (char *) ((arg1)->hangup_func_str); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7475,20 +6046,15 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - SWIG_check_num_args("hangup_func_arg",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_set"); + arg2 = (char*)lua_tostring(L, 2); { if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg; if (arg2) { - arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->hangup_func_arg, (const char *)arg2); + arg1->hangup_func_arg = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->hangup_func_arg,arg2); } else { arg1->hangup_func_arg = 0; } @@ -7497,8 +6063,6 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7510,20 +6074,13 @@ static int _wrap_Session_hangup_func_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - SWIG_check_num_args("hangup_func_arg",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_get"); result = (char *) ((arg1)->hangup_func_arg); SWIG_arg=0; - lua_pushstring(L,(const char*)result); SWIG_arg++; + lua_pushstring(L,result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7535,21 +6092,15 @@ static int _wrap_Session_setLUA(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; lua_State *arg2 = (lua_State *) 0 ; - arg2 = L; - SWIG_check_num_args("setLUA",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setLUA",1,"LUA::Session *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ - SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setLUA"); + arg2=(lua_State *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_lua_State,0,2,"Session_setLUA"); (arg1)->setLUA(arg2); SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7575,15 +6126,14 @@ static swig_lua_method swig_LUA_Session_methods[] = { {0,0} }; static swig_lua_attribute swig_LUA_Session_attributes[] = { - { "cb_function", _wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, - { "cb_arg", _wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, - { "hangup_func_str", _wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, - { "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, + { "cb_function",_wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, + { "cb_arg",_wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, + { "hangup_func_str",_wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, + { "hangup_func_arg",_wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, {0,0,0} }; -static swig_lua_class *swig_LUA_Session_bases[] = {0,0}; -static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0}; -static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names }; +static swig_lua_class *swig_LUA_Session_bases[] = {&_wrap_class_CoreSession,0}; +swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases }; static int _wrap_new_Dbh__SWIG_0(lua_State* L) { int SWIG_arg = -1; @@ -7592,20 +6142,17 @@ static int _wrap_new_Dbh__SWIG_0(lua_State* L) { char *arg3 = (char *) 0 ; LUA::Dbh *result = 0 ; - SWIG_check_num_args("LUA::Dbh",3,3) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7618,18 +6165,15 @@ static int _wrap_new_Dbh__SWIG_1(lua_State* L) { char *arg2 = (char *) 0 ; LUA::Dbh *result = 0 ; - SWIG_check_num_args("LUA::Dbh",2,2) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); - arg1 = (char *)lua_tostring(L, 1); - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1 = (char*)lua_tostring(L, 1); + arg2 = (char*)lua_tostring(L, 2); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7641,16 +6185,13 @@ static int _wrap_new_Dbh__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Dbh *result = 0 ; - SWIG_check_num_args("LUA::Dbh",1,1) - if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); - arg1 = (char *)lua_tostring(L, 1); + if(!lua_isstring(L,1)) SWIG_fail_arg(1); + arg1 = (char*)lua_tostring(L, 1); result = (LUA::Dbh *)new LUA::Dbh(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7716,21 +6257,14 @@ static int _wrap_delete_Dbh(lua_State* L) { int SWIG_arg = -1; LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; - SWIG_check_num_args("LUA::~Dbh",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))){ - SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"delete_Dbh"); delete arg1; SWIG_arg=0; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7742,20 +6276,13 @@ static int _wrap_Dbh_release(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - SWIG_check_num_args("release",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("release",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_release"); result = (bool)(arg1)->release(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7767,20 +6294,13 @@ static int _wrap_Dbh_connected(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - SWIG_check_num_args("connected",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("connected",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_connected"); result = (bool)(arg1)->connected(); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7795,26 +6315,19 @@ static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) { char *arg4 = (char *) 0 ; bool result; - SWIG_check_num_args("test_reactive",4,4) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); - if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); - arg4 = (char *)lua_tostring(L, 4); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + if(!lua_isstring(L,4)) SWIG_fail_arg(4); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); + arg4 = (char*)lua_tostring(L, 4); result = (bool)(arg1)->test_reactive(arg2,arg3,arg4); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7828,24 +6341,17 @@ static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - SWIG_check_num_args("test_reactive",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); - if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (char *)lua_tostring(L, 3); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(!lua_isstring(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); + arg2 = (char*)lua_tostring(L, 2); + arg3 = (char*)lua_tostring(L, 3); result = (bool)(arg1)->test_reactive(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7858,22 +6364,15 @@ static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - SWIG_check_num_args("test_reactive",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); + arg2 = (char*)lua_tostring(L, 2); result = (bool)(arg1)->test_reactive(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -7891,7 +6390,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -7910,7 +6409,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -7934,7 +6433,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -7978,16 +6477,11 @@ static int _wrap_Dbh_query(lua_State* L) { }; arg3 = default_swiglua_fn; } - SWIG_check_num_args("query",2,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("query",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *"); - if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("query",3,"SWIGLUA_FN"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg(3); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_query"); + arg2 = (char*)lua_tostring(L, 2); if(lua_gettop(L)>=3){ { (&arg3)->L = L; @@ -7996,11 +6490,9 @@ static int _wrap_Dbh_query(lua_State* L) { } result = (bool)(arg1)->query(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + lua_pushboolean(L,(int)result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8012,20 +6504,13 @@ static int _wrap_Dbh_affected_rows(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; int result; - SWIG_check_num_args("affected_rows",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh); - } - + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_affected_rows"); result = (int)(arg1)->affected_rows(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8038,22 +6523,15 @@ static int _wrap_Dbh_load_extension(lua_State* L) { char *arg2 = (char *) 0 ; int result; - SWIG_check_num_args("load_extension",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("load_extension",1,"LUA::Dbh *"); - if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ - SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh); - } - - arg2 = (char *)lua_tostring(L, 2); + if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); + if(!lua_isstring(L,2)) SWIG_fail_arg(2); + arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_load_extension"); + arg2 = (char*)lua_tostring(L, 2); result = (int)(arg1)->load_extension((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; - if(0) SWIG_fail; - fail: lua_error(L); return SWIG_arg; @@ -8077,8 +6555,7 @@ static swig_lua_attribute swig_LUA_Dbh_attributes[] = { {0,0,0} }; static swig_lua_class *swig_LUA_Dbh_bases[] = {0}; -static const char *swig_LUA_Dbh_base_names[] = {0}; -static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names }; +swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases }; #ifdef __cplusplus } @@ -8092,6 +6569,145 @@ static const struct luaL_reg swig_commands[] = { { "consoleCleanLog", _wrap_consoleCleanLog}, { "running", _wrap_running}, { "email", _wrap_email}, + { "new_IVRMenu", _wrap_new_IVRMenu}, + { "delete_IVRMenu", _wrap_delete_IVRMenu}, + { "IVRMenu_bindAction", _wrap_IVRMenu_bindAction}, + { "IVRMenu_execute", _wrap_IVRMenu_execute}, + { "new_API", _wrap_new_API}, + { "delete_API", _wrap_delete_API}, + { "API_execute", _wrap_API_execute}, + { "API_executeString", _wrap_API_executeString}, + { "API_getTime", _wrap_API_getTime}, + { "input_callback_state_t_function_set", _wrap_input_callback_state_t_function_set}, + { "input_callback_state_t_function_get", _wrap_input_callback_state_t_function_get}, + { "input_callback_state_t_threadState_set", _wrap_input_callback_state_t_threadState_set}, + { "input_callback_state_t_threadState_get", _wrap_input_callback_state_t_threadState_get}, + { "input_callback_state_t_extra_set", _wrap_input_callback_state_t_extra_set}, + { "input_callback_state_t_extra_get", _wrap_input_callback_state_t_extra_get}, + { "input_callback_state_t_funcargs_set", _wrap_input_callback_state_t_funcargs_set}, + { "input_callback_state_t_funcargs_get", _wrap_input_callback_state_t_funcargs_get}, + { "new_input_callback_state_t", _wrap_new_input_callback_state_t}, + { "delete_input_callback_state_t", _wrap_delete_input_callback_state_t}, + { "DTMF_digit_set", _wrap_DTMF_digit_set}, + { "DTMF_digit_get", _wrap_DTMF_digit_get}, + { "DTMF_duration_set", _wrap_DTMF_duration_set}, + { "DTMF_duration_get", _wrap_DTMF_duration_get}, + { "new_DTMF", _wrap_new_DTMF}, + { "delete_DTMF", _wrap_delete_DTMF}, + { "new_Stream",_wrap_new_Stream}, + { "delete_Stream", _wrap_delete_Stream}, + { "Stream_read", _wrap_Stream_read}, + { "Stream_write", _wrap_Stream_write}, + { "Stream_raw_write", _wrap_Stream_raw_write}, + { "Stream_get_data", _wrap_Stream_get_data}, + { "Event_event_set", _wrap_Event_event_set}, + { "Event_event_get", _wrap_Event_event_get}, + { "Event_serialized_string_set", _wrap_Event_serialized_string_set}, + { "Event_serialized_string_get", _wrap_Event_serialized_string_get}, + { "Event_mine_set", _wrap_Event_mine_set}, + { "Event_mine_get", _wrap_Event_mine_get}, + { "new_Event",_wrap_new_Event}, + { "delete_Event", _wrap_delete_Event}, + { "Event_chat_execute", _wrap_Event_chat_execute}, + { "Event_chat_send", _wrap_Event_chat_send}, + { "Event_serialize", _wrap_Event_serialize}, + { "Event_setPriority", _wrap_Event_setPriority}, + { "Event_getHeader", _wrap_Event_getHeader}, + { "Event_getBody", _wrap_Event_getBody}, + { "Event_getType", _wrap_Event_getType}, + { "Event_addBody", _wrap_Event_addBody}, + { "Event_addHeader", _wrap_Event_addHeader}, + { "Event_delHeader", _wrap_Event_delHeader}, + { "Event_fire", _wrap_Event_fire}, + { "EventConsumer_events_set", _wrap_EventConsumer_events_set}, + { "EventConsumer_events_get", _wrap_EventConsumer_events_get}, + { "EventConsumer_e_event_id_set", _wrap_EventConsumer_e_event_id_set}, + { "EventConsumer_e_event_id_get", _wrap_EventConsumer_e_event_id_get}, + { "EventConsumer_e_callback_set", _wrap_EventConsumer_e_callback_set}, + { "EventConsumer_e_callback_get", _wrap_EventConsumer_e_callback_get}, + { "EventConsumer_e_subclass_name_set", _wrap_EventConsumer_e_subclass_name_set}, + { "EventConsumer_e_subclass_name_get", _wrap_EventConsumer_e_subclass_name_get}, + { "EventConsumer_e_cb_arg_set", _wrap_EventConsumer_e_cb_arg_set}, + { "EventConsumer_e_cb_arg_get", _wrap_EventConsumer_e_cb_arg_get}, + { "EventConsumer_enodes_set", _wrap_EventConsumer_enodes_set}, + { "EventConsumer_enodes_get", _wrap_EventConsumer_enodes_get}, + { "EventConsumer_node_index_set", _wrap_EventConsumer_node_index_set}, + { "EventConsumer_node_index_get", _wrap_EventConsumer_node_index_get}, + { "new_EventConsumer", _wrap_new_EventConsumer}, + { "delete_EventConsumer", _wrap_delete_EventConsumer}, + { "EventConsumer_bind", _wrap_EventConsumer_bind}, + { "EventConsumer_pop", _wrap_EventConsumer_pop}, + { "EventConsumer_cleanup", _wrap_EventConsumer_cleanup}, + { "delete_CoreSession", _wrap_delete_CoreSession}, + { "CoreSession_session_set", _wrap_CoreSession_session_set}, + { "CoreSession_session_get", _wrap_CoreSession_session_get}, + { "CoreSession_channel_set", _wrap_CoreSession_channel_set}, + { "CoreSession_channel_get", _wrap_CoreSession_channel_get}, + { "CoreSession_flags_set", _wrap_CoreSession_flags_set}, + { "CoreSession_flags_get", _wrap_CoreSession_flags_get}, + { "CoreSession_allocated_set", _wrap_CoreSession_allocated_set}, + { "CoreSession_allocated_get", _wrap_CoreSession_allocated_get}, + { "CoreSession_cb_state_set", _wrap_CoreSession_cb_state_set}, + { "CoreSession_cb_state_get", _wrap_CoreSession_cb_state_get}, + { "CoreSession_hook_state_set", _wrap_CoreSession_hook_state_set}, + { "CoreSession_hook_state_get", _wrap_CoreSession_hook_state_get}, + { "CoreSession_cause_set", _wrap_CoreSession_cause_set}, + { "CoreSession_cause_get", _wrap_CoreSession_cause_get}, + { "CoreSession_uuid_set", _wrap_CoreSession_uuid_set}, + { "CoreSession_uuid_get", _wrap_CoreSession_uuid_get}, + { "CoreSession_tts_name_set", _wrap_CoreSession_tts_name_set}, + { "CoreSession_tts_name_get", _wrap_CoreSession_tts_name_get}, + { "CoreSession_voice_name_set", _wrap_CoreSession_voice_name_set}, + { "CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get}, + { "CoreSession_insertFile", _wrap_CoreSession_insertFile}, + { "CoreSession_answer", _wrap_CoreSession_answer}, + { "CoreSession_preAnswer", _wrap_CoreSession_preAnswer}, + { "CoreSession_hangup", _wrap_CoreSession_hangup}, + { "CoreSession_hangupState", _wrap_CoreSession_hangupState}, + { "CoreSession_setVariable", _wrap_CoreSession_setVariable}, + { "CoreSession_setPrivate", _wrap_CoreSession_setPrivate}, + { "CoreSession_getPrivate", _wrap_CoreSession_getPrivate}, + { "CoreSession_getVariable", _wrap_CoreSession_getVariable}, + { "CoreSession_process_callback_result", _wrap_CoreSession_process_callback_result}, + { "CoreSession_say", _wrap_CoreSession_say}, + { "CoreSession_sayPhrase", _wrap_CoreSession_sayPhrase}, + { "CoreSession_hangupCause", _wrap_CoreSession_hangupCause}, + { "CoreSession_getState", _wrap_CoreSession_getState}, + { "CoreSession_recordFile", _wrap_CoreSession_recordFile}, + { "CoreSession_originate", _wrap_CoreSession_originate}, + { "CoreSession_destroy", _wrap_CoreSession_destroy}, + { "CoreSession_setDTMFCallback", _wrap_CoreSession_setDTMFCallback}, + { "CoreSession_speak", _wrap_CoreSession_speak}, + { "CoreSession_set_tts_parms", _wrap_CoreSession_set_tts_parms}, + { "CoreSession_set_tts_params", _wrap_CoreSession_set_tts_params}, + { "CoreSession_collectDigits",_wrap_CoreSession_collectDigits}, + { "CoreSession_getDigits",_wrap_CoreSession_getDigits}, + { "CoreSession_transfer", _wrap_CoreSession_transfer}, + { "CoreSession_read", _wrap_CoreSession_read}, + { "CoreSession_playAndGetDigits", _wrap_CoreSession_playAndGetDigits}, + { "CoreSession_streamFile", _wrap_CoreSession_streamFile}, + { "CoreSession_sleep", _wrap_CoreSession_sleep}, + { "CoreSession_flushEvents", _wrap_CoreSession_flushEvents}, + { "CoreSession_flushDigits", _wrap_CoreSession_flushDigits}, + { "CoreSession_setAutoHangup", _wrap_CoreSession_setAutoHangup}, + { "CoreSession_setHangupHook", _wrap_CoreSession_setHangupHook}, + { "CoreSession_ready", _wrap_CoreSession_ready}, + { "CoreSession_bridged", _wrap_CoreSession_bridged}, + { "CoreSession_answered", _wrap_CoreSession_answered}, + { "CoreSession_mediaReady", _wrap_CoreSession_mediaReady}, + { "CoreSession_waitForAnswer", _wrap_CoreSession_waitForAnswer}, + { "CoreSession_execute", _wrap_CoreSession_execute}, + { "CoreSession_sendEvent", _wrap_CoreSession_sendEvent}, + { "CoreSession_setEventData", _wrap_CoreSession_setEventData}, + { "CoreSession_getXMLCDR", _wrap_CoreSession_getXMLCDR}, + { "CoreSession_begin_allow_threads", _wrap_CoreSession_begin_allow_threads}, + { "CoreSession_end_allow_threads", _wrap_CoreSession_end_allow_threads}, + { "CoreSession_get_uuid", _wrap_CoreSession_get_uuid}, + { "CoreSession_get_cb_args", _wrap_CoreSession_get_cb_args}, + { "CoreSession_check_hangup_hook", _wrap_CoreSession_check_hangup_hook}, + { "CoreSession_run_dtmf_callback", _wrap_CoreSession_run_dtmf_callback}, + { "CoreSession_consoleLog", _wrap_CoreSession_consoleLog}, + { "CoreSession_consoleLog2", _wrap_CoreSession_consoleLog2}, { "console_log", _wrap_console_log}, { "console_log2", _wrap_console_log2}, { "console_clean_log", _wrap_console_clean_log}, @@ -8099,6 +6715,35 @@ static const struct luaL_reg swig_commands[] = { { "bridge", _wrap_bridge}, { "hanguphook", _wrap_hanguphook}, { "dtmf_callback", _wrap_dtmf_callback}, + { "new_Session",_wrap_new_Session}, + { "delete_Session", _wrap_delete_Session}, + { "Session_destroy",_wrap_Session_destroy}, + { "Session_begin_allow_threads", _wrap_Session_begin_allow_threads}, + { "Session_end_allow_threads", _wrap_Session_end_allow_threads}, + { "Session_check_hangup_hook", _wrap_Session_check_hangup_hook}, + { "Session_run_dtmf_callback", _wrap_Session_run_dtmf_callback}, + { "Session_unsetInputCallback", _wrap_Session_unsetInputCallback}, + { "Session_setInputCallback",_wrap_Session_setInputCallback}, + { "Session_setHangupHook",_wrap_Session_setHangupHook}, + { "Session_ready", _wrap_Session_ready}, + { "Session_originate", _wrap_Session_originate}, + { "Session_cb_function_set", _wrap_Session_cb_function_set}, + { "Session_cb_function_get", _wrap_Session_cb_function_get}, + { "Session_cb_arg_set", _wrap_Session_cb_arg_set}, + { "Session_cb_arg_get", _wrap_Session_cb_arg_get}, + { "Session_hangup_func_str_set", _wrap_Session_hangup_func_str_set}, + { "Session_hangup_func_str_get", _wrap_Session_hangup_func_str_get}, + { "Session_hangup_func_arg_set", _wrap_Session_hangup_func_arg_set}, + { "Session_hangup_func_arg_get", _wrap_Session_hangup_func_arg_get}, + { "Session_setLUA", _wrap_Session_setLUA}, + { "new_Dbh",_wrap_new_Dbh}, + { "delete_Dbh", _wrap_delete_Dbh}, + { "Dbh_release", _wrap_Dbh_release}, + { "Dbh_connected", _wrap_Dbh_connected}, + { "Dbh_test_reactive",_wrap_Dbh_test_reactive}, + { "Dbh_query", _wrap_Dbh_query}, + { "Dbh_affected_rows", _wrap_Dbh_affected_rows}, + { "Dbh_load_extension", _wrap_Dbh_load_extension}, {0,0} }; @@ -8115,9 +6760,10 @@ static swig_lua_const_info swig_constants[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) { +static void *_p_LUA__SessionTo_p_CoreSession(void *x) { return (void *)((CoreSession *) ((LUA::Session *) x)); } +static swig_type_info _swigt__SWIGLUA_FN = {"_SWIGLUA_FN", "SWIGLUA_FN", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0}; static swig_type_info _swigt__p_CoreSession = {"_p_CoreSession", "CoreSession *", 0, 0, (void*)&_wrap_class_CoreSession, 0}; static swig_type_info _swigt__p_DTMF = {"_p_DTMF", "DTMF *", 0, 0, (void*)&_wrap_class_DTMF, 0}; @@ -8126,9 +6772,8 @@ static swig_type_info _swigt__p_EventConsumer = {"_p_EventConsumer", "EventConsu static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (void*)&_wrap_class_IVRMenu, 0}; static swig_type_info _swigt__p_LUA__Dbh = {"_p_LUA__Dbh", "LUA::Dbh *", 0, 0, (void*)&_wrap_class_LUA_Dbh, 0}; static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0}; -static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; @@ -8148,8 +6793,15 @@ static swig_type_info _swigt__p_switch_status_t = {"_p_switch_status_t", "switch static swig_type_info _swigt__p_switch_stream_handle_t = {"_p_switch_stream_handle_t", "switch_stream_handle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_call_cause_t = {"_switch_call_cause_t", "switch_call_cause_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_channel_state_t = {"_switch_channel_state_t", "switch_channel_state_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_event_types_t = {"_switch_event_types_t", "switch_event_types_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_input_type_t = {"_switch_input_type_t", "switch_input_type_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__switch_priority_t = {"_switch_priority_t", "switch_priority_t", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__uint32_t = {"_uint32_t", "uint32_t", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { + &_swigt__SWIGLUA_FN, &_swigt__p_API, &_swigt__p_CoreSession, &_swigt__p_DTMF, @@ -8158,7 +6810,6 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_IVRMenu, &_swigt__p_LUA__Dbh, &_swigt__p_LUA__Session, - &_swigt__p_SWIGLUA_FN, &_swigt__p_Stream, &_swigt__p_input_callback_state, &_swigt__p_int, @@ -8180,8 +6831,15 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_switch_stream_handle_t, &_swigt__p_uint32_t, &_swigt__p_void, + &_swigt__switch_call_cause_t, + &_swigt__switch_channel_state_t, + &_swigt__switch_event_types_t, + &_swigt__switch_input_type_t, + &_swigt__switch_priority_t, + &_swigt__uint32_t, }; +static swig_cast_info _swigc__SWIGLUA_FN[] = { {&_swigt__SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_API[] = { {&_swigt__p_API, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CoreSession[] = { {&_swigt__p_CoreSession, 0, 0, 0}, {&_swigt__p_LUA__Session, _p_LUA__SessionTo_p_CoreSession, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_DTMF[] = { {&_swigt__p_DTMF, 0, 0, 0},{0, 0, 0, 0}}; @@ -8190,7 +6848,6 @@ static swig_cast_info _swigc__p_EventConsumer[] = { {&_swigt__p_EventConsumer, static swig_cast_info _swigc__p_IVRMenu[] = { {&_swigt__p_IVRMenu, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Dbh[] = { {&_swigt__p_LUA__Dbh, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SWIGLUA_FN[] = { {&_swigt__p_SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_callback_state, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; @@ -8212,8 +6869,15 @@ static swig_cast_info _swigc__p_switch_status_t[] = { {&_swigt__p_switch_status static swig_cast_info _swigc__p_switch_stream_handle_t[] = { {&_swigt__p_switch_stream_handle_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_call_cause_t[] = { {&_swigt__switch_call_cause_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_channel_state_t[] = { {&_swigt__switch_channel_state_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_event_types_t[] = { {&_swigt__switch_event_types_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_input_type_t[] = { {&_swigt__switch_input_type_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__switch_priority_t[] = { {&_swigt__switch_priority_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__uint32_t[] = { {&_swigt__uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { + _swigc__SWIGLUA_FN, _swigc__p_API, _swigc__p_CoreSession, _swigc__p_DTMF, @@ -8222,7 +6886,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_IVRMenu, _swigc__p_LUA__Dbh, _swigc__p_LUA__Session, - _swigc__p_SWIGLUA_FN, _swigc__p_Stream, _swigc__p_input_callback_state, _swigc__p_int, @@ -8244,6 +6907,12 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_switch_stream_handle_t, _swigc__p_uint32_t, _swigc__p_void, + _swigc__switch_call_cause_t, + _swigc__switch_channel_state_t, + _swigc__switch_event_types_t, + _swigc__switch_input_type_t, + _swigc__switch_priority_t, + _swigc__uint32_t, }; @@ -8263,7 +6932,7 @@ static swig_cast_info *swig_cast_initial[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. + * array. We just loop though that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -8301,58 +6970,32 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif - SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head, *iter; - int found, init; + swig_module_info *module_head; + static int init_run = 0; clientdata = clientdata; - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } + if (init_run) return; + init_run = 1; + + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + if (module_head) { swig_module.next = module_head->next; module_head->next = &swig_module; + } else { + /* This is the first module loaded */ + swig_module.next = &swig_module; + SWIG_SetModule(clientdata, &swig_module); } - - /* When multiple interpeters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -8489,56 +7132,73 @@ SWIG_PropagateClientData(void) { /* Forward declaration of where the user's %init{} gets inserted */ -void SWIG_init_user(lua_State* L ); - #ifdef __cplusplus extern "C" { #endif +void SWIG_init_user(lua_State* L ); + /* this is the initialization function - added at the very end of the code - the function is always called SWIG_init, but an eariler #define will rename it + added at the very end of the code + the function is always called SWIG_init, but an eariler #define will rename it */ SWIGEXPORT int SWIG_init(lua_State* L) { - int i; - /* start with global table */ - lua_pushvalue(L,LUA_GLOBALSINDEX); - /* SWIG's internal initalisation */ - SWIG_InitializeModule((void*)L); - SWIG_PropagateClientData(); - /* add a global fn */ - SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } - /* set up base class pointers (the hierachy) */ - for (i = 0; swig_types[i]; i++){ - if (swig_types[i]->clientdata){ - SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); - } - } - /* additional registration structs & classes in lua */ - for (i = 0; swig_types[i]; i++){ - if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); - } - } - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); - /* invoke user-specific initialization */ - SWIG_init_user(L); - /* end module */ - lua_pop(L,1); /* tidy stack (remove module table)*/ - lua_pop(L,1); /* tidy stack (remove global table)*/ - return 1; + int i; + + /* start with global table */ + lua_pushvalue(L,LUA_GLOBALSINDEX); + + SWIG_InitializeModule((void*)L); + SWIG_PropagateClientData(); + + /* invoke user-specific initialization */ + SWIG_init_user(L); + + /* add a global fn */ + SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); + + /* begin the module (its a table with the same name as the module) */ + SWIG_Lua_module_begin(L,SWIG_name); + /* add commands/functions */ + for (i = 0; swig_commands[i].name; i++){ + SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); + } + /*luaL_openlib(L,NULL,swig_commands,0);*/ + /* all in one */ + /*luaL_openlib(L,SWIG_name,swig_commands,0);*/ + /* add variables */ + for (i = 0; swig_variables[i].name; i++){ + SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); + } + + /* additional registration structs & classes in lua: */ + for (i = 0; swig_types[i]; i++){ + if (swig_types[i]->clientdata){ + SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + } + } + + /* constants */ + SWIG_Lua_InstallConstants(L,swig_constants); + + /* end module */ + /*SWIG_Lua_module_end(L);*/ + lua_pop(L,1); /* tidy stack (remove module table)*/ + lua_pop(L,1); /* tidy stack (remove global table)*/ + + return 1; +} + +/* Lua 5.1 has a different name for importing libraries +luaopen_XXX, where XXX is the name of the module (not capitalised) +this function will allow Lua 5.1 to import correctly. +There is a #define in the wrapper to rename 'SWIG_import' to the correct name +*/ + +SWIGEXPORT int SWIG_import(lua_State* L) +{ + return SWIG_init(L); } #ifdef __cplusplus @@ -8546,13 +7206,12 @@ SWIGEXPORT int SWIG_init(lua_State* L) #endif -const char* SWIG_LUACODE= - ""; - +#ifdef __cplusplus +extern "C" +#endif void SWIG_init_user(lua_State* L) { - /* exec Lua code if applicable */ - SWIG_Lua_dostring(L,SWIG_LUACODE); + } #include "mod_lua_extra.c" From 452a4c1b05e083f6f3d568c13cc6714cca1cafa6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 27 Apr 2015 12:35:38 -0500 Subject: [PATCH 62/97] swigall --- .../mod_java/src/org/freeswitch/swig/API.java | 12 +- .../src/org/freeswitch/swig/CoreSession.java | 146 +- .../src/org/freeswitch/swig/DTMF.java | 12 +- .../src/org/freeswitch/swig/Event.java | 38 +- .../org/freeswitch/swig/EventConsumer.java | 38 +- .../src/org/freeswitch/swig/IVRMenu.java | 10 +- .../src/org/freeswitch/swig/JavaSession.java | 18 +- .../freeswitch/swig/SWIGTYPE_p_JavaVM.java | 2 +- .../org/freeswitch/swig/SWIGTYPE_p_int.java | 2 +- .../SWIGTYPE_p_p_switch_event_node_t.java | 2 +- .../swig/SWIGTYPE_p_switch_call_cause_t.java | 2 +- .../SWIGTYPE_p_switch_channel_state_t.java | 2 +- .../swig/SWIGTYPE_p_switch_channel_t.java | 2 +- .../SWIGTYPE_p_switch_core_session_t.java | 2 +- .../swig/SWIGTYPE_p_switch_event_t.java | 2 +- .../swig/SWIGTYPE_p_switch_event_types_t.java | 2 +- .../swig/SWIGTYPE_p_switch_input_args_t.java | 2 +- .../swig/SWIGTYPE_p_switch_input_type_t.java | 2 +- .../swig/SWIGTYPE_p_switch_priority_t.java | 2 +- .../swig/SWIGTYPE_p_switch_queue_t.java | 2 +- ...IGTYPE_p_switch_state_handler_table_t.java | 2 +- .../swig/SWIGTYPE_p_switch_status_t.java | 2 +- .../SWIGTYPE_p_switch_stream_handle_t.java | 2 +- .../freeswitch/swig/SWIGTYPE_p_uint32_t.java | 2 +- .../org/freeswitch/swig/SWIGTYPE_p_void.java | 2 +- .../src/org/freeswitch/swig/Stream.java | 12 +- .../src/org/freeswitch/swig/freeswitch.java | 4 +- .../org/freeswitch/swig/freeswitchJNI.java | 274 +- .../swig/input_callback_state_t.java | 20 +- .../org/freeswitch/swig/session_flag_t.java | 5 +- .../languages/mod_java/switch_swig_wrap.cpp | 842 +- src/mod/languages/mod_lua/mod_lua_wrap.cpp | 4613 +- .../languages/mod_managed/freeswitch_wrap.cxx | 45121 ++++++++++++++++ src/mod/languages/mod_managed/managed/swig.cs | 40840 ++++++++++++++ src/mod/languages/mod_perl/freeswitch.pm | 5 +- src/mod/languages/mod_perl/mod_perl_wrap.cpp | 665 +- src/mod/languages/mod_python/freeswitch.py | 74 +- .../languages/mod_python/mod_python_wrap.cpp | 611 +- .../legacy/languages/mod_lua/mod_lua_wrap.cpp | 4611 +- 39 files changed, 93498 insertions(+), 4509 deletions(-) create mode 100644 src/mod/languages/mod_managed/freeswitch_wrap.cxx create mode 100644 src/mod/languages/mod_managed/managed/swig.cs diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java index 4c1640f5e3..5fd3da9bb0 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class API { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_API(swigCPtr); @@ -34,19 +34,19 @@ public class API { } public API(CoreSession s) { - this(freeswitchJNI.new_API(CoreSession.getCPtr(s)), true); + this(freeswitchJNI.new_API(CoreSession.getCPtr(s), s), true); } public String execute(String command, String data) { - return freeswitchJNI.API_execute(swigCPtr, command, data); + return freeswitchJNI.API_execute(swigCPtr, this, command, data); } public String executeString(String command) { - return freeswitchJNI.API_executeString(swigCPtr, command); + return freeswitchJNI.API_executeString(swigCPtr, this, command); } public String getTime() { - return freeswitchJNI.API_getTime(swigCPtr); + return freeswitchJNI.API_getTime(swigCPtr, this); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java index b993399944..e8f8f35a6e 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class CoreSession { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_CoreSession(swigCPtr); @@ -34,291 +34,291 @@ public class CoreSession { } public void setSession(SWIGTYPE_p_switch_core_session_t value) { - freeswitchJNI.CoreSession_session_set(swigCPtr, SWIGTYPE_p_switch_core_session_t.getCPtr(value)); + freeswitchJNI.CoreSession_session_set(swigCPtr, this, SWIGTYPE_p_switch_core_session_t.getCPtr(value)); } public SWIGTYPE_p_switch_core_session_t getSession() { - long cPtr = freeswitchJNI.CoreSession_session_get(swigCPtr); + long cPtr = freeswitchJNI.CoreSession_session_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_core_session_t(cPtr, false); } public void setChannel(SWIGTYPE_p_switch_channel_t value) { - freeswitchJNI.CoreSession_channel_set(swigCPtr, SWIGTYPE_p_switch_channel_t.getCPtr(value)); + freeswitchJNI.CoreSession_channel_set(swigCPtr, this, SWIGTYPE_p_switch_channel_t.getCPtr(value)); } public SWIGTYPE_p_switch_channel_t getChannel() { - long cPtr = freeswitchJNI.CoreSession_channel_get(swigCPtr); + long cPtr = freeswitchJNI.CoreSession_channel_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_channel_t(cPtr, false); } public void setFlags(long value) { - freeswitchJNI.CoreSession_flags_set(swigCPtr, value); + freeswitchJNI.CoreSession_flags_set(swigCPtr, this, value); } public long getFlags() { - return freeswitchJNI.CoreSession_flags_get(swigCPtr); + return freeswitchJNI.CoreSession_flags_get(swigCPtr, this); } public void setAllocated(int value) { - freeswitchJNI.CoreSession_allocated_set(swigCPtr, value); + freeswitchJNI.CoreSession_allocated_set(swigCPtr, this, value); } public int getAllocated() { - return freeswitchJNI.CoreSession_allocated_get(swigCPtr); + return freeswitchJNI.CoreSession_allocated_get(swigCPtr, this); } public void setCb_state(input_callback_state_t value) { - freeswitchJNI.CoreSession_cb_state_set(swigCPtr, input_callback_state_t.getCPtr(value)); + freeswitchJNI.CoreSession_cb_state_set(swigCPtr, this, input_callback_state_t.getCPtr(value), value); } public input_callback_state_t getCb_state() { - long cPtr = freeswitchJNI.CoreSession_cb_state_get(swigCPtr); + long cPtr = freeswitchJNI.CoreSession_cb_state_get(swigCPtr, this); return (cPtr == 0) ? null : new input_callback_state_t(cPtr, false); } public void setHook_state(SWIGTYPE_p_switch_channel_state_t value) { - freeswitchJNI.CoreSession_hook_state_set(swigCPtr, SWIGTYPE_p_switch_channel_state_t.getCPtr(value)); + freeswitchJNI.CoreSession_hook_state_set(swigCPtr, this, SWIGTYPE_p_switch_channel_state_t.getCPtr(value)); } public SWIGTYPE_p_switch_channel_state_t getHook_state() { - return new SWIGTYPE_p_switch_channel_state_t(freeswitchJNI.CoreSession_hook_state_get(swigCPtr), true); + 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, SWIGTYPE_p_switch_call_cause_t.getCPtr(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), true); + 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, value); + freeswitchJNI.CoreSession_uuid_set(swigCPtr, this, value); } public String getUuid() { - return freeswitchJNI.CoreSession_uuid_get(swigCPtr); + return freeswitchJNI.CoreSession_uuid_get(swigCPtr, this); } public void setTts_name(String value) { - freeswitchJNI.CoreSession_tts_name_set(swigCPtr, value); + freeswitchJNI.CoreSession_tts_name_set(swigCPtr, this, value); } public String getTts_name() { - return freeswitchJNI.CoreSession_tts_name_get(swigCPtr); + return freeswitchJNI.CoreSession_tts_name_get(swigCPtr, this); } public void setVoice_name(String value) { - freeswitchJNI.CoreSession_voice_name_set(swigCPtr, value); + freeswitchJNI.CoreSession_voice_name_set(swigCPtr, this, value); } public String getVoice_name() { - return freeswitchJNI.CoreSession_voice_name_get(swigCPtr); + return freeswitchJNI.CoreSession_voice_name_get(swigCPtr, this); } public int insertFile(String file, String insert_file, int sample_point) { - return freeswitchJNI.CoreSession_insertFile(swigCPtr, file, insert_file, sample_point); + return freeswitchJNI.CoreSession_insertFile(swigCPtr, this, file, insert_file, sample_point); } public int answer() { - return freeswitchJNI.CoreSession_answer(swigCPtr); + return freeswitchJNI.CoreSession_answer(swigCPtr, this); } public int preAnswer() { - return freeswitchJNI.CoreSession_preAnswer(swigCPtr); + return freeswitchJNI.CoreSession_preAnswer(swigCPtr, this); } public void hangup(String cause) { - freeswitchJNI.CoreSession_hangup(swigCPtr, cause); + freeswitchJNI.CoreSession_hangup(swigCPtr, this, cause); } public void hangupState() { - freeswitchJNI.CoreSession_hangupState(swigCPtr); + freeswitchJNI.CoreSession_hangupState(swigCPtr, this); } public void setVariable(String var, String val) { - freeswitchJNI.CoreSession_setVariable(swigCPtr, var, val); + freeswitchJNI.CoreSession_setVariable(swigCPtr, this, var, val); } public void setPrivate(String var, SWIGTYPE_p_void val) { - freeswitchJNI.CoreSession_setPrivate(swigCPtr, var, SWIGTYPE_p_void.getCPtr(val)); + freeswitchJNI.CoreSession_setPrivate(swigCPtr, this, var, SWIGTYPE_p_void.getCPtr(val)); } public SWIGTYPE_p_void getPrivate(String var) { - long cPtr = freeswitchJNI.CoreSession_getPrivate(swigCPtr, var); + long cPtr = freeswitchJNI.CoreSession_getPrivate(swigCPtr, this, var); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public String getVariable(String var) { - return freeswitchJNI.CoreSession_getVariable(swigCPtr, var); + return freeswitchJNI.CoreSession_getVariable(swigCPtr, this, var); } public SWIGTYPE_p_switch_status_t process_callback_result(String result) { - return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_process_callback_result(swigCPtr, result), true); + return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_process_callback_result(swigCPtr, this, result), true); } public void say(String tosay, String module_name, String say_type, String say_method, String say_gender) { - freeswitchJNI.CoreSession_say(swigCPtr, tosay, module_name, say_type, say_method, say_gender); + freeswitchJNI.CoreSession_say(swigCPtr, this, tosay, module_name, say_type, say_method, say_gender); } public void sayPhrase(String phrase_name, String phrase_data, String phrase_lang) { - freeswitchJNI.CoreSession_sayPhrase(swigCPtr, phrase_name, phrase_data, phrase_lang); + freeswitchJNI.CoreSession_sayPhrase(swigCPtr, this, phrase_name, phrase_data, phrase_lang); } public String hangupCause() { - return freeswitchJNI.CoreSession_hangupCause(swigCPtr); + return freeswitchJNI.CoreSession_hangupCause(swigCPtr, this); } public String getState() { - return freeswitchJNI.CoreSession_getState(swigCPtr); + return freeswitchJNI.CoreSession_getState(swigCPtr, this); } public int recordFile(String file_name, int time_limit, int silence_threshold, int silence_hits) { - return freeswitchJNI.CoreSession_recordFile(swigCPtr, file_name, time_limit, silence_threshold, silence_hits); + return freeswitchJNI.CoreSession_recordFile(swigCPtr, this, file_name, time_limit, silence_threshold, silence_hits); } protected int originate(CoreSession a_leg_session, String dest, int timeout, SWIGTYPE_p_switch_state_handler_table_t handlers) { - return freeswitchJNI.CoreSession_originate(swigCPtr, CoreSession.getCPtr(a_leg_session), dest, timeout, SWIGTYPE_p_switch_state_handler_table_t.getCPtr(handlers)); + return freeswitchJNI.CoreSession_originate(swigCPtr, this, CoreSession.getCPtr(a_leg_session), a_leg_session, dest, timeout, SWIGTYPE_p_switch_state_handler_table_t.getCPtr(handlers)); } public void destroy() { - freeswitchJNI.CoreSession_destroy(swigCPtr); + freeswitchJNI.CoreSession_destroy(swigCPtr, this); } public void setDTMFCallback(SWIGTYPE_p_void cbfunc, String funcargs) { - freeswitchJNI.CoreSession_setDTMFCallback(swigCPtr, SWIGTYPE_p_void.getCPtr(cbfunc), funcargs); + freeswitchJNI.CoreSession_setDTMFCallback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(cbfunc), funcargs); } public int speak(String text) { - return freeswitchJNI.CoreSession_speak(swigCPtr, text); + return freeswitchJNI.CoreSession_speak(swigCPtr, this, text); } public void set_tts_parms(String tts_name, String voice_name) { - freeswitchJNI.CoreSession_set_tts_parms(swigCPtr, tts_name, voice_name); + freeswitchJNI.CoreSession_set_tts_parms(swigCPtr, this, tts_name, voice_name); } public void set_tts_params(String tts_name, String voice_name) { - freeswitchJNI.CoreSession_set_tts_params(swigCPtr, tts_name, voice_name); + freeswitchJNI.CoreSession_set_tts_params(swigCPtr, this, tts_name, voice_name); } public int collectDigits(int abs_timeout) { - return freeswitchJNI.CoreSession_collectDigits__SWIG_0(swigCPtr, abs_timeout); + return freeswitchJNI.CoreSession_collectDigits__SWIG_0(swigCPtr, this, abs_timeout); } public int collectDigits(int digit_timeout, int abs_timeout) { - return freeswitchJNI.CoreSession_collectDigits__SWIG_1(swigCPtr, digit_timeout, abs_timeout); + return freeswitchJNI.CoreSession_collectDigits__SWIG_1(swigCPtr, this, digit_timeout, abs_timeout); } public String getDigits(int maxdigits, String terminators, int timeout) { - return freeswitchJNI.CoreSession_getDigits__SWIG_0(swigCPtr, maxdigits, terminators, timeout); + return freeswitchJNI.CoreSession_getDigits__SWIG_0(swigCPtr, this, maxdigits, terminators, timeout); } public String getDigits(int maxdigits, String terminators, int timeout, int interdigit) { - return freeswitchJNI.CoreSession_getDigits__SWIG_1(swigCPtr, maxdigits, terminators, timeout, interdigit); + return freeswitchJNI.CoreSession_getDigits__SWIG_1(swigCPtr, this, maxdigits, terminators, timeout, interdigit); } public int transfer(String extension, String dialplan, String context) { - return freeswitchJNI.CoreSession_transfer(swigCPtr, extension, dialplan, context); + return freeswitchJNI.CoreSession_transfer(swigCPtr, this, extension, dialplan, context); } public String read(int min_digits, int max_digits, String prompt_audio_file, int timeout, String valid_terminators, int digit_timeout) { - return freeswitchJNI.CoreSession_read(swigCPtr, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout); + return freeswitchJNI.CoreSession_read(swigCPtr, this, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout); } public String playAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, String terminators, String audio_files, String bad_input_audio_files, String digits_regex, String var_name, int digit_timeout, String transfer_on_failure) { - return freeswitchJNI.CoreSession_playAndGetDigits(swigCPtr, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure); + return freeswitchJNI.CoreSession_playAndGetDigits(swigCPtr, this, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure); } public int streamFile(String file, int starting_sample_count) { - return freeswitchJNI.CoreSession_streamFile(swigCPtr, file, starting_sample_count); + return freeswitchJNI.CoreSession_streamFile(swigCPtr, this, file, starting_sample_count); } public int sleep(int ms, int sync) { - return freeswitchJNI.CoreSession_sleep(swigCPtr, ms, sync); + return freeswitchJNI.CoreSession_sleep(swigCPtr, this, ms, sync); } public int flushEvents() { - return freeswitchJNI.CoreSession_flushEvents(swigCPtr); + return freeswitchJNI.CoreSession_flushEvents(swigCPtr, this); } public int flushDigits() { - return freeswitchJNI.CoreSession_flushDigits(swigCPtr); + return freeswitchJNI.CoreSession_flushDigits(swigCPtr, this); } public int setAutoHangup(boolean val) { - return freeswitchJNI.CoreSession_setAutoHangup(swigCPtr, val); + return freeswitchJNI.CoreSession_setAutoHangup(swigCPtr, this, val); } public void setHangupHook(SWIGTYPE_p_void hangup_func) { - freeswitchJNI.CoreSession_setHangupHook(swigCPtr, SWIGTYPE_p_void.getCPtr(hangup_func)); + freeswitchJNI.CoreSession_setHangupHook(swigCPtr, this, SWIGTYPE_p_void.getCPtr(hangup_func)); } public boolean ready() { - return freeswitchJNI.CoreSession_ready(swigCPtr); + return freeswitchJNI.CoreSession_ready(swigCPtr, this); } public boolean bridged() { - return freeswitchJNI.CoreSession_bridged(swigCPtr); + return freeswitchJNI.CoreSession_bridged(swigCPtr, this); } public boolean answered() { - return freeswitchJNI.CoreSession_answered(swigCPtr); + return freeswitchJNI.CoreSession_answered(swigCPtr, this); } public boolean mediaReady() { - return freeswitchJNI.CoreSession_mediaReady(swigCPtr); + return freeswitchJNI.CoreSession_mediaReady(swigCPtr, this); } public void waitForAnswer(CoreSession calling_session) { - freeswitchJNI.CoreSession_waitForAnswer(swigCPtr, CoreSession.getCPtr(calling_session)); + freeswitchJNI.CoreSession_waitForAnswer(swigCPtr, this, CoreSession.getCPtr(calling_session), calling_session); } public void execute(String app, String data) { - freeswitchJNI.CoreSession_execute(swigCPtr, app, data); + freeswitchJNI.CoreSession_execute(swigCPtr, this, app, data); } public void sendEvent(Event sendME) { - freeswitchJNI.CoreSession_sendEvent(swigCPtr, Event.getCPtr(sendME)); + freeswitchJNI.CoreSession_sendEvent(swigCPtr, this, Event.getCPtr(sendME), sendME); } public void setEventData(Event e) { - freeswitchJNI.CoreSession_setEventData(swigCPtr, Event.getCPtr(e)); + freeswitchJNI.CoreSession_setEventData(swigCPtr, this, Event.getCPtr(e), e); } public String getXMLCDR() { - return freeswitchJNI.CoreSession_getXMLCDR(swigCPtr); + return freeswitchJNI.CoreSession_getXMLCDR(swigCPtr, this); } public boolean begin_allow_threads() { - return freeswitchJNI.CoreSession_begin_allow_threads(swigCPtr); + return freeswitchJNI.CoreSession_begin_allow_threads(swigCPtr, this); } public boolean end_allow_threads() { - return freeswitchJNI.CoreSession_end_allow_threads(swigCPtr); + return freeswitchJNI.CoreSession_end_allow_threads(swigCPtr, this); } public String get_uuid() { - return freeswitchJNI.CoreSession_get_uuid(swigCPtr); + return freeswitchJNI.CoreSession_get_uuid(swigCPtr, this); } public SWIGTYPE_p_switch_input_args_t get_cb_args() { - return new SWIGTYPE_p_switch_input_args_t(freeswitchJNI.CoreSession_get_cb_args(swigCPtr), false); + return new SWIGTYPE_p_switch_input_args_t(freeswitchJNI.CoreSession_get_cb_args(swigCPtr, this), false); } public void check_hangup_hook() { - freeswitchJNI.CoreSession_check_hangup_hook(swigCPtr); + freeswitchJNI.CoreSession_check_hangup_hook(swigCPtr, this); } public SWIGTYPE_p_switch_status_t run_dtmf_callback(SWIGTYPE_p_void input, SWIGTYPE_p_switch_input_type_t itype) { - return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_run_dtmf_callback(swigCPtr, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); + return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_run_dtmf_callback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); } public void consoleLog(String level_str, String msg) { - freeswitchJNI.CoreSession_consoleLog(swigCPtr, level_str, msg); + freeswitchJNI.CoreSession_consoleLog(swigCPtr, this, level_str, msg); } public void consoleLog2(String level_str, String file, String func, int line, String msg) { - freeswitchJNI.CoreSession_consoleLog2(swigCPtr, level_str, file, func, line, msg); + freeswitchJNI.CoreSession_consoleLog2(swigCPtr, this, level_str, file, func, line, msg); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java index f3a97d9900..81e949d285 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/DTMF.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class DTMF { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_DTMF(swigCPtr); @@ -34,19 +34,19 @@ public class DTMF { } public void setDigit(char value) { - freeswitchJNI.DTMF_digit_set(swigCPtr, value); + freeswitchJNI.DTMF_digit_set(swigCPtr, this, value); } public char getDigit() { - return freeswitchJNI.DTMF_digit_get(swigCPtr); + return freeswitchJNI.DTMF_digit_get(swigCPtr, this); } public void setDuration(SWIGTYPE_p_uint32_t value) { - freeswitchJNI.DTMF_duration_set(swigCPtr, SWIGTYPE_p_uint32_t.getCPtr(value)); + freeswitchJNI.DTMF_duration_set(swigCPtr, this, SWIGTYPE_p_uint32_t.getCPtr(value)); } public SWIGTYPE_p_uint32_t getDuration() { - return new SWIGTYPE_p_uint32_t(freeswitchJNI.DTMF_duration_get(swigCPtr), true); + return new SWIGTYPE_p_uint32_t(freeswitchJNI.DTMF_duration_get(swigCPtr, this), true); } public DTMF(char idigit, SWIGTYPE_p_uint32_t iduration) { diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java index 731d33031d..d1adc09dc6 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class Event { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_Event(swigCPtr); @@ -34,28 +34,28 @@ public class Event { } public void setEvent(SWIGTYPE_p_switch_event_t value) { - freeswitchJNI.Event_event_set(swigCPtr, SWIGTYPE_p_switch_event_t.getCPtr(value)); + freeswitchJNI.Event_event_set(swigCPtr, this, SWIGTYPE_p_switch_event_t.getCPtr(value)); } public SWIGTYPE_p_switch_event_t getEvent() { - long cPtr = freeswitchJNI.Event_event_get(swigCPtr); + long cPtr = freeswitchJNI.Event_event_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_event_t(cPtr, false); } public void setSerialized_string(String value) { - freeswitchJNI.Event_serialized_string_set(swigCPtr, value); + freeswitchJNI.Event_serialized_string_set(swigCPtr, this, value); } public String getSerialized_string() { - return freeswitchJNI.Event_serialized_string_get(swigCPtr); + return freeswitchJNI.Event_serialized_string_get(swigCPtr, this); } public void setMine(int value) { - freeswitchJNI.Event_mine_set(swigCPtr, value); + freeswitchJNI.Event_mine_set(swigCPtr, this, value); } public int getMine() { - return freeswitchJNI.Event_mine_get(swigCPtr); + return freeswitchJNI.Event_mine_get(swigCPtr, this); } public Event(String type, String subclass_name) { @@ -67,47 +67,47 @@ public class Event { } public int chat_execute(String app, String data) { - return freeswitchJNI.Event_chat_execute(swigCPtr, app, data); + return freeswitchJNI.Event_chat_execute(swigCPtr, this, app, data); } public int chat_send(String dest_proto) { - return freeswitchJNI.Event_chat_send(swigCPtr, dest_proto); + return freeswitchJNI.Event_chat_send(swigCPtr, this, dest_proto); } public String serialize(String format) { - return freeswitchJNI.Event_serialize(swigCPtr, format); + return freeswitchJNI.Event_serialize(swigCPtr, this, format); } public boolean setPriority(SWIGTYPE_p_switch_priority_t priority) { - return freeswitchJNI.Event_setPriority(swigCPtr, SWIGTYPE_p_switch_priority_t.getCPtr(priority)); + return freeswitchJNI.Event_setPriority(swigCPtr, this, SWIGTYPE_p_switch_priority_t.getCPtr(priority)); } public String getHeader(String header_name) { - return freeswitchJNI.Event_getHeader(swigCPtr, header_name); + return freeswitchJNI.Event_getHeader(swigCPtr, this, header_name); } public String getBody() { - return freeswitchJNI.Event_getBody(swigCPtr); + return freeswitchJNI.Event_getBody(swigCPtr, this); } public String getType() { - return freeswitchJNI.Event_getType(swigCPtr); + return freeswitchJNI.Event_getType(swigCPtr, this); } public boolean addBody(String value) { - return freeswitchJNI.Event_addBody(swigCPtr, value); + return freeswitchJNI.Event_addBody(swigCPtr, this, value); } public boolean addHeader(String header_name, String value) { - return freeswitchJNI.Event_addHeader(swigCPtr, header_name, value); + return freeswitchJNI.Event_addHeader(swigCPtr, this, header_name, value); } public boolean delHeader(String header_name) { - return freeswitchJNI.Event_delHeader(swigCPtr, header_name); + return freeswitchJNI.Event_delHeader(swigCPtr, this, header_name); } public boolean fire() { - return freeswitchJNI.Event_fire(swigCPtr); + return freeswitchJNI.Event_fire(swigCPtr, this); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java index 872e7a1615..5b2798c316 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/EventConsumer.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class EventConsumer { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_EventConsumer(swigCPtr); @@ -34,61 +34,61 @@ public class EventConsumer { } public void setEvents(SWIGTYPE_p_switch_queue_t value) { - freeswitchJNI.EventConsumer_events_set(swigCPtr, SWIGTYPE_p_switch_queue_t.getCPtr(value)); + freeswitchJNI.EventConsumer_events_set(swigCPtr, this, SWIGTYPE_p_switch_queue_t.getCPtr(value)); } public SWIGTYPE_p_switch_queue_t getEvents() { - long cPtr = freeswitchJNI.EventConsumer_events_get(swigCPtr); + long cPtr = freeswitchJNI.EventConsumer_events_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_switch_queue_t(cPtr, false); } public void setE_event_id(SWIGTYPE_p_switch_event_types_t value) { - freeswitchJNI.EventConsumer_e_event_id_set(swigCPtr, SWIGTYPE_p_switch_event_types_t.getCPtr(value)); + freeswitchJNI.EventConsumer_e_event_id_set(swigCPtr, this, SWIGTYPE_p_switch_event_types_t.getCPtr(value)); } public SWIGTYPE_p_switch_event_types_t getE_event_id() { - return new SWIGTYPE_p_switch_event_types_t(freeswitchJNI.EventConsumer_e_event_id_get(swigCPtr), true); + return new SWIGTYPE_p_switch_event_types_t(freeswitchJNI.EventConsumer_e_event_id_get(swigCPtr, this), true); } public void setE_callback(String value) { - freeswitchJNI.EventConsumer_e_callback_set(swigCPtr, value); + freeswitchJNI.EventConsumer_e_callback_set(swigCPtr, this, value); } public String getE_callback() { - return freeswitchJNI.EventConsumer_e_callback_get(swigCPtr); + return freeswitchJNI.EventConsumer_e_callback_get(swigCPtr, this); } public void setE_subclass_name(String value) { - freeswitchJNI.EventConsumer_e_subclass_name_set(swigCPtr, value); + freeswitchJNI.EventConsumer_e_subclass_name_set(swigCPtr, this, value); } public String getE_subclass_name() { - return freeswitchJNI.EventConsumer_e_subclass_name_get(swigCPtr); + return freeswitchJNI.EventConsumer_e_subclass_name_get(swigCPtr, this); } public void setE_cb_arg(String value) { - freeswitchJNI.EventConsumer_e_cb_arg_set(swigCPtr, value); + freeswitchJNI.EventConsumer_e_cb_arg_set(swigCPtr, this, value); } public String getE_cb_arg() { - return freeswitchJNI.EventConsumer_e_cb_arg_get(swigCPtr); + return freeswitchJNI.EventConsumer_e_cb_arg_get(swigCPtr, this); } public void setEnodes(SWIGTYPE_p_p_switch_event_node_t value) { - freeswitchJNI.EventConsumer_enodes_set(swigCPtr, SWIGTYPE_p_p_switch_event_node_t.getCPtr(value)); + freeswitchJNI.EventConsumer_enodes_set(swigCPtr, this, SWIGTYPE_p_p_switch_event_node_t.getCPtr(value)); } public SWIGTYPE_p_p_switch_event_node_t getEnodes() { - long cPtr = freeswitchJNI.EventConsumer_enodes_get(swigCPtr); + long cPtr = freeswitchJNI.EventConsumer_enodes_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_p_switch_event_node_t(cPtr, false); } public void setNode_index(SWIGTYPE_p_uint32_t value) { - freeswitchJNI.EventConsumer_node_index_set(swigCPtr, SWIGTYPE_p_uint32_t.getCPtr(value)); + freeswitchJNI.EventConsumer_node_index_set(swigCPtr, this, SWIGTYPE_p_uint32_t.getCPtr(value)); } public SWIGTYPE_p_uint32_t getNode_index() { - return new SWIGTYPE_p_uint32_t(freeswitchJNI.EventConsumer_node_index_get(swigCPtr), true); + return new SWIGTYPE_p_uint32_t(freeswitchJNI.EventConsumer_node_index_get(swigCPtr, this), true); } public EventConsumer(String event_name, String subclass_name, int len) { @@ -96,16 +96,16 @@ public class EventConsumer { } public int bind(String event_name, String subclass_name) { - return freeswitchJNI.EventConsumer_bind(swigCPtr, event_name, subclass_name); + return freeswitchJNI.EventConsumer_bind(swigCPtr, this, event_name, subclass_name); } public Event pop(int block, int timeout) { - long cPtr = freeswitchJNI.EventConsumer_pop(swigCPtr, block, timeout); + long cPtr = freeswitchJNI.EventConsumer_pop(swigCPtr, this, block, timeout); return (cPtr == 0) ? null : new Event(cPtr, true); } public void cleanup() { - freeswitchJNI.EventConsumer_cleanup(swigCPtr); + freeswitchJNI.EventConsumer_cleanup(swigCPtr, this); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java index 869becb559..f459a116d0 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class IVRMenu { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_IVRMenu(swigCPtr); @@ -34,15 +34,15 @@ public class IVRMenu { } public IVRMenu(IVRMenu main, String name, String greeting_sound, String short_greeting_sound, String invalid_sound, String exit_sound, String transfer_sound, String confirm_macro, String confirm_key, String tts_engine, String tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts) { - this(freeswitchJNI.new_IVRMenu(IVRMenu.getCPtr(main), name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts), true); + this(freeswitchJNI.new_IVRMenu(IVRMenu.getCPtr(main), main, name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts), true); } public void bindAction(String action, String arg, String bind) { - freeswitchJNI.IVRMenu_bindAction(swigCPtr, action, arg, bind); + freeswitchJNI.IVRMenu_bindAction(swigCPtr, this, action, arg, bind); } public void execute(CoreSession session, String name) { - freeswitchJNI.IVRMenu_execute(swigCPtr, CoreSession.getCPtr(session), name); + freeswitchJNI.IVRMenu_execute(swigCPtr, this, CoreSession.getCPtr(session), session, name); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java index 2e2b01bf27..b2bf611a4e 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/JavaSession.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -24,7 +24,7 @@ public class JavaSession extends CoreSession { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_JavaSession(swigCPtr); @@ -46,31 +46,31 @@ public class JavaSession extends CoreSession { } public boolean begin_allow_threads() { - return freeswitchJNI.JavaSession_begin_allow_threads(swigCPtr); + return freeswitchJNI.JavaSession_begin_allow_threads(swigCPtr, this); } public boolean end_allow_threads() { - return freeswitchJNI.JavaSession_end_allow_threads(swigCPtr); + return freeswitchJNI.JavaSession_end_allow_threads(swigCPtr, this); } public void setDTMFCallback(org.freeswitch.DTMFCallback dtmfCallback, String funcargs) { - freeswitchJNI.JavaSession_setDTMFCallback(swigCPtr, dtmfCallback, funcargs); + freeswitchJNI.JavaSession_setDTMFCallback(swigCPtr, this, dtmfCallback, funcargs); } public void setHangupHook(org.freeswitch.HangupHook hangupHook) { - freeswitchJNI.JavaSession_setHangupHook(swigCPtr, hangupHook); + freeswitchJNI.JavaSession_setHangupHook(swigCPtr, this, hangupHook); } public void check_hangup_hook() { - freeswitchJNI.JavaSession_check_hangup_hook(swigCPtr); + freeswitchJNI.JavaSession_check_hangup_hook(swigCPtr, this); } public SWIGTYPE_p_switch_status_t run_dtmf_callback(SWIGTYPE_p_void input, SWIGTYPE_p_switch_input_type_t itype) { - return new SWIGTYPE_p_switch_status_t(freeswitchJNI.JavaSession_run_dtmf_callback(swigCPtr, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); + return new SWIGTYPE_p_switch_status_t(freeswitchJNI.JavaSession_run_dtmf_callback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(input), SWIGTYPE_p_switch_input_type_t.getCPtr(itype)), true); } public int originate(JavaSession aleg, String destination, int timeout) { - return freeswitchJNI.JavaSession_originate(swigCPtr, JavaSession.getCPtr(aleg), destination, timeout); + return freeswitchJNI.JavaSession_originate(swigCPtr, this, JavaSession.getCPtr(aleg), aleg, destination, timeout); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java index 3d0a659f10..eef921b5b0 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_JavaVM.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java index 7c4364e816..bb712a806b 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_int.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java index f54a0d18cd..84a8d3eee6 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_p_switch_event_node_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java index d133ba5a2e..e3c77ff9c4 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_call_cause_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java index bde735b52c..81950079e8 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_state_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java index 0e4de87e24..6a2e1dbefc 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_channel_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java index faa78557fd..0bc849c275 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_core_session_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java index ecf7743f3e..e122b7616d 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java index 31dfa93457..0c62ea3d40 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_types_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java index 485cab4f4c..200b43896b 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_args_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java index e4b46a2bee..dd1d9e8733 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_input_type_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java index a8af963c06..1c8ae112c3 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java index 6cdb744848..c979de53a4 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_queue_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java index 7708dcec0b..bed7ddc4af 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_state_handler_table_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java index 31ca4c070f..ffbbb719d5 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_status_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java index 8f23b0e364..656bdcf7ec 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java index 3c0605ae13..0396fde793 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_uint32_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java index 012357cc39..9c2cda23d3 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_void.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java index 218ccee939..30350b001e 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class Stream { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_Stream(swigCPtr); @@ -42,19 +42,19 @@ public class Stream { } public String read(SWIGTYPE_p_int len) { - return freeswitchJNI.Stream_read(swigCPtr, SWIGTYPE_p_int.getCPtr(len)); + return freeswitchJNI.Stream_read(swigCPtr, this, SWIGTYPE_p_int.getCPtr(len)); } public void write(String data) { - freeswitchJNI.Stream_write(swigCPtr, data); + freeswitchJNI.Stream_write(swigCPtr, this, data); } public void raw_write(String data, int len) { - freeswitchJNI.Stream_raw_write(swigCPtr, data, len); + freeswitchJNI.Stream_raw_write(swigCPtr, this, data, len); } public String get_data() { - return freeswitchJNI.Stream_get_data(swigCPtr); + return freeswitchJNI.Stream_get_data(swigCPtr, this); } } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java index 8a9622e41d..fe0a0d9bc7 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitch.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -54,7 +54,7 @@ public class freeswitch { } public static void bridge(CoreSession session_a, CoreSession session_b) { - freeswitchJNI.bridge(CoreSession.getCPtr(session_a), CoreSession.getCPtr(session_b)); + freeswitchJNI.bridge(CoreSession.getCPtr(session_a), session_a, CoreSession.getCPtr(session_b), session_b); } public static SWIGTYPE_p_switch_status_t hanguphook(SWIGTYPE_p_switch_core_session_t session) { diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java index 84bb9f1511..359bd8b5bc 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -16,157 +16,157 @@ class freeswitchJNI { public final static native void consoleCleanLog(String jarg1); public final static native boolean running(); public final static native boolean email(String jarg1, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6, String jarg7); - public final static native long new_IVRMenu(long jarg1, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, String jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17); + public final static native long new_IVRMenu(long jarg1, IVRMenu jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, String jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17); public final static native void delete_IVRMenu(long jarg1); - public final static native void IVRMenu_bindAction(long jarg1, String jarg2, String jarg3, String jarg4); - public final static native void IVRMenu_execute(long jarg1, long jarg2, String jarg3); - public final static native long new_API(long jarg1); + public final static native void IVRMenu_bindAction(long jarg1, IVRMenu jarg1_, String jarg2, String jarg3, String jarg4); + public final static native void IVRMenu_execute(long jarg1, IVRMenu jarg1_, long jarg2, CoreSession jarg2_, String jarg3); + public final static native long new_API(long jarg1, CoreSession jarg1_); public final static native void delete_API(long jarg1); - public final static native String API_execute(long jarg1, String jarg2, String jarg3); - public final static native String API_executeString(long jarg1, String jarg2); - public final static native String API_getTime(long jarg1); - public final static native void input_callback_state_t_function_set(long jarg1, long jarg2); - public final static native long input_callback_state_t_function_get(long jarg1); - public final static native void input_callback_state_t_threadState_set(long jarg1, long jarg2); - public final static native long input_callback_state_t_threadState_get(long jarg1); - public final static native void input_callback_state_t_extra_set(long jarg1, long jarg2); - public final static native long input_callback_state_t_extra_get(long jarg1); - public final static native void input_callback_state_t_funcargs_set(long jarg1, String jarg2); - public final static native String input_callback_state_t_funcargs_get(long jarg1); + public final static native String API_execute(long jarg1, API jarg1_, String jarg2, String jarg3); + public final static native String API_executeString(long jarg1, API jarg1_, String jarg2); + public final static native String API_getTime(long jarg1, API jarg1_); + public final static native void input_callback_state_t_function_set(long jarg1, input_callback_state_t jarg1_, long jarg2); + public final static native long input_callback_state_t_function_get(long jarg1, input_callback_state_t jarg1_); + public final static native void input_callback_state_t_threadState_set(long jarg1, input_callback_state_t jarg1_, long jarg2); + public final static native long input_callback_state_t_threadState_get(long jarg1, input_callback_state_t jarg1_); + public final static native void input_callback_state_t_extra_set(long jarg1, input_callback_state_t jarg1_, long jarg2); + public final static native long input_callback_state_t_extra_get(long jarg1, input_callback_state_t jarg1_); + public final static native void input_callback_state_t_funcargs_set(long jarg1, input_callback_state_t jarg1_, String jarg2); + public final static native String input_callback_state_t_funcargs_get(long jarg1, input_callback_state_t jarg1_); public final static native long new_input_callback_state_t(); public final static native void delete_input_callback_state_t(long jarg1); public final static native int S_HUP_get(); public final static native int S_FREE_get(); public final static native int S_RDLOCK_get(); - public final static native void DTMF_digit_set(long jarg1, char jarg2); - public final static native char DTMF_digit_get(long jarg1); - public final static native void DTMF_duration_set(long jarg1, long jarg2); - public final static native long DTMF_duration_get(long jarg1); + public final static native void DTMF_digit_set(long jarg1, DTMF jarg1_, char jarg2); + public final static native char DTMF_digit_get(long jarg1, DTMF jarg1_); + public final static native void DTMF_duration_set(long jarg1, DTMF jarg1_, long jarg2); + public final static native long DTMF_duration_get(long jarg1, DTMF jarg1_); public final static native long new_DTMF(char jarg1, long jarg2); public final static native void delete_DTMF(long jarg1); public final static native long new_Stream__SWIG_0(); public final static native long new_Stream__SWIG_1(long jarg1); public final static native void delete_Stream(long jarg1); - public final static native String Stream_read(long jarg1, long jarg2); - public final static native void Stream_write(long jarg1, String jarg2); - public final static native void Stream_raw_write(long jarg1, String jarg2, int jarg3); - public final static native String Stream_get_data(long jarg1); - public final static native void Event_event_set(long jarg1, long jarg2); - public final static native long Event_event_get(long jarg1); - public final static native void Event_serialized_string_set(long jarg1, String jarg2); - public final static native String Event_serialized_string_get(long jarg1); - public final static native void Event_mine_set(long jarg1, int jarg2); - public final static native int Event_mine_get(long jarg1); + public final static native String Stream_read(long jarg1, Stream jarg1_, long jarg2); + public final static native void Stream_write(long jarg1, Stream jarg1_, String jarg2); + public final static native void Stream_raw_write(long jarg1, Stream jarg1_, String jarg2, int jarg3); + public final static native String Stream_get_data(long jarg1, Stream jarg1_); + public final static native void Event_event_set(long jarg1, Event jarg1_, long jarg2); + public final static native long Event_event_get(long jarg1, Event jarg1_); + public final static native void Event_serialized_string_set(long jarg1, Event jarg1_, String jarg2); + public final static native String Event_serialized_string_get(long jarg1, Event jarg1_); + public final static native void Event_mine_set(long jarg1, Event jarg1_, int jarg2); + public final static native int Event_mine_get(long jarg1, Event jarg1_); public final static native long new_Event__SWIG_0(String jarg1, String jarg2); public final static native long new_Event__SWIG_1(long jarg1, int jarg2); public final static native void delete_Event(long jarg1); - public final static native int Event_chat_execute(long jarg1, String jarg2, String jarg3); - public final static native int Event_chat_send(long jarg1, String jarg2); - public final static native String Event_serialize(long jarg1, String jarg2); - public final static native boolean Event_setPriority(long jarg1, long jarg2); - public final static native String Event_getHeader(long jarg1, String jarg2); - public final static native String Event_getBody(long jarg1); - public final static native String Event_getType(long jarg1); - public final static native boolean Event_addBody(long jarg1, String jarg2); - public final static native boolean Event_addHeader(long jarg1, String jarg2, String jarg3); - public final static native boolean Event_delHeader(long jarg1, String jarg2); - public final static native boolean Event_fire(long jarg1); - public final static native void EventConsumer_events_set(long jarg1, long jarg2); - public final static native long EventConsumer_events_get(long jarg1); - public final static native void EventConsumer_e_event_id_set(long jarg1, long jarg2); - public final static native long EventConsumer_e_event_id_get(long jarg1); - public final static native void EventConsumer_e_callback_set(long jarg1, String jarg2); - public final static native String EventConsumer_e_callback_get(long jarg1); - public final static native void EventConsumer_e_subclass_name_set(long jarg1, String jarg2); - public final static native String EventConsumer_e_subclass_name_get(long jarg1); - public final static native void EventConsumer_e_cb_arg_set(long jarg1, String jarg2); - public final static native String EventConsumer_e_cb_arg_get(long jarg1); - public final static native void EventConsumer_enodes_set(long jarg1, long jarg2); - public final static native long EventConsumer_enodes_get(long jarg1); - public final static native void EventConsumer_node_index_set(long jarg1, long jarg2); - public final static native long EventConsumer_node_index_get(long jarg1); + public final static native int Event_chat_execute(long jarg1, Event jarg1_, String jarg2, String jarg3); + public final static native int Event_chat_send(long jarg1, Event jarg1_, String jarg2); + public final static native String Event_serialize(long jarg1, Event jarg1_, String jarg2); + public final static native boolean Event_setPriority(long jarg1, Event jarg1_, long jarg2); + public final static native String Event_getHeader(long jarg1, Event jarg1_, String jarg2); + public final static native String Event_getBody(long jarg1, Event jarg1_); + public final static native String Event_getType(long jarg1, Event jarg1_); + public final static native boolean Event_addBody(long jarg1, Event jarg1_, String jarg2); + public final static native boolean Event_addHeader(long jarg1, Event jarg1_, String jarg2, String jarg3); + public final static native boolean Event_delHeader(long jarg1, Event jarg1_, String jarg2); + public final static native boolean Event_fire(long jarg1, Event jarg1_); + public final static native void EventConsumer_events_set(long jarg1, EventConsumer jarg1_, long jarg2); + public final static native long EventConsumer_events_get(long jarg1, EventConsumer jarg1_); + public final static native void EventConsumer_e_event_id_set(long jarg1, EventConsumer jarg1_, long jarg2); + public final static native long EventConsumer_e_event_id_get(long jarg1, EventConsumer jarg1_); + public final static native void EventConsumer_e_callback_set(long jarg1, EventConsumer jarg1_, String jarg2); + public final static native String EventConsumer_e_callback_get(long jarg1, EventConsumer jarg1_); + public final static native void EventConsumer_e_subclass_name_set(long jarg1, EventConsumer jarg1_, String jarg2); + public final static native String EventConsumer_e_subclass_name_get(long jarg1, EventConsumer jarg1_); + public final static native void EventConsumer_e_cb_arg_set(long jarg1, EventConsumer jarg1_, String jarg2); + public final static native String EventConsumer_e_cb_arg_get(long jarg1, EventConsumer jarg1_); + public final static native void EventConsumer_enodes_set(long jarg1, EventConsumer jarg1_, long jarg2); + public final static native long EventConsumer_enodes_get(long jarg1, EventConsumer jarg1_); + public final static native void EventConsumer_node_index_set(long jarg1, EventConsumer jarg1_, long jarg2); + public final static native long EventConsumer_node_index_get(long jarg1, EventConsumer jarg1_); public final static native long new_EventConsumer(String jarg1, String jarg2, int jarg3); public final static native void delete_EventConsumer(long jarg1); - public final static native int EventConsumer_bind(long jarg1, String jarg2, String jarg3); - public final static native long EventConsumer_pop(long jarg1, int jarg2, int jarg3); - public final static native void EventConsumer_cleanup(long jarg1); + public final static native int EventConsumer_bind(long jarg1, EventConsumer jarg1_, String jarg2, String jarg3); + public final static native long EventConsumer_pop(long jarg1, EventConsumer jarg1_, int jarg2, int jarg3); + public final static native void EventConsumer_cleanup(long jarg1, EventConsumer jarg1_); public final static native void delete_CoreSession(long jarg1); - public final static native void CoreSession_session_set(long jarg1, long jarg2); - public final static native long CoreSession_session_get(long jarg1); - public final static native void CoreSession_channel_set(long jarg1, long jarg2); - public final static native long CoreSession_channel_get(long jarg1); - public final static native void CoreSession_flags_set(long jarg1, long jarg2); - public final static native long CoreSession_flags_get(long jarg1); - public final static native void CoreSession_allocated_set(long jarg1, int jarg2); - public final static native int CoreSession_allocated_get(long jarg1); - public final static native void CoreSession_cb_state_set(long jarg1, long jarg2); - public final static native long CoreSession_cb_state_get(long jarg1); - public final static native void CoreSession_hook_state_set(long jarg1, long jarg2); - public final static native long CoreSession_hook_state_get(long jarg1); - public final static native void CoreSession_cause_set(long jarg1, long jarg2); - public final static native long CoreSession_cause_get(long jarg1); - public final static native void CoreSession_uuid_set(long jarg1, String jarg2); - public final static native String CoreSession_uuid_get(long jarg1); - public final static native void CoreSession_tts_name_set(long jarg1, String jarg2); - public final static native String CoreSession_tts_name_get(long jarg1); - public final static native void CoreSession_voice_name_set(long jarg1, String jarg2); - public final static native String CoreSession_voice_name_get(long jarg1); - public final static native int CoreSession_insertFile(long jarg1, String jarg2, String jarg3, int jarg4); - public final static native int CoreSession_answer(long jarg1); - public final static native int CoreSession_preAnswer(long jarg1); - public final static native void CoreSession_hangup(long jarg1, String jarg2); - public final static native void CoreSession_hangupState(long jarg1); - public final static native void CoreSession_setVariable(long jarg1, String jarg2, String jarg3); - public final static native void CoreSession_setPrivate(long jarg1, String jarg2, long jarg3); - public final static native long CoreSession_getPrivate(long jarg1, String jarg2); - public final static native String CoreSession_getVariable(long jarg1, String jarg2); - public final static native long CoreSession_process_callback_result(long jarg1, String jarg2); - public final static native void CoreSession_say(long jarg1, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6); - public final static native void CoreSession_sayPhrase(long jarg1, String jarg2, String jarg3, String jarg4); - public final static native String CoreSession_hangupCause(long jarg1); - public final static native String CoreSession_getState(long jarg1); - public final static native int CoreSession_recordFile(long jarg1, String jarg2, int jarg3, int jarg4, int jarg5); - public final static native int CoreSession_originate(long jarg1, long jarg2, String jarg3, int jarg4, long jarg5); - public final static native void CoreSession_destroy(long jarg1); - public final static native void CoreSession_setDTMFCallback(long jarg1, long jarg2, String jarg3); - public final static native int CoreSession_speak(long jarg1, String jarg2); - public final static native void CoreSession_set_tts_parms(long jarg1, String jarg2, String jarg3); - public final static native void CoreSession_set_tts_params(long jarg1, String jarg2, String jarg3); - public final static native int CoreSession_collectDigits__SWIG_0(long jarg1, int jarg2); - public final static native int CoreSession_collectDigits__SWIG_1(long jarg1, int jarg2, int jarg3); - public final static native String CoreSession_getDigits__SWIG_0(long jarg1, int jarg2, String jarg3, int jarg4); - public final static native String CoreSession_getDigits__SWIG_1(long jarg1, int jarg2, String jarg3, int jarg4, int jarg5); - public final static native int CoreSession_transfer(long jarg1, String jarg2, String jarg3, String jarg4); - public final static native String CoreSession_read(long jarg1, int jarg2, int jarg3, String jarg4, int jarg5, String jarg6, int jarg7); - public final static native String CoreSession_playAndGetDigits(long jarg1, int jarg2, int jarg3, int jarg4, int jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, int jarg11, String jarg12); - public final static native int CoreSession_streamFile(long jarg1, String jarg2, int jarg3); - public final static native int CoreSession_sleep(long jarg1, int jarg2, int jarg3); - public final static native int CoreSession_flushEvents(long jarg1); - public final static native int CoreSession_flushDigits(long jarg1); - public final static native int CoreSession_setAutoHangup(long jarg1, boolean jarg2); - public final static native void CoreSession_setHangupHook(long jarg1, long jarg2); - public final static native boolean CoreSession_ready(long jarg1); - public final static native boolean CoreSession_bridged(long jarg1); - public final static native boolean CoreSession_answered(long jarg1); - public final static native boolean CoreSession_mediaReady(long jarg1); - public final static native void CoreSession_waitForAnswer(long jarg1, long jarg2); - public final static native void CoreSession_execute(long jarg1, String jarg2, String jarg3); - public final static native void CoreSession_sendEvent(long jarg1, long jarg2); - public final static native void CoreSession_setEventData(long jarg1, long jarg2); - public final static native String CoreSession_getXMLCDR(long jarg1); - public final static native boolean CoreSession_begin_allow_threads(long jarg1); - public final static native boolean CoreSession_end_allow_threads(long jarg1); - public final static native String CoreSession_get_uuid(long jarg1); - public final static native long CoreSession_get_cb_args(long jarg1); - public final static native void CoreSession_check_hangup_hook(long jarg1); - public final static native long CoreSession_run_dtmf_callback(long jarg1, long jarg2, long jarg3); - public final static native void CoreSession_consoleLog(long jarg1, String jarg2, String jarg3); - public final static native void CoreSession_consoleLog2(long jarg1, String jarg2, String jarg3, String jarg4, int jarg5, String jarg6); + public final static native void CoreSession_session_set(long jarg1, CoreSession jarg1_, long jarg2); + public final static native long CoreSession_session_get(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_channel_set(long jarg1, CoreSession jarg1_, long jarg2); + public final static native long CoreSession_channel_get(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_flags_set(long jarg1, CoreSession jarg1_, long jarg2); + public final static native long CoreSession_flags_get(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_allocated_set(long jarg1, CoreSession jarg1_, int jarg2); + public final static native int CoreSession_allocated_get(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_cb_state_set(long jarg1, CoreSession jarg1_, long jarg2, input_callback_state_t jarg2_); + 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); + public final static native String CoreSession_tts_name_get(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_voice_name_set(long jarg1, CoreSession jarg1_, String jarg2); + public final static native String CoreSession_voice_name_get(long jarg1, CoreSession jarg1_); + public final static native int CoreSession_insertFile(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, int jarg4); + public final static native int CoreSession_answer(long jarg1, CoreSession jarg1_); + public final static native int CoreSession_preAnswer(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_hangup(long jarg1, CoreSession jarg1_, String jarg2); + public final static native void CoreSession_hangupState(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_setVariable(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); + public final static native void CoreSession_setPrivate(long jarg1, CoreSession jarg1_, String jarg2, long jarg3); + public final static native long CoreSession_getPrivate(long jarg1, CoreSession jarg1_, String jarg2); + public final static native String CoreSession_getVariable(long jarg1, CoreSession jarg1_, String jarg2); + public final static native long CoreSession_process_callback_result(long jarg1, CoreSession jarg1_, String jarg2); + public final static native void CoreSession_say(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6); + public final static native void CoreSession_sayPhrase(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4); + public final static native String CoreSession_hangupCause(long jarg1, CoreSession jarg1_); + public final static native String CoreSession_getState(long jarg1, CoreSession jarg1_); + public final static native int CoreSession_recordFile(long jarg1, CoreSession jarg1_, String jarg2, int jarg3, int jarg4, int jarg5); + public final static native int CoreSession_originate(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_, String jarg3, int jarg4, long jarg5); + 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); + public final static native void CoreSession_set_tts_params(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); + public final static native int CoreSession_collectDigits__SWIG_0(long jarg1, CoreSession jarg1_, int jarg2); + public final static native int CoreSession_collectDigits__SWIG_1(long jarg1, CoreSession jarg1_, int jarg2, int jarg3); + public final static native String CoreSession_getDigits__SWIG_0(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4); + public final static native String CoreSession_getDigits__SWIG_1(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4, int jarg5); + public final static native int CoreSession_transfer(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4); + public final static native String CoreSession_read(long jarg1, CoreSession jarg1_, int jarg2, int jarg3, String jarg4, int jarg5, String jarg6, int jarg7); + public final static native String CoreSession_playAndGetDigits(long jarg1, CoreSession jarg1_, int jarg2, int jarg3, int jarg4, int jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, int jarg11, String jarg12); + public final static native int CoreSession_streamFile(long jarg1, CoreSession jarg1_, String jarg2, int jarg3); + public final static native int CoreSession_sleep(long jarg1, CoreSession jarg1_, int jarg2, int jarg3); + public final static native int CoreSession_flushEvents(long jarg1, CoreSession jarg1_); + public final static native int CoreSession_flushDigits(long jarg1, CoreSession jarg1_); + public final static native int CoreSession_setAutoHangup(long jarg1, CoreSession jarg1_, boolean jarg2); + public final static native void CoreSession_setHangupHook(long jarg1, CoreSession jarg1_, long jarg2); + public final static native boolean CoreSession_ready(long jarg1, CoreSession jarg1_); + public final static native boolean CoreSession_bridged(long jarg1, CoreSession jarg1_); + public final static native boolean CoreSession_answered(long jarg1, CoreSession jarg1_); + public final static native boolean CoreSession_mediaReady(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_waitForAnswer(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_); + public final static native void CoreSession_execute(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); + public final static native void CoreSession_sendEvent(long jarg1, CoreSession jarg1_, long jarg2, Event jarg2_); + public final static native void CoreSession_setEventData(long jarg1, CoreSession jarg1_, long jarg2, Event jarg2_); + public final static native String CoreSession_getXMLCDR(long jarg1, CoreSession jarg1_); + public final static native boolean CoreSession_begin_allow_threads(long jarg1, CoreSession jarg1_); + public final static native boolean CoreSession_end_allow_threads(long jarg1, CoreSession jarg1_); + public final static native String CoreSession_get_uuid(long jarg1, CoreSession jarg1_); + public final static native long CoreSession_get_cb_args(long jarg1, CoreSession jarg1_); + public final static native void CoreSession_check_hangup_hook(long jarg1, CoreSession jarg1_); + public final static native long CoreSession_run_dtmf_callback(long jarg1, CoreSession jarg1_, long jarg2, long jarg3); + public final static native void CoreSession_consoleLog(long jarg1, CoreSession jarg1_, String jarg2, String jarg3); + public final static native void CoreSession_consoleLog2(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4, int jarg5, String jarg6); public final static native void console_log(String jarg1, String jarg2); public final static native void console_log2(String jarg1, String jarg2, String jarg3, int jarg4, String jarg5); public final static native void console_clean_log(String jarg1); public final static native void msleep(long jarg1); - public final static native void bridge(long jarg1, long jarg2); + public final static native void bridge(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_); public final static native long hanguphook(long jarg1); public final static native long dtmf_callback(long jarg1, long jarg2, long jarg3, long jarg4, long jarg5); public final static native void javaVM_set(long jarg1); @@ -176,12 +176,12 @@ class freeswitchJNI { public final static native long new_JavaSession__SWIG_1(String jarg1); public final static native long new_JavaSession__SWIG_2(long jarg1); public final static native void delete_JavaSession(long jarg1); - public final static native boolean JavaSession_begin_allow_threads(long jarg1); - public final static native boolean JavaSession_end_allow_threads(long jarg1); - public final static native void JavaSession_setDTMFCallback(long jarg1, org.freeswitch.DTMFCallback jarg2, String jarg3); - public final static native void JavaSession_setHangupHook(long jarg1, org.freeswitch.HangupHook jarg2); - public final static native void JavaSession_check_hangup_hook(long jarg1); - public final static native long JavaSession_run_dtmf_callback(long jarg1, long jarg2, long jarg3); - public final static native int JavaSession_originate(long jarg1, long jarg2, String jarg3, int jarg4); + public final static native boolean JavaSession_begin_allow_threads(long jarg1, JavaSession jarg1_); + public final static native boolean JavaSession_end_allow_threads(long jarg1, JavaSession jarg1_); + public final static native void JavaSession_setDTMFCallback(long jarg1, JavaSession jarg1_, org.freeswitch.DTMFCallback jarg2, String jarg3); + public final static native void JavaSession_setHangupHook(long jarg1, JavaSession jarg1_, org.freeswitch.HangupHook jarg2); + public final static native void JavaSession_check_hangup_hook(long jarg1, JavaSession jarg1_); + public final static native long JavaSession_run_dtmf_callback(long jarg1, JavaSession jarg1_, long jarg2, long jarg3); + public final static native int JavaSession_originate(long jarg1, JavaSession jarg1_, long jarg2, JavaSession jarg2_, String jarg3, int jarg4); public final static native long SWIGJavaSessionUpcast(long jarg1); } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java index a84d9b73d8..7ee03cda53 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/input_callback_state_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -25,7 +25,7 @@ public class input_callback_state_t { delete(); } - public void delete() { + public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; freeswitchJNI.delete_input_callback_state_t(swigCPtr); @@ -34,38 +34,38 @@ public class input_callback_state_t { } public void setFunction(SWIGTYPE_p_void value) { - freeswitchJNI.input_callback_state_t_function_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + freeswitchJNI.input_callback_state_t_function_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); } public SWIGTYPE_p_void getFunction() { - long cPtr = freeswitchJNI.input_callback_state_t_function_get(swigCPtr); + long cPtr = freeswitchJNI.input_callback_state_t_function_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public void setThreadState(SWIGTYPE_p_void value) { - freeswitchJNI.input_callback_state_t_threadState_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + freeswitchJNI.input_callback_state_t_threadState_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); } public SWIGTYPE_p_void getThreadState() { - long cPtr = freeswitchJNI.input_callback_state_t_threadState_get(swigCPtr); + long cPtr = freeswitchJNI.input_callback_state_t_threadState_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public void setExtra(SWIGTYPE_p_void value) { - freeswitchJNI.input_callback_state_t_extra_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + freeswitchJNI.input_callback_state_t_extra_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); } public SWIGTYPE_p_void getExtra() { - long cPtr = freeswitchJNI.input_callback_state_t_extra_get(swigCPtr); + long cPtr = freeswitchJNI.input_callback_state_t_extra_get(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); } public void setFuncargs(String value) { - freeswitchJNI.input_callback_state_t_funcargs_set(swigCPtr, value); + freeswitchJNI.input_callback_state_t_funcargs_set(swigCPtr, this, value); } public String getFuncargs() { - return freeswitchJNI.input_callback_state_t_funcargs_get(swigCPtr); + return freeswitchJNI.input_callback_state_t_funcargs_get(swigCPtr, this); } public input_callback_state_t() { diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java index ed19d8920f..d897a6f145 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/session_flag_t.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -27,15 +27,18 @@ public enum session_flag_t { throw new IllegalArgumentException("No enum " + session_flag_t.class + " with value " + swigValue); } + @SuppressWarnings("unused") private session_flag_t() { this.swigValue = SwigNext.next++; } + @SuppressWarnings("unused") private session_flag_t(int swigValue) { this.swigValue = swigValue; SwigNext.next = swigValue+1; } + @SuppressWarnings("unused") private session_flag_t(session_flag_t swigEnum) { this.swigValue = swigEnum.swigValue; SwigNext.next = this.swigValue+1; diff --git a/src/mod/languages/mod_java/switch_swig_wrap.cpp b/src/mod/languages/mod_java/switch_swig_wrap.cpp index cbfa08a393..a24b28ceaa 100644 --- a/src/mod/languages/mod_java/switch_swig_wrap.cpp +++ b/src/mod/languages/mod_java/switch_swig_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -10,7 +10,7 @@ #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -23,6 +23,10 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; + +template T SwigValueInit() { + return T(); +} #endif /* ----------------------------------------------------------------------------- @@ -32,14 +36,14 @@ private: /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) -# if (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -118,10 +122,16 @@ private: #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + /* Fix for jlong on some versions of gcc on Windows */ #if defined(__GNUC__) && !defined(__INTELC__) @@ -198,7 +208,7 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC extern "C" { #endif -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -215,12 +225,12 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setGlobalVariable( if (!arg2) return ; } setGlobalVariable(arg1,arg2); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_getGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_getGlobalVariable(JNIEnv *jenv, jclass jcls, jstring jarg1) { jstring jresult = 0 ; char *arg1 = (char *) 0 ; char *result = 0 ; @@ -233,14 +243,14 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_getGlobalVariab if (!arg1) return 0; } result = (char *)getGlobalVariable(arg1); - if(result) jresult = jenv->NewStringUTF(result); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); free(result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -257,12 +267,12 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog(JNIEnv if (!arg2) return ; } consoleLog(arg1,arg2); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -293,14 +303,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleLog2(JNIEnv if (!arg5) return ; } consoleLog2(arg1,arg2,arg3,arg4,arg5); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleCleanLog(JNIEnv *jenv, jclass jcls, jstring jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleCleanLog(JNIEnv *jenv, jclass jcls, jstring jarg1) { char *arg1 = (char *) 0 ; (void)jenv; @@ -311,11 +321,11 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_consoleCleanLog(JN if (!arg1) return ; } consoleCleanLog(arg1); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_running(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_running(JNIEnv *jenv, jclass jcls) { jboolean jresult = 0 ; bool result; @@ -327,7 +337,7 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_running(JNIEnv } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_email(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_email(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) { jboolean jresult = 0 ; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -377,18 +387,18 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_email(JNIEnv * } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = (jboolean)result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, arg7); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); + if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jstring jarg11, jint jarg12, jint jarg13, jint jarg14, jint jarg15, jint jarg16, jint jarg17) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jstring jarg11, jint jarg12, jint jarg13, jint jarg14, jint jarg15, jint jarg16, jint jarg17) { jlong jresult = 0 ; IVRMenu *arg1 = (IVRMenu *) 0 ; char *arg2 = (char *) 0 ; @@ -411,6 +421,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNIE (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(IVRMenu **)&jarg1; arg2 = 0; if (jarg2) { @@ -470,21 +481,21 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1IVRMenu(JNIE arg17 = (int)jarg17; result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17); *(IVRMenu **)&jresult = result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, arg7); - if (arg8) jenv->ReleaseStringUTFChars(jarg8, arg8); - if (arg9) jenv->ReleaseStringUTFChars(jarg9, arg9); - if (arg10) jenv->ReleaseStringUTFChars(jarg10, arg10); - if (arg11) jenv->ReleaseStringUTFChars(jarg11, arg11); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); + if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); + if (arg8) jenv->ReleaseStringUTFChars(jarg8, (const char *)arg8); + if (arg9) jenv->ReleaseStringUTFChars(jarg9, (const char *)arg9); + if (arg10) jenv->ReleaseStringUTFChars(jarg10, (const char *)arg10); + if (arg11) jenv->ReleaseStringUTFChars(jarg11, (const char *)arg11); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1IVRMenu(JNIEnv *jenv, jclass jcls, jlong jarg1) { IVRMenu *arg1 = (IVRMenu *) 0 ; (void)jenv; @@ -495,7 +506,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1IVRMenu(JN } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindAction(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindAction(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { IVRMenu *arg1 = (IVRMenu *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -503,6 +514,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindActio (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(IVRMenu **)&jarg1; arg2 = 0; if (jarg2) { @@ -520,19 +532,21 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1bindActio if (!arg4) return ; } (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3) { IVRMenu *arg1 = (IVRMenu *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(IVRMenu **)&jarg1; arg2 = *(CoreSession **)&jarg2; arg3 = 0; @@ -541,17 +555,18 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(J if (!arg3) return ; } (arg1)->execute(arg2,(char const *)arg3); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) NULL ; API *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (API *)new API(arg1); *(API **)&jresult = result; @@ -559,7 +574,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv * } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1API(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1API(JNIEnv *jenv, jclass jcls, jlong jarg1) { API *arg1 = (API *) 0 ; (void)jenv; @@ -570,7 +585,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1API(JNIEnv } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { jstring jresult = 0 ; API *arg1 = (API *) 0 ; char *arg2 = (char *) 0 ; @@ -579,6 +594,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(JN (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(API **)&jarg1; arg2 = 0; if (jarg2) { @@ -591,14 +607,14 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1execute(JN if (!arg3) return 0; } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - if(result) jresult = jenv->NewStringUTF(result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeString(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jstring jresult = 0 ; API *arg1 = (API *) 0 ; char *arg2 = (char *) 0 ; @@ -606,6 +622,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeStr (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(API **)&jarg1; arg2 = 0; if (jarg2) { @@ -613,32 +630,34 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeStr if (!arg2) return 0; } result = (char *)(arg1)->executeString((char const *)arg2); - if(result) jresult = jenv->NewStringUTF(result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1getTime(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1getTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; API *arg1 = (API *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(API **)&jarg1; result = (char *)(arg1)->getTime(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = *(void **)&jarg2; if (arg1) (arg1)->function = arg2; @@ -646,13 +665,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1s } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (void *) ((arg1)->function); *(void **)&jresult = result; @@ -660,12 +680,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = *(void **)&jarg2; if (arg1) (arg1)->threadState = arg2; @@ -673,13 +694,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1s } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (void *) ((arg1)->threadState); *(void **)&jresult = result; @@ -687,12 +709,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = *(void **)&jarg2; if (arg1) (arg1)->extra = arg2; @@ -700,13 +723,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1s } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (void *) ((arg1)->extra); *(void **)&jresult = result; @@ -714,12 +738,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1 } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; arg2 = 0; if (jarg2) { @@ -729,31 +754,32 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1s { if (arg1->funcargs) delete [] arg1->funcargs; if (arg2) { - arg1->funcargs = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->funcargs,arg2); + arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->funcargs, (const char *)arg2); } else { arg1->funcargs = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(input_callback_state_t **)&jarg1; result = (char *) ((arg1)->funcargs); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; input_callback_state_t *result = 0 ; @@ -765,7 +791,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callb } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; (void)jenv; @@ -776,7 +802,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1cal } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1HUP_1get(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1HUP_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; session_flag_t result; @@ -788,7 +814,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1HUP_1get(JNIEnv } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1FREE_1get(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1FREE_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; session_flag_t result; @@ -800,7 +826,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1FREE_1get(JNIEn } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; session_flag_t result; @@ -812,12 +838,13 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JNI } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jchar jarg2) { DTMF *arg1 = (DTMF *) 0 ; char arg2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(DTMF **)&jarg1; arg2 = (char)jarg2; if (arg1) (arg1)->digit = arg2; @@ -825,13 +852,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set(J } -JNIEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jchar jresult = 0 ; DTMF *arg1 = (DTMF *) 0 ; char result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(DTMF **)&jarg1; result = (char) ((arg1)->digit); jresult = (jchar)result; @@ -839,13 +867,14 @@ JNIEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get( } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { DTMF *arg1 = (DTMF *) 0 ; uint32_t arg2 ; uint32_t *argp2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(DTMF **)&jarg1; argp2 = *(uint32_t **)&jarg2; if (!argp2) { @@ -858,13 +887,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1se } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; DTMF *arg1 = (DTMF *) 0 ; uint32_t result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(DTMF **)&jarg1; result = ((arg1)->duration); *(uint32_t **)&jresult = new uint32_t((uint32_t &)result); @@ -872,7 +902,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1g } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF(JNIEnv *jenv, jclass jcls, jchar jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF(JNIEnv *jenv, jclass jcls, jchar jarg1, jlong jarg2) { jlong jresult = 0 ; char arg1 ; uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ; @@ -894,7 +924,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF(JNIEnv } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIEnv *jenv, jclass jcls, jlong jarg1) { DTMF *arg1 = (DTMF *) 0 ; (void)jenv; @@ -905,7 +935,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIEn } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; Stream *result = 0 ; @@ -917,7 +947,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SW } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; Stream *result = 0 ; @@ -931,7 +961,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SW } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JNIEnv *jenv, jclass jcls, jlong jarg1) { Stream *arg1 = (Stream *) 0 ; (void)jenv; @@ -942,7 +972,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JNI } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jstring jresult = 0 ; Stream *arg1 = (Stream *) 0 ; int *arg2 = (int *) 0 ; @@ -950,20 +980,22 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(JN (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Stream **)&jarg1; arg2 = *(int **)&jarg2; result = (char *)(arg1)->read(arg2); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Stream **)&jarg1; arg2 = 0; if (jarg2) { @@ -971,17 +1003,18 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNIE if (!arg2) return ; } (arg1)->write((char const *)arg2); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Stream **)&jarg1; arg2 = 0; if (jarg2) { @@ -990,30 +1023,32 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1write } arg3 = (int)jarg3; (arg1)->raw_write((char const *)arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1get_1data(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1get_1data(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; Stream *arg1 = (Stream *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Stream **)&jarg1; result = (char *)(arg1)->get_data(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { Event *arg1 = (Event *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = *(switch_event_t **)&jarg2; if (arg1) (arg1)->event = arg2; @@ -1021,13 +1056,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1set( } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; Event *arg1 = (Event *) 0 ; switch_event_t *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; result = (switch_event_t *) ((arg1)->event); *(switch_event_t **)&jresult = result; @@ -1035,12 +1071,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1event_1get } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1050,36 +1087,38 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_ { if (arg1->serialized_string) delete [] arg1->serialized_string; if (arg2) { - arg1->serialized_string = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->serialized_string,arg2); + arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->serialized_string, (const char *)arg2); } else { arg1->serialized_string = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialized_1string_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; result = (char *) ((arg1)->serialized_string); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { Event *arg1 = (Event *) 0 ; int arg2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = (int)jarg2; if (arg1) (arg1)->mine = arg2; @@ -1087,13 +1126,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1set(J } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; Event *arg1 = (Event *) 0 ; int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; result = (int) ((arg1)->mine); jresult = (jint)result; @@ -1101,7 +1141,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1mine_1get(J } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { jlong jresult = 0 ; char *arg1 = (char *) 0 ; char *arg2 = (char *) NULL ; @@ -1121,13 +1161,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWI } result = (Event *)new Event((char const *)arg1,(char const *)arg2); *(Event **)&jresult = result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { jlong jresult = 0 ; switch_event_t *arg1 = (switch_event_t *) 0 ; int arg2 = (int) 0 ; @@ -1143,7 +1183,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Event_1_1SWI } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Event(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Event(JNIEnv *jenv, jclass jcls, jlong jarg1) { Event *arg1 = (Event *) 0 ; (void)jenv; @@ -1154,7 +1194,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Event(JNIE } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { jint jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1163,6 +1203,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1execu (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1176,13 +1217,13 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1execu } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jint jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) NULL ; @@ -1190,6 +1231,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send( (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1198,12 +1240,12 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1chat_1send( } result = (int)(arg1)->chat_send((char const *)arg2); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialize(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serialize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) NULL ; @@ -1211,6 +1253,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serializ (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1218,13 +1261,13 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1serializ if (!arg2) return 0; } result = (char *)(arg1)->serialize((char const *)arg2); - if(result) jresult = jenv->NewStringUTF(result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPriority(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPriority(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; @@ -1233,6 +1276,7 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPrio (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; argp2 = *(switch_priority_t **)&jarg2; if (!argp2) { @@ -1246,7 +1290,7 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1setPrio } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1254,6 +1298,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHeade (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1261,41 +1306,43 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getHeade if (!arg2) return 0; } result = (char *)(arg1)->getHeader((char const *)arg2); - if(result) jresult = jenv->NewStringUTF(result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getBody(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; result = (char *)(arg1)->getBody(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; Event *arg1 = (Event *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; result = (char *)(arg1)->getType(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1303,6 +1350,7 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBody (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1311,12 +1359,12 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addBody } result = (bool)(arg1)->addBody((char const *)arg2); jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1325,6 +1373,7 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHead (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1338,13 +1387,13 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1addHead } result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; @@ -1352,6 +1401,7 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHead (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; arg2 = 0; if (jarg2) { @@ -1360,18 +1410,19 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1delHead } result = (bool)(arg1)->delHeader((char const *)arg2); jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1fire(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1fire(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; Event *arg1 = (Event *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(Event **)&jarg1; result = (bool)(arg1)->fire(); jresult = (jboolean)result; @@ -1379,12 +1430,13 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_Event_1fire(JN } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *arg2 = (switch_queue_t *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = *(switch_queue_t **)&jarg2; if (arg1) (arg1)->events = arg2; @@ -1392,13 +1444,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1eve } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1events_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (switch_queue_t *) ((arg1)->events); *(switch_queue_t **)&jresult = result; @@ -1406,13 +1459,14 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1ev } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t arg2 ; switch_event_types_t *argp2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; argp2 = *(switch_event_types_t **)&jarg2; if (!argp2) { @@ -1425,13 +1479,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1 } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1event_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = ((arg1)->e_event_id); *(switch_event_types_t **)&jresult = new switch_event_types_t((switch_event_types_t &)result); @@ -1439,12 +1494,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_ } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1454,36 +1510,38 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1 { if (arg1->e_callback) delete [] arg1->e_callback; if (arg2) { - arg1->e_callback = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_callback,arg2); + arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_callback, (const char *)arg2); } else { arg1->e_callback = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1callback_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (char *) ((arg1)->e_callback); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1493,36 +1551,38 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1 { if (arg1->e_subclass_name) delete [] arg1->e_subclass_name; if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_subclass_name,arg2); + arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_subclass_name, (const char *)arg2); } else { arg1->e_subclass_name = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1subclass_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (char *) ((arg1)->e_subclass_name); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1532,36 +1592,38 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1 { if (arg1->e_cb_arg) delete [] arg1->e_cb_arg; if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_cb_arg,arg2); + arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_cb_arg, (const char *)arg2); } else { arg1->e_cb_arg = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e_1cb_1arg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jstring jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (char *) ((arg1)->e_cb_arg); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **arg2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = *(switch_event_node_t ***)&jarg2; { @@ -1573,13 +1635,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1eno } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1enodes_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); *(switch_event_node_t ***)&jresult = result; @@ -1587,13 +1650,14 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1en } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t arg2 ; uint32_t *argp2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; argp2 = *(uint32_t **)&jarg2; if (!argp2) { @@ -1606,13 +1670,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1nod } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1node_1index_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; result = ((arg1)->node_index); *(uint32_t **)&jresult = new uint32_t((uint32_t &)result); @@ -1620,7 +1685,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1no } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1EventConsumer(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jint jarg3) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1EventConsumer(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jint jarg3) { jlong jresult = 0 ; char *arg1 = (char *) NULL ; char *arg2 = (char *) "" ; @@ -1642,13 +1707,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1EventConsume arg3 = (int)jarg3; result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3); *(EventConsumer **)&jresult = result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1EventConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1EventConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { EventConsumer *arg1 = (EventConsumer *) 0 ; (void)jenv; @@ -1659,7 +1724,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1EventConsu } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bind(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bind(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { jint jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; @@ -1668,6 +1733,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bin (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = 0; if (jarg2) { @@ -1681,13 +1747,13 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1bin } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1pop(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1pop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { jlong jresult = 0 ; EventConsumer *arg1 = (EventConsumer *) 0 ; int arg2 = (int) 0 ; @@ -1696,6 +1762,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1po (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -1705,17 +1772,18 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1po } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1cleanup(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1cleanup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { EventConsumer *arg1 = (EventConsumer *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(EventConsumer **)&jarg1; (arg1)->cleanup(); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { CoreSession *arg1 = (CoreSession *) 0 ; (void)jenv; @@ -1726,12 +1794,13 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSessio } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(switch_core_session_t **)&jarg2; if (arg1) (arg1)->session = arg2; @@ -1739,13 +1808,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sessi } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1session_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (switch_core_session_t *) ((arg1)->session); *(switch_core_session_t **)&jresult = result; @@ -1753,12 +1823,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sess } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *arg2 = (switch_channel_t *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(switch_channel_t **)&jarg2; if (arg1) (arg1)->channel = arg2; @@ -1766,13 +1837,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1chann } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1channel_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (switch_channel_t *) ((arg1)->channel); *(switch_channel_t **)&jresult = result; @@ -1780,12 +1852,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1chan } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int arg2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (unsigned int)jarg2; if (arg1) (arg1)->flags = arg2; @@ -1793,13 +1866,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; unsigned int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (unsigned int) ((arg1)->flags); jresult = (jlong)result; @@ -1807,12 +1881,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flag } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; if (arg1) (arg1)->allocated = arg2; @@ -1820,13 +1895,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1alloc } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1allocated_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int) ((arg1)->allocated); jresult = (jint)result; @@ -1834,12 +1910,14 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1alloc } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *arg2 = (input_callback_state *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(input_callback_state **)&jarg2; if (arg1) (arg1)->cb_state = *arg2; @@ -1847,13 +1925,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1s } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (input_callback_state *)& ((arg1)->cb_state); *(input_callback_state **)&jresult = result; @@ -1861,13 +1940,14 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cb_1 } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t arg2 ; switch_channel_state_t *argp2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; argp2 = *(switch_channel_state_t **)&jarg2; if (!argp2) { @@ -1880,13 +1960,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_ } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = ((arg1)->hook_state); *(switch_channel_state_t **)&jresult = new switch_channel_state_t((switch_channel_state_t &)result); @@ -1894,13 +1975,14 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +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) { @@ -1913,13 +1995,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +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); @@ -1927,12 +2010,13 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1caus } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +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 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -1942,36 +2026,38 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_ { if (arg1->uuid) delete [] arg1->uuid; if (arg2) { - arg1->uuid = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->uuid,arg2); + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); } else { arg1->uuid = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1get(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)->uuid); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -1981,36 +2067,38 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1 { if (arg1->tts_name) delete [] arg1->tts_name; if (arg2) { - arg1->tts_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->tts_name,arg2); + arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->tts_name, (const char *)arg2); } else { arg1->tts_name = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1tts_1name_1get(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)->tts_name); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2020,31 +2108,32 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice { if (arg1->voice_name) delete [] arg1->voice_name; if (arg2) { - arg1->voice_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->voice_name,arg2); + arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->voice_name, (const char *)arg2); } else { arg1->voice_name = 0; } } - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1voice_1name_1get(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)->voice_name); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1insertFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1insertFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jint jarg4) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2054,6 +2143,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1inser (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2068,19 +2158,20 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1inser arg4 = (int)jarg4; result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answer(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->answer(); jresult = (jint)result; @@ -2088,13 +2179,14 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answe } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->preAnswer(); jresult = (jint)result; @@ -2102,12 +2194,13 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAn } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) "normal_clearing" ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2115,27 +2208,29 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangu if (!arg2) return ; } (arg1)->hangup((char const *)arg2); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupState(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupState(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { CoreSession *arg1 = (CoreSession *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; (arg1)->hangupState(); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2148,18 +2243,19 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setVa if (!arg3) return ; } (arg1)->setVariable(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = (void *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2168,11 +2264,11 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setPr } arg3 = *(void **)&jarg3; (arg1)->setPrivate(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getPrivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2180,6 +2276,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getP (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2188,12 +2285,12 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getP } result = (void *)(arg1)->getPrivate(arg2); *(void **)&jresult = result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2201,6 +2298,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ge (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2208,13 +2306,13 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ge if (!arg2) return 0; } result = (char *)(arg1)->getVariable(arg2); - if(result) jresult = jenv->NewStringUTF(result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1process_1callback_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1process_1callback_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2222,6 +2320,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1proc (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2230,12 +2329,12 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1proc } result = (arg1)->process_callback_result(arg2); *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -2245,6 +2344,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say(J (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2272,15 +2372,15 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1say(J if (!arg6) return ; } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) "" ; @@ -2288,6 +2388,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayPh (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2305,41 +2406,43 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayPh if (!arg4) return ; } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupCause(JNIEnv *jenv, jclass jcls, jlong jarg1) { +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(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getState(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getState(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)->getState(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recordFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jint jarg4, jint jarg5) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recordFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jint jarg4, jint jarg5) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2350,6 +2453,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recor (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2361,12 +2465,12 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recor arg5 = (int)jarg5; result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4, jlong jarg5) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3, jint jarg4, jlong jarg5) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; @@ -2377,6 +2481,8 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1origi (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(CoreSession **)&jarg2; arg3 = 0; @@ -2388,28 +2494,30 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1origi arg5 = *(switch_state_handler_table_t **)&jarg5; result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); jresult = (jint)result; - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) { +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(); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) { +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 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(void **)&jarg2; arg3 = 0; @@ -2418,11 +2526,11 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setDT if (!arg3) return ; } (arg1)->setDTMFCallback(arg2,arg3); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1speak(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1speak(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2430,6 +2538,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1speak (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2438,18 +2547,19 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1speak } result = (int)(arg1)->speak(arg2); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1parms(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1parms(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2462,18 +2572,19 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1 if (!arg3) return ; } (arg1)->set_tts_parms(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1params(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1tts_1params(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2486,12 +2597,12 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1set_1 if (!arg3) return ; } (arg1)->set_tts_params(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2499,6 +2610,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1colle (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; result = (int)(arg1)->collectDigits(arg2); @@ -2507,7 +2619,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1colle } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1collectDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2516,6 +2628,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1colle (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2525,7 +2638,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1colle } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2535,6 +2648,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ge (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = 0; @@ -2544,13 +2658,13 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ge } arg4 = (int)jarg4; result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - if(result) jresult = jenv->NewStringUTF(result); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jint jarg5) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4, jint jarg5) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2561,6 +2675,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ge (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = 0; @@ -2571,13 +2686,13 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ge arg4 = (int)jarg4; arg5 = (int)jarg5; result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - if(result) jresult = jenv->NewStringUTF(result); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1transfer(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1transfer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2587,6 +2702,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1trans (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2605,14 +2721,14 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1trans } result = (int)(arg1)->transfer(arg2,arg3,arg4); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3, jstring jarg4, jint jarg5, jstring jarg6, jint jarg7) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jstring jarg4, jint jarg5, jstring jarg6, jint jarg7) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2625,6 +2741,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1re (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2641,14 +2758,14 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1re } arg7 = (int)jarg7; result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - if(result) jresult = jenv->NewStringUTF(result); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); return jresult; } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1playAndGetDigits(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jint jarg11, jstring jarg12) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1playAndGetDigits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jint jarg11, jstring jarg12) { jstring jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2666,6 +2783,7 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1pl (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2703,18 +2821,18 @@ JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1pl if (!arg12) return 0; } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - if(result) jresult = jenv->NewStringUTF(result); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, arg7); - if (arg8) jenv->ReleaseStringUTFChars(jarg8, arg8); - if (arg9) jenv->ReleaseStringUTFChars(jarg9, arg9); - if (arg10) jenv->ReleaseStringUTFChars(jarg10, arg10); - if (arg12) jenv->ReleaseStringUTFChars(jarg12, arg12); + if(result) jresult = jenv->NewStringUTF((const char *)result); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); + if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); + if (arg8) jenv->ReleaseStringUTFChars(jarg8, (const char *)arg8); + if (arg9) jenv->ReleaseStringUTFChars(jarg9, (const char *)arg9); + if (arg10) jenv->ReleaseStringUTFChars(jarg10, (const char *)arg10); + if (arg12) jenv->ReleaseStringUTFChars(jarg12, (const char *)arg12); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1streamFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1streamFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; @@ -2723,6 +2841,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1strea (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2732,12 +2851,12 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1strea arg3 = (int)jarg3; result = (int)(arg1)->streamFile(arg2,arg3); jresult = (jint)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); return jresult; } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sleep(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sleep(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; @@ -2746,6 +2865,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sleep (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; @@ -2755,13 +2875,14 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sleep } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushEvents(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushEvents(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->flushEvents(); jresult = (jint)result; @@ -2769,13 +2890,14 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flush } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushDigits(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flushDigits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; int result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (int)(arg1)->flushDigits(); jresult = (jint)result; @@ -2783,7 +2905,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1flush } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setAutoHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jboolean jarg2) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setAutoHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool arg2 ; @@ -2791,6 +2913,7 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setAu (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = jarg2 ? true : false; result = (int)(arg1)->setAutoHangup(arg2); @@ -2799,25 +2922,27 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setAu } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(void **)&jarg2; (arg1)->setHangupHook(arg2); } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ready(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1ready(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->ready(); jresult = (jboolean)result; @@ -2825,13 +2950,14 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1r } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1bridged(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1bridged(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->bridged(); jresult = (jboolean)result; @@ -2839,13 +2965,14 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1b } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answered(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answered(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->answered(); jresult = (jboolean)result; @@ -2853,13 +2980,14 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1a } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1mediaReady(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1mediaReady(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->mediaReady(); jresult = (jboolean)result; @@ -2867,25 +2995,28 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1m } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1waitForAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1waitForAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(CoreSession **)&jarg2; (arg1)->waitForAnswer(arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1execute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -2898,56 +3029,62 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1execu if (!arg3) return ; } (arg1)->execute((char const *)arg2,(char const *)arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sendEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sendEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(Event **)&jarg2; (arg1)->sendEvent(arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setEventData(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setEventData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(CoreSession **)&jarg1; arg2 = *(Event **)&jarg2; (arg1)->setEventData(arg2); } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getXMLCDR(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getXMLCDR(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)->getXMLCDR(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->begin_allow_threads(); jresult = (jboolean)result; @@ -2955,13 +3092,14 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1b } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; result = (bool)(arg1)->end_allow_threads(); jresult = (jboolean)result; @@ -2969,27 +3107,29 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1e } -JNIEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1uuid(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1uuid(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 *)((CoreSession const *)arg1)->get_uuid(); - if(result) jresult = jenv->NewStringUTF(result); + if(result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1cb_1args(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_1cb_1args(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; switch_input_args_t *result = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; { switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args(); @@ -3000,17 +3140,18 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1get_ } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { CoreSession *arg1 = (CoreSession *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; (arg1)->check_hangup_hook(); } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; @@ -3020,6 +3161,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_ (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = *(void **)&jarg2; argp3 = *(switch_input_type_t **)&jarg3; @@ -3034,13 +3176,14 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_ } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -3053,12 +3196,12 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1conso if (!arg3) return ; } (arg1)->consoleLog(arg2,arg3); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog2(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jint jarg5, jstring jarg6) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1consoleLog2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jint jarg5, jstring jarg6) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -3068,6 +3211,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1conso (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(CoreSession **)&jarg1; arg2 = 0; if (jarg2) { @@ -3091,14 +3235,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1conso if (!arg6) return ; } (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg4) jenv->ReleaseStringUTFChars(jarg4, arg4); - if (arg6) jenv->ReleaseStringUTFChars(jarg6, arg6); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; @@ -3115,12 +3259,12 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log(JNIEn if (!arg2) return ; } console_log(arg1,arg2); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log2(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; @@ -3151,14 +3295,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1log2(JNIE if (!arg5) return ; } console_log2(arg1,arg2,arg3,arg4,arg5); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); - if (arg2) jenv->ReleaseStringUTFChars(jarg2, arg2); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, arg5); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1log(JNIEnv *jenv, jclass jcls, jstring jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1log(JNIEnv *jenv, jclass jcls, jstring jarg1) { char *arg1 = (char *) 0 ; (void)jenv; @@ -3169,11 +3313,11 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1lo if (!arg1) return ; } console_clean_log(arg1); - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jenv, jclass jcls, jlong jarg1) { unsigned int arg1 ; (void)jenv; @@ -3183,12 +3327,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jen } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { CoreSession *arg1 = 0 ; CoreSession *arg2 = 0 ; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(CoreSession **)&jarg1; if(!arg1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & reference is null"); @@ -3203,7 +3349,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *jen } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_status_t result; @@ -3217,7 +3363,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEnv } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) { jlong jresult = 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; void *arg2 = (void *) 0 ; @@ -3245,7 +3391,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(JN } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1set(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1set(JNIEnv *jenv, jclass jcls, jlong jarg1) { JavaVM *arg1 = (JavaVM *) 0 ; (void)jenv; @@ -3256,7 +3402,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1set(JNIEnv } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1get(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1get(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; JavaVM *result = 0 ; @@ -3268,7 +3414,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_javaVM_1get(JNIEn } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateStateHandler(JNIEnv *jenv, jclass jcls, jobject jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateStateHandler(JNIEnv *jenv, jclass jcls, jobject jarg1) { jobject arg1 ; (void)jenv; @@ -3278,7 +3424,7 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateStateH } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; JavaSession *result = 0 ; @@ -3290,7 +3436,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_ } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) { jlong jresult = 0 ; char *arg1 = (char *) 0 ; JavaSession *result = 0 ; @@ -3304,12 +3450,12 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_ } result = (JavaSession *)new JavaSession(arg1); *(JavaSession **)&jresult = result; - if (arg1) jenv->ReleaseStringUTFChars(jarg1, arg1); + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; JavaSession *result = 0 ; @@ -3323,7 +3469,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_ } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1JavaSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1JavaSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { JavaSession *arg1 = (JavaSession *) 0 ; (void)jenv; @@ -3334,13 +3480,14 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1JavaSessio } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1begin_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(JavaSession **)&jarg1; result = (bool)(arg1)->begin_allow_threads(); jresult = (jboolean)result; @@ -3348,13 +3495,14 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1b } -JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1end_1allow_1threads(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jboolean jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; bool result; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(JavaSession **)&jarg1; result = (bool)(arg1)->end_allow_threads(); jresult = (jboolean)result; @@ -3362,13 +3510,14 @@ JNIEXPORT jboolean JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1e } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jstring jarg3) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jstring jarg3) { JavaSession *arg1 = (JavaSession *) 0 ; jobject arg2 ; char *arg3 = (char *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(JavaSession **)&jarg1; arg2 = jarg2; arg3 = 0; @@ -3377,33 +3526,35 @@ JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setDT if (!arg3) return ; } (arg1)->setDTMFCallback(arg2,arg3); - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1setHangupHook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { JavaSession *arg1 = (JavaSession *) 0 ; jobject arg2 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(JavaSession **)&jarg1; arg2 = jarg2; (arg1)->setHangupHook(arg2); } -JNIEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1check_1hangup_1hook(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { JavaSession *arg1 = (JavaSession *) 0 ; (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(JavaSession **)&jarg1; (arg1)->check_hangup_hook(); } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_1dtmf_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; void *arg2 = (void *) 0 ; @@ -3413,6 +3564,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_ (void)jenv; (void)jcls; + (void)jarg1_; arg1 = *(JavaSession **)&jarg1; arg2 = *(void **)&jarg2; argp3 = *(switch_input_type_t **)&jarg3; @@ -3427,7 +3579,7 @@ JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_ } -JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4) { +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1originate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3, jint jarg4) { jint jresult = 0 ; JavaSession *arg1 = (JavaSession *) 0 ; JavaSession *arg2 = (JavaSession *) 0 ; @@ -3437,6 +3589,8 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1origi (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; arg1 = *(JavaSession **)&jarg1; arg2 = *(JavaSession **)&jarg2; arg3 = 0; @@ -3447,12 +3601,12 @@ JNIEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1origi arg4 = (int)jarg4; result = (int)(arg1)->originate(arg2,arg3,arg4); jresult = (jint)result; - if (arg3) jenv->ReleaseStringUTFChars(jarg3, arg3); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); return jresult; } -JNIEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_SWIGJavaSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_SWIGJavaSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong baseptr = 0; (void)jenv; (void)jcls; diff --git a/src/mod/languages/mod_lua/mod_lua_wrap.cpp b/src/mod/languages/mod_lua/mod_lua_wrap.cpp index 0a66f05699..256f86b98b 100644 --- a/src/mod/languages/mod_lua/mod_lua_wrap.cpp +++ b/src/mod/languages/mod_lua/mod_lua_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -10,7 +10,7 @@ #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -23,6 +23,10 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; + +template T SwigValueInit() { + return T(); +} #endif /* ----------------------------------------------------------------------------- @@ -32,14 +36,14 @@ private: /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) -# if (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -118,10 +122,16 @@ private: #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -131,7 +141,7 @@ private: /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "2" +#define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -166,6 +176,7 @@ private: /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -306,10 +317,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *); +typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store inforomation on one type */ +/* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -354,7 +365,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (l1 - f1) - (l2 - f2); + return (int)((l1 - f1) - (l2 - f2)); } /* @@ -436,8 +447,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* @@ -708,7 +719,8 @@ extern "C" { #include "lua.h" #include "lauxlib.h" -#include /* for a few sanity tests */ +#include /* for malloc */ +#include /* for a few sanity tests */ /* ----------------------------------------------------------------------------- * global swig types @@ -719,12 +731,7 @@ extern "C" { #define SWIG_LUA_STRING 3 #define SWIG_LUA_POINTER 4 #define SWIG_LUA_BINARY 5 - -/* Structure for command table (replaced by luaLib's luaL_reg) */ -/*typedef struct { - const char *name; - lua_CFunction wrapper; -} swig_lua_command_info;*/ +#define SWIG_LUA_CHAR 6 /* Structure for variable linking table */ typedef struct { @@ -755,29 +762,42 @@ typedef struct { } swig_lua_attribute; typedef struct swig_lua_class { - const char *name; + const char *name; swig_type_info **type; - lua_CFunction constructor; - void (*destructor)(void *); - swig_lua_method *methods; + lua_CFunction constructor; + void (*destructor)(void *); + swig_lua_method *methods; swig_lua_attribute *attributes; struct swig_lua_class **bases; + const char **base_names; } swig_lua_class; +/* this is the struct for wrappering all pointers in SwigLua +*/ typedef struct { - void *ptr; swig_type_info *type; - int own; /* 1 if owned & must be destroyed */ + int own; /* 1 if owned & must be destroyed */ + void *ptr; } swig_lua_userdata; +/* this is the struct for wrapping arbitary packed binary data +(currently it is only used for member function pointers) +the data ordering is similar to swig_lua_userdata, but it is currently not possible +to tell the two structures apart within Swig, other than by looking at the type +*/ +typedef struct { + swig_type_info *type; + int own; /* 1 if owned & must be destroyed */ + char data[1]; /* arbitary amount of data */ +} swig_lua_rawdata; /* Common SWIG API */ -#define SWIG_NewPointerObj(L, ptr, type, owner) \ - SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) -#define SWIG_ConvertPtr(L,idx, ptr, type, flags) \ - SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) -#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) \ - SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) +#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) +#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) +#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) +#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) @@ -788,141 +808,193 @@ typedef struct { #define SWIG_contract_assert(expr, msg) \ if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else - - /* helper #defines */ #define SWIG_fail {goto fail;} -#define SWIG_fail_arg(I) {lua_pushfstring(L,"argument %d incorrect/missing",I);goto fail;} +#define SWIG_fail_arg(func_name,argnum,type) \ + {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ + func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ + goto fail;} +#define SWIG_fail_ptr(func_name,argnum,type) \ + SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") +#define SWIG_check_num_args(func_name,a,b) \ + if (lua_gettop(L)b) \ + {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ + goto fail;} + #define SWIG_Lua_get_table(L,n) \ - (lua_pushstring(L, n), lua_rawget(L,-2)) + (lua_pushstring(L, n), lua_rawget(L,-2)) #define SWIG_Lua_add_function(L,n,f) \ - (lua_pushstring(L, n), \ - lua_pushcfunction(L, f), \ - lua_rawset(L,-3)) + (lua_pushstring(L, n), \ + lua_pushcfunction(L, f), \ + lua_rawset(L,-3)) + +/* special helper for allowing 'nil' for usertypes */ +#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) + +#ifdef __cplusplus +/* Special helper for member function pointers +it gets the address, casts it, then dereferences it */ +//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) +#endif + +/* storing/access of swig_module_info */ +SWIGRUNTIME swig_module_info * +SWIG_Lua_GetModule(lua_State* L) { + swig_module_info *ret = 0; + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_rawget(L,LUA_REGISTRYINDEX); + if (lua_islightuserdata(L,-1)) + ret=(swig_module_info*)lua_touserdata(L,-1); + lua_pop(L,1); /* tidy */ + return ret; +} + +SWIGRUNTIME void +SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { + /* add this all into the Lua registry: */ + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_pushlightuserdata(L,(void*)module); + lua_rawset(L,LUA_REGISTRYINDEX); +} /* ----------------------------------------------------------------------------- * global variable support code: modules * ----------------------------------------------------------------------------- */ +/* this function is called when trying to set an immutable. +default value is to print an error. +This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ +SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) +{ +/* there should be 1 param passed in: the new value */ +#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE + lua_pop(L,1); /* remove it */ + lua_pushstring(L,"This variable is immutable"); + lua_error(L); +#endif + return 0; /* should not return anything */ +} + /* the module.get method used for getting linked data */ SWIGINTERN int SWIG_Lua_module_get(lua_State* L) { -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); +/* there should be 2 params passed in + (1) table (not the meta table) + (2) string name of the attribute + printf("SWIG_Lua_module_get %p(%s) '%s'\n", + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2)); */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* get the .get table */ + lua_remove(L,3); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,3); /* remove .get */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_call(L,0,1); + return 1; + } + lua_pop(L,1); /* remove the top */ + } + lua_pop(L,1); /* remove the .get */ + lua_pushnil(L); /* return a nil */ return 1; } /* the module.set method used for setting linked data */ SWIGINTERN int SWIG_Lua_module_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .set */ - return 0; + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".set"); /* get the .set table */ + lua_remove(L,4); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,4); /* remove .set */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,3); /* value */ + lua_call(L,1,0); + return 0; + } + } + lua_settop(L,3); /* reset back to start */ + /* we now have the table, key & new value, so just set directly */ + lua_rawset(L,1); /* add direct */ + return 0; } /* registering a module in lua */ SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushstring(L,name); + lua_newtable(L); /* the table */ + /* add meta table */ + lua_newtable(L); /* the meta table */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); + lua_pushstring(L,".get"); + lua_newtable(L); /* the .get table */ + lua_rawset(L,-3); /* add .get into metatable */ + lua_pushstring(L,".set"); + lua_newtable(L); /* the .set table */ + lua_rawset(L,-3); /* add .set into metatable */ + lua_setmetatable(L,-2); /* sets meta table in module */ + lua_rawset(L,-3); /* add module into parent */ + SWIG_Lua_get_table(L,name); /* get the table back out */ } /* ending the register */ SWIGINTERN void SWIG_Lua_module_end(lua_State* L) { - lua_pop(L,1); /* tidy stack (remove module) */ + lua_pop(L,1); /* tidy stack (remove module) */ } /* adding a linked variable to the module */ SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_istable(L,-1)); /* just in case */ + lua_getmetatable(L,-1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) /* if there is a set fn */ + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } + lua_pop(L,1); /* tidy stack (remove meta) */ } /* adding a function module */ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_add_function(L,name,fn); } /* ----------------------------------------------------------------------------- @@ -932,307 +1004,383 @@ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_ /* the class.get method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_get(lua_State* L) { -/* there should be 2 params passed in - (1) userdata (not the meta table) - (2) string name of the attribute +/* there should be 2 params passed in + (1) userdata (not the meta table) + (2) string name of the attribute */ - assert(lua_isuserdata(L,-2)); /* just in case */ - lua_getmetatable(L,-2); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,-2); /* stack tidy, remove .get table */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* ok, so try the .fn table */ - SWIG_Lua_get_table(L,".fn"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); /* look for the fn */ - lua_remove(L,-2); /* stack tidy, remove .fn table */ - if (lua_iscfunction(L,-1)) - { /* found it so return the fn & let lua call it */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* NEW: looks for the __getitem() fn - this is a user provided get fn */ - SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; /* sorry not known */ + assert(lua_isuserdata(L,-2)); /* just in case */ + lua_getmetatable(L,-2); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,-2); /* stack tidy, remove .get table */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* ok, so try the .fn table */ + SWIG_Lua_get_table(L,".fn"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); /* look for the fn */ + lua_remove(L,-2); /* stack tidy, remove .fn table */ + if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */ + { /* found it so return the fn & let lua call it */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* NEW: looks for the __getitem() fn + this is a user provided get fn */ + SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; /* sorry not known */ } /* the class.set method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2), + lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ + assert(lua_isuserdata(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ - lua_call(L,2,0); - return 0; - } - lua_pop(L,1); /* remove the value */ - } - lua_pop(L,1); /* remove the value .set table */ - /* NEW: looks for the __setitem() fn - this is a user provided set fn */ - SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ - lua_call(L,3,0); /* 3 values in ,0 out */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* userdata */ + lua_pushvalue(L,3); /* value */ + lua_call(L,2,0); + return 0; + } + lua_pop(L,1); /* remove the value */ + } + lua_pop(L,1); /* remove the value .set table */ + /* NEW: looks for the __setitem() fn + this is a user provided set fn */ + SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_pushvalue(L,3); /* the value */ + lua_call(L,3,0); /* 3 values in ,0 out */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; } /* the class.destruct method called by the interpreter */ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) { -/* there should be 1 params passed in - (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; - assert(lua_isuserdata(L,-1)); /* just in case */ - usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ - /* if must be destroyed & has a destructor */ - if (usr->own) /* if must be destroyed */ - { - clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ - if (clss && clss->destructor) /* there is a destroy fn */ - { - clss->destructor(usr->ptr); /* bye bye */ - } - } - return 0; +/* there should be 1 params passed in + (1) userdata (not the meta table) */ + swig_lua_userdata* usr; + swig_lua_class* clss; + assert(lua_isuserdata(L,-1)); /* just in case */ + usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ + /* if must be destroyed & has a destructor */ + if (usr->own) /* if must be destroyed */ + { + clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ + if (clss && clss->destructor) /* there is a destroy fn */ + { + clss->destructor(usr->ptr); /* bye bye */ + } + } + return 0; } /* gets the swig class registry (or creates it) */ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) { - /* add this all into the swig registry: */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ - if (!lua_istable(L,-1)) /* not there */ - { /* must be first time, so add it */ - lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); - /* then get it */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); - } + /* add this all into the swig registry: */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ + if (!lua_istable(L,-1)) /* not there */ + { /* must be first time, so add it */ + lua_pop(L,1); /* remove the result */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + lua_rawset(L,LUA_REGISTRYINDEX); + /* then get it */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); + } } /* helper fn to get the classes metatable from the register */ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) { - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,cname); /* get the name */ - lua_rawget(L,-2); /* get it */ - lua_remove(L,-2); /* tidy up (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,cname); /* get the name */ + lua_rawget(L,-2); /* get it */ + lua_remove(L,-2); /* tidy up (remove registry) */ } /* helper add a variable to a registered class */ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } } /* helper to recursively add class details (attributes & operations) */ SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) { - int i; - /* call all the base classes first: we can then override these later: */ - for(i=0;clss->bases[i];i++) - { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ - for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); - } - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - } + int i; + /* call all the base classes first: we can then override these later: */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_add_class_details(L,clss->bases[i]); + } + /* add fns */ + for(i=0;clss->attributes[i].name;i++){ + SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + } + /* add methods to the metatable */ + SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ + assert(lua_istable(L,-1)); /* just in case */ + for(i=0;clss->methods[i].name;i++){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + lua_pop(L,1); /* tidy stack (remove table) */ + /* add operator overloads + these look ANY method which start with "__" and assume they + are operator overloads & add them to the metatable + (this might mess up is someone defines a method __gc (the destructor)*/ + for(i=0;clss->methods[i].name;i++){ + if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + } +} + +/* set up the base classes pointers. +Each class structure has a list of pointers to the base class structures. +This function fills them. +It cannot be done at compile time, as this will not work with hireachies +spread over more than one swig file. +Therefore it must be done at runtime, querying the SWIG type system. +*/ +SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) +{ + int i=0; + swig_module_info* module=SWIG_GetModule(L); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* not found yet */ + { + /* lookup and cache the base class */ + swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); + if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + } + } } /* performs the entire class registration process */ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) { -/* add its constructor to module with the name of the class - so you can do MyClass(...) as well as new_MyClass(...) - BUT only if a constructor is defined - (this overcomes the problem of pure virtual classes without constructors)*/ - if (clss->constructor) - SWIG_Lua_add_function(L,clss->name,clss->constructor); + /* add its constructor to module with the name of the class + so you can do MyClass(...) as well as new_MyClass(...) + BUT only if a constructor is defined + (this overcomes the problem of pure virtual classes without constructors)*/ + if (clss->constructor) + SWIG_Lua_add_function(L,clss->name,clss->constructor); - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ - lua_newtable(L); /* create the metatable */ - /* add string of class name called ".type" */ - lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); - lua_rawset(L,-3); - /* add a table called ".get" */ - lua_pushstring(L,".get"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".set" */ - lua_pushstring(L,".set"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".fn" */ - lua_pushstring(L,".fn"); - lua_newtable(L); - lua_rawset(L,-3); - /* add accessor fns for using the .get,.set&.fn */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); - SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add it */ - lua_rawset(L,-3); /* metatable into registry */ - lua_pop(L,1); /* tidy stack (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->name); /* get the name */ + lua_newtable(L); /* create the metatable */ + /* add string of class name called ".type" */ + lua_pushstring(L,".type"); + lua_pushstring(L,clss->name); + lua_rawset(L,-3); + /* add a table called ".get" */ + lua_pushstring(L,".get"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".set" */ + lua_pushstring(L,".set"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".fn" */ + lua_pushstring(L,".fn"); + lua_newtable(L); + lua_rawset(L,-3); + /* add accessor fns for using the .get,.set&.fn */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); + SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); + /* add it */ + lua_rawset(L,-3); /* metatable into registry */ + lua_pop(L,1); /* tidy stack (remove registry) */ - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ - lua_pop(L,1); /* tidy stack (remove class metatable) */ + SWIG_Lua_get_class_metatable(L,clss->name); + SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ + lua_pop(L,1); /* tidy stack (remove class metatable) */ } /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ +/* helper to add metatable to new lua object */ +SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) +{ + if (type->clientdata) /* there is clientdata: so add the metatable */ + { + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + if (lua_istable(L,-1)) + { + lua_setmetatable(L,-2); + } + else + { + lua_pop(L,1); + } + } +} + /* pushes a new object into the lua stack */ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; - if (!ptr){ - lua_pushnil(L); - return; - } - usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ - usr->ptr=ptr; /* set the ptr */ - usr->type=type; - usr->own=own; - if (type->clientdata) /* there is clientdata: so add the metatable */ - { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); - if (lua_istable(L,-1)) - { - lua_setmetatable(L,-2); - } - else - { - lua_pop(L,1); - } - } + swig_lua_userdata* usr; + if (!ptr){ + lua_pushnil(L); + return; + } + usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ + usr->ptr=ptr; /* set the ptr */ + usr->type=type; + usr->own=own; + _SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; - swig_cast_info *cast; - usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ - if (usr) - { - cast=SWIG_TypeCheckStruct(usr->type,type); - if (cast) - { - *ptr=SWIG_TypeCast(cast,usr->ptr); - return 0; /* ok */ - } - } - return 1; /* error */ + swig_lua_userdata* usr; + swig_cast_info *cast; + if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ + usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ + if (usr) + { + if (flags & SWIG_POINTER_DISOWN) /* must disown the object */ + { + usr->own=0; + } + if (!type) /* special cast void*, no casting fn */ + { + *ptr=usr->ptr; + return SWIG_OK; /* ok */ + } + cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */ + if (cast) + { + int newmemory = 0; + *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + return SWIG_OK; /* ok */ + } + } + return SWIG_ERROR; /* error */ } SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; - if (SWIG_ConvertPtr(L,index,&result,type,flags)){ - lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", - func_name,(type && type->str)?type->str:"void*",argnum); - lua_error(L); - } - return result; + int argnum,const char* func_name){ + void* result; + if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ + lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", + func_name,(type && type->str)?type->str:"void*",argnum); + lua_error(L); + } + return result; +} + +/* pushes a packed userdata. user for member fn pointers only */ +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) +{ + swig_lua_rawdata* raw; + assert(ptr); /* not acceptable to pass in a NULL value */ + raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ + raw->type=type; + raw->own=0; + memcpy(raw->data,ptr,size); /* copy the data */ + _SWIG_Lua_AddMetatable(L,type); /* add metatable */ +} + +/* converts a packed userdata. user for member fn pointers only */ +SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) +{ + swig_lua_rawdata* raw; + raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ + if (!raw) return SWIG_ERROR; /* error */ + if (type==0 || type==raw->type) /* void* or identical type */ + { + memcpy(ptr,raw->data,size); /* copy it */ + return SWIG_OK; /* ok */ + } + return SWIG_ERROR; /* error */ +} + +/* a function to get the typestring of a piece of data */ +SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) +{ + swig_lua_userdata* usr; + if (lua_isuserdata(L,tp)) + { + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + if (usr && usr->type && usr->type->str) + return usr->type->str; + return "userdata (unknown type)"; + } + return lua_typename(L,lua_type(L,tp)); } /* lua callable function to get the userdata's type */ SWIGRUNTIME int SWIG_Lua_type(lua_State* L) { - swig_lua_userdata* usr; - if (!lua_isuserdata(L,1)) /* just in case */ - return 0; /* nil reply */ - usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - lua_pushstring(L,usr->type->name); - return 1; + lua_pushstring(L,SWIG_Lua_typename(L,1)); + return 1; } /* lua callable function to compare userdata's value @@ -1240,18 +1388,18 @@ the issue is that two userdata may point to the same thing but to lua, they are different objects */ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) { - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); - lua_pushboolean(L,result); - return 1; + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ + result=(usr1->ptr==usr2->ptr); + lua_pushboolean(L,result); + return 1; } - /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1264,12 +1412,17 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(double)constants[i].lvalue); + lua_pushnumber(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(double)constants[i].dvalue); + lua_pushnumber(L,(lua_Number)constants[i].dvalue); + lua_rawset(L,-3); + break; + case SWIG_LUA_CHAR: + lua_pushstring(L,constants[i].name); + lua_pushfstring(L,"%c",(char)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1283,8 +1436,9 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { lua_rawset(L,-3); break; case SWIG_LUA_BINARY: - /* TODO?? */ -/* obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); */ + lua_pushstring(L,constants[i].name); + SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); + lua_rawset(L,-3); break; default: break; @@ -1292,25 +1446,34 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { } } -/* storing/access of swig_module_info */ -SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { - swig_module_info *ret = 0; - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_rawget(L,LUA_REGISTRYINDEX); - if (lua_islightuserdata(L,-1)) - ret=(swig_module_info*)lua_touserdata(L,-1); - lua_pop(L,1); /* tidy */ - return ret; -} +/* ----------------------------------------------------------------------------- + * executing lua code from within the wrapper + * ----------------------------------------------------------------------------- */ -SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { - /* add this all into the Lua registry: */ - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_pushlightuserdata(L,(void*)module); - lua_rawset(L,LUA_REGISTRYINDEX); -} +#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */ +#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) +#endif +/* Executes a C string in Lua a really simple way of calling lua from C +Unfortunately lua keeps changing its API's, so we need a conditional compile +In lua 5.0.X its lua_dostring() +In lua 5.1.X its luaL_dostring() +*/ +SWIGINTERN int +SWIG_Lua_dostring(lua_State *L, const char* str) { + int ok,top; + if (str==0 || str[0]==0) return 0; /* nothing to do */ + top=lua_gettop(L); /* save stack */ +#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) + ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */ +#else + ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */ +#endif + if (ok!=0) { + SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); + } + lua_settop(L,top); /* restore the stack */ + return ok; +} #ifdef __cplusplus } @@ -1321,15 +1484,15 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* -------- TYPES TABLE (BEGIN) -------- */ -#define SWIGTYPE_SWIGLUA_FN swig_types[0] -#define SWIGTYPE_p_API swig_types[1] -#define SWIGTYPE_p_CoreSession swig_types[2] -#define SWIGTYPE_p_DTMF swig_types[3] -#define SWIGTYPE_p_Event swig_types[4] -#define SWIGTYPE_p_EventConsumer swig_types[5] -#define SWIGTYPE_p_IVRMenu swig_types[6] -#define SWIGTYPE_p_LUA__Dbh swig_types[7] -#define SWIGTYPE_p_LUA__Session swig_types[8] +#define SWIGTYPE_p_API swig_types[0] +#define SWIGTYPE_p_CoreSession swig_types[1] +#define SWIGTYPE_p_DTMF swig_types[2] +#define SWIGTYPE_p_Event swig_types[3] +#define SWIGTYPE_p_EventConsumer swig_types[4] +#define SWIGTYPE_p_IVRMenu swig_types[5] +#define SWIGTYPE_p_LUA__Dbh swig_types[6] +#define SWIGTYPE_p_LUA__Session swig_types[7] +#define SWIGTYPE_p_SWIGLUA_FN swig_types[8] #define SWIGTYPE_p_Stream swig_types[9] #define SWIGTYPE_p_input_callback_state swig_types[10] #define SWIGTYPE_p_int swig_types[11] @@ -1351,22 +1514,23 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { #define SWIGTYPE_p_switch_stream_handle_t swig_types[27] #define SWIGTYPE_p_uint32_t swig_types[28] #define SWIGTYPE_p_void swig_types[29] -#define SWIGTYPE_switch_call_cause_t swig_types[30] -#define SWIGTYPE_switch_channel_state_t swig_types[31] -#define SWIGTYPE_switch_event_types_t swig_types[32] -#define SWIGTYPE_switch_input_type_t swig_types[33] -#define SWIGTYPE_switch_priority_t swig_types[34] -#define SWIGTYPE_uint32_t swig_types[35] -static swig_type_info *swig_types[37]; -static swig_module_info swig_module = {swig_types, 36, 0, 0, 0, 0}; +static swig_type_info *swig_types[31]; +static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ -#define SWIG_init Freeswitch_Init -#define SWIG_name "freeswitch" -#define SWIG_import luaopen_freeswitch +#define SWIG_name "freeswitch" +#define SWIG_init luaopen_freeswitch +#define SWIG_init_user luaopen_freeswitch_user + +#define SWIG_LUACODE luaopen_freeswitch_luacode + + +namespace swig { +typedef struct{} LANGUAGE_OBJ; +} #include "switch.h" @@ -1374,15 +1538,13 @@ static swig_module_info swig_module = {swig_types, 36, 0, 0, 0, 0}; #include "freeswitch_lua.h" - #ifdef __cplusplus /* generic alloc/dealloc fns*/ -#define SWIG_ALLOC_ARRAY(TYPE,LEN) new (TYPE)[LEN] -#define SWIG_FREE_ARRAY(PTR) if(PTR){delete[] PTR;} +#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN] +#define SWIG_FREE_ARRAY(PTR) delete[] PTR; #else #define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE)) -#define SWIG_FREE_ARRAY(PTR) if(PTR){free(PTR);} +#define SWIG_FREE_ARRAY(PTR) free(PTR); #endif - /* counting the size of arrays:*/ int SWIG_itable_size(lua_State* L, int index) { @@ -1538,15 +1700,18 @@ static int _wrap_setGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("setGlobalVariable",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); setGlobalVariable(arg1,arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1558,14 +1723,17 @@ static int _wrap_getGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("getGlobalVariable",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); result = (char *)getGlobalVariable(arg1); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; free(result); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1577,15 +1745,18 @@ static int _wrap_consoleLog(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("consoleLog",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); consoleLog(arg1,arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1600,21 +1771,24 @@ static int _wrap_consoleLog2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("consoleLog2",5,5) + if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int"); + if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char*)lua_tostring(L, 5); + arg5 = (char *)lua_tostring(L, 5); consoleLog2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1625,13 +1799,16 @@ static int _wrap_consoleCleanLog(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("consoleCleanLog",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); consoleCleanLog(arg1); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1642,11 +1819,14 @@ static int _wrap_running(lua_State* L) { int SWIG_arg = -1; bool result; + SWIG_check_num_args("running",0,0) result = (bool)running(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1664,35 +1844,38 @@ static int _wrap_email(lua_State* L) { char *arg7 = (char *) NULL ; bool result; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); - if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg(5); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); - if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg(7); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("email",2,7) + if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *"); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *"); + if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *"); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *"); + if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); } if(lua_gettop(L)>=5){ - arg5 = (char*)lua_tostring(L, 5); + arg5 = (char *)lua_tostring(L, 5); } if(lua_gettop(L)>=6){ - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); } if(lua_gettop(L)>=7){ - arg7 = (char*)lua_tostring(L, 7); + arg7 = (char *)lua_tostring(L, 7); } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1720,34 +1903,39 @@ static int _wrap_new_IVRMenu(lua_State* L) { int arg17 ; IVRMenu *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - if(!lua_isstring(L,7)) SWIG_fail_arg(7); - if(!lua_isstring(L,8)) SWIG_fail_arg(8); - if(!lua_isstring(L,9)) SWIG_fail_arg(9); - if(!lua_isstring(L,10)) SWIG_fail_arg(10); - if(!lua_isstring(L,11)) SWIG_fail_arg(11); - if(!lua_isnumber(L,12)) SWIG_fail_arg(12); - if(!lua_isnumber(L,13)) SWIG_fail_arg(13); - if(!lua_isnumber(L,14)) SWIG_fail_arg(14); - if(!lua_isnumber(L,15)) SWIG_fail_arg(15); - if(!lua_isnumber(L,16)) SWIG_fail_arg(16); - if(!lua_isnumber(L,17)) SWIG_fail_arg(17); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"new_IVRMenu"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); - arg5 = (char*)lua_tostring(L, 5); - arg6 = (char*)lua_tostring(L, 6); - arg7 = (char*)lua_tostring(L, 7); - arg8 = (char*)lua_tostring(L, 8); - arg9 = (char*)lua_tostring(L, 9); - arg10 = (char*)lua_tostring(L, 10); - arg11 = (char*)lua_tostring(L, 11); + SWIG_check_num_args("IVRMenu",17,17) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *"); + if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *"); + if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *"); + if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *"); + if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *"); + if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *"); + if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *"); + if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *"); + if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int"); + if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int"); + if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int"); + if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int"); + if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int"); + if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ + SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); + arg5 = (char *)lua_tostring(L, 5); + arg6 = (char *)lua_tostring(L, 6); + arg7 = (char *)lua_tostring(L, 7); + arg8 = (char *)lua_tostring(L, 8); + arg9 = (char *)lua_tostring(L, 9); + arg10 = (char *)lua_tostring(L, 10); + arg11 = (char *)lua_tostring(L, 11); arg12 = (int)lua_tonumber(L, 12); arg13 = (int)lua_tonumber(L, 13); arg14 = (int)lua_tonumber(L, 14); @@ -1759,6 +1947,8 @@ static int _wrap_new_IVRMenu(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1769,14 +1959,21 @@ static int _wrap_delete_IVRMenu(lua_State* L) { int SWIG_arg = -1; IVRMenu *arg1 = (IVRMenu *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"delete_IVRMenu"); + SWIG_check_num_args("IVRMenu",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1790,19 +1987,26 @@ static int _wrap_IVRMenu_bindAction(lua_State* L) { char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_bindAction"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); + SWIG_check_num_args("bindAction",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bindAction",1,"IVRMenu *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ + SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1815,17 +2019,28 @@ static int _wrap_IVRMenu_execute(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_execute"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"IVRMenu_execute"); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("execute",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"IVRMenu *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("execute",2,"CoreSession *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ + SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("IVRMenu_execute",2,SWIGTYPE_p_CoreSession); + } + + arg3 = (char *)lua_tostring(L, 3); (arg1)->execute(arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1845,22 +2060,28 @@ static swig_lua_attribute swig_IVRMenu_attributes[] = { {0,0,0} }; static swig_lua_class *swig_IVRMenu_bases[] = {0}; -swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases }; +static const char *swig_IVRMenu_base_names[] = {0}; +static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names }; static int _wrap_new_API(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) NULL ; API *result = 0 ; - if(lua_gettop(L)>=1 && !lua_isuserdata(L,1)) SWIG_fail_arg(1); + SWIG_check_num_args("API",0,1) + if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"CoreSession *"); if(lua_gettop(L)>=1){ - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"new_API"); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession); + } } result = (API *)new API(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1871,14 +2092,21 @@ static int _wrap_delete_API(lua_State* L) { int SWIG_arg = -1; API *arg1 = (API *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"delete_API"); + SWIG_check_num_args("API",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"API *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1892,20 +2120,27 @@ static int _wrap_API_execute(lua_State* L) { char *arg3 = (char *) NULL ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_execute"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("execute",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"API *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ + SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; free(result); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1918,16 +2153,23 @@ static int _wrap_API_executeString(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_executeString"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("executeString",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("executeString",1,"API *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ + SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API); + } + + arg2 = (char *)lua_tostring(L, 2); result = (char *)(arg1)->executeString((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; free(result); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1939,13 +2181,20 @@ static int _wrap_API_getTime(lua_State* L) { API *arg1 = (API *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_getTime"); + SWIG_check_num_args("getTime",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ + SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API); + } + result = (char *)(arg1)->getTime(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1966,23 +2215,31 @@ static swig_lua_attribute swig_API_attributes[] = { {0,0,0} }; static swig_lua_class *swig_API_bases[] = {0}; -swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases }; +static const char *swig_API_base_names[] = {0}; +static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names }; static int _wrap_input_callback_state_t_function_set(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_set"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("function",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("function",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set"); if (arg1) (arg1)->function = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1994,13 +2251,20 @@ static int _wrap_input_callback_state_t_function_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_get"); + SWIG_check_num_args("function",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state); + } + result = (void *) ((arg1)->function); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2012,16 +2276,23 @@ static int _wrap_input_callback_state_t_threadState_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_set"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("threadState",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("threadState",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set"); if (arg1) (arg1)->threadState = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2033,13 +2304,20 @@ static int _wrap_input_callback_state_t_threadState_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_get"); + SWIG_check_num_args("threadState",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state); + } + result = (void *) ((arg1)->threadState); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2051,16 +2329,23 @@ static int _wrap_input_callback_state_t_extra_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_set"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("extra",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("extra",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set"); if (arg1) (arg1)->extra = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2072,13 +2357,20 @@ static int _wrap_input_callback_state_t_extra_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_get"); + SWIG_check_num_args("extra",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state); + } + result = (void *) ((arg1)->extra); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2090,15 +2382,20 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("funcargs",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->funcargs) delete [] arg1->funcargs; if (arg2) { - arg1->funcargs = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->funcargs,arg2); + arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->funcargs, (const char *)arg2); } else { arg1->funcargs = 0; } @@ -2107,6 +2404,8 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2118,13 +2417,20 @@ static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_get"); + SWIG_check_num_args("funcargs",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state); + } + result = (char *) ((arg1)->funcargs); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2135,11 +2441,14 @@ static int _wrap_new_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *result = 0 ; + SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0) result = (input_callback_state_t *)new input_callback_state_t(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2150,14 +2459,21 @@ static int _wrap_delete_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"delete_input_callback_state_t"); + SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2172,30 +2488,38 @@ static swig_lua_method swig_input_callback_state_t_methods[] = { {0,0} }; static swig_lua_attribute swig_input_callback_state_t_attributes[] = { - { "function",_wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, - { "threadState",_wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, - { "extra",_wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, - { "funcargs",_wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, + { "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, + { "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, + { "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, + { "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, {0,0,0} }; static swig_lua_class *swig_input_callback_state_t_bases[] = {0}; -swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases }; +static const char *swig_input_callback_state_t_base_names[] = {0}; +static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names }; static int _wrap_DTMF_digit_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; char arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_set"); - arg2 = ((char*)lua_tostring(L, 2))[0]; + SWIG_check_num_args("digit",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF); + } + + arg2 = (lua_tostring(L, 2))[0]; if (arg1) (arg1)->digit = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2207,13 +2531,20 @@ static int _wrap_DTMF_digit_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; char result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_get"); + SWIG_check_num_args("digit",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF); + } + result = (char) ((arg1)->digit); SWIG_arg=0; lua_pushfstring(L,"%c",result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2224,21 +2555,30 @@ static int _wrap_DTMF_duration_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; uint32_t arg2 ; + uint32_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_set"); - { - uint32_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("duration",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ + SWIG_fail_ptr("DTMF_duration_set",2,SWIGTYPE_p_uint32_t); + } + arg2 = *argp2; + if (arg1) (arg1)->duration = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2250,17 +2590,23 @@ static int _wrap_DTMF_duration_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; uint32_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_get"); + SWIG_check_num_args("duration",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF); + } + result = ((arg1)->duration); SWIG_arg=0; { - uint32_t * resultptr; - resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2272,22 +2618,25 @@ static int _wrap_new_DTMF(lua_State* L) { char arg1 ; uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ; DTMF *result = 0 ; + uint32_t *argp2 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1 = ((char*)lua_tostring(L, 1))[0]; + SWIG_check_num_args("DTMF",1,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char"); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t"); + arg1 = (lua_tostring(L, 1))[0]; if(lua_gettop(L)>=2){ - { - uint32_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; - arg2 = *argp; + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ + SWIG_fail_ptr("new_DTMF",2,SWIGTYPE_p_uint32_t); } + arg2 = *argp2; } result = (DTMF *)new DTMF(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2298,14 +2647,21 @@ static int _wrap_delete_DTMF(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"delete_DTMF"); + SWIG_check_num_args("DTMF",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF",1,"DTMF *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2320,22 +2676,26 @@ static swig_lua_method swig_DTMF_methods[] = { {0,0} }; static swig_lua_attribute swig_DTMF_attributes[] = { - { "digit",_wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, - { "duration",_wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, + { "digit", _wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, + { "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, {0,0,0} }; static swig_lua_class *swig_DTMF_bases[] = {0}; -swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases }; +static const char *swig_DTMF_base_names[] = {0}; +static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names }; static int _wrap_new_Stream__SWIG_0(lua_State* L) { int SWIG_arg = -1; Stream *result = 0 ; + SWIG_check_num_args("Stream",0,0) result = (Stream *)new Stream(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2347,13 +2707,20 @@ static int _wrap_new_Stream__SWIG_1(lua_State* L) { switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; Stream *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(switch_stream_handle_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_stream_handle_t,0,1,"new_Stream"); + SWIG_check_num_args("Stream",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))){ + SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t); + } + result = (Stream *)new Stream(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2374,7 +2741,7 @@ static int _wrap_new_Stream(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { _v = 0; } else { _v = 1; @@ -2394,14 +2761,21 @@ static int _wrap_delete_Stream(lua_State* L) { int SWIG_arg = -1; Stream *arg1 = (Stream *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"delete_Stream"); + SWIG_check_num_args("Stream",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"Stream *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2416,14 +2790,21 @@ static int _wrap_Stream_read(lua_State* L) { int temp2 ; arg2 = &temp2; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_read"); + SWIG_check_num_args("read",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream); + } + result = (char *)(arg1)->read(arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushlstring(L,(const char*)result, (*arg2)); SWIG_arg++; lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2435,15 +2816,22 @@ static int _wrap_Stream_write(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_write"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("write",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("write",1,"Stream *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->write((char const *)arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2456,17 +2844,24 @@ static int _wrap_Stream_raw_write(lua_State* L) { char *arg2 = (char *) 0 ; int arg3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_raw_write"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("raw_write",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream); + } + + arg2 = (char *)lua_tostring(L, 2); arg3 = (int)lua_tonumber(L, 3); (arg1)->raw_write((char const *)arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2478,13 +2873,20 @@ static int _wrap_Stream_get_data(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_get_data"); + SWIG_check_num_args("get_data",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_data",1,"Stream *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream); + } + result = (char *)(arg1)->get_data(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2506,23 +2908,35 @@ static swig_lua_attribute swig_Stream_attributes[] = { {0,0,0} }; static swig_lua_class *swig_Stream_bases[] = {0}; -swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases }; +static const char *swig_Stream_base_names[] = {0}; +static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names }; static int _wrap_Event_event_set(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_set"); - arg2=(switch_event_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_event_t,0,2,"Event_event_set"); + SWIG_check_num_args("event",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("event",2,"switch_event_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_event_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("Event_event_set",2,SWIGTYPE_p_switch_event_t); + } + if (arg1) (arg1)->event = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2534,13 +2948,20 @@ static int _wrap_Event_event_get(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_event_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_get"); + SWIG_check_num_args("event",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event); + } + result = (switch_event_t *) ((arg1)->event); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2552,15 +2973,20 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("serialized_string",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->serialized_string) delete [] arg1->serialized_string; if (arg2) { - arg1->serialized_string = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->serialized_string,arg2); + arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->serialized_string, (const char *)arg2); } else { arg1->serialized_string = 0; } @@ -2569,6 +2995,8 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2580,13 +3008,20 @@ static int _wrap_Event_serialized_string_get(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_get"); + SWIG_check_num_args("serialized_string",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event); + } + result = (char *) ((arg1)->serialized_string); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2598,9 +3033,14 @@ static int _wrap_Event_mine_set(lua_State* L) { Event *arg1 = (Event *) 0 ; int arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_set"); + SWIG_check_num_args("mine",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event); + } + arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->mine = arg2; @@ -2608,6 +3048,8 @@ static int _wrap_Event_mine_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2619,13 +3061,20 @@ static int _wrap_Event_mine_get(lua_State* L) { Event *arg1 = (Event *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_get"); + SWIG_check_num_args("mine",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event); + } + result = (int) ((arg1)->mine); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2638,17 +3087,20 @@ static int _wrap_new_Event__SWIG_0(lua_State* L) { char *arg2 = (char *) NULL ; Event *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("Event",1,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *"); + arg1 = (char *)lua_tostring(L, 1); if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } result = (Event *)new Event((char const *)arg1,(char const *)arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2661,9 +3113,14 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { int arg2 = (int) 0 ; Event *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(switch_event_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_event_t,0,1,"new_Event"); + SWIG_check_num_args("Event",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"switch_event_t *"); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))){ + SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t); + } + if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -2672,6 +3129,8 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2689,7 +3148,7 @@ static int _wrap_new_Event(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { _v = 0; } else { _v = 1; @@ -2734,14 +3193,21 @@ static int _wrap_delete_Event(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"delete_Event"); + SWIG_check_num_args("Event",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2755,19 +3221,26 @@ static int _wrap_Event_chat_execute(lua_State* L) { char *arg3 = (char *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_execute"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("chat_execute",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_execute",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2780,17 +3253,24 @@ static int _wrap_Event_chat_send(lua_State* L) { char *arg2 = (char *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_send"); + SWIG_check_num_args("chat_send",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_send",1,"Event *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event); + } + if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } result = (int)(arg1)->chat_send((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2803,17 +3283,24 @@ static int _wrap_Event_serialize(lua_State* L) { char *arg2 = (char *) NULL ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialize"); + SWIG_check_num_args("serialize",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialize",1,"Event *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event); + } + if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } result = (char *)(arg1)->serialize((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2825,22 +3312,29 @@ static int _wrap_Event_setPriority(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; bool result; + switch_priority_t *argp2 ; + + SWIG_check_num_args("setPriority",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPriority",1,"Event *"); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event); + } - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_setPriority"); if(lua_gettop(L)>=2){ - { - switch_priority_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_priority_t,0)) SWIG_fail; - arg2 = *argp; + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_priority_t,0))){ + SWIG_fail_ptr("Event_setPriority",2,SWIGTYPE_p_switch_priority_t); } + arg2 = *argp2; } result = (bool)(arg1)->setPriority(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2853,15 +3347,22 @@ static int _wrap_Event_getHeader(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getHeader"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("getHeader",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getHeader",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); result = (char *)(arg1)->getHeader((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2873,13 +3374,20 @@ static int _wrap_Event_getBody(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getBody"); + SWIG_check_num_args("getBody",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getBody",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event); + } + result = (char *)(arg1)->getBody(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2891,13 +3399,20 @@ static int _wrap_Event_getType(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getType"); + SWIG_check_num_args("getType",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getType",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event); + } + result = (char *)(arg1)->getType(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2910,15 +3425,22 @@ static int _wrap_Event_addBody(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addBody"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("addBody",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addBody",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); result = (bool)(arg1)->addBody((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2932,17 +3454,24 @@ static int _wrap_Event_addHeader(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addHeader"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("addHeader",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addHeader",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2955,15 +3484,22 @@ static int _wrap_Event_delHeader(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_delHeader"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("delHeader",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delHeader",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); result = (bool)(arg1)->delHeader((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2975,13 +3511,20 @@ static int _wrap_Event_fire(lua_State* L) { Event *arg1 = (Event *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_fire"); + SWIG_check_num_args("fire",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("fire",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event); + } + result = (bool)(arg1)->fire(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3007,29 +3550,41 @@ static swig_lua_method swig_Event_methods[] = { {0,0} }; static swig_lua_attribute swig_Event_attributes[] = { - { "event",_wrap_Event_event_get, _wrap_Event_event_set}, - { "serialized_string",_wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, - { "mine",_wrap_Event_mine_get, _wrap_Event_mine_set}, + { "event", _wrap_Event_event_get, _wrap_Event_event_set}, + { "serialized_string", _wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, + { "mine", _wrap_Event_mine_get, _wrap_Event_mine_set}, {0,0,0} }; static swig_lua_class *swig_Event_bases[] = {0}; -swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases }; +static const char *swig_Event_base_names[] = {0}; +static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names }; static int _wrap_EventConsumer_events_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *arg2 = (switch_queue_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_set"); - arg2=(switch_queue_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_queue_t,0,2,"EventConsumer_events_set"); + SWIG_check_num_args("events",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_queue_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("EventConsumer_events_set",2,SWIGTYPE_p_switch_queue_t); + } + if (arg1) (arg1)->events = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3041,13 +3596,20 @@ static int _wrap_EventConsumer_events_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_get"); + SWIG_check_num_args("events",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer); + } + result = (switch_queue_t *) ((arg1)->events); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3058,21 +3620,30 @@ static int _wrap_EventConsumer_e_event_id_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t arg2 ; + switch_event_types_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_set"); - { - switch_event_types_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_event_types_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("e_event_id",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_event_types_t,0))){ + SWIG_fail_ptr("EventConsumer_e_event_id_set",2,SWIGTYPE_p_switch_event_types_t); + } + arg2 = *argp2; + if (arg1) (arg1)->e_event_id = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3084,17 +3655,23 @@ static int _wrap_EventConsumer_e_event_id_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_get"); + SWIG_check_num_args("e_event_id",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer); + } + result = ((arg1)->e_event_id); SWIG_arg=0; { - switch_event_types_t * resultptr; - resultptr = new switch_event_types_t((switch_event_types_t &) result); + switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3106,15 +3683,20 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("e_callback",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->e_callback) delete [] arg1->e_callback; if (arg2) { - arg1->e_callback = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_callback,arg2); + arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_callback, (const char *)arg2); } else { arg1->e_callback = 0; } @@ -3123,6 +3705,8 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3134,13 +3718,20 @@ static int _wrap_EventConsumer_e_callback_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_get"); + SWIG_check_num_args("e_callback",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer); + } + result = (char *) ((arg1)->e_callback); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3152,15 +3743,20 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("e_subclass_name",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->e_subclass_name) delete [] arg1->e_subclass_name; if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_subclass_name,arg2); + arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_subclass_name, (const char *)arg2); } else { arg1->e_subclass_name = 0; } @@ -3169,6 +3765,8 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3180,13 +3778,20 @@ static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_get"); + SWIG_check_num_args("e_subclass_name",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer); + } + result = (char *) ((arg1)->e_subclass_name); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3198,15 +3803,20 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("e_cb_arg",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->e_cb_arg) delete [] arg1->e_cb_arg; if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_cb_arg,arg2); + arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_cb_arg, (const char *)arg2); } else { arg1->e_cb_arg = 0; } @@ -3215,6 +3825,8 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3226,13 +3838,20 @@ static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_get"); + SWIG_check_num_args("e_cb_arg",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer); + } + result = (char *) ((arg1)->e_cb_arg); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3244,10 +3863,19 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_set"); - arg2=(switch_event_node_t **)SWIG_MustGetPtr(L,2,SWIGTYPE_p_p_switch_event_node_t,0,2,"EventConsumer_enodes_set"); + SWIG_check_num_args("enodes",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_switch_event_node_t,0))){ + SWIG_fail_ptr("EventConsumer_enodes_set",2,SWIGTYPE_p_p_switch_event_node_t); + } + { size_t ii; switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes; @@ -3257,6 +3885,8 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3268,13 +3898,20 @@ static int _wrap_EventConsumer_enodes_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_get"); + SWIG_check_num_args("enodes",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer); + } + result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3285,21 +3922,30 @@ static int _wrap_EventConsumer_node_index_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t arg2 ; + uint32_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_set"); - { - uint32_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("node_index",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ + SWIG_fail_ptr("EventConsumer_node_index_set",2,SWIGTYPE_p_uint32_t); + } + arg2 = *argp2; + if (arg1) (arg1)->node_index = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3311,17 +3957,23 @@ static int _wrap_EventConsumer_node_index_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_get"); + SWIG_check_num_args("node_index",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer); + } + result = ((arg1)->node_index); SWIG_arg=0; { - uint32_t * resultptr; - resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3335,14 +3987,15 @@ static int _wrap_new_EventConsumer(lua_State* L) { int arg3 = (int) 5000 ; EventConsumer *result = 0 ; - if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + SWIG_check_num_args("EventConsumer",0,3) + if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int"); if(lua_gettop(L)>=1){ - arg1 = (char*)lua_tostring(L, 1); + arg1 = (char *)lua_tostring(L, 1); } if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -3352,6 +4005,8 @@ static int _wrap_new_EventConsumer(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3362,14 +4017,21 @@ static int _wrap_delete_EventConsumer(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"delete_EventConsumer"); + SWIG_check_num_args("EventConsumer",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3383,19 +4045,26 @@ static int _wrap_EventConsumer_bind(lua_State* L) { char *arg3 = (char *) "" ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_bind"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("bind",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bind",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3409,10 +4078,15 @@ static int _wrap_EventConsumer_pop(lua_State* L) { int arg3 = (int) 0 ; Event *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_pop"); + SWIG_check_num_args("pop",1,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *"); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer); + } + if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -3424,6 +4098,8 @@ static int _wrap_EventConsumer_pop(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3434,13 +4110,20 @@ static int _wrap_EventConsumer_cleanup(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_cleanup"); + SWIG_check_num_args("cleanup",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer); + } + (arg1)->cleanup(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3458,30 +4141,38 @@ static swig_lua_method swig_EventConsumer_methods[] = { {0,0} }; static swig_lua_attribute swig_EventConsumer_attributes[] = { - { "events",_wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, - { "e_event_id",_wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, - { "e_callback",_wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, - { "e_subclass_name",_wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, - { "e_cb_arg",_wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, - { "enodes",_wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, - { "node_index",_wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, + { "events", _wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, + { "e_event_id", _wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, + { "e_callback", _wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, + { "e_subclass_name", _wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, + { "e_cb_arg", _wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, + { "enodes", _wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, + { "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, {0,0,0} }; static swig_lua_class *swig_EventConsumer_bases[] = {0}; -swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases }; +static const char *swig_EventConsumer_base_names[] = {0}; +static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names }; static int _wrap_delete_CoreSession(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"delete_CoreSession"); + SWIG_check_num_args("CoreSession",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3493,16 +4184,27 @@ static int _wrap_CoreSession_session_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_set"); - arg2=(switch_core_session_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_core_session_t,0,2,"CoreSession_session_set"); + SWIG_check_num_args("session",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("session",2,"switch_core_session_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_core_session_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("CoreSession_session_set",2,SWIGTYPE_p_switch_core_session_t); + } + if (arg1) (arg1)->session = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3514,13 +4216,20 @@ static int _wrap_CoreSession_session_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_get"); + SWIG_check_num_args("session",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession); + } + result = (switch_core_session_t *) ((arg1)->session); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3532,16 +4241,27 @@ static int _wrap_CoreSession_channel_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *arg2 = (switch_channel_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_set"); - arg2=(switch_channel_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_channel_t,0,2,"CoreSession_channel_set"); + SWIG_check_num_args("channel",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("channel",2,"switch_channel_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_channel_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("CoreSession_channel_set",2,SWIGTYPE_p_switch_channel_t); + } + if (arg1) (arg1)->channel = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3553,13 +4273,20 @@ static int _wrap_CoreSession_channel_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_get"); + SWIG_check_num_args("channel",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession); + } + result = (switch_channel_t *) ((arg1)->channel); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3571,9 +4298,14 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_set"); + SWIG_check_num_args("flags",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession); + } + arg2 = (unsigned int)lua_tonumber(L, 2); if (arg1) (arg1)->flags = arg2; @@ -3581,6 +4313,8 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3592,13 +4326,20 @@ static int _wrap_CoreSession_flags_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_get"); + SWIG_check_num_args("flags",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession); + } + result = (unsigned int) ((arg1)->flags); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3610,9 +4351,14 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_set"); + SWIG_check_num_args("allocated",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->allocated = arg2; @@ -3620,6 +4366,8 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3631,13 +4379,20 @@ static int _wrap_CoreSession_allocated_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_get"); + SWIG_check_num_args("allocated",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession); + } + result = (int) ((arg1)->allocated); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3649,16 +4404,27 @@ static int _wrap_CoreSession_cb_state_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *arg2 = (input_callback_state *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_set"); - arg2=(input_callback_state *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_input_callback_state,0,2,"CoreSession_cb_state_set"); + SWIG_check_num_args("cb_state",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("cb_state",2,"input_callback_state *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("CoreSession_cb_state_set",2,SWIGTYPE_p_input_callback_state); + } + if (arg1) (arg1)->cb_state = *arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3670,13 +4436,20 @@ static int _wrap_CoreSession_cb_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_get"); + SWIG_check_num_args("cb_state",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession); + } + result = (input_callback_state *)& ((arg1)->cb_state); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3687,21 +4460,30 @@ static int _wrap_CoreSession_hook_state_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t arg2 ; + switch_channel_state_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_set"); - { - switch_channel_state_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_channel_state_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("hook_state",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_channel_state_t,0))){ + SWIG_fail_ptr("CoreSession_hook_state_set",2,SWIGTYPE_p_switch_channel_state_t); + } + arg2 = *argp2; + if (arg1) (arg1)->hook_state = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3713,17 +4495,23 @@ static int _wrap_CoreSession_hook_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_get"); + SWIG_check_num_args("hook_state",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession); + } + result = ((arg1)->hook_state); SWIG_arg=0; { - switch_channel_state_t * resultptr; - resultptr = new switch_channel_state_t((switch_channel_state_t &) result); + switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3734,21 +4522,30 @@ static int _wrap_CoreSession_cause_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t arg2 ; + switch_call_cause_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_set"); - { - switch_call_cause_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_call_cause_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("cause",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_call_cause_t,0))){ + SWIG_fail_ptr("CoreSession_cause_set",2,SWIGTYPE_p_switch_call_cause_t); + } + arg2 = *argp2; + if (arg1) (arg1)->cause = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3760,17 +4557,23 @@ static int _wrap_CoreSession_cause_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_get"); + SWIG_check_num_args("cause",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession); + } + result = ((arg1)->cause); SWIG_arg=0; { - switch_call_cause_t * resultptr; - resultptr = new switch_call_cause_t((switch_call_cause_t &) result); + switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3782,15 +4585,20 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("uuid",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->uuid) delete [] arg1->uuid; if (arg2) { - arg1->uuid = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->uuid,arg2); + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); } else { arg1->uuid = 0; } @@ -3799,6 +4607,8 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3810,13 +4620,20 @@ static int _wrap_CoreSession_uuid_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_get"); + SWIG_check_num_args("uuid",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession); + } + result = (char *) ((arg1)->uuid); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3828,15 +4645,20 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("tts_name",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->tts_name) delete [] arg1->tts_name; if (arg2) { - arg1->tts_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->tts_name,arg2); + arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->tts_name, (const char *)arg2); } else { arg1->tts_name = 0; } @@ -3845,6 +4667,8 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3856,13 +4680,20 @@ static int _wrap_CoreSession_tts_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_get"); + SWIG_check_num_args("tts_name",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession); + } + result = (char *) ((arg1)->tts_name); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3874,15 +4705,20 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("voice_name",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->voice_name) delete [] arg1->voice_name; if (arg2) { - arg1->voice_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->voice_name,arg2); + arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->voice_name, (const char *)arg2); } else { arg1->voice_name = 0; } @@ -3891,6 +4727,8 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3902,13 +4740,20 @@ static int _wrap_CoreSession_voice_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_get"); + SWIG_check_num_args("voice_name",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession); + } + result = (char *) ((arg1)->voice_name); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3923,19 +4768,26 @@ static int _wrap_CoreSession_insertFile(lua_State* L) { int arg4 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_insertFile"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("insertFile",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("insertFile",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3947,13 +4799,20 @@ static int _wrap_CoreSession_answer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answer"); + SWIG_check_num_args("answer",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answer",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->answer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3965,13 +4824,20 @@ static int _wrap_CoreSession_preAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_preAnswer"); + SWIG_check_num_args("preAnswer",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("preAnswer",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->preAnswer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3983,17 +4849,24 @@ static int _wrap_CoreSession_hangup(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) "normal_clearing" ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangup"); + SWIG_check_num_args("hangup",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup",1,"CoreSession *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession); + } + if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } (arg1)->hangup((char const *)arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4004,13 +4877,20 @@ static int _wrap_CoreSession_hangupState(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupState"); + SWIG_check_num_args("hangupState",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupState",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession); + } + (arg1)->hangupState(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4023,17 +4903,24 @@ static int _wrap_CoreSession_setVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setVariable"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setVariable",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setVariable",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setVariable(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4046,17 +4933,24 @@ static int _wrap_CoreSession_setPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *arg3 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setPrivate"); - arg2 = (char*)lua_tostring(L, 2); - arg3=((swig_lua_userdata*)(lua_touserdata(L,3)))->ptr; + SWIG_check_num_args("setPrivate",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPrivate",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("setPrivate",3,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate"); (arg1)->setPrivate(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4069,15 +4963,22 @@ static int _wrap_CoreSession_getPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getPrivate"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("getPrivate",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getPrivate",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (void *)(arg1)->getPrivate(arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4090,15 +4991,22 @@ static int _wrap_CoreSession_getVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getVariable"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("getVariable",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getVariable",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (char *)(arg1)->getVariable(arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4111,19 +5019,25 @@ static int _wrap_CoreSession_process_callback_result(lua_State* L) { char *arg2 = (char *) 0 ; switch_status_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_process_callback_result"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("process_callback_result",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("process_callback_result",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (arg1)->process_callback_result(arg2); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4139,25 +5053,32 @@ static int _wrap_CoreSession_say(lua_State* L) { char *arg5 = (char *) 0 ; char *arg6 = (char *) NULL ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_say"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); - arg5 = (char*)lua_tostring(L, 5); + SWIG_check_num_args("say",5,6) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("say",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *"); + if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *"); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); + arg5 = (char *)lua_tostring(L, 5); if(lua_gettop(L)>=6){ - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4171,23 +5092,30 @@ static int _wrap_CoreSession_sayPhrase(lua_State* L) { char *arg3 = (char *) "" ; char *arg4 = (char *) NULL ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sayPhrase"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("sayPhrase",2,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sayPhrase",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *"); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4199,13 +5127,20 @@ static int _wrap_CoreSession_hangupCause(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupCause"); + SWIG_check_num_args("hangupCause",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupCause",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession); + } + result = (char *)(arg1)->hangupCause(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4217,13 +5152,20 @@ static int _wrap_CoreSession_getState(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getState"); + SWIG_check_num_args("getState",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getState",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession); + } + result = (char *)(arg1)->getState(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4239,13 +5181,18 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { int arg5 = (int) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); - if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg(5); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_recordFile"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("recordFile",2,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("recordFile",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int"); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int"); + if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -4260,6 +5207,8 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4275,25 +5224,38 @@ static int _wrap_CoreSession_originate(lua_State* L) { switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); - if(lua_gettop(L)>=5 && !lua_isuserdata(L,5)) SWIG_fail_arg(5); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_originate"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_originate"); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("originate",3,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); + if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_originate",2,SWIGTYPE_p_CoreSession); + } + + arg3 = (char *)lua_tostring(L, 3); if(lua_gettop(L)>=4){ arg4 = (int)lua_tonumber(L, 4); } if(lua_gettop(L)>=5){ - arg5=(switch_state_handler_table_t *)SWIG_MustGetPtr(L,5,SWIGTYPE_p_switch_state_handler_table_t,0,5,"CoreSession_originate"); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_switch_state_handler_table_t,0))){ + SWIG_fail_ptr("CoreSession_originate",5,SWIGTYPE_p_switch_state_handler_table_t); + } } result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4304,13 +5266,20 @@ static int _wrap_CoreSession_destroy(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_destroy"); + SWIG_check_num_args("destroy",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession); + } + (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4323,17 +5292,24 @@ static int _wrap_CoreSession_setDTMFCallback(lua_State* L) { void *arg2 = (void *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setDTMFCallback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setDTMFCallback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setDTMFCallback",2,"void *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback"); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setDTMFCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4346,15 +5322,22 @@ static int _wrap_CoreSession_speak(lua_State* L) { char *arg2 = (char *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_speak"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("speak",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("speak",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (int)(arg1)->speak(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4367,17 +5350,24 @@ static int _wrap_CoreSession_set_tts_parms(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_parms"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("set_tts_parms",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_parms",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->set_tts_parms(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4390,17 +5380,24 @@ static int _wrap_CoreSession_set_tts_params(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_params"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("set_tts_params",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_params",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->set_tts_params(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4413,15 +5410,22 @@ static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) { int arg2 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); + SWIG_check_num_args("collectDigits",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); result = (int)(arg1)->collectDigits(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4435,10 +5439,15 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { int arg3 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); + SWIG_check_num_args("collectDigits",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); result = (int)(arg1)->collectDigits(arg2,arg3); @@ -4446,6 +5455,8 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4463,7 +5474,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4482,7 +5493,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4516,19 +5527,26 @@ static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) { int arg4 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); + SWIG_check_num_args("getDigits",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); + if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4544,21 +5562,28 @@ static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) { int arg5 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); + SWIG_check_num_args("getDigits",5,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); + if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4576,7 +5601,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4605,7 +5630,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4649,23 +5674,30 @@ static int _wrap_CoreSession_transfer(lua_State* L) { char *arg4 = (char *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_transfer"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("transfer",2,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("transfer",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *"); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); } result = (int)(arg1)->transfer(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4683,27 +5715,34 @@ static int _wrap_CoreSession_read(lua_State* L) { int arg7 = (int) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg(7); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_read"); + SWIG_check_num_args("read",6,7) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int"); + if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int"); + if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *"); + if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); if(lua_gettop(L)>=7){ arg7 = (int)lua_tonumber(L, 7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4726,41 +5765,48 @@ static int _wrap_CoreSession_playAndGetDigits(lua_State* L) { char *arg12 = (char *) NULL ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - if(!lua_isstring(L,7)) SWIG_fail_arg(7); - if(!lua_isstring(L,8)) SWIG_fail_arg(8); - if(!lua_isstring(L,9)) SWIG_fail_arg(9); - if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg(10); - if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg(11); - if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg(12); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_playAndGetDigits"); + SWIG_check_num_args("playAndGetDigits",9,12) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int"); + if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *"); + if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *"); + if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *"); + if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *"); + if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *"); + if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int"); + if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char*)lua_tostring(L, 6); - arg7 = (char*)lua_tostring(L, 7); - arg8 = (char*)lua_tostring(L, 8); - arg9 = (char*)lua_tostring(L, 9); + arg6 = (char *)lua_tostring(L, 6); + arg7 = (char *)lua_tostring(L, 7); + arg8 = (char *)lua_tostring(L, 8); + arg9 = (char *)lua_tostring(L, 9); if(lua_gettop(L)>=10){ - arg10 = (char*)lua_tostring(L, 10); + arg10 = (char *)lua_tostring(L, 10); } if(lua_gettop(L)>=11){ arg11 = (int)lua_tonumber(L, 11); } if(lua_gettop(L)>=12){ - arg12 = (char*)lua_tostring(L, 12); + arg12 = (char *)lua_tostring(L, 12); } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4774,11 +5820,16 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { int arg3 = (int) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_streamFile"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("streamFile",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("streamFile",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -4787,6 +5838,8 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4800,10 +5853,15 @@ static int _wrap_CoreSession_sleep(lua_State* L) { int arg3 = (int) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sleep"); + SWIG_check_num_args("sleep",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -4813,6 +5871,8 @@ static int _wrap_CoreSession_sleep(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4824,13 +5884,20 @@ static int _wrap_CoreSession_flushEvents(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushEvents"); + SWIG_check_num_args("flushEvents",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushEvents",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->flushEvents(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4842,13 +5909,20 @@ static int _wrap_CoreSession_flushDigits(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushDigits"); + SWIG_check_num_args("flushDigits",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushDigits",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->flushDigits(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4861,15 +5935,22 @@ static int _wrap_CoreSession_setAutoHangup(lua_State* L) { bool arg2 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isboolean(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setAutoHangup"); - arg2 = (bool)lua_toboolean(L, 2); + SWIG_check_num_args("setAutoHangup",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setAutoHangup",1,"CoreSession *"); + if(!lua_isboolean(L,2)) SWIG_fail_arg("setAutoHangup",2,"bool"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (lua_toboolean(L, 2)!=0); result = (int)(arg1)->setAutoHangup(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4881,15 +5962,22 @@ static int _wrap_CoreSession_setHangupHook(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setHangupHook"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("setHangupHook",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setHangupHook",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook"); (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4901,13 +5989,20 @@ static int _wrap_CoreSession_ready(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_ready"); + SWIG_check_num_args("ready",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4919,13 +6014,20 @@ static int _wrap_CoreSession_bridged(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_bridged"); + SWIG_check_num_args("bridged",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->bridged(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4937,13 +6039,20 @@ static int _wrap_CoreSession_answered(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answered"); + SWIG_check_num_args("answered",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answered",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->answered(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4955,13 +6064,20 @@ static int _wrap_CoreSession_mediaReady(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_mediaReady"); + SWIG_check_num_args("mediaReady",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mediaReady",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->mediaReady(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4973,15 +6089,26 @@ static int _wrap_CoreSession_waitForAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_waitForAnswer"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_waitForAnswer"); + SWIG_check_num_args("waitForAnswer",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("waitForAnswer",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("waitForAnswer",2,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_waitForAnswer",2,SWIGTYPE_p_CoreSession); + } + (arg1)->waitForAnswer(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4994,19 +6121,26 @@ static int _wrap_CoreSession_execute(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_execute"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("execute",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } (arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5018,15 +6152,26 @@ static int _wrap_CoreSession_sendEvent(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sendEvent"); - arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_sendEvent"); + SWIG_check_num_args("sendEvent",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sendEvent",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("sendEvent",2,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("CoreSession_sendEvent",2,SWIGTYPE_p_Event); + } + (arg1)->sendEvent(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5038,15 +6183,26 @@ static int _wrap_CoreSession_setEventData(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setEventData"); - arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_setEventData"); + SWIG_check_num_args("setEventData",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setEventData",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setEventData",2,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("CoreSession_setEventData",2,SWIGTYPE_p_Event); + } + (arg1)->setEventData(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5058,13 +6214,20 @@ static int _wrap_CoreSession_getXMLCDR(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getXMLCDR"); + SWIG_check_num_args("getXMLCDR",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getXMLCDR",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession); + } + result = (char *)(arg1)->getXMLCDR(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5076,13 +6239,20 @@ static int _wrap_CoreSession_begin_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_begin_allow_threads"); + SWIG_check_num_args("begin_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5094,13 +6264,20 @@ static int _wrap_CoreSession_end_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_end_allow_threads"); + SWIG_check_num_args("end_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5112,13 +6289,20 @@ static int _wrap_CoreSession_get_uuid(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_uuid"); + SWIG_check_num_args("get_uuid",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_uuid",1,"CoreSession const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession); + } + result = (char *)((CoreSession const *)arg1)->get_uuid(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5130,8 +6314,13 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_input_args_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_cb_args"); + SWIG_check_num_args("get_cb_args",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_cb_args",1,"CoreSession const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession); + } + { switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args(); result = (switch_input_args_t *) &_result_ref; @@ -5140,6 +6329,8 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5150,13 +6341,20 @@ static int _wrap_CoreSession_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_check_hangup_hook"); + SWIG_check_num_args("check_hangup_hook",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession); + } + (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5169,26 +6367,34 @@ static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; + switch_input_type_t *argp3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_run_dtmf_callback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - { - switch_input_type_t * argp; - if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; - arg3 = *argp; + SWIG_check_num_args("run_dtmf_callback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); + if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession); } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_run_dtmf_callback"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ + SWIG_fail_ptr("CoreSession_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); + } + arg3 = *argp3; + result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5201,17 +6407,24 @@ static int _wrap_CoreSession_consoleLog(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("consoleLog",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->consoleLog(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5227,23 +6440,30 @@ static int _wrap_CoreSession_consoleLog2(lua_State* L) { int arg5 ; char *arg6 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog2"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); + SWIG_check_num_args("consoleLog2",6,6) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog2",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int"); + if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5307,35 +6527,39 @@ static swig_lua_method swig_CoreSession_methods[] = { {0,0} }; static swig_lua_attribute swig_CoreSession_attributes[] = { - { "session",_wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, - { "channel",_wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, - { "flags",_wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, - { "allocated",_wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, - { "cb_state",_wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, - { "hook_state",_wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, - { "cause",_wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, - { "uuid",_wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, - { "tts_name",_wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, - { "voice_name",_wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, + { "session", _wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, + { "channel", _wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, + { "flags", _wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, + { "allocated", _wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, + { "cb_state", _wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, + { "hook_state", _wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, + { "cause", _wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, + { "uuid", _wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, + { "tts_name", _wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, + { "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, {0,0,0} }; static swig_lua_class *swig_CoreSession_bases[] = {0}; -swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases }; +static const char *swig_CoreSession_base_names[] = {0}; +static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names }; static int _wrap_console_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("console_log",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); console_log(arg1,arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5350,21 +6574,24 @@ static int _wrap_console_log2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("console_log2",5,5) + if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int"); + if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char*)lua_tostring(L, 5); + arg5 = (char *)lua_tostring(L, 5); console_log2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5375,13 +6602,16 @@ static int _wrap_console_clean_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("console_clean_log",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); console_clean_log(arg1); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5392,13 +6622,16 @@ static int _wrap_msleep(lua_State* L) { int SWIG_arg = -1; unsigned int arg1 ; - if(!lua_isnumber(L,1)) SWIG_fail_arg(1); + SWIG_check_num_args("switch_msleep",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int"); arg1 = (unsigned int)lua_tonumber(L, 1); switch_msleep(arg1); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5410,15 +6643,26 @@ static int _wrap_bridge(lua_State* L) { CoreSession *arg1 = 0 ; CoreSession *arg2 = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"bridge"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"bridge"); + SWIG_check_num_args("bridge",2,2) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("bridge",1,"CoreSession &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("bridge",2,"CoreSession &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("bridge",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("bridge",2,SWIGTYPE_p_CoreSession); + } + bridge(*arg1,*arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5430,17 +6674,23 @@ static int _wrap_hanguphook(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_status_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"hanguphook"); + SWIG_check_num_args("hanguphook",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hanguphook",1,"switch_core_session_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ + SWIG_fail_ptr("hanguphook",1,SWIGTYPE_p_switch_core_session_t); + } + result = hanguphook(arg1); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5455,30 +6705,38 @@ static int _wrap_dtmf_callback(lua_State* L) { void *arg4 = (void *) 0 ; unsigned int arg5 ; switch_status_t result; + switch_input_type_t *argp3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - if(!lua_isuserdata(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"dtmf_callback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - { - switch_input_type_t * argp; - if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; - arg3 = *argp; + SWIG_check_num_args("dtmf_callback",5,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("dtmf_callback",2,"void *"); + if(!lua_isuserdata(L,3)) SWIG_fail_arg("dtmf_callback",3,"switch_input_type_t"); + if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("dtmf_callback",4,"void *"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("dtmf_callback",5,"unsigned int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ + SWIG_fail_ptr("dtmf_callback",1,SWIGTYPE_p_switch_core_session_t); } - arg4=((swig_lua_userdata*)(lua_touserdata(L,4)))->ptr; + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"dtmf_callback"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ + SWIG_fail_ptr("dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); + } + arg3 = *argp3; + + arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback"); arg5 = (unsigned int)lua_tonumber(L, 5); result = dtmf_callback(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5489,11 +6747,14 @@ static int _wrap_new_Session__SWIG_0(lua_State* L) { int SWIG_arg = -1; LUA::Session *result = 0 ; + SWIG_check_num_args("LUA::Session",0,0) result = (LUA::Session *)new LUA::Session(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5506,15 +6767,22 @@ static int _wrap_new_Session__SWIG_1(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; LUA::Session *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"new_Session"); + SWIG_check_num_args("LUA::Session",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *"); + arg1 = (char *)lua_tostring(L, 1); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("new_Session",2,SWIGTYPE_p_CoreSession); + } + result = (LUA::Session *)new LUA::Session(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5526,13 +6794,16 @@ static int _wrap_new_Session__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Session *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("LUA::Session",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; - SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; + SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5544,13 +6815,20 @@ static int _wrap_new_Session__SWIG_3(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; LUA::Session *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"new_Session"); + SWIG_check_num_args("LUA::Session",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ + SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t); + } + result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5571,7 +6849,7 @@ static int _wrap_new_Session(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { _v = 0; } else { _v = 1; @@ -5598,7 +6876,7 @@ static int _wrap_new_Session(lua_State* L) { if (_v) { { void *ptr; - if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5619,14 +6897,21 @@ static int _wrap_delete_Session(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"delete_Session"); + SWIG_check_num_args("LUA::~Session",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5638,15 +6923,22 @@ static int _wrap_Session_destroy__SWIG_0(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("destroy",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->destroy((char const *)arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5657,13 +6949,20 @@ static int _wrap_Session_destroy__SWIG_1(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); + SWIG_check_num_args("destroy",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5681,7 +6980,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5695,7 +6994,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5721,13 +7020,20 @@ static int _wrap_Session_begin_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_begin_allow_threads"); + SWIG_check_num_args("begin_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session); + } + result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5739,13 +7045,20 @@ static int _wrap_Session_end_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_end_allow_threads"); + SWIG_check_num_args("end_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session); + } + result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5756,13 +7069,20 @@ static int _wrap_Session_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_check_hangup_hook"); + SWIG_check_num_args("check_hangup_hook",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5775,26 +7095,34 @@ static int _wrap_Session_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; + switch_input_type_t *argp3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_run_dtmf_callback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - { - switch_input_type_t * argp; - if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; - arg3 = *argp; + SWIG_check_num_args("run_dtmf_callback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); + if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session); } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"Session_run_dtmf_callback"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ + SWIG_fail_ptr("Session_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); + } + arg3 = *argp3; + result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5805,13 +7133,20 @@ static int _wrap_Session_unsetInputCallback(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_unsetInputCallback"); + SWIG_check_num_args("unsetInputCallback",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->unsetInputCallback(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5824,17 +7159,24 @@ static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setInputCallback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setInputCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5846,15 +7188,22 @@ static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("setInputCallback",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->setInputCallback(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5872,7 +7221,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5891,7 +7240,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5923,17 +7272,24 @@ static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setHangupHook",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setHangupHook(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5945,15 +7301,22 @@ static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("setHangupHook",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5971,7 +7334,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5990,7 +7353,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -6021,13 +7384,20 @@ static int _wrap_Session_ready(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_ready"); + SWIG_check_num_args("ready",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session); + } + result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6042,19 +7412,30 @@ static int _wrap_Session_originate(lua_State* L) { int arg4 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_originate"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"Session_originate"); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("originate",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("Session_originate",2,SWIGTYPE_p_CoreSession); + } + + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->originate(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6066,15 +7447,20 @@ static int _wrap_Session_cb_function_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("cb_function",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->cb_function) delete [] arg1->cb_function; if (arg2) { - arg1->cb_function = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->cb_function,arg2); + arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->cb_function, (const char *)arg2); } else { arg1->cb_function = 0; } @@ -6083,6 +7469,8 @@ static int _wrap_Session_cb_function_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6094,13 +7482,20 @@ static int _wrap_Session_cb_function_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_get"); + SWIG_check_num_args("cb_function",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->cb_function); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6112,15 +7507,20 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("cb_arg",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->cb_arg) delete [] arg1->cb_arg; if (arg2) { - arg1->cb_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->cb_arg,arg2); + arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->cb_arg, (const char *)arg2); } else { arg1->cb_arg = 0; } @@ -6129,6 +7529,8 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6140,13 +7542,20 @@ static int _wrap_Session_cb_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_get"); + SWIG_check_num_args("cb_arg",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->cb_arg); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6158,15 +7567,20 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("hangup_func_str",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->hangup_func_str) delete [] arg1->hangup_func_str; if (arg2) { - arg1->hangup_func_str = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->hangup_func_str,arg2); + arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->hangup_func_str, (const char *)arg2); } else { arg1->hangup_func_str = 0; } @@ -6175,6 +7589,8 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6186,13 +7602,20 @@ static int _wrap_Session_hangup_func_str_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_get"); + SWIG_check_num_args("hangup_func_str",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->hangup_func_str); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6204,15 +7627,20 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("hangup_func_arg",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg; if (arg2) { - arg1->hangup_func_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->hangup_func_arg,arg2); + arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->hangup_func_arg, (const char *)arg2); } else { arg1->hangup_func_arg = 0; } @@ -6221,6 +7649,8 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6232,13 +7662,20 @@ static int _wrap_Session_hangup_func_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_get"); + SWIG_check_num_args("hangup_func_arg",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->hangup_func_arg); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6250,15 +7687,21 @@ static int _wrap_Session_setLUA(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; lua_State *arg2 = (lua_State *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setLUA"); - arg2=(lua_State *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_lua_State,0,2,"Session_setLUA"); + arg2 = L; + SWIG_check_num_args("setLUA",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setLUA",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->setLUA(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6284,14 +7727,15 @@ static swig_lua_method swig_LUA_Session_methods[] = { {0,0} }; static swig_lua_attribute swig_LUA_Session_attributes[] = { - { "cb_function",_wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, - { "cb_arg",_wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, - { "hangup_func_str",_wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, - { "hangup_func_arg",_wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, + { "cb_function", _wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, + { "cb_arg", _wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, + { "hangup_func_str", _wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, + { "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, {0,0,0} }; -static swig_lua_class *swig_LUA_Session_bases[] = {&_wrap_class_CoreSession,0}; -swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases }; +static swig_lua_class *swig_LUA_Session_bases[] = {0,0}; +static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0}; +static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names }; static int _wrap_new_Dbh__SWIG_0(lua_State* L) { int SWIG_arg = -1; @@ -6300,17 +7744,20 @@ static int _wrap_new_Dbh__SWIG_0(lua_State* L) { char *arg3 = (char *) 0 ; LUA::Dbh *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("LUA::Dbh",3,3) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6323,15 +7770,18 @@ static int _wrap_new_Dbh__SWIG_1(lua_State* L) { char *arg2 = (char *) 0 ; LUA::Dbh *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("LUA::Dbh",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6343,13 +7793,16 @@ static int _wrap_new_Dbh__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Dbh *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("LUA::Dbh",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); result = (LUA::Dbh *)new LUA::Dbh(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6415,14 +7868,21 @@ static int _wrap_delete_Dbh(lua_State* L) { int SWIG_arg = -1; LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"delete_Dbh"); + SWIG_check_num_args("LUA::~Dbh",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6434,13 +7894,20 @@ static int _wrap_Dbh_release(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_release"); + SWIG_check_num_args("release",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("release",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh); + } + result = (bool)(arg1)->release(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6452,13 +7919,20 @@ static int _wrap_Dbh_connected(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_connected"); + SWIG_check_num_args("connected",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("connected",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh); + } + result = (bool)(arg1)->connected(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6473,19 +7947,26 @@ static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) { char *arg4 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); + SWIG_check_num_args("test_reactive",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); result = (bool)(arg1)->test_reactive(arg2,arg3,arg4); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6499,17 +7980,24 @@ static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("test_reactive",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); result = (bool)(arg1)->test_reactive(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6522,15 +8010,22 @@ static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("test_reactive",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); result = (bool)(arg1)->test_reactive(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6548,7 +8043,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -6567,7 +8062,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -6591,7 +8086,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -6635,11 +8130,16 @@ static int _wrap_Dbh_query(lua_State* L) { }; arg3 = default_swiglua_fn; } - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_query"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("query",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("query",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("query",3,"SWIGLUA_FN"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ { (&arg3)->L = L; @@ -6648,9 +8148,11 @@ static int _wrap_Dbh_query(lua_State* L) { } result = (bool)(arg1)->query(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6662,13 +8164,20 @@ static int _wrap_Dbh_affected_rows(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_affected_rows"); + SWIG_check_num_args("affected_rows",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh); + } + result = (int)(arg1)->affected_rows(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6681,15 +8190,22 @@ static int _wrap_Dbh_load_extension(lua_State* L) { char *arg2 = (char *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_load_extension"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("load_extension",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("load_extension",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); result = (int)(arg1)->load_extension((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6713,7 +8229,8 @@ static swig_lua_attribute swig_LUA_Dbh_attributes[] = { {0,0,0} }; static swig_lua_class *swig_LUA_Dbh_bases[] = {0}; -swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases }; +static const char *swig_LUA_Dbh_base_names[] = {0}; +static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names }; #ifdef __cplusplus } @@ -6727,145 +8244,6 @@ static const struct luaL_Reg swig_commands[] = { { "consoleCleanLog", _wrap_consoleCleanLog}, { "running", _wrap_running}, { "email", _wrap_email}, - { "new_IVRMenu", _wrap_new_IVRMenu}, - { "delete_IVRMenu", _wrap_delete_IVRMenu}, - { "IVRMenu_bindAction", _wrap_IVRMenu_bindAction}, - { "IVRMenu_execute", _wrap_IVRMenu_execute}, - { "new_API", _wrap_new_API}, - { "delete_API", _wrap_delete_API}, - { "API_execute", _wrap_API_execute}, - { "API_executeString", _wrap_API_executeString}, - { "API_getTime", _wrap_API_getTime}, - { "input_callback_state_t_function_set", _wrap_input_callback_state_t_function_set}, - { "input_callback_state_t_function_get", _wrap_input_callback_state_t_function_get}, - { "input_callback_state_t_threadState_set", _wrap_input_callback_state_t_threadState_set}, - { "input_callback_state_t_threadState_get", _wrap_input_callback_state_t_threadState_get}, - { "input_callback_state_t_extra_set", _wrap_input_callback_state_t_extra_set}, - { "input_callback_state_t_extra_get", _wrap_input_callback_state_t_extra_get}, - { "input_callback_state_t_funcargs_set", _wrap_input_callback_state_t_funcargs_set}, - { "input_callback_state_t_funcargs_get", _wrap_input_callback_state_t_funcargs_get}, - { "new_input_callback_state_t", _wrap_new_input_callback_state_t}, - { "delete_input_callback_state_t", _wrap_delete_input_callback_state_t}, - { "DTMF_digit_set", _wrap_DTMF_digit_set}, - { "DTMF_digit_get", _wrap_DTMF_digit_get}, - { "DTMF_duration_set", _wrap_DTMF_duration_set}, - { "DTMF_duration_get", _wrap_DTMF_duration_get}, - { "new_DTMF", _wrap_new_DTMF}, - { "delete_DTMF", _wrap_delete_DTMF}, - { "new_Stream",_wrap_new_Stream}, - { "delete_Stream", _wrap_delete_Stream}, - { "Stream_read", _wrap_Stream_read}, - { "Stream_write", _wrap_Stream_write}, - { "Stream_raw_write", _wrap_Stream_raw_write}, - { "Stream_get_data", _wrap_Stream_get_data}, - { "Event_event_set", _wrap_Event_event_set}, - { "Event_event_get", _wrap_Event_event_get}, - { "Event_serialized_string_set", _wrap_Event_serialized_string_set}, - { "Event_serialized_string_get", _wrap_Event_serialized_string_get}, - { "Event_mine_set", _wrap_Event_mine_set}, - { "Event_mine_get", _wrap_Event_mine_get}, - { "new_Event",_wrap_new_Event}, - { "delete_Event", _wrap_delete_Event}, - { "Event_chat_execute", _wrap_Event_chat_execute}, - { "Event_chat_send", _wrap_Event_chat_send}, - { "Event_serialize", _wrap_Event_serialize}, - { "Event_setPriority", _wrap_Event_setPriority}, - { "Event_getHeader", _wrap_Event_getHeader}, - { "Event_getBody", _wrap_Event_getBody}, - { "Event_getType", _wrap_Event_getType}, - { "Event_addBody", _wrap_Event_addBody}, - { "Event_addHeader", _wrap_Event_addHeader}, - { "Event_delHeader", _wrap_Event_delHeader}, - { "Event_fire", _wrap_Event_fire}, - { "EventConsumer_events_set", _wrap_EventConsumer_events_set}, - { "EventConsumer_events_get", _wrap_EventConsumer_events_get}, - { "EventConsumer_e_event_id_set", _wrap_EventConsumer_e_event_id_set}, - { "EventConsumer_e_event_id_get", _wrap_EventConsumer_e_event_id_get}, - { "EventConsumer_e_callback_set", _wrap_EventConsumer_e_callback_set}, - { "EventConsumer_e_callback_get", _wrap_EventConsumer_e_callback_get}, - { "EventConsumer_e_subclass_name_set", _wrap_EventConsumer_e_subclass_name_set}, - { "EventConsumer_e_subclass_name_get", _wrap_EventConsumer_e_subclass_name_get}, - { "EventConsumer_e_cb_arg_set", _wrap_EventConsumer_e_cb_arg_set}, - { "EventConsumer_e_cb_arg_get", _wrap_EventConsumer_e_cb_arg_get}, - { "EventConsumer_enodes_set", _wrap_EventConsumer_enodes_set}, - { "EventConsumer_enodes_get", _wrap_EventConsumer_enodes_get}, - { "EventConsumer_node_index_set", _wrap_EventConsumer_node_index_set}, - { "EventConsumer_node_index_get", _wrap_EventConsumer_node_index_get}, - { "new_EventConsumer", _wrap_new_EventConsumer}, - { "delete_EventConsumer", _wrap_delete_EventConsumer}, - { "EventConsumer_bind", _wrap_EventConsumer_bind}, - { "EventConsumer_pop", _wrap_EventConsumer_pop}, - { "EventConsumer_cleanup", _wrap_EventConsumer_cleanup}, - { "delete_CoreSession", _wrap_delete_CoreSession}, - { "CoreSession_session_set", _wrap_CoreSession_session_set}, - { "CoreSession_session_get", _wrap_CoreSession_session_get}, - { "CoreSession_channel_set", _wrap_CoreSession_channel_set}, - { "CoreSession_channel_get", _wrap_CoreSession_channel_get}, - { "CoreSession_flags_set", _wrap_CoreSession_flags_set}, - { "CoreSession_flags_get", _wrap_CoreSession_flags_get}, - { "CoreSession_allocated_set", _wrap_CoreSession_allocated_set}, - { "CoreSession_allocated_get", _wrap_CoreSession_allocated_get}, - { "CoreSession_cb_state_set", _wrap_CoreSession_cb_state_set}, - { "CoreSession_cb_state_get", _wrap_CoreSession_cb_state_get}, - { "CoreSession_hook_state_set", _wrap_CoreSession_hook_state_set}, - { "CoreSession_hook_state_get", _wrap_CoreSession_hook_state_get}, - { "CoreSession_cause_set", _wrap_CoreSession_cause_set}, - { "CoreSession_cause_get", _wrap_CoreSession_cause_get}, - { "CoreSession_uuid_set", _wrap_CoreSession_uuid_set}, - { "CoreSession_uuid_get", _wrap_CoreSession_uuid_get}, - { "CoreSession_tts_name_set", _wrap_CoreSession_tts_name_set}, - { "CoreSession_tts_name_get", _wrap_CoreSession_tts_name_get}, - { "CoreSession_voice_name_set", _wrap_CoreSession_voice_name_set}, - { "CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get}, - { "CoreSession_insertFile", _wrap_CoreSession_insertFile}, - { "CoreSession_answer", _wrap_CoreSession_answer}, - { "CoreSession_preAnswer", _wrap_CoreSession_preAnswer}, - { "CoreSession_hangup", _wrap_CoreSession_hangup}, - { "CoreSession_hangupState", _wrap_CoreSession_hangupState}, - { "CoreSession_setVariable", _wrap_CoreSession_setVariable}, - { "CoreSession_setPrivate", _wrap_CoreSession_setPrivate}, - { "CoreSession_getPrivate", _wrap_CoreSession_getPrivate}, - { "CoreSession_getVariable", _wrap_CoreSession_getVariable}, - { "CoreSession_process_callback_result", _wrap_CoreSession_process_callback_result}, - { "CoreSession_say", _wrap_CoreSession_say}, - { "CoreSession_sayPhrase", _wrap_CoreSession_sayPhrase}, - { "CoreSession_hangupCause", _wrap_CoreSession_hangupCause}, - { "CoreSession_getState", _wrap_CoreSession_getState}, - { "CoreSession_recordFile", _wrap_CoreSession_recordFile}, - { "CoreSession_originate", _wrap_CoreSession_originate}, - { "CoreSession_destroy", _wrap_CoreSession_destroy}, - { "CoreSession_setDTMFCallback", _wrap_CoreSession_setDTMFCallback}, - { "CoreSession_speak", _wrap_CoreSession_speak}, - { "CoreSession_set_tts_parms", _wrap_CoreSession_set_tts_parms}, - { "CoreSession_set_tts_params", _wrap_CoreSession_set_tts_params}, - { "CoreSession_collectDigits",_wrap_CoreSession_collectDigits}, - { "CoreSession_getDigits",_wrap_CoreSession_getDigits}, - { "CoreSession_transfer", _wrap_CoreSession_transfer}, - { "CoreSession_read", _wrap_CoreSession_read}, - { "CoreSession_playAndGetDigits", _wrap_CoreSession_playAndGetDigits}, - { "CoreSession_streamFile", _wrap_CoreSession_streamFile}, - { "CoreSession_sleep", _wrap_CoreSession_sleep}, - { "CoreSession_flushEvents", _wrap_CoreSession_flushEvents}, - { "CoreSession_flushDigits", _wrap_CoreSession_flushDigits}, - { "CoreSession_setAutoHangup", _wrap_CoreSession_setAutoHangup}, - { "CoreSession_setHangupHook", _wrap_CoreSession_setHangupHook}, - { "CoreSession_ready", _wrap_CoreSession_ready}, - { "CoreSession_bridged", _wrap_CoreSession_bridged}, - { "CoreSession_answered", _wrap_CoreSession_answered}, - { "CoreSession_mediaReady", _wrap_CoreSession_mediaReady}, - { "CoreSession_waitForAnswer", _wrap_CoreSession_waitForAnswer}, - { "CoreSession_execute", _wrap_CoreSession_execute}, - { "CoreSession_sendEvent", _wrap_CoreSession_sendEvent}, - { "CoreSession_setEventData", _wrap_CoreSession_setEventData}, - { "CoreSession_getXMLCDR", _wrap_CoreSession_getXMLCDR}, - { "CoreSession_begin_allow_threads", _wrap_CoreSession_begin_allow_threads}, - { "CoreSession_end_allow_threads", _wrap_CoreSession_end_allow_threads}, - { "CoreSession_get_uuid", _wrap_CoreSession_get_uuid}, - { "CoreSession_get_cb_args", _wrap_CoreSession_get_cb_args}, - { "CoreSession_check_hangup_hook", _wrap_CoreSession_check_hangup_hook}, - { "CoreSession_run_dtmf_callback", _wrap_CoreSession_run_dtmf_callback}, - { "CoreSession_consoleLog", _wrap_CoreSession_consoleLog}, - { "CoreSession_consoleLog2", _wrap_CoreSession_consoleLog2}, { "console_log", _wrap_console_log}, { "console_log2", _wrap_console_log2}, { "console_clean_log", _wrap_console_clean_log}, @@ -6873,35 +8251,6 @@ static const struct luaL_Reg swig_commands[] = { { "bridge", _wrap_bridge}, { "hanguphook", _wrap_hanguphook}, { "dtmf_callback", _wrap_dtmf_callback}, - { "new_Session",_wrap_new_Session}, - { "delete_Session", _wrap_delete_Session}, - { "Session_destroy",_wrap_Session_destroy}, - { "Session_begin_allow_threads", _wrap_Session_begin_allow_threads}, - { "Session_end_allow_threads", _wrap_Session_end_allow_threads}, - { "Session_check_hangup_hook", _wrap_Session_check_hangup_hook}, - { "Session_run_dtmf_callback", _wrap_Session_run_dtmf_callback}, - { "Session_unsetInputCallback", _wrap_Session_unsetInputCallback}, - { "Session_setInputCallback",_wrap_Session_setInputCallback}, - { "Session_setHangupHook",_wrap_Session_setHangupHook}, - { "Session_ready", _wrap_Session_ready}, - { "Session_originate", _wrap_Session_originate}, - { "Session_cb_function_set", _wrap_Session_cb_function_set}, - { "Session_cb_function_get", _wrap_Session_cb_function_get}, - { "Session_cb_arg_set", _wrap_Session_cb_arg_set}, - { "Session_cb_arg_get", _wrap_Session_cb_arg_get}, - { "Session_hangup_func_str_set", _wrap_Session_hangup_func_str_set}, - { "Session_hangup_func_str_get", _wrap_Session_hangup_func_str_get}, - { "Session_hangup_func_arg_set", _wrap_Session_hangup_func_arg_set}, - { "Session_hangup_func_arg_get", _wrap_Session_hangup_func_arg_get}, - { "Session_setLUA", _wrap_Session_setLUA}, - { "new_Dbh",_wrap_new_Dbh}, - { "delete_Dbh", _wrap_delete_Dbh}, - { "Dbh_release", _wrap_Dbh_release}, - { "Dbh_connected", _wrap_Dbh_connected}, - { "Dbh_test_reactive",_wrap_Dbh_test_reactive}, - { "Dbh_query", _wrap_Dbh_query}, - { "Dbh_affected_rows", _wrap_Dbh_affected_rows}, - { "Dbh_load_extension", _wrap_Dbh_load_extension}, {0,0} }; @@ -6918,10 +8267,9 @@ static swig_lua_const_info swig_constants[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_LUA__SessionTo_p_CoreSession(void *x) { +static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) { return (void *)((CoreSession *) ((LUA::Session *) x)); } -static swig_type_info _swigt__SWIGLUA_FN = {"_SWIGLUA_FN", "SWIGLUA_FN", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0}; static swig_type_info _swigt__p_CoreSession = {"_p_CoreSession", "CoreSession *", 0, 0, (void*)&_wrap_class_CoreSession, 0}; static swig_type_info _swigt__p_DTMF = {"_p_DTMF", "DTMF *", 0, 0, (void*)&_wrap_class_DTMF, 0}; @@ -6930,8 +8278,9 @@ static swig_type_info _swigt__p_EventConsumer = {"_p_EventConsumer", "EventConsu static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (void*)&_wrap_class_IVRMenu, 0}; static swig_type_info _swigt__p_LUA__Dbh = {"_p_LUA__Dbh", "LUA::Dbh *", 0, 0, (void*)&_wrap_class_LUA_Dbh, 0}; static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0}; +static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; @@ -6951,15 +8300,8 @@ static swig_type_info _swigt__p_switch_status_t = {"_p_switch_status_t", "switch static swig_type_info _swigt__p_switch_stream_handle_t = {"_p_switch_stream_handle_t", "switch_stream_handle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_call_cause_t = {"_switch_call_cause_t", "switch_call_cause_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_channel_state_t = {"_switch_channel_state_t", "switch_channel_state_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_event_types_t = {"_switch_event_types_t", "switch_event_types_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_input_type_t = {"_switch_input_type_t", "switch_input_type_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_priority_t = {"_switch_priority_t", "switch_priority_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__uint32_t = {"_uint32_t", "uint32_t", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { - &_swigt__SWIGLUA_FN, &_swigt__p_API, &_swigt__p_CoreSession, &_swigt__p_DTMF, @@ -6968,6 +8310,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_IVRMenu, &_swigt__p_LUA__Dbh, &_swigt__p_LUA__Session, + &_swigt__p_SWIGLUA_FN, &_swigt__p_Stream, &_swigt__p_input_callback_state, &_swigt__p_int, @@ -6989,15 +8332,8 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_switch_stream_handle_t, &_swigt__p_uint32_t, &_swigt__p_void, - &_swigt__switch_call_cause_t, - &_swigt__switch_channel_state_t, - &_swigt__switch_event_types_t, - &_swigt__switch_input_type_t, - &_swigt__switch_priority_t, - &_swigt__uint32_t, }; -static swig_cast_info _swigc__SWIGLUA_FN[] = { {&_swigt__SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_API[] = { {&_swigt__p_API, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CoreSession[] = { {&_swigt__p_CoreSession, 0, 0, 0}, {&_swigt__p_LUA__Session, _p_LUA__SessionTo_p_CoreSession, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_DTMF[] = { {&_swigt__p_DTMF, 0, 0, 0},{0, 0, 0, 0}}; @@ -7006,6 +8342,7 @@ static swig_cast_info _swigc__p_EventConsumer[] = { {&_swigt__p_EventConsumer, static swig_cast_info _swigc__p_IVRMenu[] = { {&_swigt__p_IVRMenu, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Dbh[] = { {&_swigt__p_LUA__Dbh, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SWIGLUA_FN[] = { {&_swigt__p_SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_callback_state, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; @@ -7027,15 +8364,8 @@ static swig_cast_info _swigc__p_switch_status_t[] = { {&_swigt__p_switch_status static swig_cast_info _swigc__p_switch_stream_handle_t[] = { {&_swigt__p_switch_stream_handle_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_call_cause_t[] = { {&_swigt__switch_call_cause_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_channel_state_t[] = { {&_swigt__switch_channel_state_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_event_types_t[] = { {&_swigt__switch_event_types_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_input_type_t[] = { {&_swigt__switch_input_type_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_priority_t[] = { {&_swigt__switch_priority_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__uint32_t[] = { {&_swigt__uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { - _swigc__SWIGLUA_FN, _swigc__p_API, _swigc__p_CoreSession, _swigc__p_DTMF, @@ -7044,6 +8374,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_IVRMenu, _swigc__p_LUA__Dbh, _swigc__p_LUA__Session, + _swigc__p_SWIGLUA_FN, _swigc__p_Stream, _swigc__p_input_callback_state, _swigc__p_int, @@ -7065,12 +8396,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_switch_stream_handle_t, _swigc__p_uint32_t, _swigc__p_void, - _swigc__switch_call_cause_t, - _swigc__switch_channel_state_t, - _swigc__switch_event_types_t, - _swigc__switch_input_type_t, - _swigc__switch_priority_t, - _swigc__uint32_t, }; @@ -7090,7 +8415,7 @@ static swig_cast_info *swig_cast_initial[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop though that array, and handle each type individually. + * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -7128,32 +8453,58 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif + SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head; - static int init_run = 0; + swig_module_info *module_head, *iter; + int found, init; clientdata = clientdata; - if (init_run) return; - init_run = 1; - - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (module_head) { + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; - } else { - /* This is the first module loaded */ - swig_module.next = &swig_module; - SWIG_SetModule(clientdata, &swig_module); } - + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -7290,73 +8641,56 @@ SWIG_PropagateClientData(void) { /* Forward declaration of where the user's %init{} gets inserted */ +void SWIG_init_user(lua_State* L ); + #ifdef __cplusplus extern "C" { #endif -void SWIG_init_user(lua_State* L ); - /* this is the initialization function - added at the very end of the code - the function is always called SWIG_init, but an eariler #define will rename it + added at the very end of the code + the function is always called SWIG_init, but an eariler #define will rename it */ SWIGEXPORT int SWIG_init(lua_State* L) { - int i; - - /* start with global table */ - lua_pushvalue(L,LUA_GLOBALSINDEX); - - SWIG_InitializeModule((void*)L); - SWIG_PropagateClientData(); - - /* invoke user-specific initialization */ - SWIG_init_user(L); - - /* add a global fn */ - SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /*luaL_openlib(L,NULL,swig_commands,0);*/ - /* all in one */ - /*luaL_openlib(L,SWIG_name,swig_commands,0);*/ - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } - - /* additional registration structs & classes in lua: */ - for (i = 0; swig_types[i]; i++){ - if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); - } - } - - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); - - /* end module */ - /*SWIG_Lua_module_end(L);*/ - lua_pop(L,1); /* tidy stack (remove module table)*/ - lua_pop(L,1); /* tidy stack (remove global table)*/ - - return 1; -} - -/* Lua 5.1 has a different name for importing libraries -luaopen_XXX, where XXX is the name of the module (not capitalised) -this function will allow Lua 5.1 to import correctly. -There is a #define in the wrapper to rename 'SWIG_import' to the correct name -*/ - -SWIGEXPORT int SWIG_import(lua_State* L) -{ - return SWIG_init(L); + int i; + /* start with global table */ + lua_pushglobaltable(L); + /* SWIG's internal initalisation */ + SWIG_InitializeModule((void*)L); + SWIG_PropagateClientData(); + /* add a global fn */ + SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); + /* begin the module (its a table with the same name as the module) */ + SWIG_Lua_module_begin(L,SWIG_name); + /* add commands/functions */ + for (i = 0; swig_commands[i].name; i++){ + SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); + } + /* add variables */ + for (i = 0; swig_variables[i].name; i++){ + SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); + } + /* set up base class pointers (the hierachy) */ + for (i = 0; swig_types[i]; i++){ + if (swig_types[i]->clientdata){ + SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); + } + } + /* additional registration structs & classes in lua */ + for (i = 0; swig_types[i]; i++){ + if (swig_types[i]->clientdata){ + SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + } + } + /* constants */ + SWIG_Lua_InstallConstants(L,swig_constants); + /* invoke user-specific initialization */ + SWIG_init_user(L); + /* end module */ + lua_pop(L,1); /* tidy stack (remove module table)*/ + lua_pop(L,1); /* tidy stack (remove global table)*/ + return 1; } #ifdef __cplusplus @@ -7364,12 +8698,13 @@ SWIGEXPORT int SWIG_import(lua_State* L) #endif -#ifdef __cplusplus -extern "C" -#endif +const char* SWIG_LUACODE= + ""; + void SWIG_init_user(lua_State* L) { - + /* exec Lua code if applicable */ + SWIG_Lua_dostring(L,SWIG_LUACODE); } #include "mod_lua_extra.c" diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx new file mode 100644 index 0000000000..2f848eae91 --- /dev/null +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -0,0 +1,45121 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGCSHARP + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +#include +#include +#include + + +/* Support for throwing C# exceptions from C/C++. There are two types: + * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ +typedef enum { + SWIG_CSharpApplicationException, + SWIG_CSharpArithmeticException, + SWIG_CSharpDivideByZeroException, + SWIG_CSharpIndexOutOfRangeException, + SWIG_CSharpInvalidCastException, + SWIG_CSharpInvalidOperationException, + SWIG_CSharpIOException, + SWIG_CSharpNullReferenceException, + SWIG_CSharpOutOfMemoryException, + SWIG_CSharpOverflowException, + SWIG_CSharpSystemException +} SWIG_CSharpExceptionCodes; + +typedef enum { + SWIG_CSharpArgumentException, + SWIG_CSharpArgumentNullException, + SWIG_CSharpArgumentOutOfRangeException +} SWIG_CSharpExceptionArgumentCodes; + +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); + +typedef struct { + SWIG_CSharpExceptionCodes code; + SWIG_CSharpExceptionCallback_t callback; +} SWIG_CSharpException_t; + +typedef struct { + SWIG_CSharpExceptionArgumentCodes code; + SWIG_CSharpExceptionArgumentCallback_t callback; +} SWIG_CSharpExceptionArgument_t; + +static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { + { SWIG_CSharpApplicationException, NULL }, + { SWIG_CSharpArithmeticException, NULL }, + { SWIG_CSharpDivideByZeroException, NULL }, + { SWIG_CSharpIndexOutOfRangeException, NULL }, + { SWIG_CSharpInvalidCastException, NULL }, + { SWIG_CSharpInvalidOperationException, NULL }, + { SWIG_CSharpIOException, NULL }, + { SWIG_CSharpNullReferenceException, NULL }, + { SWIG_CSharpOutOfMemoryException, NULL }, + { SWIG_CSharpOverflowException, NULL }, + { SWIG_CSharpSystemException, NULL } +}; + +static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { + { SWIG_CSharpArgumentException, NULL }, + { SWIG_CSharpArgumentNullException, NULL }, + { SWIG_CSharpArgumentOutOfRangeException, NULL } +}; + +static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { + SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { + callback = SWIG_csharp_exceptions[code].callback; + } + callback(msg); +} + +static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { + SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { + callback = SWIG_csharp_exceptions_argument[code].callback; + } + callback(msg, param_name); +} + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_freeswitch( + SWIG_CSharpExceptionCallback_t applicationCallback, + SWIG_CSharpExceptionCallback_t arithmeticCallback, + SWIG_CSharpExceptionCallback_t divideByZeroCallback, + SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, + SWIG_CSharpExceptionCallback_t invalidCastCallback, + SWIG_CSharpExceptionCallback_t invalidOperationCallback, + SWIG_CSharpExceptionCallback_t ioCallback, + SWIG_CSharpExceptionCallback_t nullReferenceCallback, + SWIG_CSharpExceptionCallback_t outOfMemoryCallback, + SWIG_CSharpExceptionCallback_t overflowCallback, + SWIG_CSharpExceptionCallback_t systemCallback) { + SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; + SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; + SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; + SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; + SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; + SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; + SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; + SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; + SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; +} + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_freeswitch( + SWIG_CSharpExceptionArgumentCallback_t argumentCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else + + + +/* Callback for returning strings to C# without leaking memory */ +#ifndef _MANAGED +#include +#include +#include +#include +#include +#endif + +typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); +static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback_real = NULL; + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_freeswitch(SWIG_CSharpStringHelperCallback callback) { + /* Set this only once, in the main appdomain */ + if (SWIG_csharp_string_callback_real == NULL) SWIG_csharp_string_callback_real = callback; +} +char * SWIG_csharp_string_callback(const char * str) { +#ifndef _MANAGED + // Mono won't transition appdomains properly after the callback, so we force it + MonoDomain* dom = mono_domain_get(); + char* res = SWIG_csharp_string_callback_real(str); + mono_domain_set(dom, true); + return res; +#else + return SWIG_csharp_string_callback_real(str); +#endif +} + + +#include "switch.h" +#include "switch_cpp.h" +#include "freeswitch_managed.h" + + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT char * SWIGSTDCALL CSharp_FREESWITCH_PEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("27880"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_FREESWITCH_OID_PREFIX_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)(".1.3.6.1.4.1.27880"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_FREESWITCH_ITAD_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("543"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp___EXTENSIONS___get() { + int jresult ; + int result; + + result = (int)(1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp___BSD_VISIBLE_get() { + int jresult ; + int result; + + result = (int)(1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ENT_ORIGINATE_DELIM_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)(":_:"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BLANK_STRING_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\0"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_TON_UNDEF_get() { + int jresult ; + int result; + + result = (int)(255); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_NUMPLAN_UNDEF_get() { + int jresult ; + int result; + + result = (int)(255); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_ESC_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33["); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_HOME_CHAR_get() { + char jresult ; + char result; + + result = (char)('H'); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_HOME_CHAR_STR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("H"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINE_CHAR_get() { + char jresult ; + char result; + + result = (char)('1'); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINE_CHAR_STR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("1"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINEEND_CHAR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("K"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_CHAR0_get() { + char jresult ; + char result; + + result = (char)('2'); + jresult = result; + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_CHAR1_get() { + char jresult ; + char result; + + result = (char)('J'); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_CHAR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("2J"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_AND_COLOR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)(";"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_END_COLOR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_BLACK_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("30"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_RED_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("31"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_GREEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("32"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_YELLOW_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("33"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_BLUE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("34"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_MAGEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("35"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_CYAN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("36"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_F_WHITE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("37"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_BLACK_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("40"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_RED_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("41"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_GREEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("42"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_YELLOW_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("43"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_BLUE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("44"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_MAGEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("45"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_CYAN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("46"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_B_WHITE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("47"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FBLACK_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[30m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FRED_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[31m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FGREEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[32m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FYELLOW_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[33m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FBLUE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[34m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FMAGEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[35m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FCYAN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[36m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_FWHITE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[37m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BBLACK_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[40m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BRED_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[41m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BGREEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[42m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BYELLOW_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[43m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BBLUE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[44m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BMAGEN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[45m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BCYAN_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[46m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_BWHITE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[47m"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_HOME_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[H"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[1"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARLINEEND_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[K"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEQ_CLEARSCR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\33[2J\33[H"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_DEFAULT_CLID_NAME_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\0"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_DEFAULT_CLID_NUMBER_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("0000000000"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DEFAULT_DTMF_DURATION_get() { + int jresult ; + int result; + + result = (int)(2000); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MIN_DTMF_DURATION_get() { + int jresult ; + int result; + + result = (int)(400); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_DTMF_DURATION_get() { + int jresult ; + int result; + + result = (int)(192000); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PATH_SEPARATOR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("/"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_URL_SEPARATOR_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("://"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("ignore_display_updates"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("audio_spool_path"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bridge_hangup_cause"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_READ_TERMINATOR_USED_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("read_terminator_used"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("send_silence_when_idle"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CURRENT_APPLICATION_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("current_application"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("current_application_data"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("current_application_response"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("passthru_ptime_mismatch"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("enable_heartbeat_events"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bypass_media_after_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_READ_RESULT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("read_result"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ATT_XFER_RESULT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("att_xfer_result"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_COPY_XML_CDR_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("copy_xml_cdr"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_COPY_JSON_CDR_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("copy_json_cdr"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("proto_specific_hangup_cause"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_HISTORY_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("transfer_history"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_SOURCE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("transfer_source"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SENSITIVE_DTMF_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("sensitive_dtmf"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("record_post_process_exec_app"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("record_post_process_exec_api"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_answer"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_pre_answer"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_media"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_ring"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_tone_detect"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_originate"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_post_originate"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_pre_originate"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_pre_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("execute_on_post_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_answer"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_pre_answer"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_media"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_RING_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_ring"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_tone_detect"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_originate"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_post_originate"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_on_pre_originate"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("call_timeout"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_HOLDING_UUID_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("holding_uuid"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SOFT_HOLDING_UUID_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("soft_holding_uuid"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_BRIDGE_END_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_after_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_BRIDGE_START_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_before_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_HANGUP_HOOK_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_hangup_hook"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_API_REPORTING_HOOK_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("api_reporting_hook"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("session_in_hangup_hook"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PROCESS_CDR_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("process_cdr"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SKIP_CDR_CAUSES_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("skip_cdr_causes"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_FORCE_PROCESS_CDR_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("force_process_cdr"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_CHANNEL_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bridge_channel"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_NAME_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("channel_name"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_UUID_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bridge_uuid"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("continue_on_fail"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("playback_terminators"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PLAYBACK_TERMINATOR_USED_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("playback_terminator_used"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("cache_speech_handles"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("__cache_speech_handles_obj__"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BYPASS_MEDIA_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bypass_media"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PROXY_MEDIA_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("proxy_media"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ZRTP_PASSTHRU_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("zrtp_passthru"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("endpoint_disposition"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_HOLD_MUSIC_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("hold_music"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("temp_hold_music"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXPORT_VARS_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("export_vars"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bridge_export_vars"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_R_SDP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("switch_r_sdp"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_L_SDP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("switch_l_sdp"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_B_SDP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("switch_m_sdp"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("bridge_to"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LAST_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("last_bridge_to"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SIGNAL_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("signal_bridge_to"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SIGNAL_BOND_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("signal_bond"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("originate_signal_bond"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATOR_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("originator"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATOR_CODEC_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("originator_codec"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("originator_video_codec"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_MEDIA_IP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("local_media_ip"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("local_media_port"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("advertised_media_ip"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_MEDIA_IP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("remote_media_ip"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("remote_media_port"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_VIDEO_IP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("remote_video_ip"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("remote_video_port"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_VIDEO_IP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("local_video_ip"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("local_video_port"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("hangup_after_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("park_after_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("transfer_after_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("exec_after_bridge_app"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("exec_after_bridge_arg"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_MAX_FORWARDS_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("max_forwards"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_DISABLE_APP_LOG_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("disable_app_log"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SPEECH_KEY_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("speech"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_UUID_BRIDGE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("uuid_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_BITS_PER_BYTE_get() { + int jresult ; + int result; + + result = (int)(8); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DEFAULT_FILE_BUFFER_LEN_get() { + int jresult ; + int result; + + result = (int)(65536); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DTMF_LOG_LEN_get() { + int jresult ; + int result; + + result = (int)(1000); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_TRANS_get() { + int jresult ; + int result; + + result = (int)(2000); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_SESSION_MAX_PRIVATES_get() { + int jresult ; + int result; + + result = (int)(2); + jresult = result; + return jresult; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_JITTER_VARIANCE_THRESHOLD_get() { + double jresult ; + double result; + + result = (double)(400.0); + jresult = result; + return jresult; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_IPDV_THRESHOLD_get() { + double jresult ; + double result; + + result = (double)(1.0); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_LOST_BURST_ANALYZE_get() { + int jresult ; + int result; + + result = (int)(500); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_LOST_BURST_CAPTURE_get() { + int jresult ; + int result; + + result = (int)(1024); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_digit_set(void * jarg1, char jarg2) { + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + char arg2 ; + + arg1 = (switch_dtmf_t *)jarg1; + arg2 = (char)jarg2; + if (arg1) (arg1)->digit = arg2; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_switch_dtmf_t_digit_get(void * jarg1) { + char jresult ; + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + char result; + + arg1 = (switch_dtmf_t *)jarg1; + result = (char) ((arg1)->digit); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_duration_set(void * jarg1, unsigned long jarg2) { + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_dtmf_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->duration = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_dtmf_t_duration_get(void * jarg1) { + unsigned long jresult ; + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + uint32_t result; + + arg1 = (switch_dtmf_t *)jarg1; + result = (uint32_t) ((arg1)->duration); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_flags_set(void * jarg1, int jarg2) { + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + int32_t arg2 ; + + arg1 = (switch_dtmf_t *)jarg1; + arg2 = (int32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmf_t_flags_get(void * jarg1) { + int jresult ; + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + int32_t result; + + arg1 = (switch_dtmf_t *)jarg1; + result = (int32_t) ((arg1)->flags); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_source_set(void * jarg1, int jarg2) { + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + switch_dtmf_source_t arg2 ; + + arg1 = (switch_dtmf_t *)jarg1; + arg2 = (switch_dtmf_source_t)jarg2; + if (arg1) (arg1)->source = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmf_t_source_get(void * jarg1) { + int jresult ; + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + switch_dtmf_source_t result; + + arg1 = (switch_dtmf_t *)jarg1; + result = (switch_dtmf_source_t) ((arg1)->source); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_dtmf_t() { + void * jresult ; + switch_dtmf_t *result = 0 ; + + result = (switch_dtmf_t *)new switch_dtmf_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_dtmf_t(void * jarg1) { + switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; + + arg1 = (switch_dtmf_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_buf_set(void * jarg1, void * jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t *arg2 = (switch_byte_t *) 0 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t *)jarg2; + if (arg1) (arg1)->buf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_bitpack_t_buf_get(void * jarg1) { + void * jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t *result = 0 ; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t *) ((arg1)->buf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_buflen_set(void * jarg1, unsigned long jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->buflen = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_bitpack_t_buflen_get(void * jarg1) { + unsigned long jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + uint32_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (uint32_t) ((arg1)->buflen); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_cur_set(void * jarg1, void * jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t *arg2 = (switch_byte_t *) 0 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t *)jarg2; + if (arg1) (arg1)->cur = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_bitpack_t_cur_get(void * jarg1) { + void * jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t *result = 0 ; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t *) ((arg1)->cur); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bytes_set(void * jarg1, unsigned long jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->bytes = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_bitpack_t_bytes_get(void * jarg1) { + unsigned long jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + uint32_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (uint32_t) ((arg1)->bytes); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bits_tot_set(void * jarg1, unsigned long jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->bits_tot = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_bitpack_t_bits_tot_get(void * jarg1) { + unsigned long jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + uint32_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (uint32_t) ((arg1)->bits_tot); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bits_cur_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->bits_cur = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_bits_cur_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->bits_cur); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_bits_rem_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->bits_rem = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_bits_rem_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->bits_rem); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_frame_bits_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->frame_bits = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_frame_bits_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->frame_bits); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_shiftby_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->shiftby = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_shiftby_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->shiftby); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_this_byte_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->this_byte = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_this_byte_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->this_byte); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_under_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->under = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_under_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->under); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_over_set(void * jarg1, unsigned char jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_byte_t)jarg2; + if (arg1) (arg1)->over = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_bitpack_t_over_get(void * jarg1) { + unsigned char jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_byte_t) ((arg1)->over); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_bitpack_t_mode_set(void * jarg1, int jarg2) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_bitpack_mode_t arg2 ; + + arg1 = (switch_bitpack_t *)jarg1; + arg2 = (switch_bitpack_mode_t)jarg2; + if (arg1) (arg1)->mode = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_bitpack_t_mode_get(void * jarg1) { + int jresult ; + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + switch_bitpack_mode_t result; + + arg1 = (switch_bitpack_t *)jarg1; + result = (switch_bitpack_mode_t) ((arg1)->mode); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_bitpack_t() { + void * jresult ; + switch_bitpack_t *result = 0 ; + + result = (switch_bitpack_t *)new switch_bitpack_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_bitpack_t(void * jarg1) { + switch_bitpack_t *arg1 = (switch_bitpack_t *) 0 ; + + arg1 = (switch_bitpack_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_base_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->base_dir; + if (arg2) { + arg1->base_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->base_dir, (const char *)arg2); + } else { + arg1->base_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_base_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->base_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_mod_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->mod_dir; + if (arg2) { + arg1->mod_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->mod_dir, (const char *)arg2); + } else { + arg1->mod_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_mod_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->mod_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_conf_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->conf_dir; + if (arg2) { + arg1->conf_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->conf_dir, (const char *)arg2); + } else { + arg1->conf_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_conf_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->conf_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_log_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->log_dir; + if (arg2) { + arg1->log_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->log_dir, (const char *)arg2); + } else { + arg1->log_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_log_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->log_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_run_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->run_dir; + if (arg2) { + arg1->run_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->run_dir, (const char *)arg2); + } else { + arg1->run_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_run_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->run_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_db_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->db_dir; + if (arg2) { + arg1->db_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->db_dir, (const char *)arg2); + } else { + arg1->db_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_db_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->db_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_script_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->script_dir; + if (arg2) { + arg1->script_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->script_dir, (const char *)arg2); + } else { + arg1->script_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_script_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->script_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_temp_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->temp_dir; + if (arg2) { + arg1->temp_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->temp_dir, (const char *)arg2); + } else { + arg1->temp_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_temp_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->temp_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_htdocs_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->htdocs_dir; + if (arg2) { + arg1->htdocs_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->htdocs_dir, (const char *)arg2); + } else { + arg1->htdocs_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_htdocs_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->htdocs_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_grammar_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->grammar_dir; + if (arg2) { + arg1->grammar_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->grammar_dir, (const char *)arg2); + } else { + arg1->grammar_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_grammar_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->grammar_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_storage_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->storage_dir; + if (arg2) { + arg1->storage_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->storage_dir, (const char *)arg2); + } else { + arg1->storage_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_storage_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->storage_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_cache_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->cache_dir; + if (arg2) { + arg1->cache_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->cache_dir, (const char *)arg2); + } else { + arg1->cache_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_cache_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->cache_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_recordings_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->recordings_dir; + if (arg2) { + arg1->recordings_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->recordings_dir, (const char *)arg2); + } else { + arg1->recordings_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_recordings_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->recordings_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_sounds_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->sounds_dir; + if (arg2) { + arg1->sounds_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->sounds_dir, (const char *)arg2); + } else { + arg1->sounds_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_sounds_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->sounds_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_lib_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->lib_dir; + if (arg2) { + arg1->lib_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->lib_dir, (const char *)arg2); + } else { + arg1->lib_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_lib_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->lib_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_certs_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->certs_dir; + if (arg2) { + arg1->certs_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->certs_dir, (const char *)arg2); + } else { + arg1->certs_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_certs_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->certs_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directories() { + void * jresult ; + switch_directories *result = 0 ; + + result = (switch_directories *)new switch_directories(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directories(void * jarg1) { + switch_directories *arg1 = (switch_directories *) 0 ; + + arg1 = (switch_directories *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SWITCH_GLOBAL_dirs_set(void * jarg1) { + switch_directories *arg1 = (switch_directories *) 0 ; + + arg1 = (switch_directories *)jarg1; + SWITCH_GLOBAL_dirs = *arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SWITCH_GLOBAL_dirs_get() { + void * jresult ; + switch_directories *result = 0 ; + + result = (switch_directories *)&SWITCH_GLOBAL_dirs; + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_filenames_conf_name_set(void * jarg1, char * jarg2) { + switch_filenames *arg1 = (switch_filenames *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_filenames *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->conf_name; + if (arg2) { + arg1->conf_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->conf_name, (const char *)arg2); + } else { + arg1->conf_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_filenames_conf_name_get(void * jarg1) { + char * jresult ; + switch_filenames *arg1 = (switch_filenames *) 0 ; + char *result = 0 ; + + arg1 = (switch_filenames *)jarg1; + result = (char *) ((arg1)->conf_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_filenames() { + void * jresult ; + switch_filenames *result = 0 ; + + result = (switch_filenames *)new switch_filenames(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_filenames(void * jarg1) { + switch_filenames *arg1 = (switch_filenames *) 0 ; + + arg1 = (switch_filenames *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SWITCH_GLOBAL_filenames_set(void * jarg1) { + switch_filenames *arg1 = (switch_filenames *) 0 ; + + arg1 = (switch_filenames *)jarg1; + SWITCH_GLOBAL_filenames = *arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SWITCH_GLOBAL_filenames_get() { + void * jresult ; + switch_filenames *result = 0 ; + + result = (switch_filenames *)&SWITCH_GLOBAL_filenames; + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STACKS_get() { + int jresult ; + int result; + + result = (int)(16); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_THREAD_STACKSIZE_get() { + int jresult ; + int result; + + result = (int)(240*1024); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SYSTEM_THREAD_STACKSIZE_get() { + int jresult ; + int result; + + result = (int)(8192*1024); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_INTERVAL_get() { + int jresult ; + int result; + + result = (int)(120); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_INTERVAL_PAD_get() { + int jresult ; + int result; + + result = (int)(10); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_SAMPLE_LEN_get() { + int jresult ; + int result; + + result = (int)(48); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_BYTES_PER_SAMPLE_get() { + int jresult ; + int result; + + result = (int)(2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RECOMMENDED_BUFFER_SIZE_get() { + int jresult ; + int result; + + result = (int)(8192); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_CODECS_get() { + int jresult ; + int result; + + result = (int)(50); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STATE_HANDLERS_get() { + int jresult ; + int result; + + result = (int)(30); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_QUEUE_LEN_get() { + int jresult ; + int result; + + result = (int)(100000); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get() { + int jresult ; + int result; + + result = (int)(1024*8); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_raw_bytes_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->raw_bytes = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_raw_bytes_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->raw_bytes); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_bytes_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->media_bytes = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_bytes_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->media_bytes); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_period_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->period_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_period_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->period_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->media_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_media_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->media_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_skip_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->skip_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_skip_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->skip_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jb_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->jb_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_jb_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->jb_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_dtmf_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->dtmf_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_dtmf_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->dtmf_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_cng_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->cng_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_cng_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->cng_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_flush_packet_count_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->flush_packet_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_flush_packet_count_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->flush_packet_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_largest_jb_size_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->largest_jb_size = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_largest_jb_size_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->largest_jb_size); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_proc_time_set(void * jarg1, long long jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->last_proc_time = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_proc_time_get(void * jarg1) { + long long jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int64_t) ((arg1)->last_proc_time); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_n_set(void * jarg1, long long jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->jitter_n = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_n_get(void * jarg1) { + long long jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int64_t) ((arg1)->jitter_n); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_add_set(void * jarg1, long long jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->jitter_add = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_add_get(void * jarg1) { + long long jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int64_t) ((arg1)->jitter_add); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_addsq_set(void * jarg1, long long jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->jitter_addsq = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_rtp_numbers_t_jitter_addsq_get(void * jarg1) { + long long jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int64_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int64_t) ((arg1)->jitter_addsq); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_variance_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->variance = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_variance_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->variance); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_min_variance_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->min_variance = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_min_variance_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->min_variance); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_max_variance_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->max_variance = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_max_variance_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->max_variance); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_std_deviation_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->std_deviation = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_std_deviation_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->std_deviation); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_lossrate_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->lossrate = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_lossrate_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->lossrate); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_burstrate_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->burstrate = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_burstrate_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->burstrate); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_mean_interval_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->mean_interval = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_mean_interval_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->mean_interval); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_loss_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int *arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int *)jarg2; + { + size_t ii; + int *b = (int *) arg1->loss; + for (ii = 0; ii < (size_t)1024; ii++) b[ii] = *((int *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_loss_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int *result = 0 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int *)(int *) ((arg1)->loss); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_loss_set(void * jarg1, int jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->last_loss = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_loss_get(void * jarg1) { + int jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int) ((arg1)->last_loss); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_recved_set(void * jarg1, int jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->recved = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_numbers_t_recved_get(void * jarg1) { + int jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int) ((arg1)->recved); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_processed_seq_set(void * jarg1, int jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->last_processed_seq = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_processed_seq_get(void * jarg1) { + int jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + int result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (int) ((arg1)->last_processed_seq); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_flaws_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->flaws = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_flaws_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->flaws); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_flaw_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->last_flaw = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_last_flaw_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = ((arg1)->last_flaw); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_R_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->R = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_R_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->R); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_mos_set(void * jarg1, double jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->mos = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_mos_get(void * jarg1) { + double jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (double) ((arg1)->mos); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_numbers_t() { + void * jresult ; + switch_rtp_numbers_t *result = 0 ; + + result = (switch_rtp_numbers_t *)new switch_rtp_numbers_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_numbers_t(void * jarg1) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_packet_count_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->packet_count = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_packet_count_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->packet_count); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_octet_count_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->octet_count = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_octet_count_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->octet_count); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_peer_ssrc_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->peer_ssrc = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_peer_ssrc_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->peer_ssrc); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_rpt_ts_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->last_rpt_ts = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_rpt_ts_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->last_rpt_ts); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_ssrc_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ssrc = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_ssrc_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->ssrc); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_csrc_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->csrc = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_csrc_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->csrc); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_pkt_tsdiff_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->last_pkt_tsdiff = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_pkt_tsdiff_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->last_pkt_tsdiff); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_inter_jitter_set(void * jarg1, double jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + double arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->inter_jitter = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtcp_numbers_t_inter_jitter_get(void * jarg1) { + double jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + double result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (double) ((arg1)->inter_jitter); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_rpt_ext_seq_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->last_rpt_ext_seq = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_rpt_ext_seq_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->last_rpt_ext_seq); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_rpt_cycle_set(void * jarg1, unsigned short jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->last_rpt_cycle = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_rpt_cycle_get(void * jarg1) { + unsigned short jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint16_t) ((arg1)->last_rpt_cycle); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_period_pkt_count_set(void * jarg1, unsigned short jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->period_pkt_count = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtcp_numbers_t_period_pkt_count_get(void * jarg1) { + unsigned short jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint16_t) ((arg1)->period_pkt_count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_pkt_count_set(void * jarg1, unsigned short jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->pkt_count = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtcp_numbers_t_pkt_count_get(void * jarg1) { + unsigned short jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint16_t) ((arg1)->pkt_count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_rtcp_rtp_count_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->rtcp_rtp_count = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_rtcp_rtp_count_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->rtcp_rtp_count); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_high_ext_seq_recv_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->high_ext_seq_recv = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_high_ext_seq_recv_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->high_ext_seq_recv); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_cycle_set(void * jarg1, unsigned short jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->cycle = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtcp_numbers_t_cycle_get(void * jarg1) { + unsigned short jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint16_t) ((arg1)->cycle); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_bad_seq_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->bad_seq = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_bad_seq_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->bad_seq); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_base_seq_set(void * jarg1, unsigned short jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->base_seq = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtcp_numbers_t_base_seq_get(void * jarg1) { + unsigned short jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint16_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint16_t) ((arg1)->base_seq); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_cum_lost_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->cum_lost = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_cum_lost_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->cum_lost); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_recv_lsr_local_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->last_recv_lsr_local = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_recv_lsr_local_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->last_recv_lsr_local); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_recv_lsr_peer_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->last_recv_lsr_peer = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_last_recv_lsr_peer_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->last_recv_lsr_peer); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_numbers_t_init_set(void * jarg1, unsigned long jarg2) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->init = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtcp_numbers_t_init_get(void * jarg1) { + unsigned long jresult ; + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + result = (uint32_t) ((arg1)->init); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtcp_numbers_t() { + void * jresult ; + switch_rtcp_numbers_t *result = 0 ; + + result = (switch_rtcp_numbers_t *)new switch_rtcp_numbers_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtcp_numbers_t(void * jarg1) { + switch_rtcp_numbers_t *arg1 = (switch_rtcp_numbers_t *) 0 ; + + arg1 = (switch_rtcp_numbers_t *)jarg1; + delete arg1; +} + + +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)->inbound = *arg2; +} + + +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)->inbound); + jresult = (void *)result; + return jresult; +} + + +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)->outbound = *arg2; +} + + +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)->outbound); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_rtcp_set(void * jarg1, void * jarg2) { + switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; + switch_rtcp_numbers_t *arg2 = (switch_rtcp_numbers_t *) 0 ; + + arg1 = (switch_rtp_stats_t *)jarg1; + arg2 = (switch_rtcp_numbers_t *)jarg2; + if (arg1) (arg1)->rtcp = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_stats_t_rtcp_get(void * jarg1) { + void * jresult ; + switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; + switch_rtcp_numbers_t *result = 0 ; + + arg1 = (switch_rtp_stats_t *)jarg1; + result = (switch_rtcp_numbers_t *)& ((arg1)->rtcp); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_read_count_set(void * jarg1, unsigned long jarg2) { + switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtp_stats_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->read_count = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_stats_t_read_count_get(void * jarg1) { + unsigned long jresult ; + switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtp_stats_t *)jarg1; + result = (uint32_t) ((arg1)->read_count); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_stats_t() { + void * jresult ; + switch_rtp_stats_t *result = 0 ; + + result = (switch_rtp_stats_t *)new switch_rtp_stats_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_stats_t(void * jarg1) { + switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ; + + arg1 = (switch_rtp_stats_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_CNG_PAYLOAD_get() { + int jresult ; + int result; + + result = (int)(13); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_version_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->version = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_version_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->version); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_p_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->p = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_p_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->p); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_x_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->x = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_x_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->x); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_cc_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->cc = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_cc_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->cc); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_m_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->m = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_m_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->m); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_pt_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->pt = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_pt_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->pt); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_seq_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->seq = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_seq_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->seq); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_ts_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->ts = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_ts_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->ts); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_t_ssrc_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->ssrc = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_t_ssrc_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_t *)jarg1; + result = (unsigned int) ((arg1)->ssrc); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_hdr_t() { + void * jresult ; + switch_rtp_hdr_t *result = 0 ; + + result = (switch_rtp_hdr_t *)new switch_rtp_hdr_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_t(void * jarg1) { + switch_rtp_hdr_t *arg1 = (switch_rtp_hdr_t *) 0 ; + + arg1 = (switch_rtp_hdr_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_length_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_ext_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->length = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_length_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_ext_t *)jarg1; + result = (unsigned int) ((arg1)->length); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_profile_set(void * jarg1, unsigned int jarg2) { + switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtp_hdr_ext_t *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->profile = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_profile_get(void * jarg1) { + unsigned int jresult ; + switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; + unsigned int result; + + arg1 = (switch_rtp_hdr_ext_t *)jarg1; + result = (unsigned int) ((arg1)->profile); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_hdr_ext_t() { + void * jresult ; + switch_rtp_hdr_ext_t *result = 0 ; + + result = (switch_rtp_hdr_ext_t *)new switch_rtp_hdr_ext_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_ext_t(void * jarg1) { + switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ; + + arg1 = (switch_rtp_hdr_ext_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_version_set(void * jarg1, unsigned int jarg2) { + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->version = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_version_get(void * jarg1) { + unsigned int jresult ; + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int result; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + result = (unsigned int) ((arg1)->version); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_p_set(void * jarg1, unsigned int jarg2) { + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->p = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_p_get(void * jarg1) { + unsigned int jresult ; + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int result; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + result = (unsigned int) ((arg1)->p); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_count_set(void * jarg1, unsigned int jarg2) { + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_count_get(void * jarg1) { + unsigned int jresult ; + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int result; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + result = (unsigned int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_type_set(void * jarg1, unsigned int jarg2) { + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_type_get(void * jarg1) { + unsigned int jresult ; + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int result; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + result = (unsigned int) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_length_set(void * jarg1, unsigned int jarg2) { + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->length = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtcp_hdr_t_length_get(void * jarg1) { + unsigned int jresult ; + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + unsigned int result; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + result = (unsigned int) ((arg1)->length); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtcp_hdr_t() { + void * jresult ; + switch_rtcp_hdr_s *result = 0 ; + + result = (switch_rtcp_hdr_s *)new switch_rtcp_hdr_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtcp_hdr_t(void * jarg1) { + switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; + + arg1 = (switch_rtcp_hdr_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_audio_buffer_header_t_ts_set(void * jarg1, unsigned long jarg2) { + audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; + uint32_t arg2 ; + + arg1 = (audio_buffer_header_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ts = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_audio_buffer_header_t_ts_get(void * jarg1) { + unsigned long jresult ; + audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; + uint32_t result; + + arg1 = (audio_buffer_header_s *)jarg1; + result = (uint32_t) ((arg1)->ts); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_audio_buffer_header_t_len_set(void * jarg1, unsigned long jarg2) { + audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; + uint32_t arg2 ; + + arg1 = (audio_buffer_header_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->len = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_audio_buffer_header_t_len_get(void * jarg1) { + unsigned long jresult ; + audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; + uint32_t result; + + arg1 = (audio_buffer_header_s *)jarg1; + result = (uint32_t) ((arg1)->len); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_audio_buffer_header_t() { + void * jresult ; + audio_buffer_header_s *result = 0 ; + + result = (audio_buffer_header_s *)new audio_buffer_header_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_audio_buffer_header_t(void * jarg1) { + audio_buffer_header_s *arg1 = (audio_buffer_header_s *) 0 ; + + arg1 = (audio_buffer_header_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxVersion_set(void * jarg1, unsigned short jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->T38FaxVersion = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxVersion_get(void * jarg1) { + unsigned short jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint16_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (uint16_t) ((arg1)->T38FaxVersion); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38MaxBitRate_set(void * jarg1, unsigned long jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->T38MaxBitRate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_t38_options_t_T38MaxBitRate_get(void * jarg1) { + unsigned long jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint32_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (uint32_t) ((arg1)->T38MaxBitRate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxFillBitRemoval_set(void * jarg1, int jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->T38FaxFillBitRemoval = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxFillBitRemoval_get(void * jarg1) { + int jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (switch_bool_t) ((arg1)->T38FaxFillBitRemoval); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingMMR_set(void * jarg1, int jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->T38FaxTranscodingMMR = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingMMR_get(void * jarg1) { + int jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (switch_bool_t) ((arg1)->T38FaxTranscodingMMR); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_set(void * jarg1, int jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->T38FaxTranscodingJBIG = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_get(void * jarg1) { + int jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (switch_bool_t) ((arg1)->T38FaxTranscodingJBIG); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxRateManagement_set(void * jarg1, char * jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->T38FaxRateManagement = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->T38FaxRateManagement, (const char *)arg2); + } else { + arg1->T38FaxRateManagement = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxRateManagement_get(void * jarg1) { + char * jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + result = (char *) ((arg1)->T38FaxRateManagement); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxBuffer_set(void * jarg1, unsigned long jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->T38FaxMaxBuffer = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxBuffer_get(void * jarg1) { + unsigned long jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint32_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (uint32_t) ((arg1)->T38FaxMaxBuffer); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxDatagram_set(void * jarg1, unsigned long jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->T38FaxMaxDatagram = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxMaxDatagram_get(void * jarg1) { + unsigned long jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint32_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (uint32_t) ((arg1)->T38FaxMaxDatagram); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxUdpEC_set(void * jarg1, char * jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->T38FaxUdpEC = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->T38FaxUdpEC, (const char *)arg2); + } else { + arg1->T38FaxUdpEC = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_T38FaxUdpEC_get(void * jarg1) { + char * jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + result = (char *) ((arg1)->T38FaxUdpEC); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_T38VendorInfo_set(void * jarg1, char * jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->T38VendorInfo = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->T38VendorInfo, (const char *)arg2); + } else { + arg1->T38VendorInfo = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_T38VendorInfo_get(void * jarg1) { + char * jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + result = (char *) ((arg1)->T38VendorInfo); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_remote_ip_set(void * jarg1, char * jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->remote_ip = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->remote_ip, (const char *)arg2); + } else { + arg1->remote_ip = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_remote_ip_get(void * jarg1) { + char * jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + result = (char *) ((arg1)->remote_ip); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_remote_port_set(void * jarg1, unsigned short jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->remote_port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_t38_options_t_remote_port_get(void * jarg1) { + unsigned short jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint16_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (uint16_t) ((arg1)->remote_port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_local_ip_set(void * jarg1, char * jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->local_ip = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->local_ip, (const char *)arg2); + } else { + arg1->local_ip = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_local_ip_get(void * jarg1) { + char * jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + result = (char *) ((arg1)->local_ip); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_local_port_set(void * jarg1, unsigned short jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->local_port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_t38_options_t_local_port_get(void * jarg1) { + unsigned short jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + uint16_t result; + + arg1 = (switch_t38_options_t *)jarg1; + result = (uint16_t) ((arg1)->local_port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_t38_options_t_sdp_o_line_set(void * jarg1, char * jarg2) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->sdp_o_line = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->sdp_o_line, (const char *)arg2); + } else { + arg1->sdp_o_line = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_t38_options_t_sdp_o_line_get(void * jarg1) { + char * jresult ; + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + result = (char *) ((arg1)->sdp_o_line); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_t38_options_t() { + void * jresult ; + switch_t38_options_t *result = 0 ; + + result = (switch_t38_options_t *)new switch_t38_options_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_t38_options_t(void * jarg1) { + switch_t38_options_t *arg1 = (switch_t38_options_t *) 0 ; + + arg1 = (switch_t38_options_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MEDIA_TYPE_TOTAL_get() { + int jresult ; + int result; + + result = (int)(2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SOCK_INVALID_get() { + int jresult ; + int result; + + result = (int)(-1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_node_val_set(void * jarg1, char * jarg2) { + switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_console_callback_match_node *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->val; + if (arg2) { + arg1->val = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->val, (const char *)arg2); + } else { + arg1->val = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_console_callback_match_node_val_get(void * jarg1) { + char * jresult ; + switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; + char *result = 0 ; + + arg1 = (switch_console_callback_match_node *)jarg1; + result = (char *) ((arg1)->val); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_node_next_set(void * jarg1, void * jarg2) { + switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; + switch_console_callback_match_node *arg2 = (switch_console_callback_match_node *) 0 ; + + arg1 = (switch_console_callback_match_node *)jarg1; + arg2 = (switch_console_callback_match_node *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_node_next_get(void * jarg1) { + void * jresult ; + switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; + switch_console_callback_match_node *result = 0 ; + + arg1 = (switch_console_callback_match_node *)jarg1; + result = (switch_console_callback_match_node *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_console_callback_match_node() { + void * jresult ; + switch_console_callback_match_node *result = 0 ; + + result = (switch_console_callback_match_node *)new switch_console_callback_match_node(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_console_callback_match_node(void * jarg1) { + switch_console_callback_match_node *arg1 = (switch_console_callback_match_node *) 0 ; + + arg1 = (switch_console_callback_match_node *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_head_set(void * jarg1, void * jarg2) { + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + switch_console_callback_match_node *arg2 = (switch_console_callback_match_node *) 0 ; + + arg1 = (switch_console_callback_match *)jarg1; + arg2 = (switch_console_callback_match_node *)jarg2; + if (arg1) (arg1)->head = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_head_get(void * jarg1) { + void * jresult ; + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + switch_console_callback_match_node *result = 0 ; + + arg1 = (switch_console_callback_match *)jarg1; + result = (switch_console_callback_match_node *) ((arg1)->head); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_end_set(void * jarg1, void * jarg2) { + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + switch_console_callback_match_node *arg2 = (switch_console_callback_match_node *) 0 ; + + arg1 = (switch_console_callback_match *)jarg1; + arg2 = (switch_console_callback_match_node *)jarg2; + if (arg1) (arg1)->end = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_end_get(void * jarg1) { + void * jresult ; + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + switch_console_callback_match_node *result = 0 ; + + arg1 = (switch_console_callback_match *)jarg1; + result = (switch_console_callback_match_node *) ((arg1)->end); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_count_set(void * jarg1, int jarg2) { + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + int arg2 ; + + arg1 = (switch_console_callback_match *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_callback_match_count_get(void * jarg1) { + int jresult ; + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + int result; + + arg1 = (switch_console_callback_match *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_dynamic_set(void * jarg1, int jarg2) { + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + int arg2 ; + + arg1 = (switch_console_callback_match *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->dynamic = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_callback_match_dynamic_get(void * jarg1) { + int jresult ; + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + int result; + + arg1 = (switch_console_callback_match *)jarg1; + result = (int) ((arg1)->dynamic); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_console_callback_match() { + void * jresult ; + switch_console_callback_match *result = 0 ; + + result = (switch_console_callback_match *)new switch_console_callback_match(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_console_callback_match(void * jarg1) { + switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ; + + arg1 = (switch_console_callback_match *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DMACHINE_MAX_DIGIT_LEN_get() { + int jresult ; + int result; + + result = (int)(512); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_dmachine_set(void * jarg1, void * jarg2) { + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + arg2 = (switch_ivr_dmachine_t *)jarg2; + if (arg1) (arg1)->dmachine = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_dmachine_match_dmachine_get(void * jarg1) { + void * jresult ; + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + switch_ivr_dmachine_t *result = 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + result = (switch_ivr_dmachine_t *) ((arg1)->dmachine); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_digits_set(void * jarg1, char * jarg2) { + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->match_digits = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->match_digits, (const char *)arg2); + } else { + arg1->match_digits = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_digits_get(void * jarg1) { + char * jresult ; + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + char *result = 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + result = (char *) ((arg1)->match_digits); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_key_set(void * jarg1, int jarg2) { + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + int32_t arg2 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + arg2 = (int32_t)jarg2; + if (arg1) (arg1)->match_key = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_match_match_key_get(void * jarg1) { + int jresult ; + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + int32_t result; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + result = (int32_t) ((arg1)->match_key); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_type_set(void * jarg1, int jarg2) { + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + dm_match_type_t arg2 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + arg2 = (dm_match_type_t)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_match_type_get(void * jarg1) { + int jresult ; + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + dm_match_type_t result; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + result = (dm_match_type_t) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_match_user_data_set(void * jarg1, void * jarg2) { + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_dmachine_match_user_data_get(void * jarg1) { + void * jresult ; + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + void *result = 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + result = (void *) ((arg1)->user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_ivr_dmachine_match() { + void * jresult ; + switch_ivr_dmachine_match *result = 0 ; + + result = (switch_ivr_dmachine_match *)new switch_ivr_dmachine_match(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_ivr_dmachine_match(void * jarg1) { + switch_ivr_dmachine_match *arg1 = (switch_ivr_dmachine_match *) 0 ; + + arg1 = (switch_ivr_dmachine_match *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MAX_ARG_RECURSION_get() { + int jresult ; + int result; + + result = (int)(25); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_input_callback_set(void * jarg1, void * jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + switch_input_callback_function_t arg2 = (switch_input_callback_function_t) 0 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (switch_input_callback_function_t)jarg2; + if (arg1) (arg1)->input_callback = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_input_callback_get(void * jarg1) { + void * jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + switch_input_callback_function_t result; + + arg1 = (switch_input_args_t *)jarg1; + result = (switch_input_callback_function_t) ((arg1)->input_callback); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_buf_set(void * jarg1, void * jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->buf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_buf_get(void * jarg1) { + void * jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_input_args_t *)jarg1; + result = (void *) ((arg1)->buf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_buflen_set(void * jarg1, unsigned long jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->buflen = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_input_args_t_buflen_get(void * jarg1) { + unsigned long jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + uint32_t result; + + arg1 = (switch_input_args_t *)jarg1; + result = (uint32_t) ((arg1)->buflen); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_read_frame_callback_set(void * jarg1, void * jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + switch_read_frame_callback_function_t arg2 = (switch_read_frame_callback_function_t) 0 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (switch_read_frame_callback_function_t)jarg2; + if (arg1) (arg1)->read_frame_callback = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_read_frame_callback_get(void * jarg1) { + void * jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + switch_read_frame_callback_function_t result; + + arg1 = (switch_input_args_t *)jarg1; + result = (switch_read_frame_callback_function_t) ((arg1)->read_frame_callback); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_user_data_set(void * jarg1, void * jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_user_data_get(void * jarg1) { + void * jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_input_args_t *)jarg1; + result = (void *) ((arg1)->user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_dmachine_set(void * jarg1, void * jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (switch_ivr_dmachine_t *)jarg2; + if (arg1) (arg1)->dmachine = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_dmachine_get(void * jarg1) { + void * jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + switch_ivr_dmachine_t *result = 0 ; + + arg1 = (switch_input_args_t *)jarg1; + result = (switch_ivr_dmachine_t *) ((arg1)->dmachine); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_loops_set(void * jarg1, int jarg2) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + int arg2 ; + + arg1 = (switch_input_args_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->loops = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_input_args_t_loops_get(void * jarg1) { + int jresult ; + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + int result; + + arg1 = (switch_input_args_t *)jarg1; + result = (int) ((arg1)->loops); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_input_args_t() { + void * jresult ; + switch_input_args_t *result = 0 ; + + result = (switch_input_args_t *)new switch_input_args_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_input_args_t(void * jarg1) { + switch_input_args_t *arg1 = (switch_input_args_t *) 0 ; + + arg1 = (switch_input_args_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_type_set(void * jarg1, int jarg2) { + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + switch_say_type_t arg2 ; + + arg1 = (switch_say_args_t *)jarg1; + arg2 = (switch_say_type_t)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_type_get(void * jarg1) { + int jresult ; + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + switch_say_type_t result; + + arg1 = (switch_say_args_t *)jarg1; + result = (switch_say_type_t) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_method_set(void * jarg1, int jarg2) { + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + switch_say_method_t arg2 ; + + arg1 = (switch_say_args_t *)jarg1; + arg2 = (switch_say_method_t)jarg2; + if (arg1) (arg1)->method = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_method_get(void * jarg1) { + int jresult ; + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + switch_say_method_t result; + + arg1 = (switch_say_args_t *)jarg1; + result = (switch_say_method_t) ((arg1)->method); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_gender_set(void * jarg1, int jarg2) { + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + switch_say_gender_t arg2 ; + + arg1 = (switch_say_args_t *)jarg1; + arg2 = (switch_say_gender_t)jarg2; + if (arg1) (arg1)->gender = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_gender_get(void * jarg1) { + int jresult ; + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + switch_say_gender_t result; + + arg1 = (switch_say_args_t *)jarg1; + result = (switch_say_gender_t) ((arg1)->gender); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_ext_set(void * jarg1, char * jarg2) { + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_say_args_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->ext = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->ext, (const char *)arg2); + } else { + arg1->ext = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_args_t_ext_get(void * jarg1) { + char * jresult ; + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_say_args_t *)jarg1; + result = (char *) ((arg1)->ext); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_say_args_t() { + void * jresult ; + switch_say_args_t *result = 0 ; + + result = (switch_say_args_t *)new switch_say_args_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_say_args_t(void * jarg1) { + switch_say_args_t *arg1 = (switch_say_args_t *) 0 ; + + arg1 = (switch_say_args_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_API_VERSION_get() { + int jresult ; + int result; + + result = (int)(5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_switch_api_version_set(void * jarg1, int jarg2) { + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + int arg2 ; + + arg1 = (switch_loadable_module_function_table *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->switch_api_version = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_switch_api_version_get(void * jarg1) { + int jresult ; + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + int result; + + arg1 = (switch_loadable_module_function_table *)jarg1; + result = (int) ((arg1)->switch_api_version); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_load_set(void * jarg1, void * jarg2) { + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_load_t arg2 = (switch_module_load_t) 0 ; + + arg1 = (switch_loadable_module_function_table *)jarg1; + arg2 = (switch_module_load_t)jarg2; + if (arg1) (arg1)->load = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_load_get(void * jarg1) { + void * jresult ; + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_load_t result; + + arg1 = (switch_loadable_module_function_table *)jarg1; + result = (switch_module_load_t) ((arg1)->load); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_shutdown_set(void * jarg1, void * jarg2) { + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_shutdown_t arg2 = (switch_module_shutdown_t) 0 ; + + arg1 = (switch_loadable_module_function_table *)jarg1; + arg2 = (switch_module_shutdown_t)jarg2; + if (arg1) (arg1)->shutdown = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_shutdown_get(void * jarg1) { + void * jresult ; + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_shutdown_t result; + + arg1 = (switch_loadable_module_function_table *)jarg1; + result = (switch_module_shutdown_t) ((arg1)->shutdown); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_runtime_set(void * jarg1, void * jarg2) { + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_runtime_t arg2 = (switch_module_runtime_t) 0 ; + + arg1 = (switch_loadable_module_function_table *)jarg1; + arg2 = (switch_module_runtime_t)jarg2; + if (arg1) (arg1)->runtime = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_runtime_get(void * jarg1) { + void * jresult ; + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_runtime_t result; + + arg1 = (switch_loadable_module_function_table *)jarg1; + result = (switch_module_runtime_t) ((arg1)->runtime); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_flags_set(void * jarg1, unsigned long jarg2) { + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_flag_t arg2 ; + + arg1 = (switch_loadable_module_function_table *)jarg1; + arg2 = (switch_module_flag_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_loadable_module_function_table_t_flags_get(void * jarg1) { + unsigned long jresult ; + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + switch_module_flag_t result; + + arg1 = (switch_loadable_module_function_table *)jarg1; + result = (switch_module_flag_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_loadable_module_function_table_t() { + void * jresult ; + switch_loadable_module_function_table *result = 0 ; + + result = (switch_loadable_module_function_table *)new switch_loadable_module_function_table(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_loadable_module_function_table_t(void * jarg1) { + switch_loadable_module_function_table *arg1 = (switch_loadable_module_function_table *) 0 ; + + arg1 = (switch_loadable_module_function_table *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_type_set(void * jarg1, int jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_media_type_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (switch_media_type_t)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_type_get(void * jarg1) { + int jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_media_type_t result; + + arg1 = (payload_map_s *)jarg1; + result = (switch_media_type_t) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_sdp_type_set(void * jarg1, int jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_sdp_type_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (switch_sdp_type_t)jarg2; + if (arg1) (arg1)->sdp_type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_sdp_type_get(void * jarg1) { + int jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_sdp_type_t result; + + arg1 = (payload_map_s *)jarg1; + result = (switch_sdp_type_t) ((arg1)->sdp_type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_ptime_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ptime = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_ptime_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint32_t) ((arg1)->ptime); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rate_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_rate_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint32_t) ((arg1)->rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_allocated_set(void * jarg1, unsigned char jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint8_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->allocated = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_allocated_get(void * jarg1) { + unsigned char jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint8_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint8_t) ((arg1)->allocated); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_negotiated_set(void * jarg1, unsigned char jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint8_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->negotiated = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_negotiated_get(void * jarg1) { + unsigned char jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint8_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint8_t) ((arg1)->negotiated); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_current_set(void * jarg1, unsigned char jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint8_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->current = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_current_get(void * jarg1) { + unsigned char jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint8_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint8_t) ((arg1)->current); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_hash_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + unsigned long arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (unsigned long)jarg2; + if (arg1) (arg1)->hash = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_hash_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + unsigned long result; + + arg1 = (payload_map_s *)jarg1; + result = (unsigned long) ((arg1)->hash); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rm_encoding_set(void * jarg1, char * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->rm_encoding; + if (arg2) { + arg1->rm_encoding = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->rm_encoding, (const char *)arg2); + } else { + arg1->rm_encoding = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_rm_encoding_get(void * jarg1) { + char * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (char *) ((arg1)->rm_encoding); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_iananame_set(void * jarg1, char * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->iananame; + if (arg2) { + arg1->iananame = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->iananame, (const char *)arg2); + } else { + arg1->iananame = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_iananame_get(void * jarg1) { + char * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (char *) ((arg1)->iananame); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_pt_set(void * jarg1, unsigned char jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_payload_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (switch_payload_t)jarg2; + if (arg1) (arg1)->pt = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_pt_get(void * jarg1) { + unsigned char jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_payload_t result; + + arg1 = (payload_map_s *)jarg1; + result = (switch_payload_t) ((arg1)->pt); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rm_rate_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + unsigned long arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (unsigned long)jarg2; + if (arg1) (arg1)->rm_rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_rm_rate_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + unsigned long result; + + arg1 = (payload_map_s *)jarg1; + result = (unsigned long) ((arg1)->rm_rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_adv_rm_rate_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + unsigned long arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (unsigned long)jarg2; + if (arg1) (arg1)->adv_rm_rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_adv_rm_rate_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + unsigned long result; + + arg1 = (payload_map_s *)jarg1; + result = (unsigned long) ((arg1)->adv_rm_rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_codec_ms_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->codec_ms = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_codec_ms_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint32_t) ((arg1)->codec_ms); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_bitrate_set(void * jarg1, unsigned long jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->bitrate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_payload_map_t_bitrate_get(void * jarg1) { + unsigned long jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + uint32_t result; + + arg1 = (payload_map_s *)jarg1; + result = (uint32_t) ((arg1)->bitrate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_rm_fmtp_set(void * jarg1, char * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->rm_fmtp; + if (arg2) { + arg1->rm_fmtp = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->rm_fmtp, (const char *)arg2); + } else { + arg1->rm_fmtp = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_rm_fmtp_get(void * jarg1) { + char * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (char *) ((arg1)->rm_fmtp); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_agreed_pt_set(void * jarg1, unsigned char jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_payload_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (switch_payload_t)jarg2; + if (arg1) (arg1)->agreed_pt = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_agreed_pt_get(void * jarg1) { + unsigned char jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_payload_t result; + + arg1 = (payload_map_s *)jarg1; + result = (switch_payload_t) ((arg1)->agreed_pt); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_recv_pt_set(void * jarg1, unsigned char jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_payload_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (switch_payload_t)jarg2; + if (arg1) (arg1)->recv_pt = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_payload_map_t_recv_pt_get(void * jarg1) { + unsigned char jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_payload_t result; + + arg1 = (payload_map_s *)jarg1; + result = (switch_payload_t) ((arg1)->recv_pt); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_fmtp_out_set(void * jarg1, char * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->fmtp_out; + if (arg2) { + arg1->fmtp_out = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->fmtp_out, (const char *)arg2); + } else { + arg1->fmtp_out = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_fmtp_out_get(void * jarg1) { + char * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (char *) ((arg1)->fmtp_out); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_remote_sdp_ip_set(void * jarg1, char * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->remote_sdp_ip; + if (arg2) { + arg1->remote_sdp_ip = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->remote_sdp_ip, (const char *)arg2); + } else { + arg1->remote_sdp_ip = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_remote_sdp_ip_get(void * jarg1) { + char * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (char *) ((arg1)->remote_sdp_ip); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_remote_sdp_port_set(void * jarg1, unsigned short jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_port_t arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (switch_port_t)jarg2; + if (arg1) (arg1)->remote_sdp_port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_payload_map_t_remote_sdp_port_get(void * jarg1) { + unsigned short jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + switch_port_t result; + + arg1 = (payload_map_s *)jarg1; + result = (switch_port_t) ((arg1)->remote_sdp_port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_channels_set(void * jarg1, int jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + int arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->channels = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_channels_get(void * jarg1) { + int jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + int result; + + arg1 = (payload_map_s *)jarg1; + result = (int) ((arg1)->channels); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_adv_channels_set(void * jarg1, int jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + int arg2 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->adv_channels = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_payload_map_t_adv_channels_get(void * jarg1) { + int jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + int result; + + arg1 = (payload_map_s *)jarg1; + result = (int) ((arg1)->adv_channels); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_next_set(void * jarg1, void * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + payload_map_s *arg2 = (payload_map_s *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (payload_map_s *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_payload_map_t_next_get(void * jarg1) { + void * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + payload_map_s *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (payload_map_s *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_payload_map_t() { + void * jresult ; + payload_map_s *result = 0 ; + + result = (payload_map_s *)new payload_map_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_payload_map_t(void * jarg1) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + + arg1 = (payload_map_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_waitlist_t_sock_set(void * jarg1, int jarg2) { + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + switch_os_socket_t arg2 ; + + arg1 = (switch_waitlist_s *)jarg1; + arg2 = (switch_os_socket_t)jarg2; + if (arg1) (arg1)->sock = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_waitlist_t_sock_get(void * jarg1) { + int jresult ; + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + switch_os_socket_t result; + + arg1 = (switch_waitlist_s *)jarg1; + result = (switch_os_socket_t) ((arg1)->sock); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_waitlist_t_events_set(void * jarg1, unsigned long jarg2) { + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_waitlist_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->events = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_waitlist_t_events_get(void * jarg1) { + unsigned long jresult ; + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + uint32_t result; + + arg1 = (switch_waitlist_s *)jarg1; + result = (uint32_t) ((arg1)->events); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_waitlist_t_revents_set(void * jarg1, unsigned long jarg2) { + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_waitlist_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->revents = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_waitlist_t_revents_get(void * jarg1) { + unsigned long jresult ; + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + uint32_t result; + + arg1 = (switch_waitlist_s *)jarg1; + result = (uint32_t) ((arg1)->revents); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_waitlist_t() { + void * jresult ; + switch_waitlist_s *result = 0 ; + + result = (switch_waitlist_s *)new switch_waitlist_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_waitlist_t(void * jarg1) { + switch_waitlist_s *arg1 = (switch_waitlist_s *) 0 ; + + arg1 = (switch_waitlist_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_close(void * jarg1) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + result = (int)switch_core_db_close(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_open(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_core_db_t **arg2 = (switch_core_db_t **) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (switch_core_db_t **)jarg2; + result = (int)switch_core_db_open((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_db_column_text(void * jarg1, int jarg2) { + void * jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int arg2 ; + unsigned char *result = 0 ; + + arg1 = (switch_core_db_stmt_t *)jarg1; + arg2 = (int)jarg2; + result = (unsigned char *)switch_core_db_column_text(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_db_column_name(void * jarg1, int jarg2) { + char * jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int arg2 ; + char *result = 0 ; + + arg1 = (switch_core_db_stmt_t *)jarg1; + arg2 = (int)jarg2; + result = (char *)switch_core_db_column_name(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_column_count(void * jarg1) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + result = (int)switch_core_db_column_count(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_db_errmsg(void * jarg1) { + char * jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_db_t *)jarg1; + result = (char *)switch_core_db_errmsg(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_exec(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + char **arg5 = (char **) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_callback_func_t)jarg3; + arg4 = (void *)jarg4; + arg5 = (char **)jarg5; + result = (int)switch_core_db_exec(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_finalize(void * jarg1) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + result = (int)switch_core_db_finalize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_prepare(void * jarg1, char * jarg2, int jarg3, void * jarg4, void * jarg5) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + switch_core_db_stmt_t **arg4 = (switch_core_db_stmt_t **) 0 ; + char **arg5 = (char **) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (switch_core_db_stmt_t **)jarg4; + arg5 = (char **)jarg5; + result = (int)switch_core_db_prepare(arg1,(char const *)arg2,arg3,arg4,(char const **)arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_step(void * jarg1) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + result = (int)switch_core_db_step(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_reset(void * jarg1) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + result = (int)switch_core_db_reset(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_int(void * jarg1, int jarg2, int jarg3) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int arg2 ; + int arg3 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + result = (int)switch_core_db_bind_int(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_int64(void * jarg1, int jarg2, long long jarg3) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int arg2 ; + int64_t arg3 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (int64_t)jarg3; + result = (int)switch_core_db_bind_int64(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_text(void * jarg1, int jarg2, char * jarg3, int jarg4, void * jarg5) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_core_db_destructor_type_t arg5 = (switch_core_db_destructor_type_t) 0 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (switch_core_db_destructor_type_t)jarg5; + result = (int)switch_core_db_bind_text(arg1,arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_bind_double(void * jarg1, int jarg2, double jarg3) { + int jresult ; + switch_core_db_stmt_t *arg1 = (switch_core_db_stmt_t *) 0 ; + int arg2 ; + double arg3 ; + int result; + + arg1 = (switch_core_db_stmt_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (double)jarg3; + result = (int)switch_core_db_bind_double(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_core_db_last_insert_rowid(void * jarg1) { + long long jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + int64_t result; + + arg1 = (switch_core_db_t *)jarg1; + result = (int64_t)switch_core_db_last_insert_rowid(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_get_table(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + char ***arg3 = (char ***) 0 ; + int *arg4 = (int *) 0 ; + int *arg5 = (int *) 0 ; + char **arg6 = (char **) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char ***)jarg3; + arg4 = (int *)jarg4; + arg5 = (int *)jarg5; + arg6 = (char **)jarg6; + result = (int)switch_core_db_get_table(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_db_free_table(void * jarg1) { + char **arg1 = (char **) 0 ; + + arg1 = (char **)jarg1; + switch_core_db_free_table(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_db_free(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + switch_core_db_free(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_changes(void * jarg1) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + result = (int)switch_core_db_changes(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_load_extension(void * jarg1, char * jarg2) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_core_db_load_extension(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_OK_get() { + int jresult ; + int result; + + result = (int)(0); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_ERROR_get() { + int jresult ; + int result; + + result = (int)(1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_INTERNAL_get() { + int jresult ; + int result; + + result = (int)(2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_PERM_get() { + int jresult ; + int result; + + result = (int)(3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_ABORT_get() { + int jresult ; + int result; + + result = (int)(4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_BUSY_get() { + int jresult ; + int result; + + result = (int)(5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_LOCKED_get() { + int jresult ; + int result; + + result = (int)(6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOMEM_get() { + int jresult ; + int result; + + result = (int)(7); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_READONLY_get() { + int jresult ; + int result; + + result = (int)(8); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_INTERRUPT_get() { + int jresult ; + int result; + + result = (int)(9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_IOERR_get() { + int jresult ; + int result; + + result = (int)(10); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_CORRUPT_get() { + int jresult ; + int result; + + result = (int)(11); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOTFOUND_get() { + int jresult ; + int result; + + result = (int)(12); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_FULL_get() { + int jresult ; + int result; + + result = (int)(13); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_CANTOPEN_get() { + int jresult ; + int result; + + result = (int)(14); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_PROTOCOL_get() { + int jresult ; + int result; + + result = (int)(15); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_EMPTY_get() { + int jresult ; + int result; + + result = (int)(16); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_SCHEMA_get() { + int jresult ; + int result; + + result = (int)(17); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_TOOBIG_get() { + int jresult ; + int result; + + result = (int)(18); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_CONSTRAINT_get() { + int jresult ; + int result; + + result = (int)(19); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_MISMATCH_get() { + int jresult ; + int result; + + result = (int)(20); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_MISUSE_get() { + int jresult ; + int result; + + result = (int)(21); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOLFS_get() { + int jresult ; + int result; + + result = (int)(22); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_AUTH_get() { + int jresult ; + int result; + + result = (int)(23); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_FORMAT_get() { + int jresult ; + int result; + + result = (int)(24); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_RANGE_get() { + int jresult ; + int result; + + result = (int)(25); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_NOTADB_get() { + int jresult ; + int result; + + result = (int)(26); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_ROW_get() { + int jresult ; + int result; + + result = (int)(100); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_DONE_get() { + int jresult ; + int result; + + result = (int)(101); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_sql_concat() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_sql_concat(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_regex_compile(char * jarg1, int jarg2, void * jarg3, void * jarg4, void * jarg5) { + void * jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + char **arg3 = (char **) 0 ; + int *arg4 = (int *) 0 ; + unsigned char *arg5 = (unsigned char *) 0 ; + switch_regex_t *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + arg3 = (char **)jarg3; + arg4 = (int *)jarg4; + arg5 = (unsigned char *)jarg5; + result = (switch_regex_t *)switch_regex_compile((char const *)arg1,arg2,(char const **)arg3,arg4,(unsigned char const *)arg5); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_copy_substring(char * jarg1, void * jarg2, int jarg3, int jarg4, char * jarg5, int jarg6) { + int jresult ; + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int arg3 ; + int arg4 ; + char *arg5 = (char *) 0 ; + int arg6 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (char *)jarg5; + arg6 = (int)jarg6; + result = (int)switch_regex_copy_substring((char const *)arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_regex_free(void * jarg1) { + void *arg1 = (void *) 0 ; + + arg1 = (void *)jarg1; + switch_regex_free(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_perform(char * jarg1, char * jarg2, void * jarg3, void * jarg4, unsigned long jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_regex_t **arg3 = (switch_regex_t **) 0 ; + int *arg4 = (int *) 0 ; + uint32_t arg5 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_regex_t **)jarg3; + arg4 = (int *)jarg4; + arg5 = (uint32_t)jarg5; + result = (int)switch_regex_perform((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_perform_substitution(void * jarg1, int jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6, void * jarg7) { + switch_regex_t *arg1 = (switch_regex_t *) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + switch_size_t arg6 ; + int *arg7 = (int *) 0 ; + switch_size_t *argp6 ; + + arg1 = (switch_regex_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + argp6 = (switch_size_t *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg6 = *argp6; + arg7 = (int *)jarg7; + switch_perform_substitution(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_match(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_regex_match((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_regex_match_partial(char * jarg1, char * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int *arg3 = (int *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int *)jarg3; + result = (switch_status_t)switch_regex_match_partial((char const *)arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_capture_regex(void * jarg1, int jarg2, char * jarg3, void * jarg4, char * jarg5, void * jarg6, void * jarg7) { + switch_regex_t *arg1 = (switch_regex_t *) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + int *arg4 = (int *) 0 ; + char *arg5 = (char *) 0 ; + switch_cap_callback_t arg6 = (switch_cap_callback_t) 0 ; + void *arg7 = (void *) 0 ; + + arg1 = (switch_regex_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (char *)jarg3; + arg4 = (int *)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_cap_callback_t)jarg6; + arg7 = (void *)jarg7; + switch_capture_regex(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6,arg7); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_regex_set_var_callback(char * jarg1, char * jarg2, void * jarg3) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + switch_regex_set_var_callback((char const *)arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_regex_set_event_header_callback(char * jarg1, char * jarg2, void * jarg3) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + switch_regex_set_event_header_callback((char const *)arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get() { + int jresult ; + int result; + + result = (int)(128); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STREAMS_get() { + int jresult ; + int result; + + result = (int)(128); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_mms_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->mms = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_mms_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->mms); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_ms_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ms = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_ms_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->ms); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_sec_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->sec = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_sec_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->sec); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_min_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->min = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_min_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->min); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_hr_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->hr = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_hr_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->hr); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_day_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->day = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_day_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->day); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_time_duration_yr_set(void * jarg1, unsigned long jarg2) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_time_duration *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->yr = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_time_duration_yr_get(void * jarg1) { + unsigned long jresult ; + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + uint32_t result; + + arg1 = (switch_core_time_duration *)jarg1; + result = (uint32_t) ((arg1)->yr); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_core_time_duration() { + void * jresult ; + switch_core_time_duration *result = 0 ; + + result = (switch_core_time_duration *)new switch_core_time_duration(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_time_duration(void * jarg1) { + switch_core_time_duration *arg1 = (switch_core_time_duration *) 0 ; + + arg1 = (switch_core_time_duration *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_app_set(void * jarg1, char * jarg2) { + switch_app_log *arg1 = (switch_app_log *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_app_log *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->app; + if (arg2) { + arg1->app = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->app, (const char *)arg2); + } else { + arg1->app = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_app_get(void * jarg1) { + char * jresult ; + switch_app_log *arg1 = (switch_app_log *) 0 ; + char *result = 0 ; + + arg1 = (switch_app_log *)jarg1; + result = (char *) ((arg1)->app); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_arg_set(void * jarg1, char * jarg2) { + switch_app_log *arg1 = (switch_app_log *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_app_log *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->arg; + if (arg2) { + arg1->arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->arg, (const char *)arg2); + } else { + arg1->arg = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_arg_get(void * jarg1) { + char * jresult ; + switch_app_log *arg1 = (switch_app_log *) 0 ; + char *result = 0 ; + + arg1 = (switch_app_log *)jarg1; + result = (char *) ((arg1)->arg); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_stamp_set(void * jarg1, void * jarg2) { + switch_app_log *arg1 = (switch_app_log *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_app_log *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->stamp = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_app_log_stamp_get(void * jarg1) { + void * jresult ; + switch_app_log *arg1 = (switch_app_log *) 0 ; + switch_time_t result; + + arg1 = (switch_app_log *)jarg1; + result = ((arg1)->stamp); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_next_set(void * jarg1, void * jarg2) { + switch_app_log *arg1 = (switch_app_log *) 0 ; + switch_app_log *arg2 = (switch_app_log *) 0 ; + + arg1 = (switch_app_log *)jarg1; + arg2 = (switch_app_log *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_app_log_next_get(void * jarg1) { + void * jresult ; + switch_app_log *arg1 = (switch_app_log *) 0 ; + switch_app_log *result = 0 ; + + arg1 = (switch_app_log *)jarg1; + result = (switch_app_log *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_app_log() { + void * jresult ; + switch_app_log *result = 0 ; + + result = (switch_app_log *)new switch_app_log(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_app_log(void * jarg1) { + switch_app_log *arg1 = (switch_app_log *) 0 ; + + arg1 = (switch_app_log *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_func_set(void * jarg1, void * jarg2) { + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + switch_thread_start_t arg2 ; + switch_thread_start_t *argp2 ; + + arg1 = (switch_thread_data_s *)jarg1; + argp2 = (switch_thread_start_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_thread_start_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->func = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_func_get(void * jarg1) { + void * jresult ; + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + switch_thread_start_t result; + + arg1 = (switch_thread_data_s *)jarg1; + result = ((arg1)->func); + jresult = new switch_thread_start_t((const switch_thread_start_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_obj_set(void * jarg1, void * jarg2) { + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_thread_data_s *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->obj = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_obj_get(void * jarg1) { + void * jresult ; + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + void *result = 0 ; + + arg1 = (switch_thread_data_s *)jarg1; + result = (void *) ((arg1)->obj); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_alloc_set(void * jarg1, int jarg2) { + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + int arg2 ; + + arg1 = (switch_thread_data_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->alloc = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_thread_data_t_alloc_get(void * jarg1) { + int jresult ; + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + int result; + + arg1 = (switch_thread_data_s *)jarg1; + result = (int) ((arg1)->alloc); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_pool_set(void * jarg1, void * jarg2) { + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_thread_data_s *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_pool_get(void * jarg1) { + void * jresult ; + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_thread_data_s *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_thread_data_t() { + void * jresult ; + switch_thread_data_s *result = 0 ; + + result = (switch_thread_data_s *)new switch_thread_data_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_thread_data_t(void * jarg1) { + switch_thread_data_s *arg1 = (switch_thread_data_s *) 0 ; + + arg1 = (switch_thread_data_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_on_set(void * jarg1, void * jarg2) { + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_hold_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->on = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_hold_record_t_on_get(void * jarg1) { + void * jresult ; + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_hold_record_s *)jarg1; + result = ((arg1)->on); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_off_set(void * jarg1, void * jarg2) { + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_hold_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->off = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_hold_record_t_off_get(void * jarg1) { + void * jresult ; + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_hold_record_s *)jarg1; + result = ((arg1)->off); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_uuid_set(void * jarg1, char * jarg2) { + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_hold_record_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->uuid; + if (arg2) { + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); + } else { + arg1->uuid = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_hold_record_t_uuid_get(void * jarg1) { + char * jresult ; + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_hold_record_s *)jarg1; + result = (char *) ((arg1)->uuid); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_hold_record_t_next_set(void * jarg1, void * jarg2) { + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + switch_hold_record_s *arg2 = (switch_hold_record_s *) 0 ; + + arg1 = (switch_hold_record_s *)jarg1; + arg2 = (switch_hold_record_s *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_hold_record_t_next_get(void * jarg1) { + void * jresult ; + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + switch_hold_record_s *result = 0 ; + + arg1 = (switch_hold_record_s *)jarg1; + result = (switch_hold_record_s *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_hold_record_t() { + void * jresult ; + switch_hold_record_s *result = 0 ; + + result = (switch_hold_record_s *)new switch_hold_record_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_hold_record_t(void * jarg1) { + switch_hold_record_s *arg1 = (switch_hold_record_s *) 0 ; + + arg1 = (switch_hold_record_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_uuid_set(void * jarg1, char * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->uuid; + if (arg2) { + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); + } else { + arg1->uuid = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_device_node_t_uuid_get(void * jarg1) { + char * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + char *result = 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + result = (char *) ((arg1)->uuid); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_xml_cdr_set(void * jarg1, void * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_xml_t)jarg2; + if (arg1) (arg1)->xml_cdr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_xml_cdr_get(void * jarg1) { + void * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_xml_t result; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_xml_t) ((arg1)->xml_cdr); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t__event_set(void * jarg1, void * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_event_t *)jarg2; + if (arg1) (arg1)->event = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t__event_get(void * jarg1) { + void * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_event_t *result = 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_event_t *) ((arg1)->event); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_callstate_set(void * jarg1, int jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_channel_callstate_t arg2 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_channel_callstate_t)jarg2; + if (arg1) (arg1)->callstate = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_node_t_callstate_get(void * jarg1) { + int jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_channel_callstate_t result; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_channel_callstate_t) ((arg1)->callstate); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_hold_record_set(void * jarg1, void * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_hold_record_t *arg2 = (switch_hold_record_t *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_hold_record_t *)jarg2; + if (arg1) (arg1)->hold_record = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_hold_record_get(void * jarg1) { + void * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_hold_record_t *result = 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_hold_record_t *) ((arg1)->hold_record); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_hup_profile_set(void * jarg1, void * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + if (arg1) (arg1)->hup_profile = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_hup_profile_get(void * jarg1) { + void * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_caller_profile_t *) ((arg1)->hup_profile); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_direction_set(void * jarg1, int jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_call_direction_t arg2 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + if (arg1) (arg1)->direction = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_node_t_direction_get(void * jarg1) { + int jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_call_direction_t result; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_call_direction_t) ((arg1)->direction); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_parent_set(void * jarg1, void * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_device_record_s *arg2 = (switch_device_record_s *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (switch_device_record_s *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_parent_get(void * jarg1) { + void * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + switch_device_record_s *result = 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + result = (switch_device_record_s *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_node_t_next_set(void * jarg1, void * jarg2) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + device_uuid_node_s *arg2 = (device_uuid_node_s *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + arg2 = (device_uuid_node_s *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_node_t_next_get(void * jarg1) { + void * jresult ; + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + device_uuid_node_s *result = 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + result = (device_uuid_node_s *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_device_node_t() { + void * jresult ; + device_uuid_node_s *result = 0 ; + + result = (device_uuid_node_s *)new device_uuid_node_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_device_node_t(void * jarg1) { + device_uuid_node_s *arg1 = (device_uuid_node_s *) 0 ; + + arg1 = (device_uuid_node_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_total_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->total = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_total_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->total); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_total_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->total_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_total_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->total_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_total_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->total_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_total_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->total_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_offhook_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->offhook = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_offhook_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->offhook); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_offhook_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->offhook_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_offhook_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->offhook_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_offhook_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->offhook_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_offhook_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->offhook_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_active_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->active = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_active_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->active); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_active_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->active_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_active_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->active_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_active_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->active_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_active_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->active_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_held_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->held = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_held_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->held); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_held_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->held_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_held_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->held_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_held_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->held_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_held_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->held_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_unheld_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->unheld = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_unheld_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->unheld); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_unheld_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->unheld_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_unheld_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->unheld_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_unheld_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->unheld_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_unheld_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->unheld_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_hup_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->hup = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_hup_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->hup); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_hup_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->hup_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_hup_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->hup_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_hup_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->hup_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_hup_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->hup_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ringing_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ringing = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ringing_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->ringing); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ringing_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ringing_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ringing_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->ringing_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ringing_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ringing_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ringing_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->ringing_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_early_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->early = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_early_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->early); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_early_in_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->early_in = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_early_in_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->early_in); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_early_out_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->early_out = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_early_out_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->early_out); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_stats_t_ring_wait_set(void * jarg1, unsigned long jarg2) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_device_stats_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ring_wait = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_device_stats_t_ring_wait_get(void * jarg1) { + unsigned long jresult ; + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + uint32_t result; + + arg1 = (switch_device_stats_s *)jarg1; + result = (uint32_t) ((arg1)->ring_wait); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_device_stats_t() { + void * jresult ; + switch_device_stats_s *result = 0 ; + + result = (switch_device_stats_s *)new switch_device_stats_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_device_stats_t(void * jarg1) { + switch_device_stats_s *arg1 = (switch_device_stats_s *) 0 ; + + arg1 = (switch_device_stats_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_device_id_set(void * jarg1, char * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->device_id; + if (arg2) { + arg1->device_id = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->device_id, (const char *)arg2); + } else { + arg1->device_id = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_device_record_t_device_id_get(void * jarg1) { + char * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (char *) ((arg1)->device_id); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_uuid_set(void * jarg1, char * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->uuid; + if (arg2) { + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); + } else { + arg1->uuid = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_device_record_t_uuid_get(void * jarg1) { + char * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (char *) ((arg1)->uuid); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_refs_set(void * jarg1, int jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + int arg2 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_record_t_refs_get(void * jarg1) { + int jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + int result; + + arg1 = (switch_device_record_s *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_stats_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_stats_t *arg2 = (switch_device_stats_t *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (switch_device_stats_t *)jarg2; + if (arg1) (arg1)->stats = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_stats_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_stats_t *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (switch_device_stats_t *)& ((arg1)->stats); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_last_stats_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_stats_t *arg2 = (switch_device_stats_t *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (switch_device_stats_t *)jarg2; + if (arg1) (arg1)->last_stats = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_last_stats_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_stats_t *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (switch_device_stats_t *)& ((arg1)->last_stats); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_state_set(void * jarg1, int jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_state_t arg2 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (switch_device_state_t)jarg2; + if (arg1) (arg1)->state = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_record_t_state_get(void * jarg1) { + int jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_state_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = (switch_device_state_t) ((arg1)->state); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_last_state_set(void * jarg1, int jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_state_t arg2 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (switch_device_state_t)jarg2; + if (arg1) (arg1)->last_state = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_device_record_t_last_state_get(void * jarg1) { + int jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_device_state_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = (switch_device_state_t) ((arg1)->last_state); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_active_start_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->active_start = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_active_start_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->active_start); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_active_stop_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->active_stop = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_active_stop_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->active_stop); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_last_call_time_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->last_call_time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_last_call_time_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->last_call_time); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_ring_start_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->ring_start = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_ring_start_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->ring_start); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_ring_stop_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->ring_stop = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_ring_stop_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->ring_stop); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_hold_start_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->hold_start = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_hold_start_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->hold_start); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_hold_stop_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->hold_stop = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_hold_stop_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->hold_stop); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_call_start_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_device_record_s *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->call_start = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_call_start_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_time_t result; + + arg1 = (switch_device_record_s *)jarg1; + result = ((arg1)->call_start); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_uuid_list_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + device_uuid_node_s *arg2 = (device_uuid_node_s *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (device_uuid_node_s *)jarg2; + if (arg1) (arg1)->uuid_list = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_uuid_list_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + device_uuid_node_s *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (device_uuid_node_s *) ((arg1)->uuid_list); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_uuid_tail_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + device_uuid_node_s *arg2 = (device_uuid_node_s *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (device_uuid_node_s *)jarg2; + if (arg1) (arg1)->uuid_tail = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_uuid_tail_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + device_uuid_node_s *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (device_uuid_node_s *) ((arg1)->uuid_tail); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_mutex_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->mutex = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_mutex_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (switch_mutex_t *) ((arg1)->mutex); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_pool_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_pool_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_device_record_t_user_data_set(void * jarg1, void * jarg2) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_device_record_t_user_data_get(void * jarg1) { + void * jresult ; + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + void *result = 0 ; + + arg1 = (switch_device_record_s *)jarg1; + result = (void *) ((arg1)->user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_device_record_t() { + void * jresult ; + switch_device_record_s *result = 0 ; + + result = (switch_device_record_s *)new switch_device_record_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_device_record_t(void * jarg1) { + switch_device_record_s *arg1 = (switch_device_record_s *) 0 ; + + arg1 = (switch_device_record_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_DTLS_SRTP_FNAME_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("dtls-srtp"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MAX_FPLEN_get() { + int jresult ; + int result; + + result = (int)(64); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MAX_FPSTRLEN_get() { + int jresult ; + int result; + + result = (int)(192); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_len_set(void * jarg1, unsigned long jarg2) { + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + uint32_t arg2 ; + + arg1 = (dtls_fp_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->len = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_dtls_fingerprint_t_len_get(void * jarg1) { + unsigned long jresult ; + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + uint32_t result; + + arg1 = (dtls_fp_s *)jarg1; + result = (uint32_t) ((arg1)->len); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_data_set(void * jarg1, void * jarg2) { + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + uint8_t *arg2 ; + + arg1 = (dtls_fp_s *)jarg1; + arg2 = (uint8_t *)jarg2; + { + size_t ii; + uint8_t *b = (uint8_t *) arg1->data; + for (ii = 0; ii < (size_t)64+1; ii++) b[ii] = *((uint8_t *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_dtls_fingerprint_t_data_get(void * jarg1) { + void * jresult ; + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + uint8_t *result = 0 ; + + arg1 = (dtls_fp_s *)jarg1; + result = (uint8_t *)(uint8_t *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_type_set(void * jarg1, char * jarg2) { + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (dtls_fp_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->type; + if (arg2) { + arg1->type = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->type, (const char *)arg2); + } else { + arg1->type = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_dtls_fingerprint_t_type_get(void * jarg1) { + char * jresult ; + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + char *result = 0 ; + + arg1 = (dtls_fp_s *)jarg1; + result = (char *) ((arg1)->type); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_dtls_fingerprint_t_str_set(void * jarg1, char * jarg2) { + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + char *arg2 ; + + arg1 = (dtls_fp_s *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->str, (const char *)arg2, 192-1); + arg1->str[192-1] = 0; + } else { + arg1->str[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_dtls_fingerprint_t_str_get(void * jarg1) { + char * jresult ; + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + char *result = 0 ; + + arg1 = (dtls_fp_s *)jarg1; + result = (char *)(char *) ((arg1)->str); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_dtls_fingerprint_t() { + void * jresult ; + dtls_fp_s *result = 0 ; + + result = (dtls_fp_s *)new dtls_fp_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_dtls_fingerprint_t(void * jarg1) { + dtls_fp_s *arg1 = (dtls_fp_s *) 0 ; + + arg1 = (dtls_fp_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MESSAGE_STRING_ARG_MAX_get() { + int jresult ; + int result; + + result = (int)(10); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_from_set(void * jarg1, char * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->from; + if (arg2) { + arg1->from = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->from, (const char *)arg2); + } else { + arg1->from = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message_from_get(void * jarg1) { + char * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (char *) ((arg1)->from); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_message_id_set(void * jarg1, int jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_core_session_message_types_t arg2 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (switch_core_session_message_types_t)jarg2; + if (arg1) (arg1)->message_id = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_message_id_get(void * jarg1) { + int jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_core_session_message_types_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = (switch_core_session_message_types_t) ((arg1)->message_id); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_numeric_arg_set(void * jarg1, int jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + int arg2 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->numeric_arg = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_numeric_arg_get(void * jarg1) { + int jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + int result; + + arg1 = (switch_core_session_message *)jarg1; + result = (int) ((arg1)->numeric_arg); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_arg_set(void * jarg1, char * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->string_arg = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->string_arg, (const char *)arg2); + } else { + arg1->string_arg = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message_string_arg_get(void * jarg1) { + char * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (char *) ((arg1)->string_arg); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_arg_size_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_core_session_message *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->string_arg_size = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_string_arg_size_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = ((arg1)->string_arg_size); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->pointer_arg = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + void *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (void *) ((arg1)->pointer_arg); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_size_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_core_session_message *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->pointer_arg_size = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_arg_size_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = ((arg1)->pointer_arg_size); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_numeric_reply_set(void * jarg1, int jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + int arg2 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->numeric_reply = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_numeric_reply_get(void * jarg1) { + int jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + int result; + + arg1 = (switch_core_session_message *)jarg1; + result = (int) ((arg1)->numeric_reply); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_reply_set(void * jarg1, char * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->string_reply; + if (arg2) { + arg1->string_reply = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->string_reply, (const char *)arg2); + } else { + arg1->string_reply = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message_string_reply_get(void * jarg1) { + char * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (char *) ((arg1)->string_reply); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_reply_size_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_core_session_message *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->string_reply_size = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_string_reply_size_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = ((arg1)->string_reply_size); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->pointer_reply = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + void *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (void *) ((arg1)->pointer_reply); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_size_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_core_session_message *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->pointer_reply_size = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_pointer_reply_size_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_size_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = ((arg1)->pointer_reply_size); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_flags_set(void * jarg1, unsigned long jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_core_session_message_flag_t arg2 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (switch_core_session_message_flag_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_message_flags_get(void * jarg1) { + unsigned long jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + switch_core_session_message_flag_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = (switch_core_session_message_flag_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message__file_set(void * jarg1, char * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->_file = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->_file, (const char *)arg2); + } else { + arg1->_file = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message__file_get(void * jarg1) { + char * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (char *) ((arg1)->_file); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message__func_set(void * jarg1, char * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->_func = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->_func, (const char *)arg2); + } else { + arg1->_func = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_message__func_get(void * jarg1) { + char * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (char *) ((arg1)->_func); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message__line_set(void * jarg1, int jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + int arg2 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->_line = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message__line_get(void * jarg1) { + int jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + int result; + + arg1 = (switch_core_session_message *)jarg1; + result = (int) ((arg1)->_line); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_string_array_arg_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char **arg2 ; + + arg1 = (switch_core_session_message *)jarg1; + arg2 = (char **)jarg2; + { + size_t ii; + char const * *b = (char const * *) arg1->string_array_arg; + for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((char const * *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_string_array_arg_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + char **result = 0 ; + + arg1 = (switch_core_session_message *)jarg1; + result = (char **)(char **) ((arg1)->string_array_arg); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_message_delivery_time_set(void * jarg1, void * jarg2) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + time_t arg2 ; + time_t *argp2 ; + + arg1 = (switch_core_session_message *)jarg1; + argp2 = (time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->delivery_time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_message_delivery_time_get(void * jarg1) { + void * jresult ; + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + time_t result; + + arg1 = (switch_core_session_message *)jarg1; + result = ((arg1)->delivery_time); + jresult = new time_t((const time_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_core_session_message() { + void * jresult ; + switch_core_session_message *result = 0 ; + + result = (switch_core_session_message *)new switch_core_session_message(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_session_message(void * jarg1) { + switch_core_session_message *arg1 = (switch_core_session_message *) 0 ; + + arg1 = (switch_core_session_message *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_running_set(void * jarg1, int jarg2) { + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + int arg2 ; + + arg1 = (switch_core_thread_session *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->running = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_thread_session_running_get(void * jarg1) { + int jresult ; + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + int result; + + arg1 = (switch_core_thread_session *)jarg1; + result = (int) ((arg1)->running); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_mutex_set(void * jarg1, void * jarg2) { + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->mutex = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_mutex_get(void * jarg1) { + void * jresult ; + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + result = (switch_mutex_t *) ((arg1)->mutex); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_objs_set(void * jarg1, void * jarg2) { + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + void **arg2 ; + + arg1 = (switch_core_thread_session *)jarg1; + arg2 = (void **)jarg2; + { + size_t ii; + void * *b = (void * *) arg1->objs; + for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((void * *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_objs_get(void * jarg1) { + void * jresult ; + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + void **result = 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + result = (void **)(void **) ((arg1)->objs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_input_callback_set(void * jarg1, void * jarg2) { + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + switch_input_callback_function_t arg2 = (switch_input_callback_function_t) 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + arg2 = (switch_input_callback_function_t)jarg2; + if (arg1) (arg1)->input_callback = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_input_callback_get(void * jarg1) { + void * jresult ; + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + switch_input_callback_function_t result; + + arg1 = (switch_core_thread_session *)jarg1; + result = (switch_input_callback_function_t) ((arg1)->input_callback); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_pool_set(void * jarg1, void * jarg2) { + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_thread_session_pool_get(void * jarg1) { + void * jresult ; + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_core_thread_session() { + void * jresult ; + switch_core_thread_session *result = 0 ; + + result = (switch_core_thread_session *)new switch_core_thread_session(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_thread_session(void * jarg1) { + switch_core_thread_session *arg1 = (switch_core_thread_session *) 0 ; + + arg1 = (switch_core_thread_session *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_screen_size(void * jarg1, void * jarg2) { + int *arg1 = (int *) 0 ; + int *arg2 = (int *) 0 ; + + arg1 = (int *)jarg1; + arg2 = (int *)jarg2; + switch_core_screen_size(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_sched_heartbeat(void * jarg1, unsigned long jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_core_session_sched_heartbeat(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unsched_heartbeat(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_unsched_heartbeat(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_enable_heartbeat(void * jarg1, unsigned long jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_core_session_enable_heartbeat(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_disable_heartbeat(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_disable_heartbeat(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_pop(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_media_bug_t **arg3 = (switch_media_bug_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_media_bug_t **)jarg3; + result = (switch_status_t)switch_core_media_bug_pop(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_exec_all(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_media_bug_exec_cb_t arg3 = (switch_media_bug_exec_cb_t) 0 ; + void *arg4 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_media_bug_exec_cb_t)jarg3; + arg4 = (void *)jarg4; + result = (switch_status_t)switch_core_media_bug_exec_all(arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_count(void * jarg1, char * jarg2) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (uint32_t)switch_core_media_bug_count(arg1,(char const *)arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_add(void * jarg1, char * jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6, unsigned long jarg7, void * jarg8) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_media_bug_callback_t arg4 = (switch_media_bug_callback_t) 0 ; + void *arg5 = (void *) 0 ; + time_t arg6 ; + switch_media_bug_flag_t arg7 ; + switch_media_bug_t **arg8 = (switch_media_bug_t **) 0 ; + time_t *argp6 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_media_bug_callback_t)jarg4; + arg5 = (void *)jarg5; + argp6 = (time_t *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return 0; + } + arg6 = *argp6; + arg7 = (switch_media_bug_flag_t)jarg7; + arg8 = (switch_media_bug_t **)jarg8; + result = (switch_status_t)switch_core_media_bug_add(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_pause(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_media_bug_pause(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_resume(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_media_bug_resume(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_inuse(void * jarg1, void * jarg2, void * jarg3) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_size_t *arg2 = (switch_size_t *) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_size_t *)jarg2; + arg3 = (switch_size_t *)jarg3; + switch_core_media_bug_inuse(arg1,arg2,arg3); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_user_data(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (void *)switch_core_media_bug_get_user_data(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_write_replace_frame(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (switch_frame_t *)switch_core_media_bug_get_write_replace_frame(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_native_read_frame(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (switch_frame_t *)switch_core_media_bug_get_native_read_frame(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_native_write_frame(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (switch_frame_t *)switch_core_media_bug_get_native_write_frame(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_write_replace_frame(void * jarg1, void * jarg2) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + switch_core_media_bug_set_write_replace_frame(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_read_replace_frame(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (switch_frame_t *)switch_core_media_bug_get_read_replace_frame(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_read_demux_frame(void * jarg1, void * jarg2) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + switch_core_media_bug_set_read_demux_frame(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_session(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (switch_core_session_t *)switch_core_media_bug_get_session(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_test_flag(void * jarg1, unsigned long jarg2) { + unsigned long jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + uint32_t arg2 ; + uint32_t result; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (uint32_t)switch_core_media_bug_test_flag(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_set_flag(void * jarg1, unsigned long jarg2) { + unsigned long jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + uint32_t arg2 ; + uint32_t result; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (uint32_t)switch_core_media_bug_set_flag(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_clear_flag(void * jarg1, unsigned long jarg2) { + unsigned long jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + uint32_t arg2 ; + uint32_t result; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (uint32_t)switch_core_media_bug_clear_flag(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_read_replace_frame(void * jarg1, void * jarg2) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + switch_core_media_bug_set_read_replace_frame(arg1,arg2); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_cpu_count() { + unsigned long jresult ; + uint32_t result; + + result = (uint32_t)switch_core_cpu_count(); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_media_bug_t **arg2 = (switch_media_bug_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_media_bug_t **)jarg2; + result = (switch_status_t)switch_core_media_bug_remove(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_prune(void * jarg1) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (uint32_t)switch_core_media_bug_prune(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove_callback(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_media_bug_callback_t arg2 = (switch_media_bug_callback_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_media_bug_callback_t)jarg2; + result = (switch_status_t)switch_core_media_bug_remove_callback(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_close(void * jarg1) { + int jresult ; + switch_media_bug_t **arg1 = (switch_media_bug_t **) 0 ; + switch_status_t result; + + arg1 = (switch_media_bug_t **)jarg1; + result = (switch_status_t)switch_core_media_bug_close(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove_all_function(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_media_bug_remove_all_function(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_enumerate(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_stream_handle_t *arg2 = (switch_stream_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_stream_handle_t *)jarg2; + result = (switch_status_t)switch_core_media_bug_enumerate(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_transfer_recordings(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + result = (switch_status_t)switch_core_media_bug_transfer_recordings(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_transfer_callback(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_media_bug_callback_t arg3 = (switch_media_bug_callback_t) 0 ; + void *(*arg4)(switch_core_session_t *,void *) = (void *(*)(switch_core_session_t *,void *)) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (switch_media_bug_callback_t)jarg3; + arg4 = (void *(*)(switch_core_session_t *,void *))jarg4; + result = (switch_status_t)switch_core_media_bug_transfer_callback(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_read(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_core_media_bug_read(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_flush(void * jarg1) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + switch_core_media_bug_flush(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_flush_all(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_media_bug_flush_all(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_set_pre_buffer_framecount(void * jarg1, unsigned long jarg2) { + int jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + uint32_t arg2 ; + switch_status_t result; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (switch_status_t)switch_core_media_bug_set_pre_buffer_framecount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_new(char * jarg1, unsigned short jarg2, unsigned short jarg3, unsigned long jarg4, void * jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_port_t arg2 ; + switch_port_t arg3 ; + switch_port_flag_t arg4 ; + switch_core_port_allocator_t **arg5 = (switch_core_port_allocator_t **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_port_t)jarg2; + arg3 = (switch_port_t)jarg3; + arg4 = (switch_port_flag_t)jarg4; + arg5 = (switch_core_port_allocator_t **)jarg5; + result = (switch_status_t)switch_core_port_allocator_new((char const *)arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_request_port(void * jarg1, void * jarg2) { + int jresult ; + switch_core_port_allocator_t *arg1 = (switch_core_port_allocator_t *) 0 ; + switch_port_t *arg2 = (switch_port_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_port_allocator_t *)jarg1; + arg2 = (switch_port_t *)jarg2; + result = (switch_status_t)switch_core_port_allocator_request_port(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_free_port(void * jarg1, unsigned short jarg2) { + int jresult ; + switch_core_port_allocator_t *arg1 = (switch_core_port_allocator_t *) 0 ; + switch_port_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_port_allocator_t *)jarg1; + arg2 = (switch_port_t)jarg2; + result = (switch_status_t)switch_core_port_allocator_free_port(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_port_allocator_destroy(void * jarg1) { + switch_core_port_allocator_t **arg1 = (switch_core_port_allocator_t **) 0 ; + + arg1 = (switch_core_port_allocator_t **)jarg1; + switch_core_port_allocator_destroy(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_test_flag(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_core_test_flag(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_init(unsigned long jarg1, int jarg2, void * jarg3) { + int jresult ; + switch_core_flag_t arg1 ; + switch_bool_t arg2 ; + char **arg3 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_core_flag_t)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (char **)jarg3; + result = (switch_status_t)switch_core_init(arg1,arg2,(char const **)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_init_and_modload(unsigned long jarg1, int jarg2, void * jarg3) { + int jresult ; + switch_core_flag_t arg1 ; + switch_bool_t arg2 ; + char **arg3 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_core_flag_t)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (char **)jarg3; + result = (switch_status_t)switch_core_init_and_modload(arg1,arg2,(char const **)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_limit(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_core_session_limit(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_sessions_per_second(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_core_sessions_per_second(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_destroy() { + int jresult ; + switch_status_t result; + + result = (switch_status_t)switch_core_destroy(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_read_lock(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_io_read_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_write_lock(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_io_write_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_rwunlock(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_io_rwunlock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_lock(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_read_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_lock_hangup(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_read_lock_hangup(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_write_lock(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_write_lock(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_rwunlock(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_rwunlock(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_state_handler(void * jarg1) { + int jresult ; + switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ; + int result; + + arg1 = (switch_state_handler_table_t *)jarg1; + result = (int)switch_core_add_state_handler((switch_state_handler_table const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_remove_state_handler(void * jarg1) { + switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ; + + arg1 = (switch_state_handler_table_t *)jarg1; + switch_core_remove_state_handler((switch_state_handler_table const *)arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_get_state_handler(int jarg1) { + void * jresult ; + int arg1 ; + switch_state_handler_table_t *result = 0 ; + + arg1 = (int)jarg1; + result = (switch_state_handler_table_t *)switch_core_get_state_handler(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_pool_tag(void * jarg1, char * jarg2) { + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + switch_core_memory_pool_tag(arg1,(char const *)arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_perform_new_memory_pool(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_memory_pool_t **arg1 = (switch_memory_pool_t **) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_perform_new_memory_pool(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_sync_clock() { + int jresult ; + int result; + + result = (int)switch_core_session_sync_clock(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_perform_destroy_memory_pool(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_memory_pool_t **arg1 = (switch_memory_pool_t **) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_perform_destroy_memory_pool(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_pool_set_data(void * jarg1, char * jarg2, void * jarg3) { + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + switch_core_memory_pool_set_data(arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_memory_pool_get_data(void * jarg1, char * jarg2) { + void * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + void *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + result = (void *)switch_core_memory_pool_get_data(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_run(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_run(arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_core_session_running(void * jarg1) { + unsigned int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + unsigned int result; + + arg1 = (switch_core_session_t *)jarg1; + result = (unsigned int)switch_core_session_running(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_core_session_started(void * jarg1) { + unsigned int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + unsigned int result; + + arg1 = (switch_core_session_t *)jarg1; + result = (unsigned int)switch_core_session_started(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_perform_permanent_alloc(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + void * jresult ; + switch_size_t arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_size_t *argp1 ; + void *result = 0 ; + + argp1 = (switch_size_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg1 = *argp1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (void *)switch_core_perform_permanent_alloc(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_perform_alloc(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { + void * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_size_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_size_t *argp2 ; + void *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (void *)switch_core_perform_alloc(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_perform_session_alloc(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_size_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_size_t *argp2 ; + void *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (void *)switch_core_perform_session_alloc(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_perform_permanent_strdup(char * jarg1, char * jarg2, char * jarg3, int jarg4) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (char *)switch_core_perform_permanent_strdup((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_perform_session_strdup(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { + char * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + char *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (char *)switch_core_perform_session_strdup(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_perform_strdup(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { + char * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + char *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (char *)switch_core_perform_strdup(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_sprintf(void * jarg1, char * jarg2) { + char * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_core_session_sprintf(arg1,(char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_sprintf(void * jarg1, char * jarg2) { + char * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = 0 ; + char *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_core_sprintf(arg1,(char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_pool(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_memory_pool_t *)switch_core_session_get_pool(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_xml(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; + switch_memory_pool_t **arg2 = (switch_memory_pool_t **) 0 ; + switch_xml_t arg3 = (switch_xml_t) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_endpoint_interface_t *)jarg1; + arg2 = (switch_memory_pool_t **)jarg2; + arg3 = (switch_xml_t)jarg3; + result = (switch_core_session_t *)switch_core_session_request_xml(arg1,arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_uuid(void * jarg1, int jarg2, unsigned long jarg3, void * jarg4, char * jarg5) { + void * jresult ; + switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; + switch_call_direction_t arg2 ; + switch_originate_flag_t arg3 ; + switch_memory_pool_t **arg4 = (switch_memory_pool_t **) 0 ; + char *arg5 = (char *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_endpoint_interface_t *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + arg3 = (switch_originate_flag_t)jarg3; + arg4 = (switch_memory_pool_t **)jarg4; + arg5 = (char *)jarg5; + result = (switch_core_session_t *)switch_core_session_request_uuid(arg1,arg2,arg3,arg4,(char const *)arg5); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_uuid(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_session_set_uuid(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_perform_destroy(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + switch_core_session_t **arg1 = (switch_core_session_t **) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + + arg1 = (switch_core_session_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + switch_core_session_perform_destroy(arg1,(char const *)arg2,(char const *)arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_destroy_state(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_destroy_state(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_reporting_state(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_reporting_state(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hangup_state(void * jarg1, int jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + switch_core_session_hangup_state(arg1,arg2); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_count() { + unsigned long jresult ; + uint32_t result; + + result = (uint32_t)switch_core_session_count(); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_id(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_size_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = switch_core_session_get_id(arg1); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_id() { + void * jresult ; + switch_size_t result; + + result = switch_core_session_id(); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_id_dec() { + void * jresult ; + switch_size_t result; + + result = switch_core_session_id_dec(); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_by_name(char * jarg1, int jarg2, void * jarg3) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_call_direction_t arg2 ; + switch_memory_pool_t **arg3 = (switch_memory_pool_t **) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + arg3 = (switch_memory_pool_t **)jarg3; + result = (switch_core_session_t *)switch_core_session_request_by_name((char const *)arg1,arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_thread_launch(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_thread_launch(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_thread_pool_launch_thread(void * jarg1) { + int jresult ; + switch_thread_data_t **arg1 = (switch_thread_data_t **) 0 ; + switch_status_t result; + + arg1 = (switch_thread_data_t **)jarg1; + result = (switch_status_t)switch_thread_pool_launch_thread(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_thread_pool_launch(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_thread_pool_launch(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_channel(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_channel_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_channel_t *)switch_core_session_get_channel(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_mutex(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_mutex_t *)switch_core_session_get_mutex(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_wake_session_thread(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_wake_session_thread(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_signal_state_change(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_signal_state_change(arg1); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_get_uuid(void * jarg1) { + char * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (char *)switch_core_session_get_uuid(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_loglevel(void * jarg1, int jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_log_level_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_log_level_t)jarg2; + result = (switch_status_t)switch_core_session_set_loglevel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_loglevel(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_log_level_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_log_level_t)switch_core_session_get_loglevel(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_jb(void * jarg1, int jarg2) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_media_type_t arg2 ; + stfu_instance_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_media_type_t)jarg2; + result = (stfu_instance_t *)switch_core_session_get_jb(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_soft_lock(void * jarg1, unsigned long jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_core_session_soft_lock(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_soft_unlock(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_soft_unlock(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_set_dmachine(void * jarg1, void * jarg2, int jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; + switch_digit_action_target_t arg3 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_ivr_dmachine_t *)jarg2; + arg3 = (switch_digit_action_target_t)jarg3; + switch_core_session_set_dmachine(arg1,arg2,arg3); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_dmachine(void * jarg1, int jarg2) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_digit_action_target_t arg2 ; + switch_ivr_dmachine_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_digit_action_target_t)jarg2; + result = (switch_ivr_dmachine_t *)switch_core_session_get_dmachine(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_get_target(void * jarg1) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_digit_action_target_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (switch_digit_action_target_t)switch_ivr_dmachine_get_target(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_target(void * jarg1, int jarg2) { + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_digit_action_target_t arg2 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (switch_digit_action_target_t)jarg2; + switch_ivr_dmachine_set_target(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_set_terminators(void * jarg1, char * jarg2) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_dmachine_set_terminators(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_codec_slin(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_slin_data_t *arg2 = (switch_slin_data_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_slin_data_t *)jarg2; + result = (switch_status_t)switch_core_session_set_codec_slin(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_uuid() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_core_get_uuid(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_perform_locate(char * jarg1, char * jarg2, char * jarg3, int jarg4) { + void * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_core_session_t *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_core_session_t *)switch_core_session_perform_locate((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_perform_force_locate(char * jarg1, char * jarg2, char * jarg3, int jarg4) { + void * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_core_session_t *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_core_session_t *)switch_core_session_perform_force_locate((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_variable(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_core_get_variable((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_variable_dup(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_core_get_variable_dup((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_variable_pdup(char * jarg1, void * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + result = (char *)switch_core_get_variable_pdup((char const *)arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_hostname() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_core_get_hostname(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_switchname() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_core_get_switchname(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_domain(int jarg1) { + char * jresult ; + switch_bool_t arg1 ; + char *result = 0 ; + + arg1 = (switch_bool_t)jarg1; + result = (char *)switch_core_get_domain(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_set_variable(char * jarg1, char * jarg2) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + switch_core_set_variable((char const *)arg1,(char const *)arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_get_variables(void * jarg1) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + result = (switch_status_t)switch_core_get_variables(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_set_var_conditional(char * jarg1, char * jarg2, char * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_bool_t)switch_core_set_var_conditional((char const *)arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_dump_variables(void * jarg1) { + switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; + + arg1 = (switch_stream_handle_t *)jarg1; + switch_core_dump_variables(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hupall(int jarg1) { + switch_call_cause_t arg1 ; + + arg1 = (switch_call_cause_t)jarg1; + switch_core_session_hupall(arg1); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_hupall_matching_var_ans(char * jarg1, char * jarg2, int jarg3, int jarg4) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_call_cause_t arg3 ; + switch_hup_type_t arg4 ; + uint32_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_call_cause_t)jarg3; + arg4 = (switch_hup_type_t)jarg4; + result = (uint32_t)switch_core_session_hupall_matching_var_ans((char const *)arg1,(char const *)arg2,arg3,arg4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_findall_matching_var(char * jarg1, char * jarg2) { + void * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_console_callback_match_t *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_console_callback_match_t *)switch_core_session_findall_matching_var((char const *)arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_findall() { + void * jresult ; + switch_console_callback_match_t *result = 0 ; + + result = (switch_console_callback_match_t *)switch_core_session_findall(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hupall_endpoint(void * jarg1, int jarg2) { + switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; + switch_call_cause_t arg2 ; + + arg1 = (switch_endpoint_interface_t *)jarg1; + arg2 = (switch_call_cause_t)jarg2; + switch_core_session_hupall_endpoint((switch_endpoint_interface const *)arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_perform_get_partner(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t **)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_status_t)switch_core_session_perform_get_partner(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_message_send(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_core_session_message_t *)jarg2; + result = (switch_status_t)switch_core_session_message_send((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_message(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_message_t *)jarg2; + result = (switch_status_t)switch_core_session_queue_message(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_free_message(void * jarg1) { + switch_core_session_message_t **arg1 = (switch_core_session_message_t **) 0 ; + + arg1 = (switch_core_session_message_t **)jarg1; + switch_core_session_free_message(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_signal_data(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (void *)jarg2; + result = (switch_status_t)switch_core_session_queue_signal_data(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_signal_data(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + void **arg2 = (void **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (void **)jarg2; + result = (switch_status_t)switch_core_session_dequeue_signal_data(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_pass_indication(void * jarg1, int jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_message_types_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_message_types_t)jarg2; + result = (switch_status_t)switch_core_session_pass_indication(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_indication(void * jarg1, int jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_message_types_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_message_types_t)jarg2; + result = (switch_status_t)switch_core_session_queue_indication(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_message(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_message_t **arg2 = (switch_core_session_message_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_message_t **)jarg2; + result = (switch_status_t)switch_core_session_dequeue_message(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_flush_message(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_flush_message(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_event_send(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_core_session_event_send((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_app_log(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_app_log_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_app_log_t *)switch_core_session_get_app_log(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_exec(void * jarg1, void * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_application_interface_t *arg2 = (switch_application_interface_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_application_interface_t *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_session_exec(arg1,(switch_application_interface const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_video_reset(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_video_reset(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_application_get_flags(void * jarg1, char * jarg2, char * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int32_t *arg4 = (int32_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int32_t *)jarg4; + result = (switch_status_t)switch_core_session_execute_application_get_flags(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_application_async(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_session_execute_application_async(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_app_flags(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int32_t *arg2 = (int32_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (int32_t *)jarg2; + result = (switch_status_t)switch_core_session_get_app_flags((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_exten(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_core_session_execute_exten(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_receive_event(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_core_session_receive_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_private_class(void * jarg1, int jarg2) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_pvt_class_t arg2 ; + void *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_pvt_class_t)jarg2; + result = (void *)switch_core_session_get_private_class(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_private_class(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_pvt_class_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_pvt_class_t)jarg3; + result = (switch_status_t)switch_core_session_set_private_class(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_add_stream(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + void *arg2 = (void *) 0 ; + int result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (void *)jarg2; + result = (int)switch_core_session_add_stream(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_stream(void * jarg1, int jarg2) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + int arg2 ; + void *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (int)jarg2; + result = (void *)switch_core_session_get_stream(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_stream_count(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + int result; + + arg1 = (switch_core_session_t *)jarg1; + result = (int)switch_core_session_get_stream_count(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_launch_thread(void * jarg1, void * jarg2, void * jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + void *(*arg2)(switch_thread_t *,void *) = (void *(*)(switch_thread_t *,void *)) 0 ; + void *arg3 = (void *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (void *(*)(switch_thread_t *,void *))jarg2; + arg3 = (void *)jarg3; + switch_core_session_launch_thread(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_thread_session_end(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_thread_session_end(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_service_session_av(void * jarg1, int jarg2, int jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + switch_bool_t arg3 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (switch_bool_t)jarg3; + switch_core_service_session_av(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_outgoing_channel(void * jarg1, void * jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6, unsigned long jarg7, void * jarg8) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_caller_profile_t *arg4 = (switch_caller_profile_t *) 0 ; + switch_core_session_t **arg5 = (switch_core_session_t **) 0 ; + switch_memory_pool_t **arg6 = (switch_memory_pool_t **) 0 ; + switch_originate_flag_t arg7 ; + switch_call_cause_t *arg8 = (switch_call_cause_t *) 0 ; + switch_call_cause_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_caller_profile_t *)jarg4; + arg5 = (switch_core_session_t **)jarg5; + arg6 = (switch_memory_pool_t **)jarg6; + arg7 = (switch_originate_flag_t)jarg7; + arg8 = (switch_call_cause_t *)jarg8; + result = (switch_call_cause_t)switch_core_session_outgoing_channel(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_perform_receive_message(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_message_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_status_t)switch_core_session_perform_receive_message(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_event(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_core_session_queue_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_event_count(void * jarg1) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (uint32_t)switch_core_session_event_count(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_messages_waiting(void * jarg1) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (uint32_t)switch_core_session_messages_waiting(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_event(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_core_session_dequeue_event(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_queue_private_event(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_core_session_queue_private_event(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_private_event_count(void * jarg1) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (uint32_t)switch_core_session_private_event_count(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_private_event(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_core_session_dequeue_private_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_flush_private_events(void * jarg1) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (uint32_t)switch_core_session_flush_private_events(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t **arg2 = (switch_frame_t **) 0 ; + switch_io_flag_t arg3 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t **)jarg2; + arg3 = (switch_io_flag_t)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_session_read_frame(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_video_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t **arg2 = (switch_frame_t **) 0 ; + switch_io_flag_t arg3 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t **)jarg2; + arg3 = (switch_io_flag_t)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_session_read_video_frame(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_write_video_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_io_flag_t arg3 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_io_flag_t)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_session_write_video_frame(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_read_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_set_read_impl(arg1,(switch_codec_implementation const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_write_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_set_write_impl(arg1,(switch_codec_implementation const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_read_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_set_video_read_impl(arg1,(switch_codec_implementation const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_write_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_set_video_write_impl(arg1,(switch_codec_implementation const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_reset(void * jarg1, int jarg2, int jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + switch_bool_t arg3 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (switch_bool_t)jarg3; + switch_core_session_reset(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_write_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_io_flag_t arg3 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_io_flag_t)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_session_write_frame(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_perform_kill_channel(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_signal_t arg5 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (switch_signal_t)jarg5; + result = (switch_status_t)switch_core_session_perform_kill_channel(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_send_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = (switch_status_t)switch_core_session_send_dtmf(arg1,(switch_dtmf_t const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_send_dtmf_string(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_session_send_dtmf_string(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_recv_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = (switch_status_t)switch_core_session_recv_dtmf(arg1,(switch_dtmf_t const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_init_case(void * jarg1, int jarg2) { + int jresult ; + switch_hash_t **arg1 = (switch_hash_t **) 0 ; + switch_bool_t arg2 ; + switch_status_t result; + + arg1 = (switch_hash_t **)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_core_hash_init_case(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_destroy(void * jarg1) { + int jresult ; + switch_hash_t **arg1 = (switch_hash_t **) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t **)jarg1; + result = (switch_status_t)switch_core_hash_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_destructor(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + hashtable_destructor_t arg4 = (hashtable_destructor_t) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + arg4 = (hashtable_destructor_t)jarg4; + result = (switch_status_t)switch_core_hash_insert_destructor(arg1,(char const *)arg2,(void const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_locked(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + switch_mutex_t *arg4 = (switch_mutex_t *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + arg4 = (switch_mutex_t *)jarg4; + result = (switch_status_t)switch_core_hash_insert_locked(arg1,(char const *)arg2,(void const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_wrlock(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + switch_thread_rwlock_t *arg4 = (switch_thread_rwlock_t *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + arg4 = (switch_thread_rwlock_t *)jarg4; + result = (switch_status_t)switch_core_hash_insert_wrlock(arg1,(char const *)arg2,(void const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete(void * jarg1, char * jarg2) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_hash_delete(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_locked(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_mutex_t *arg3 = (switch_mutex_t *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_mutex_t *)jarg3; + result = (switch_status_t)switch_core_hash_delete_locked(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_wrlock(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_thread_rwlock_t *arg3 = (switch_thread_rwlock_t *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_thread_rwlock_t *)jarg3; + result = (switch_status_t)switch_core_hash_delete_wrlock(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_multi(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + switch_hash_delete_callback_t arg2 = (switch_hash_delete_callback_t) 0 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (switch_hash_delete_callback_t)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_core_hash_delete_multi(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find(void * jarg1, char * jarg2) { + void * jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + void *result = 0 ; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + result = (void *)switch_core_hash_find(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find_locked(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_mutex_t *arg3 = (switch_mutex_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_mutex_t *)jarg3; + result = (void *)switch_core_hash_find_locked(arg1,(char const *)arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find_rdlock(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_thread_rwlock_t *arg3 = (switch_thread_rwlock_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_thread_rwlock_t *)jarg3; + result = (void *)switch_core_hash_find_rdlock(arg1,(char const *)arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_first_iter(void * jarg1, void * jarg2) { + void * jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + switch_hash_index_t *arg2 = (switch_hash_index_t *) 0 ; + switch_hash_index_t *result = 0 ; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (switch_hash_index_t *)jarg2; + result = (switch_hash_index_t *)switch_core_hash_first_iter(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_empty(void * jarg1) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_hash_t *)jarg1; + result = (switch_bool_t)switch_core_hash_empty(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_next(void * jarg1) { + void * jresult ; + switch_hash_index_t **arg1 = (switch_hash_index_t **) 0 ; + switch_hash_index_t *result = 0 ; + + arg1 = (switch_hash_index_t **)jarg1; + result = (switch_hash_index_t *)switch_core_hash_next(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_hash_this(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + switch_hash_index_t *arg1 = (switch_hash_index_t *) 0 ; + void **arg2 = (void **) 0 ; + switch_ssize_t *arg3 = (switch_ssize_t *) 0 ; + void **arg4 = (void **) 0 ; + + arg1 = (switch_hash_index_t *)jarg1; + arg2 = (void **)jarg2; + arg3 = (switch_ssize_t *)jarg3; + arg4 = (void **)jarg4; + switch_core_hash_this(arg1,(void const **)arg2,arg3,arg4); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_init(void * jarg1, char * jarg2, int jarg3, int jarg4, void * jarg5) { + int jresult ; + switch_timer_t *arg1 = (switch_timer_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + int arg4 ; + switch_memory_pool_t *arg5 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_timer_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (switch_memory_pool_t *)jarg5; + result = (switch_status_t)switch_core_timer_init(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_calibrate_clock() { + switch_time_calibrate_clock(); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_next(void * jarg1) { + int jresult ; + switch_timer_t *arg1 = (switch_timer_t *) 0 ; + switch_status_t result; + + arg1 = (switch_timer_t *)jarg1; + result = (switch_status_t)switch_core_timer_next(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_step(void * jarg1) { + int jresult ; + switch_timer_t *arg1 = (switch_timer_t *) 0 ; + switch_status_t result; + + arg1 = (switch_timer_t *)jarg1; + result = (switch_status_t)switch_core_timer_step(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_sync(void * jarg1) { + int jresult ; + switch_timer_t *arg1 = (switch_timer_t *) 0 ; + switch_status_t result; + + arg1 = (switch_timer_t *)jarg1; + result = (switch_status_t)switch_core_timer_sync(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_check(void * jarg1, int jarg2) { + int jresult ; + switch_timer_t *arg1 = (switch_timer_t *) 0 ; + switch_bool_t arg2 ; + switch_status_t result; + + arg1 = (switch_timer_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_core_timer_check(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_destroy(void * jarg1) { + int jresult ; + switch_timer_t *arg1 = (switch_timer_t *) 0 ; + switch_status_t result; + + arg1 = (switch_timer_t *)jarg1; + result = (switch_status_t)switch_core_timer_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_init_with_bitrate(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, int jarg5, int jarg6, unsigned long jarg7, unsigned long jarg8, void * jarg9, void * jarg10) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + uint32_t arg4 ; + int arg5 ; + int arg6 ; + uint32_t arg7 ; + uint32_t arg8 ; + switch_codec_settings_t *arg9 = (switch_codec_settings_t *) 0 ; + switch_memory_pool_t *arg10 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (int)jarg5; + arg6 = (int)jarg6; + arg7 = (uint32_t)jarg7; + arg8 = (uint32_t)jarg8; + arg9 = (switch_codec_settings_t *)jarg9; + arg10 = (switch_memory_pool_t *)jarg10; + result = (switch_status_t)switch_core_codec_init_with_bitrate(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,(switch_codec_settings const *)arg9,arg10); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_copy(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + switch_codec_settings_t *arg3 = (switch_codec_settings_t *) 0 ; + switch_memory_pool_t *arg4 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + arg3 = (switch_codec_settings_t *)jarg3; + arg4 = (switch_memory_pool_t *)jarg4; + result = (switch_status_t)switch_core_codec_copy(arg1,arg2,(switch_codec_settings const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_parse_fmtp(char * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_codec_fmtp_t *arg4 = (switch_codec_fmtp_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (switch_codec_fmtp_t *)jarg4; + result = (switch_status_t)switch_core_codec_parse_fmtp((char const *)arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_reset(void * jarg1) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + result = (switch_status_t)switch_core_codec_reset(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_encode(void * jarg1, void * jarg2, void * jarg3, unsigned long jarg4, unsigned long jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + void *arg3 = (void *) 0 ; + uint32_t arg4 ; + uint32_t arg5 ; + void *arg6 = (void *) 0 ; + uint32_t *arg7 = (uint32_t *) 0 ; + uint32_t *arg8 = (uint32_t *) 0 ; + unsigned int *arg9 = (unsigned int *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + arg3 = (void *)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (void *)jarg6; + arg7 = (uint32_t *)jarg7; + arg8 = (uint32_t *)jarg8; + arg9 = (unsigned int *)jarg9; + result = (switch_status_t)switch_core_codec_encode(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_decode(void * jarg1, void * jarg2, void * jarg3, unsigned long jarg4, unsigned long jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + void *arg3 = (void *) 0 ; + uint32_t arg4 ; + uint32_t arg5 ; + void *arg6 = (void *) 0 ; + uint32_t *arg7 = (uint32_t *) 0 ; + uint32_t *arg8 = (uint32_t *) 0 ; + unsigned int *arg9 = (unsigned int *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + arg3 = (void *)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (void *)jarg6; + arg7 = (uint32_t *)jarg7; + arg8 = (uint32_t *)jarg8; + arg9 = (unsigned int *)jarg9; + result = (switch_status_t)switch_core_codec_decode(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_destroy(void * jarg1) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + result = (switch_status_t)switch_core_codec_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_read_codec(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + result = (switch_status_t)switch_core_session_set_read_codec(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_real_read_codec(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + result = (switch_status_t)switch_core_session_set_real_read_codec(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unset_read_codec(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_unset_read_codec(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unset_write_codec(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_unset_write_codec(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_lock_codec_write(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_lock_codec_write(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unlock_codec_write(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_unlock_codec_write(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_lock_codec_read(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_lock_codec_read(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unlock_codec_read(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_unlock_codec_read(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_read_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_get_read_impl(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_real_read_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_get_real_read_impl(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_write_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_get_write_impl(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_video_read_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_get_video_read_impl(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_video_write_impl(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + result = (switch_status_t)switch_core_session_get_video_write_impl(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_read_codec(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_codec_t *)switch_core_session_get_read_codec(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_effective_read_codec(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_codec_t *)switch_core_session_get_effective_read_codec(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_write_codec(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + result = (switch_status_t)switch_core_session_set_write_codec(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_write_codec(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_codec_t *)switch_core_session_get_write_codec(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_effective_write_codec(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_codec_t *)switch_core_session_get_effective_write_codec(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_read_codec(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + result = (switch_status_t)switch_core_session_set_video_read_codec(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_video_read_codec(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_codec_t *)switch_core_session_get_video_read_codec(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_write_codec(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_codec_t *)jarg2; + result = (switch_status_t)switch_core_session_set_video_write_codec(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_video_write_codec(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_codec_t *)switch_core_session_get_video_write_codec(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_db_open_file(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_core_db_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_core_db_t *)switch_core_db_open_file((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_persistant_execute(void * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + result = (switch_status_t)switch_core_db_persistant_execute(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_persistant_execute_trans(void * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + result = (switch_status_t)switch_core_db_persistant_execute_trans(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_db_test_reactive(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + switch_core_db_test_reactive(arg1,arg2,arg3,arg4); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_perform_file_open(char * jarg1, char * jarg2, int jarg3, void * jarg4, char * jarg5, unsigned long jarg6, unsigned long jarg7, unsigned int jarg8, void * jarg9) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + switch_file_handle_t *arg4 = (switch_file_handle_t *) 0 ; + char *arg5 = (char *) 0 ; + uint32_t arg6 ; + uint32_t arg7 ; + unsigned int arg8 ; + switch_memory_pool_t *arg9 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (switch_file_handle_t *)jarg4; + arg5 = (char *)jarg5; + arg6 = (uint32_t)jarg6; + arg7 = (uint32_t)jarg7; + arg8 = (unsigned int)jarg8; + arg9 = (switch_memory_pool_t *)jarg9; + result = (switch_status_t)switch_core_perform_file_open((char const *)arg1,(char const *)arg2,arg3,arg4,(char const *)arg5,arg6,arg7,arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_read(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_size_t *)jarg3; + result = (switch_status_t)switch_core_file_read(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_size_t *)jarg3; + result = (switch_status_t)switch_core_file_write(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write_video(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_size_t *)jarg3; + result = (switch_status_t)switch_core_file_write_video(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_seek(void * jarg1, void * jarg2, long long jarg3, int jarg4) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + unsigned int *arg2 = (unsigned int *) 0 ; + int64_t arg3 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (unsigned int *)jarg2; + arg3 = (int64_t)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_file_seek(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_set_string(void * jarg1, int jarg2, char * jarg3) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + switch_audio_col_t arg2 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (switch_audio_col_t)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_file_set_string(arg1,arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_get_string(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + switch_audio_col_t arg2 ; + char **arg3 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (switch_audio_col_t)jarg2; + arg3 = (char **)jarg3; + result = (switch_status_t)switch_core_file_get_string(arg1,arg2,(char const **)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_close(void * jarg1) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + result = (switch_status_t)switch_core_file_close(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_truncate(void * jarg1, long long jarg2) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + int64_t arg2 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (int64_t)jarg2; + result = (switch_status_t)switch_core_file_truncate(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_open(void * jarg1, char * jarg2, char * jarg3, unsigned int jarg4, unsigned int jarg5, unsigned int jarg6, void * jarg7, void * jarg8) { + int jresult ; + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + switch_speech_flag_t *arg7 = (switch_speech_flag_t *) 0 ; + switch_memory_pool_t *arg8 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (unsigned int)jarg4; + arg5 = (unsigned int)jarg5; + arg6 = (unsigned int)jarg6; + arg7 = (switch_speech_flag_t *)jarg7; + arg8 = (switch_memory_pool_t *)jarg8; + result = (switch_status_t)switch_core_speech_open(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_feed_tts(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_speech_flag_t *arg3 = (switch_speech_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_speech_flag_t *)jarg3; + result = (switch_status_t)switch_core_speech_feed_tts(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_flush_tts(void * jarg1) { + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + + arg1 = (switch_speech_handle_t *)jarg1; + switch_core_speech_flush_tts(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_text_param_tts(void * jarg1, char * jarg2, char * jarg3) { + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + switch_core_speech_text_param_tts(arg1,arg2,(char const *)arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_numeric_param_tts(void * jarg1, char * jarg2, int jarg3) { + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + switch_core_speech_numeric_param_tts(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_float_param_tts(void * jarg1, char * jarg2, double jarg3) { + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + double arg3 ; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (double)jarg3; + switch_core_speech_float_param_tts(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_read_tts(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_speech_flag_t *arg4 = (switch_speech_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_size_t *)jarg3; + arg4 = (switch_speech_flag_t *)jarg4; + result = (switch_status_t)switch_core_speech_read_tts(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_close(void * jarg1, void * jarg2) { + int jresult ; + switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; + switch_speech_flag_t *arg2 = (switch_speech_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_speech_handle_t *)jarg1; + arg2 = (switch_speech_flag_t *)jarg2; + result = (switch_status_t)switch_core_speech_close(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_open(void * jarg1, char * jarg2, char * jarg3, int jarg4, char * jarg5, void * jarg6, void * jarg7) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + char *arg5 = (char *) 0 ; + switch_asr_flag_t *arg6 = (switch_asr_flag_t *) 0 ; + switch_memory_pool_t *arg7 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_asr_flag_t *)jarg6; + arg7 = (switch_memory_pool_t *)jarg7; + result = (switch_status_t)switch_core_asr_open(arg1,(char const *)arg2,(char const *)arg3,arg4,(char const *)arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_close(void * jarg1, void * jarg2) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_asr_flag_t *arg2 = (switch_asr_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (switch_asr_flag_t *)jarg2; + result = (switch_status_t)switch_core_asr_close(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_feed(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + switch_asr_flag_t *arg4 = (switch_asr_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (switch_asr_flag_t *)jarg4; + result = (switch_status_t)switch_core_asr_feed(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_feed_dtmf(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_asr_flag_t *arg3 = (switch_asr_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + arg3 = (switch_asr_flag_t *)jarg3; + result = (switch_status_t)switch_core_asr_feed_dtmf(arg1,(switch_dtmf_t const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_check_results(void * jarg1, void * jarg2) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_asr_flag_t *arg2 = (switch_asr_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (switch_asr_flag_t *)jarg2; + result = (switch_status_t)switch_core_asr_check_results(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_get_results(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char **arg2 = (char **) 0 ; + switch_asr_flag_t *arg3 = (switch_asr_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char **)jarg2; + arg3 = (switch_asr_flag_t *)jarg3; + result = (switch_status_t)switch_core_asr_get_results(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_get_result_headers(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_asr_flag_t *arg3 = (switch_asr_flag_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + arg3 = (switch_asr_flag_t *)jarg3; + result = (switch_status_t)switch_core_asr_get_result_headers(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_load_grammar(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_asr_load_grammar(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_unload_grammar(void * jarg1, char * jarg2) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_asr_unload_grammar(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_enable_grammar(void * jarg1, char * jarg2) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_asr_enable_grammar(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_disable_grammar(void * jarg1, char * jarg2) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_asr_disable_grammar(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_disable_all_grammars(void * jarg1) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + result = (switch_status_t)switch_core_asr_disable_all_grammars(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_pause(void * jarg1) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + result = (switch_status_t)switch_core_asr_pause(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_resume(void * jarg1) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + result = (switch_status_t)switch_core_asr_resume(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_start_input_timers(void * jarg1) { + int jresult ; + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_asr_handle_t *)jarg1; + result = (switch_status_t)switch_core_asr_start_input_timers(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_asr_text_param(void * jarg1, char * jarg2, char * jarg3) { + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + switch_core_asr_text_param(arg1,arg2,(char const *)arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_asr_numeric_param(void * jarg1, char * jarg2, int jarg3) { + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + switch_core_asr_numeric_param(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_asr_float_param(void * jarg1, char * jarg2, double jarg3) { + switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + double arg3 ; + + arg1 = (switch_asr_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (double)jarg3; + switch_core_asr_float_param(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_open(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6) { + int jresult ; + switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + switch_memory_pool_t *arg6 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_directory_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_memory_pool_t *)jarg6; + result = (switch_status_t)switch_core_directory_open(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_query(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_directory_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_directory_query(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_next(void * jarg1) { + int jresult ; + switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_directory_handle_t *)jarg1; + result = (switch_status_t)switch_core_directory_next(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_next_pair(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; + char **arg2 = (char **) 0 ; + char **arg3 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_directory_handle_t *)jarg1; + arg2 = (char **)jarg2; + arg3 = (char **)jarg3; + result = (switch_status_t)switch_core_directory_next_pair(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_directory_close(void * jarg1) { + int jresult ; + switch_directory_handle_t *arg1 = (switch_directory_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_directory_handle_t *)jarg1; + result = (switch_status_t)switch_core_directory_close(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_data_channel(int jarg1) { + void * jresult ; + switch_text_channel_t arg1 ; + FILE *result = 0 ; + + arg1 = (switch_text_channel_t)jarg1; + result = (FILE *)switch_core_data_channel(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready() { + int jresult ; + switch_bool_t result; + + result = (switch_bool_t)switch_core_ready(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_running() { + int jresult ; + switch_bool_t result; + + result = (switch_bool_t)switch_core_running(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready_inbound() { + int jresult ; + switch_bool_t result; + + result = (switch_bool_t)switch_core_ready_inbound(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready_outbound() { + int jresult ; + switch_bool_t result; + + result = (switch_bool_t)switch_core_ready_outbound(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_flags() { + unsigned long jresult ; + switch_core_flag_t result; + + result = (switch_core_flag_t)switch_core_flags(); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_management_exec(char * jarg1, int jarg2, char * jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_management_action_t arg2 ; + char *arg3 = (char *) 0 ; + switch_size_t arg4 ; + switch_size_t *argp4 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_management_action_t)jarg2; + arg3 = (char *)jarg3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + result = (switch_status_t)switch_core_management_exec(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_set_normal_priority() { + int jresult ; + int32_t result; + + result = (int32_t)set_normal_priority(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_set_auto_priority() { + int jresult ; + int32_t result; + + result = (int32_t)set_auto_priority(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_set_realtime_priority() { + int jresult ; + int32_t result; + + result = (int32_t)set_realtime_priority(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_set_low_priority() { + int jresult ; + int32_t result; + + result = (int32_t)set_low_priority(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_change_user_group(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int32_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (int32_t)change_user_group((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_runtime_loop(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + switch_core_runtime_loop(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_set_console(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + result = (switch_status_t)switch_core_set_console((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_measure_time(void * jarg1, void * jarg2) { + switch_time_t arg1 ; + switch_core_time_duration_t *arg2 = (switch_core_time_duration_t *) 0 ; + switch_time_t *argp1 ; + + argp1 = (switch_time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg1 = *argp1; + arg2 = (switch_core_time_duration_t *)jarg2; + switch_core_measure_time(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_uptime() { + void * jresult ; + switch_time_t result; + + result = switch_core_uptime(); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_ctl(int jarg1, void * jarg2) { + int jresult ; + switch_session_ctl_t arg1 ; + void *arg2 = (void *) 0 ; + int32_t result; + + arg1 = (switch_session_ctl_t)jarg1; + arg2 = (void *)jarg2; + result = (int32_t)switch_core_session_ctl(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_get_console() { + void * jresult ; + FILE *result = 0 ; + + result = (FILE *)switch_core_get_console(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_set_globals() { + switch_core_set_globals(); +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_core_session_compare(void * jarg1, void * jarg2) { + unsigned char jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + uint8_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + result = (uint8_t)switch_core_session_compare(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_core_session_check_interface(void * jarg1, void * jarg2) { + unsigned char jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_endpoint_interface_t *arg2 = (switch_endpoint_interface_t *) 0 ; + uint8_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_endpoint_interface_t *)jarg2; + result = (uint8_t)switch_core_session_check_interface(arg1,(switch_endpoint_interface const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_mime_index() { + void * jresult ; + switch_hash_index_t *result = 0 ; + + result = (switch_hash_index_t *)switch_core_mime_index(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_mime_ext2type(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_core_mime_ext2type((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_mime_add_type(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_core_mime_add_type((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_create_module_interface(void * jarg1, char * jarg2) { + void * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_loadable_module_interface_t *)switch_loadable_module_create_module_interface(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_create_interface(void * jarg1, int jarg2) { + void * jresult ; + switch_loadable_module_interface_t *arg1 = (switch_loadable_module_interface_t *) 0 ; + switch_module_interface_name_t arg2 ; + void *result = 0 ; + + arg1 = (switch_loadable_module_interface_t *)jarg1; + arg2 = (switch_module_interface_name_t)jarg2; + result = (void *)switch_loadable_module_create_interface(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_micro_time_now() { + void * jresult ; + switch_time_t result; + + result = switch_micro_time_now(); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_mono_micro_time_now() { + void * jresult ; + switch_time_t result; + + result = switch_mono_micro_time_now(); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim() { + switch_core_memory_reclaim(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim_events() { + switch_core_memory_reclaim_events(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim_logger() { + switch_core_memory_reclaim_logger(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_memory_reclaim_all() { + switch_core_memory_reclaim_all(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_setrlimits() { + switch_core_setrlimits(); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_time_ref() { + void * jresult ; + switch_time_t result; + + result = switch_time_ref(); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_sync() { + switch_time_sync(); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_epoch_time_now(void * jarg1) { + void * jresult ; + time_t *arg1 = (time_t *) 0 ; + time_t result; + + arg1 = (time_t *)jarg1; + result = switch_epoch_time_now(arg1); + jresult = new time_t((const time_t &)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_lookup_timezone(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_lookup_timezone((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_strftime_tz(char * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, void * jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + size_t arg4 ; + switch_time_t arg5 ; + switch_time_t *argp5 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (size_t)jarg4; + argp5 = (switch_time_t *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return 0; + } + arg5 = *argp5; + result = (switch_status_t)switch_strftime_tz((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_time_exp_tz_name(char * jarg1, void * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_time_exp_t *arg2 = (switch_time_exp_t *) 0 ; + switch_time_t arg3 ; + switch_time_t *argp3 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_time_exp_t *)jarg2; + argp3 = (switch_time_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_status_t)switch_time_exp_tz_name((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_load_network_lists(int jarg1) { + switch_bool_t arg1 ; + + arg1 = (switch_bool_t)jarg1; + switch_load_network_lists(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_check_network_list_ip_token(char * jarg1, char * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char **arg3 = (char **) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char **)jarg3; + result = (switch_bool_t)switch_check_network_list_ip_token((char const *)arg1,(char const *)arg2,(char const **)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_monotonic(int jarg1) { + switch_bool_t arg1 ; + + arg1 = (switch_bool_t)jarg1; + switch_time_set_monotonic(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_timerfd(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + switch_time_set_timerfd(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_nanosleep(int jarg1) { + switch_bool_t arg1 ; + + arg1 = (switch_bool_t)jarg1; + switch_time_set_nanosleep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_matrix(int jarg1) { + switch_bool_t arg1 ; + + arg1 = (switch_bool_t)jarg1; + switch_time_set_matrix(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_cond_yield(int jarg1) { + switch_bool_t arg1 ; + + arg1 = (switch_bool_t)jarg1; + switch_time_set_cond_yield(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_time_set_use_system_time(int jarg1) { + switch_bool_t arg1 ; + + arg1 = (switch_bool_t)jarg1; + switch_time_set_use_system_time(arg1); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_min_dtmf_duration(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_core_min_dtmf_duration(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_max_dtmf_duration(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_core_max_dtmf_duration(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_core_min_idle_cpu(double jarg1) { + double jresult ; + double arg1 ; + double result; + + arg1 = (double)jarg1; + result = (double)switch_core_min_idle_cpu(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_core_idle_cpu() { + double jresult ; + double result; + + result = (double)switch_core_idle_cpu(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_default_dtmf_duration(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_core_default_dtmf_duration(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_set_complete(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + result = (switch_status_t)switch_console_set_complete((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_set_alias(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + result = (switch_status_t)switch_console_set_alias((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_system(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (int)switch_system((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_system(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_stream_handle_t *arg2 = (switch_stream_handle_t *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (switch_stream_handle_t *)jarg2; + result = (int)switch_stream_system((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_yield(void * jarg1) { + switch_interval_time_t arg1 ; + switch_interval_time_t *argp1 ; + + argp1 = (switch_interval_time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_interval_time_t", 0); + return ; + } + arg1 = *argp1; + switch_cond_yield(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_next() { + switch_cond_next(); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_chat_send_args(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, int jarg9) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + switch_bool_t arg9 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (switch_bool_t)jarg9; + result = (switch_status_t)switch_core_chat_send_args((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_chat_send(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_t *)jarg2; + result = (switch_status_t)switch_core_chat_send((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_chat_deliver(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_core_chat_deliver((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_preprocess_session(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_preprocess_session(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_pause() { + switch_core_sqldb_pause(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_resume() { + switch_core_sqldb_resume(); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CACHE_DB_LEN_get() { + int jresult ; + int result; + + result = (int)(256); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_core_db_dbh_set(void * jarg1, void * jarg2) { + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + switch_core_db_t *arg2 = (switch_core_db_t *) 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + arg2 = (switch_core_db_t *)jarg2; + if (arg1) (arg1)->core_db_dbh = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_core_db_dbh_get(void * jarg1) { + void * jresult ; + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + switch_core_db_t *result = 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + result = (switch_core_db_t *) ((arg1)->core_db_dbh); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_odbc_dbh_set(void * jarg1, void * jarg2) { + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + switch_odbc_handle_t *arg2 = (switch_odbc_handle_t *) 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + arg2 = (switch_odbc_handle_t *)jarg2; + if (arg1) (arg1)->odbc_dbh = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_odbc_dbh_get(void * jarg1) { + void * jresult ; + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + switch_odbc_handle_t *result = 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + result = (switch_odbc_handle_t *) ((arg1)->odbc_dbh); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_pgsql_dbh_set(void * jarg1, void * jarg2) { + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + switch_pgsql_handle_t *arg2 = (switch_pgsql_handle_t *) 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + arg2 = (switch_pgsql_handle_t *)jarg2; + if (arg1) (arg1)->pgsql_dbh = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_native_handle_t_pgsql_dbh_get(void * jarg1) { + void * jresult ; + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + switch_pgsql_handle_t *result = 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + result = (switch_pgsql_handle_t *) ((arg1)->pgsql_dbh); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_native_handle_t() { + void * jresult ; + switch_cache_db_native_handle_t *result = 0 ; + + result = (switch_cache_db_native_handle_t *)new switch_cache_db_native_handle_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_native_handle_t(void * jarg1) { + switch_cache_db_native_handle_t *arg1 = (switch_cache_db_native_handle_t *) 0 ; + + arg1 = (switch_cache_db_native_handle_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_core_db_options_t_db_path_set(void * jarg1, char * jarg2) { + switch_cache_db_core_db_options_t *arg1 = (switch_cache_db_core_db_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_cache_db_core_db_options_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->db_path; + if (arg2) { + arg1->db_path = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->db_path, (const char *)arg2); + } else { + arg1->db_path = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_core_db_options_t_db_path_get(void * jarg1) { + char * jresult ; + switch_cache_db_core_db_options_t *arg1 = (switch_cache_db_core_db_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_cache_db_core_db_options_t *)jarg1; + result = (char *) ((arg1)->db_path); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_core_db_options_t() { + void * jresult ; + switch_cache_db_core_db_options_t *result = 0 ; + + result = (switch_cache_db_core_db_options_t *)new switch_cache_db_core_db_options_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_core_db_options_t(void * jarg1) { + switch_cache_db_core_db_options_t *arg1 = (switch_cache_db_core_db_options_t *) 0 ; + + arg1 = (switch_cache_db_core_db_options_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_dsn_set(void * jarg1, char * jarg2) { + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->dsn; + if (arg2) { + arg1->dsn = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->dsn, (const char *)arg2); + } else { + arg1->dsn = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_dsn_get(void * jarg1) { + char * jresult ; + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + result = (char *) ((arg1)->dsn); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_user_set(void * jarg1, char * jarg2) { + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->user; + if (arg2) { + arg1->user = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->user, (const char *)arg2); + } else { + arg1->user = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_user_get(void * jarg1) { + char * jresult ; + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + result = (char *) ((arg1)->user); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_pass_set(void * jarg1, char * jarg2) { + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->pass; + if (arg2) { + arg1->pass = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->pass, (const char *)arg2); + } else { + arg1->pass = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_odbc_options_t_pass_get(void * jarg1) { + char * jresult ; + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + result = (char *) ((arg1)->pass); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_odbc_options_t() { + void * jresult ; + switch_cache_db_odbc_options_t *result = 0 ; + + result = (switch_cache_db_odbc_options_t *)new switch_cache_db_odbc_options_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_odbc_options_t(void * jarg1) { + switch_cache_db_odbc_options_t *arg1 = (switch_cache_db_odbc_options_t *) 0 ; + + arg1 = (switch_cache_db_odbc_options_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_pgsql_options_t_dsn_set(void * jarg1, char * jarg2) { + switch_cache_db_pgsql_options_t *arg1 = (switch_cache_db_pgsql_options_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_cache_db_pgsql_options_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->dsn; + if (arg2) { + arg1->dsn = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->dsn, (const char *)arg2); + } else { + arg1->dsn = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_pgsql_options_t_dsn_get(void * jarg1) { + char * jresult ; + switch_cache_db_pgsql_options_t *arg1 = (switch_cache_db_pgsql_options_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_cache_db_pgsql_options_t *)jarg1; + result = (char *) ((arg1)->dsn); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_pgsql_options_t() { + void * jresult ; + switch_cache_db_pgsql_options_t *result = 0 ; + + result = (switch_cache_db_pgsql_options_t *)new switch_cache_db_pgsql_options_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_pgsql_options_t(void * jarg1) { + switch_cache_db_pgsql_options_t *arg1 = (switch_cache_db_pgsql_options_t *) 0 ; + + arg1 = (switch_cache_db_pgsql_options_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_core_db_options_set(void * jarg1, void * jarg2) { + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + switch_cache_db_core_db_options_t *arg2 = (switch_cache_db_core_db_options_t *) 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + arg2 = (switch_cache_db_core_db_options_t *)jarg2; + if (arg1) (arg1)->core_db_options = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_core_db_options_get(void * jarg1) { + void * jresult ; + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + switch_cache_db_core_db_options_t *result = 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + result = (switch_cache_db_core_db_options_t *)& ((arg1)->core_db_options); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_odbc_options_set(void * jarg1, void * jarg2) { + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + switch_cache_db_odbc_options_t *arg2 = (switch_cache_db_odbc_options_t *) 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + arg2 = (switch_cache_db_odbc_options_t *)jarg2; + if (arg1) (arg1)->odbc_options = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_odbc_options_get(void * jarg1) { + void * jresult ; + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + switch_cache_db_odbc_options_t *result = 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + result = (switch_cache_db_odbc_options_t *)& ((arg1)->odbc_options); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_pgsql_options_set(void * jarg1, void * jarg2) { + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + switch_cache_db_pgsql_options_t *arg2 = (switch_cache_db_pgsql_options_t *) 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + arg2 = (switch_cache_db_pgsql_options_t *)jarg2; + if (arg1) (arg1)->pgsql_options = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_connection_options_t_pgsql_options_get(void * jarg1) { + void * jresult ; + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + switch_cache_db_pgsql_options_t *result = 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + result = (switch_cache_db_pgsql_options_t *)& ((arg1)->pgsql_options); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_connection_options_t() { + void * jresult ; + switch_cache_db_connection_options_t *result = 0 ; + + result = (switch_cache_db_connection_options_t *)new switch_cache_db_connection_options_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_connection_options_t(void * jarg1) { + switch_cache_db_connection_options_t *arg1 = (switch_cache_db_connection_options_t *) 0 ; + + arg1 = (switch_cache_db_connection_options_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_type_name(int jarg1) { + char * jresult ; + switch_cache_db_handle_type_t arg1 ; + char *result = 0 ; + + arg1 = (switch_cache_db_handle_type_t)jarg1; + result = (char *)switch_cache_db_type_name(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_get_type(void * jarg1) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + switch_cache_db_handle_type_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + result = (switch_cache_db_handle_type_t)switch_cache_db_get_type(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_dismiss_db_handle(void * jarg1) { + switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; + + arg1 = (switch_cache_db_handle_t **)jarg1; + switch_cache_db_dismiss_db_handle(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_release_db_handle(void * jarg1) { + switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; + + arg1 = (switch_cache_db_handle_t **)jarg1; + switch_cache_db_release_db_handle(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp__switch_cache_db_get_db_handle(void * jarg1, int jarg2, void * jarg3, char * jarg4, char * jarg5, int jarg6) { + int jresult ; + switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; + switch_cache_db_handle_type_t arg2 ; + switch_cache_db_connection_options_t *arg3 = (switch_cache_db_connection_options_t *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + int arg6 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t **)jarg1; + arg2 = (switch_cache_db_handle_type_t)jarg2; + arg3 = (switch_cache_db_connection_options_t *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (int)jarg6; + result = (switch_status_t)_switch_cache_db_get_db_handle(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp__switch_cache_db_get_db_handle_dsn(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_status_t)_switch_cache_db_get_db_handle_dsn(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_create_schema(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char **arg3 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char **)jarg3; + result = (switch_status_t)switch_cache_db_create_schema(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_execute_sql2str(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, void * jarg5) { + char * jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + size_t arg4 ; + char **arg5 = (char **) 0 ; + char *result = 0 ; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (size_t)jarg4; + arg5 = (char **)jarg5; + result = (char *)switch_cache_db_execute_sql2str(arg1,arg2,arg3,arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char **arg3 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char **)jarg3; + result = (switch_status_t)switch_cache_db_execute_sql(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + char **arg5 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_callback_func_t)jarg3; + arg4 = (void *)jarg4; + arg5 = (char **)jarg5; + result = (switch_status_t)switch_cache_db_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; + switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ; + void *arg5 = (void *) 0 ; + char **arg6 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_callback_func_t)jarg3; + arg4 = (switch_core_db_err_callback_func_t)jarg4; + arg5 = (void *)jarg5; + arg6 = (char **)jarg6; + result = (switch_status_t)switch_cache_db_execute_sql_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_affected_rows(void * jarg1) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + int result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + result = (int)switch_cache_db_affected_rows(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_load_extension(void * jarg1, char * jarg2) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_cache_db_load_extension(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_status(void * jarg1) { + switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; + + arg1 = (switch_stream_handle_t *)jarg1; + switch_cache_db_status(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp__switch_core_db_handle(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)_switch_core_db_handle(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_test_reactive(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_bool_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_bool_t)switch_cache_db_test_reactive(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_persistant_execute(void * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + result = (switch_status_t)switch_cache_db_persistant_execute(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_persistant_execute_trans_full(void * jarg1, char * jarg2, unsigned long jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + result = (switch_status_t)switch_cache_db_persistant_execute_trans_full(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_set_signal_handlers() { + switch_core_set_signal_handlers(); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_debug_level() { + unsigned long jresult ; + uint32_t result; + + result = (uint32_t)switch_core_debug_level(); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_flush_handles() { + switch_cache_db_flush_handles(); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_banner() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_core_banner(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_in_thread(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_bool_t)switch_core_session_in_thread(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_default_ptime(char * jarg1, unsigned long jarg2) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + uint32_t arg2 ; + uint32_t result; + + arg1 = (char *)jarg1; + arg2 = (uint32_t)jarg2; + result = (uint32_t)switch_default_ptime((char const *)arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_default_rate(char * jarg1, unsigned long jarg2) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + uint32_t arg2 ; + uint32_t result; + + arg1 = (char *)jarg1; + arg2 = (uint32_t)jarg2; + result = (uint32_t)switch_default_rate((char const *)arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_registration(char * jarg1, char * jarg2, char * jarg3, char * jarg4, unsigned long jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + uint32_t arg5 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + result = (switch_status_t)switch_core_add_registration((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_del_registration(char * jarg1, char * jarg2, char * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_del_registration((char const *)arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_expire_registration(int jarg1) { + int jresult ; + int arg1 ; + switch_status_t result; + + arg1 = (int)jarg1; + result = (switch_status_t)switch_core_expire_registration(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_file_handle_get_variable(void * jarg1, char * jarg2) { + char * jresult ; + switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_say_file_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_say_file_handle_get_variable(arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_file_handle_get_path(void * jarg1) { + char * jresult ; + switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_say_file_handle_t *)jarg1; + result = (char *)switch_say_file_handle_get_path(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_file_handle_detach_path(void * jarg1) { + char * jresult ; + switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_say_file_handle_t *)jarg1; + result = (char *)switch_say_file_handle_detach_path(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_file_handle_destroy(void * jarg1) { + switch_say_file_handle_t **arg1 = (switch_say_file_handle_t **) 0 ; + + arg1 = (switch_say_file_handle_t **)jarg1; + switch_say_file_handle_destroy(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_file_handle_create(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_say_file_handle_t **arg1 = (switch_say_file_handle_t **) 0 ; + char *arg2 = (char *) 0 ; + switch_event_t **arg3 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_say_file_handle_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_event_t **)jarg3; + result = (switch_status_t)switch_say_file_handle_create(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_file(void * jarg1, char * jarg2) { + switch_say_file_handle_t *arg1 = (switch_say_file_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = 0 ; + + arg1 = (switch_say_file_handle_t *)jarg1; + arg2 = (char *)jarg2; + switch_say_file(arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_max_file_desc() { + int jresult ; + int result; + + result = (int)switch_max_file_desc(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_close_extra_files(void * jarg1, int jarg2) { + int *arg1 = (int *) 0 ; + int arg2 ; + + arg1 = (int *)jarg1; + arg2 = (int)jarg2; + switch_close_extra_files(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_thread_set_cpu_affinity(int jarg1) { + int jresult ; + int arg1 ; + switch_status_t result; + + arg1 = (int)jarg1; + result = (switch_status_t)switch_core_thread_set_cpu_affinity(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_os_yield() { + switch_os_yield(); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_get_stacksizes(void * jarg1, void * jarg2) { + int jresult ; + switch_size_t *arg1 = (switch_size_t *) 0 ; + switch_size_t *arg2 = (switch_size_t *) 0 ; + switch_status_t result; + + arg1 = (switch_size_t *)jarg1; + arg2 = (switch_size_t *)jarg2; + result = (switch_status_t)switch_core_get_stacksizes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_gen_encoded_silence(void * jarg1, void * jarg2, void * jarg3) { + unsigned char *arg1 = (unsigned char *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + + arg1 = (unsigned char *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg3 = *argp3; + switch_core_gen_encoded_silence(arg1,(switch_codec_implementation const *)arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_dbtype() { + int jresult ; + switch_cache_db_handle_type_t result; + + result = (switch_cache_db_handle_type_t)switch_core_dbtype(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sql_exec(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + switch_core_sql_exec((char const *)arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_recovery_recover(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_core_recovery_recover((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_untrack(void * jarg1, int jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + switch_core_recovery_untrack(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_track(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_recovery_track(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_flush(char * jarg1, char * jarg2) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + switch_core_recovery_flush((char const *)arg1,(char const *)arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_pause(void * jarg1, int jarg2) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + switch_sql_queue_manager_pause(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_resume(void * jarg1) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + switch_sql_queue_manager_resume(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_size(void * jarg1, unsigned long jarg2) { + int jresult ; + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + uint32_t arg2 ; + int result; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (int)switch_sql_queue_manager_size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_push_confirm(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_sql_queue_manager_push_confirm(arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_push(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_sql_queue_manager_push(arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_destroy(void * jarg1) { + int jresult ; + switch_sql_queue_manager_t **arg1 = (switch_sql_queue_manager_t **) 0 ; + switch_status_t result; + + arg1 = (switch_sql_queue_manager_t **)jarg1; + result = (switch_status_t)switch_sql_queue_manager_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_init_name(char * jarg1, void * jarg2, unsigned long jarg3, char * jarg4, unsigned long jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_sql_queue_manager_t **arg2 = (switch_sql_queue_manager_t **) 0 ; + uint32_t arg3 ; + char *arg4 = (char *) 0 ; + uint32_t arg5 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_sql_queue_manager_t **)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (char *)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + result = (switch_status_t)switch_sql_queue_manager_init_name((char const *)arg1,arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_start(void * jarg1) { + int jresult ; + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + switch_status_t result; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + result = (switch_status_t)switch_sql_queue_manager_start(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_stop(void * jarg1) { + int jresult ; + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + switch_status_t result; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + result = (switch_status_t)switch_sql_queue_manager_stop(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + char **arg5 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_event_callback_func_t)jarg3; + arg4 = (void *)jarg4; + arg5 = (char **)jarg5; + result = (switch_status_t)switch_cache_db_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_callback_func_t)jarg3; + arg4 = (void *)jarg4; + switch_sql_queue_manager_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; + switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ; + void *arg5 = (void *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_callback_func_t)jarg3; + arg4 = (switch_core_db_err_callback_func_t)jarg4; + arg5 = (void *)jarg5; + switch_sql_queue_manager_execute_sql_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_event_callback_func_t)jarg3; + arg4 = (void *)jarg4; + switch_sql_queue_manager_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_event_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; + switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ; + void *arg5 = (void *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_event_callback_func_t)jarg3; + arg4 = (switch_core_db_err_callback_func_t)jarg4; + arg5 = (void *)jarg5; + switch_sql_queue_manager_execute_sql_event_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fork() { + void * jresult ; + pid_t result; + + result = switch_fork(); + jresult = new pid_t((const pid_t &)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_gen_certs(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_core_gen_certs((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_cert_gen_fingerprint(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + dtls_fingerprint_t *arg2 = (dtls_fingerprint_t *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (dtls_fingerprint_t *)jarg2; + result = (int)switch_core_cert_gen_fingerprint((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_cert_expand_fingerprint(void * jarg1, char * jarg2) { + int jresult ; + dtls_fingerprint_t *arg1 = (dtls_fingerprint_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (dtls_fingerprint_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_core_cert_expand_fingerprint(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_cert_verify(void * jarg1) { + int jresult ; + dtls_fingerprint_t *arg1 = (dtls_fingerprint_t *) 0 ; + int result; + + arg1 = (dtls_fingerprint_t *)jarg1; + result = (int)switch_core_cert_verify(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_refresh_video(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_core_session_refresh_video(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_system_fork(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_stream_handle_t *arg2 = (switch_stream_handle_t *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (switch_stream_handle_t *)jarg2; + result = (int)switch_stream_system_fork((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ice_direction(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_call_direction_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_call_direction_t)switch_ice_direction(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_debug_pool(void * jarg1) { + switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; + + arg1 = (switch_stream_handle_t *)jarg1; + switch_core_session_debug_pool(arg1); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_major() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_major(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_minor() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_minor(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_micro() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_micro(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_revision(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision_human() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_revision_human(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_full(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full_human() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_full_human(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_module_name_set(void * jarg1, char * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->module_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->module_name, (const char *)arg2); + } else { + arg1->module_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_loadable_module_interface_module_name_get(void * jarg1) { + char * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (char *) ((arg1)->module_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_endpoint_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_endpoint_interface_t *arg2 = (switch_endpoint_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_endpoint_interface_t *)jarg2; + if (arg1) (arg1)->endpoint_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_endpoint_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_endpoint_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_endpoint_interface_t *) ((arg1)->endpoint_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_timer_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_timer_interface_t *arg2 = (switch_timer_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_timer_interface_t *)jarg2; + if (arg1) (arg1)->timer_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_timer_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_timer_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_timer_interface_t *) ((arg1)->timer_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_dialplan_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_dialplan_interface_t *arg2 = (switch_dialplan_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_dialplan_interface_t *)jarg2; + if (arg1) (arg1)->dialplan_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_dialplan_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_dialplan_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_dialplan_interface_t *) ((arg1)->dialplan_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_codec_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_codec_interface_t *)jarg2; + if (arg1) (arg1)->codec_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_codec_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_codec_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_codec_interface_t *) ((arg1)->codec_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_application_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_application_interface_t *arg2 = (switch_application_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_application_interface_t *)jarg2; + if (arg1) (arg1)->application_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_application_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_application_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_application_interface_t *) ((arg1)->application_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_application_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_chat_application_interface_t *arg2 = (switch_chat_application_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_chat_application_interface_t *)jarg2; + if (arg1) (arg1)->chat_application_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_application_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_chat_application_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_chat_application_interface_t *) ((arg1)->chat_application_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_api_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_api_interface_t *arg2 = (switch_api_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_api_interface_t *)jarg2; + if (arg1) (arg1)->api_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_api_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_api_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_api_interface_t *) ((arg1)->api_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_json_api_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_json_api_interface_t *arg2 = (switch_json_api_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_json_api_interface_t *)jarg2; + if (arg1) (arg1)->json_api_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_json_api_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_json_api_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_json_api_interface_t *) ((arg1)->json_api_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_file_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_file_interface_t *arg2 = (switch_file_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_file_interface_t *)jarg2; + if (arg1) (arg1)->file_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_file_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_file_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_file_interface_t *) ((arg1)->file_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_speech_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_speech_interface_t *arg2 = (switch_speech_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_speech_interface_t *)jarg2; + if (arg1) (arg1)->speech_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_speech_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_speech_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_speech_interface_t *) ((arg1)->speech_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_directory_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_directory_interface_t *arg2 = (switch_directory_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_directory_interface_t *)jarg2; + if (arg1) (arg1)->directory_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_directory_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_directory_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_directory_interface_t *) ((arg1)->directory_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_chat_interface_t *arg2 = (switch_chat_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_chat_interface_t *)jarg2; + if (arg1) (arg1)->chat_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_chat_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_chat_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_chat_interface_t *) ((arg1)->chat_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_say_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_say_interface_t *arg2 = (switch_say_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_say_interface_t *)jarg2; + if (arg1) (arg1)->say_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_say_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_say_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_say_interface_t *) ((arg1)->say_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_asr_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_asr_interface_t *arg2 = (switch_asr_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_asr_interface_t *)jarg2; + if (arg1) (arg1)->asr_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_asr_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_asr_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_asr_interface_t *) ((arg1)->asr_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_management_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_management_interface_t *arg2 = (switch_management_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_management_interface_t *)jarg2; + if (arg1) (arg1)->management_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_management_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_management_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_management_interface_t *) ((arg1)->management_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_limit_interface_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_limit_interface_t *arg2 = (switch_limit_interface_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_limit_interface_t *)jarg2; + if (arg1) (arg1)->limit_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_limit_interface_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_limit_interface_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_limit_interface_t *) ((arg1)->limit_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_refs_set(void * jarg1, int jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + int arg2 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_interface_refs_get(void * jarg1) { + int jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + int result; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_pool_set(void * jarg1, void * jarg2) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_interface_pool_get(void * jarg1) { + void * jresult ; + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_loadable_module_interface() { + void * jresult ; + switch_loadable_module_interface *result = 0 ; + + result = (switch_loadable_module_interface *)new switch_loadable_module_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_loadable_module_interface(void * jarg1) { + switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; + + arg1 = (switch_loadable_module_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_init(int jarg1) { + int jresult ; + switch_bool_t arg1 ; + switch_status_t result; + + arg1 = (switch_bool_t)jarg1; + result = (switch_status_t)switch_loadable_module_init(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_shutdown() { + switch_loadable_module_shutdown(); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_endpoint_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_endpoint_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_endpoint_interface_t *)switch_loadable_module_get_endpoint_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_codec_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_codec_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_codec_interface_t *)switch_loadable_module_get_codec_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { + char * jresult ; + char *arg1 = (char *) 0 ; + uint32_t *arg2 = (uint32_t *) 0 ; + uint32_t *arg3 = (uint32_t *) 0 ; + uint32_t *arg4 = (uint32_t *) 0 ; + uint32_t *arg5 = (uint32_t *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (uint32_t *)jarg2; + arg3 = (uint32_t *)jarg3; + arg4 = (uint32_t *)jarg4; + arg5 = (uint32_t *)jarg5; + result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_dialplan_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_dialplan_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_dialplan_interface_t *)switch_loadable_module_get_dialplan_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_enumerate_available(char * jarg1, void * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_modulename_callback_func_t arg2 = (switch_modulename_callback_func_t) 0 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_modulename_callback_func_t)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_loadable_module_enumerate_available((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_enumerate_loaded(void * jarg1, void * jarg2) { + int jresult ; + switch_modulename_callback_func_t arg1 = (switch_modulename_callback_func_t) 0 ; + void *arg2 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_modulename_callback_func_t)jarg1; + arg2 = (void *)jarg2; + result = (switch_status_t)switch_loadable_module_enumerate_loaded(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_build_dynamic(char * jarg1, void * jarg2, void * jarg3, void * jarg4, int jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_module_load_t arg2 = (switch_module_load_t) 0 ; + switch_module_runtime_t arg3 = (switch_module_runtime_t) 0 ; + switch_module_shutdown_t arg4 = (switch_module_shutdown_t) 0 ; + switch_bool_t arg5 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_module_load_t)jarg2; + arg3 = (switch_module_runtime_t)jarg3; + arg4 = (switch_module_shutdown_t)jarg4; + arg5 = (switch_bool_t)jarg5; + result = (switch_status_t)switch_loadable_module_build_dynamic(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_timer_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_timer_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_timer_interface_t *)switch_loadable_module_get_timer_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_application_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_application_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_application_interface_t *)switch_loadable_module_get_application_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_chat_application_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_chat_application_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_chat_application_interface_t *)switch_loadable_module_get_chat_application_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_execute_chat_app(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_core_execute_chat_app(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_api_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_api_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_api_interface_t *)switch_loadable_module_get_api_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_json_api_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_json_api_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_json_api_interface_t *)switch_loadable_module_get_json_api_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_file_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_file_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_file_interface_t *)switch_loadable_module_get_file_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_speech_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_speech_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_speech_interface_t *)switch_loadable_module_get_speech_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_asr_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_asr_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_asr_interface_t *)switch_loadable_module_get_asr_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_directory_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_directory_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_directory_interface_t *)switch_loadable_module_get_directory_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_chat_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_chat_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_chat_interface_t *)switch_loadable_module_get_chat_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_say_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_say_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_say_interface_t *)switch_loadable_module_get_say_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_management_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_management_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_management_interface_t *)switch_loadable_module_get_management_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_limit_interface(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_limit_interface_t *result = 0 ; + + arg1 = (char *)jarg1; + result = (switch_limit_interface_t *)switch_loadable_module_get_limit_interface((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs(void * jarg1, int jarg2) { + int jresult ; + switch_codec_implementation_t **arg1 = (switch_codec_implementation_t **) 0 ; + int arg2 ; + int result; + + arg1 = (switch_codec_implementation_t **)jarg1; + arg2 = (int)jarg2; + result = (int)switch_loadable_module_get_codecs((switch_codec_implementation const **)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs_sorted(void * jarg1, int jarg2, void * jarg3, int jarg4) { + int jresult ; + switch_codec_implementation_t **arg1 = (switch_codec_implementation_t **) 0 ; + int arg2 ; + char **arg3 = (char **) 0 ; + int arg4 ; + int result; + + arg1 = (switch_codec_implementation_t **)jarg1; + arg2 = (int)jarg2; + arg3 = (char **)jarg3; + arg4 = (int)jarg4; + result = (int)switch_loadable_module_get_codecs_sorted((switch_codec_implementation const **)arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_api_execute(char * jarg1, char * jarg2, void * jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_session_t *arg3 = (switch_core_session_t *) 0 ; + switch_stream_handle_t *arg4 = (switch_stream_handle_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_session_t *)jarg3; + arg4 = (switch_stream_handle_t *)jarg4; + result = (switch_status_t)switch_api_execute((char const *)arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_json_api_execute(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + cJSON *arg1 = (cJSON *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + cJSON **arg3 = (cJSON **) 0 ; + switch_status_t result; + + arg1 = (cJSON *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (cJSON **)jarg3; + result = (switch_status_t)switch_json_api_execute(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_load_module(char * jarg1, char * jarg2, int jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + char **arg4 = (char **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (char **)jarg4; + result = (switch_status_t)switch_loadable_module_load_module(arg1,arg2,arg3,(char const **)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_exists(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + result = (switch_status_t)switch_loadable_module_exists((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_unload_module(char * jarg1, char * jarg2, int jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + char **arg4 = (char **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (char **)jarg4; + result = (switch_status_t)switch_loadable_module_unload_module(arg1,arg2,arg3,(char const **)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_codec_next_id() { + unsigned long jresult ; + uint32_t result; + + result = (uint32_t)switch_core_codec_next_id(); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_check_interval(unsigned long jarg1, unsigned long jarg2) { + int jresult ; + uint32_t arg1 ; + uint32_t arg2 ; + int result; + + arg1 = (uint32_t)jarg1; + arg2 = (uint32_t)jarg2; + result = (int)switch_check_interval(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_codec_add_implementation(void * jarg1, void * jarg2, int jarg3, unsigned char jarg4, char * jarg5, char * jarg6, unsigned long jarg7, unsigned long jarg8, int jarg9, int jarg10, unsigned long jarg11, unsigned long jarg12, unsigned long jarg13, unsigned char jarg14, int jarg15, void * jarg16, void * jarg17, void * jarg18, void * jarg19) { + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; + switch_codec_type_t arg3 ; + switch_payload_t arg4 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + uint32_t arg7 ; + uint32_t arg8 ; + int arg9 ; + int arg10 ; + uint32_t arg11 ; + uint32_t arg12 ; + uint32_t arg13 ; + uint8_t arg14 ; + int arg15 ; + switch_core_codec_init_func_t arg16 = (switch_core_codec_init_func_t) 0 ; + switch_core_codec_encode_func_t arg17 = (switch_core_codec_encode_func_t) 0 ; + switch_core_codec_decode_func_t arg18 = (switch_core_codec_decode_func_t) 0 ; + switch_core_codec_destroy_func_t arg19 = (switch_core_codec_destroy_func_t) 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_codec_interface_t *)jarg2; + arg3 = (switch_codec_type_t)jarg3; + arg4 = (switch_payload_t)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (uint32_t)jarg7; + arg8 = (uint32_t)jarg8; + arg9 = (int)jarg9; + arg10 = (int)jarg10; + arg11 = (uint32_t)jarg11; + arg12 = (uint32_t)jarg12; + arg13 = (uint32_t)jarg13; + arg14 = (uint8_t)jarg14; + arg15 = (int)jarg15; + arg16 = (switch_core_codec_init_func_t)jarg16; + arg17 = (switch_core_codec_encode_func_t)jarg17; + arg18 = (switch_core_codec_decode_func_t)jarg18; + arg19 = (switch_core_codec_destroy_func_t)jarg19; + switch_core_codec_add_implementation(arg1,arg2,arg3,arg4,(char const *)arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_ready(void * jarg1) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_codec_t *)jarg1; + result = (switch_bool_t)switch_core_codec_ready(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_get_secondary_recover_callback(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_core_recover_callback_t result; + + arg1 = (char *)jarg1; + result = (switch_core_recover_callback_t)switch_core_get_secondary_recover_callback((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_register_secondary_recover_callback(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_core_recover_callback_t arg2 = (switch_core_recover_callback_t) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_core_recover_callback_t)jarg2; + result = (switch_status_t)switch_core_register_secondary_recover_callback((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_unregister_secondary_recover_callback(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + switch_core_unregister_secondary_recover_callback((char const *)arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CMD_CHUNK_LEN_get() { + int jresult ; + int result; + + result = (int)(1024); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_loop() { + switch_console_loop(); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_stream_raw_write(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; + uint8_t *arg2 = (uint8_t *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_status_t result; + + arg1 = (switch_stream_handle_t *)jarg1; + arg2 = (uint8_t *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_status_t)switch_console_stream_raw_write(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_write_file_contents(void * jarg1, char * jarg2) { + int jresult ; + switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_stream_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_stream_write_file_contents(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_init(void * jarg1) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + result = (switch_status_t)switch_console_init(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_shutdown() { + int jresult ; + switch_status_t result; + + result = (switch_status_t)switch_console_shutdown(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_add_complete_func(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_console_complete_callback_t arg2 = (switch_console_complete_callback_t) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_console_complete_callback_t)jarg2; + result = (switch_status_t)switch_console_add_complete_func((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_del_complete_func(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + result = (switch_status_t)switch_console_del_complete_func((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_run_complete_func(char * jarg1, char * jarg2, char * jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_console_callback_match_t **arg4 = (switch_console_callback_match_t **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_console_callback_match_t **)jarg4; + result = (switch_status_t)switch_console_run_complete_func((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_push_match_unique(void * jarg1, char * jarg2) { + switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_console_callback_match_t **)jarg1; + arg2 = (char *)jarg2; + switch_console_push_match_unique(arg1,(char const *)arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_push_match(void * jarg1, char * jarg2) { + switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_console_callback_match_t **)jarg1; + arg2 = (char *)jarg2; + switch_console_push_match(arg1,(char const *)arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_free_matches(void * jarg1) { + switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; + + arg1 = (switch_console_callback_match_t **)jarg1; + switch_console_free_matches(arg1); +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_console_complete(char * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + unsigned char jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + FILE *arg3 = (FILE *) 0 ; + switch_stream_handle_t *arg4 = (switch_stream_handle_t *) 0 ; + switch_xml_t arg5 = (switch_xml_t) 0 ; + unsigned char result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (FILE *)jarg3; + arg4 = (switch_stream_handle_t *)jarg4; + arg5 = (switch_xml_t)jarg5; + result = (unsigned char)switch_console_complete((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_sort_matches(void * jarg1) { + switch_console_callback_match_t *arg1 = (switch_console_callback_match_t *) 0 ; + + arg1 = (switch_console_callback_match_t *)jarg1; + switch_console_sort_matches(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_save_history() { + switch_console_save_history(); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_console_expand_alias(char * jarg1, char * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_console_expand_alias(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_execute(char * jarg1, int jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + switch_stream_handle_t *arg3 = (switch_stream_handle_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + arg3 = (switch_stream_handle_t *)jarg3; + result = (switch_status_t)switch_console_execute(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_URL_UNSAFE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("\r\n \"#%&+:;<=>?@[\\]^`{ + | +}"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_toupper(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_toupper(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_tolower(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_tolower(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_toupper_max(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + switch_toupper_max(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_tolower_max(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + switch_tolower_max(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_old_switch_toupper(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)old_switch_toupper(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_old_switch_tolower(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)old_switch_tolower(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isalnum(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isalnum(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isalpha(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isalpha(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_iscntrl(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_iscntrl(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isdigit(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isdigit(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isgraph(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isgraph(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_islower(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_islower(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isprint(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isprint(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ispunct(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_ispunct(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isspace(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isspace(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isupper(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isupper(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_isxdigit(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_isxdigit(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ip_t_v4_set(void * jarg1, unsigned long jarg2) { + ip_t *arg1 = (ip_t *) 0 ; + uint32_t arg2 ; + + arg1 = (ip_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->v4 = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_ip_t_v4_get(void * jarg1) { + unsigned long jresult ; + ip_t *arg1 = (ip_t *) 0 ; + uint32_t result; + + arg1 = (ip_t *)jarg1; + result = (uint32_t) ((arg1)->v4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ip_t_v6_set(void * jarg1, void * jarg2) { + ip_t *arg1 = (ip_t *) 0 ; + in6_addr arg2 ; + in6_addr *argp2 ; + + arg1 = (ip_t *)jarg1; + argp2 = (in6_addr *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null in6_addr", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->v6 = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ip_t_v6_get(void * jarg1) { + void * jresult ; + ip_t *arg1 = (ip_t *) 0 ; + in6_addr result; + + arg1 = (ip_t *)jarg1; + result = ((arg1)->v6); + jresult = new in6_addr((const in6_addr &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ip_t() { + void * jresult ; + ip_t *result = 0 ; + + result = (ip_t *)new ip_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ip_t(void * jarg1) { + ip_t *arg1 = (ip_t *) 0 ; + + arg1 = (ip_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_testv6_subnet(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + ip_t arg1 ; + ip_t arg2 ; + ip_t arg3 ; + ip_t *argp1 ; + ip_t *argp2 ; + ip_t *argp3 ; + switch_bool_t result; + + argp1 = (ip_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); + return 0; + } + arg1 = *argp1; + argp2 = (ip_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); + return 0; + } + arg2 = *argp2; + argp3 = (ip_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_bool_t)switch_testv6_subnet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_print_host(void * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + char *result = 0 ; + + arg1 = (switch_sockaddr_t *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (char *)switch_print_host(arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SMAX_get() { + int jresult ; + int result; + + result = (int)(32767); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SMIN_get() { + int jresult ; + int result; + + result = (int)(-32768); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp__zstr(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)_zstr((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_moh(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_is_moh((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strchr_strict(char * jarg1, char jarg2, char * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char arg2 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char)jarg2; + arg3 = (char *)jarg3; + result = (char *)switch_strchr_strict((char const *)arg1,arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_has_escaped_data(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_string_has_escaped_data((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_b64_encode(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + unsigned char *arg1 = (unsigned char *) 0 ; + switch_size_t arg2 ; + unsigned char *arg3 = (unsigned char *) 0 ; + switch_size_t arg4 ; + switch_size_t *argp2 ; + switch_size_t *argp4 ; + switch_status_t result; + + arg1 = (unsigned char *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (unsigned char *)jarg3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + result = (switch_status_t)switch_b64_encode(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_b64_decode(char * jarg1, char * jarg2, void * jarg3) { + void * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_b64_decode(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_amp_encode(char * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (char *)switch_amp_encode(arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_digit_string(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_is_digit_string((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_switch_itodtmf(char jarg1) { + char jresult ; + char arg1 ; + char result; + + arg1 = (char)jarg1; + result = (char)switch_itodtmf(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmftoi(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_dtmftoi(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_known_bitrate(unsigned char jarg1) { + unsigned long jresult ; + switch_payload_t arg1 ; + uint32_t result; + + arg1 = (switch_payload_t)jarg1; + result = (uint32_t)switch_known_bitrate(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fd_read_line(int jarg1, char * jarg2, void * jarg3) { + void * jresult ; + int arg1 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (int)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_fd_read_line(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fd_read_dline(int jarg1, void * jarg2, void * jarg3) { + void * jresult ; + int arg1 ; + char **arg2 = (char **) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_size_t result; + + arg1 = (int)jarg1; + arg2 = (char **)jarg2; + arg3 = (switch_size_t *)jarg3; + result = switch_fd_read_dline(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fp_read_dline(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + FILE *arg1 = (FILE *) 0 ; + char **arg2 = (char **) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_size_t result; + + arg1 = (FILE *)jarg1; + arg2 = (char **)jarg2; + arg3 = (switch_size_t *)jarg3; + result = switch_fp_read_dline(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_alloc(void * jarg1, void * jarg2) { + int jresult ; + switch_frame_t **arg1 = (switch_frame_t **) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + switch_status_t result; + + arg1 = (switch_frame_t **)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + result = (switch_status_t)switch_frame_alloc(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_dup(void * jarg1, void * jarg2) { + int jresult ; + switch_frame_t *arg1 = (switch_frame_t *) 0 ; + switch_frame_t **arg2 = (switch_frame_t **) 0 ; + switch_status_t result; + + arg1 = (switch_frame_t *)jarg1; + arg2 = (switch_frame_t **)jarg2; + result = (switch_status_t)switch_frame_dup(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_free(void * jarg1) { + int jresult ; + switch_frame_t **arg1 = (switch_frame_t **) 0 ; + switch_status_t result; + + arg1 = (switch_frame_t **)jarg1; + result = (switch_status_t)switch_frame_free(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_number(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_is_number((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_leading_number(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_is_leading_number((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_find_parameter(char * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_memory_pool_t *)jarg3; + result = (char *)switch_find_parameter((char const *)arg1,(char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_true(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_true((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_true_byte(char * jarg1) { + unsigned char jresult ; + char *arg1 = (char *) 0 ; + switch_byte_t result; + + arg1 = (char *)jarg1; + result = (switch_byte_t)switch_true_byte((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_false(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_false((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_resolve_host(char * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (size_t)jarg3; + result = (switch_status_t)switch_resolve_host((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_find_local_ip(char * jarg1, int jarg2, void * jarg3, int jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int *arg3 = (int *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + arg3 = (int *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_find_local_ip(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_find_interface_ip(char * jarg1, int jarg2, void * jarg3, char * jarg4, int jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int *arg3 = (int *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + arg3 = (int *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_status_t)switch_find_interface_ip(arg1,arg2,arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_get_addr(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_size_t arg2 ; + sockaddr *arg3 = (sockaddr *) 0 ; + socklen_t arg4 ; + switch_size_t *argp2 ; + socklen_t *argp4 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (sockaddr *)jarg3; + argp4 = (socklen_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null socklen_t", 0); + return 0; + } + arg4 = *argp4; + result = (char *)get_addr(arg1,arg2,arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_get_addr6(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_size_t arg2 ; + sockaddr_in6 *arg3 = (sockaddr_in6 *) 0 ; + socklen_t arg4 ; + switch_size_t *argp2 ; + socklen_t *argp4 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (sockaddr_in6 *)jarg3; + argp4 = (socklen_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null socklen_t", 0); + return 0; + } + arg4 = *argp4; + result = (char *)get_addr6(arg1,arg2,arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_get_addr_int(void * jarg1) { + int jresult ; + switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; + int result; + + arg1 = (switch_sockaddr_t *)jarg1; + result = (int)get_addr_int(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cmp_addr(void * jarg1, void * jarg2) { + int jresult ; + switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; + switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; + int result; + + arg1 = (switch_sockaddr_t *)jarg1; + arg2 = (switch_sockaddr_t *)jarg2; + result = (int)switch_cmp_addr(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_get_port(void * jarg1) { + unsigned short jresult ; + sockaddr *arg1 = (sockaddr *) 0 ; + unsigned short result; + + arg1 = (sockaddr *)jarg1; + result = (unsigned short)get_port(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_build_uri(char * jarg1, void * jarg2, char * jarg3, char * jarg4, void * jarg5, int jarg6) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_size_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_sockaddr_t *arg5 = (switch_sockaddr_t *) 0 ; + int arg6 ; + switch_size_t *argp2 ; + int result; + + arg1 = (char *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_sockaddr_t *)jarg5; + arg6 = (int)jarg6; + result = (int)switch_build_uri(arg1,arg2,(char const *)arg3,(char const *)arg4,(switch_sockaddr_t const *)arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_errno_is_break(int jarg1) { + int jresult ; + int arg1 ; + int result; + + arg1 = (int)jarg1; + result = (int)switch_errno_is_break(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_priority_name(int jarg1) { + char * jresult ; + switch_priority_t arg1 ; + char *result = 0 ; + + arg1 = (switch_priority_t)jarg1; + result = (char *)switch_priority_name(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_switch_rfc2833_to_char(int jarg1) { + char jresult ; + int arg1 ; + char result; + + arg1 = (int)jarg1; + result = (char)switch_rfc2833_to_char(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_char_to_rfc2833(char jarg1) { + unsigned char jresult ; + char arg1 ; + unsigned char result; + + arg1 = (char)jarg1; + result = (unsigned char)switch_char_to_rfc2833(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_sanitize_number(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_sanitize_number(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_var_check(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t arg2 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_bool_t)switch_string_var_check(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_var_check_const(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_string_var_check_const((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_var_clean_string(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_var_clean_string(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_clean_string(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_clean_string(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_clean_name_string(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_clean_name_string(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_safe_atoi(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (int)switch_safe_atoi((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_safe_strdup(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_safe_strdup((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_lc_strdup(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_lc_strdup((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_uc_strdup(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_uc_strdup((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_strstr(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_bool_t)switch_strstr(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_str_time(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_time_t result; + + arg1 = (char *)jarg1; + result = switch_str_time((char const *)arg1); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_separate_string(char * jarg1, char jarg2, void * jarg3, unsigned int jarg4) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + char arg2 ; + char **arg3 = (char **) 0 ; + unsigned int arg4 ; + unsigned int result; + + arg1 = (char *)jarg1; + arg2 = (char)jarg2; + arg3 = (char **)jarg3; + arg4 = (unsigned int)jarg4; + result = (unsigned int)switch_separate_string(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_separate_string_string(char * jarg1, char * jarg2, void * jarg3, unsigned int jarg4) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char **arg3 = (char **) 0 ; + unsigned int arg4 ; + unsigned int result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char **)jarg3; + arg4 = (unsigned int)jarg4; + result = (unsigned int)switch_separate_string_string(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_spaces(char * jarg1, int jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t arg2 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (char *)switch_strip_spaces(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_whitespace(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_strip_whitespace((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_commas(char * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (char *)switch_strip_commas(arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_nonnumerics(char * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (char *)switch_strip_nonnumerics(arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_separate_paren_args(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_separate_paren_args(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_stristr(char * jarg1, char * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_stristr((char const *)arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_lan_addr(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_is_lan_addr((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_replace_char(char * jarg1, char jarg2, char jarg3, int jarg4) { + char * jresult ; + char *arg1 = (char *) 0 ; + char arg2 ; + char arg3 ; + switch_bool_t arg4 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char)jarg2; + arg3 = (char)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (char *)switch_replace_char(arg1,arg2,arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ast2regex(char * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (size_t)jarg3; + result = (switch_bool_t)switch_ast2regex((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_escape_char(void * jarg1, char * jarg2, char * jarg3, char jarg4) { + char * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char arg4 ; + char *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char)jarg4; + result = (char *)switch_escape_char(arg1,arg2,(char const *)arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_escape_string(char * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (char *)switch_escape_string((char const *)arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_escape_string_pool(char * jarg1, void * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + result = (char *)switch_escape_string_pool((char const *)arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_socket_waitfor(void * jarg1, int jarg2) { + int jresult ; + switch_pollfd_t *arg1 = (switch_pollfd_t *) 0 ; + int arg2 ; + int result; + + arg1 = (switch_pollfd_t *)jarg1; + arg2 = (int)jarg2; + result = (int)switch_socket_waitfor(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cut_path(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_cut_path((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_string_replace(char * jarg1, char * jarg2, char * jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (char *)switch_string_replace((char const *)arg1,(char const *)arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_string_match(char * jarg1, unsigned long jarg2, char * jarg3, unsigned long jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + size_t arg2 ; + char *arg3 = (char *) 0 ; + size_t arg4 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (size_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (size_t)jarg4; + result = (switch_status_t)switch_string_match((char const *)arg1,arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_strcasecmp_any(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + void *arg2 = 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_strcasecmp_any((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_util_quote_shell_arg((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg_pool(char * jarg1, void * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + result = (char *)switch_util_quote_shell_arg_pool((char const *)arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_needs_url_encode(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_needs_url_encode((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_encode(char * jarg1, char * jarg2, unsigned long jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (size_t)jarg3; + result = (char *)switch_url_encode((char const *)arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_decode(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_url_decode(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_simple_email(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + result = (switch_bool_t)switch_simple_email((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_find_end_paren(char * jarg1, char jarg2, char jarg3) { + char * jresult ; + char *arg1 = (char *) 0 ; + char arg2 ; + char arg3 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char)jarg2; + arg3 = (char)jarg3; + result = (char *)switch_find_end_paren((char const *)arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_separate_file_params(char * jarg1, void * jarg2, void * jarg3) { + char *arg1 = (char *) 0 ; + char **arg2 = (char **) 0 ; + char **arg3 = (char **) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char **)jarg2; + arg3 = (char **)jarg3; + switch_separate_file_params((char const *)arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_file_path(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_is_file_path((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_parse_cidr(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + ip_t *arg2 = (ip_t *) 0 ; + ip_t *arg3 = (ip_t *) 0 ; + uint32_t *arg4 = (uint32_t *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (ip_t *)jarg2; + arg3 = (ip_t *)jarg3; + arg4 = (uint32_t *)jarg4; + result = (int)switch_parse_cidr((char const *)arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_create(void * jarg1, char * jarg2, int jarg3, void * jarg4) { + int jresult ; + switch_network_list_t **arg1 = (switch_network_list_t **) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + switch_memory_pool_t *arg4 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_network_list_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (switch_memory_pool_t *)jarg4; + result = (switch_status_t)switch_network_list_create(arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_add_cidr_token(void * jarg1, char * jarg2, int jarg3, char * jarg4) { + int jresult ; + switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_network_list_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_network_list_add_cidr_token(arg1,(char const *)arg2,arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_add_host_mask(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_network_list_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_network_list_add_host_mask(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip_token(void * jarg1, unsigned long jarg2, void * jarg3) { + int jresult ; + switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; + uint32_t arg2 ; + char **arg3 = (char **) 0 ; + switch_bool_t result; + + arg1 = (switch_network_list_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (char **)jarg3; + result = (switch_bool_t)switch_network_list_validate_ip_token(arg1,arg2,(char const **)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip6_token(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_network_list_t *arg1 = (switch_network_list_t *) 0 ; + ip_t arg2 ; + char **arg3 = (char **) 0 ; + ip_t *argp2 ; + switch_bool_t result; + + arg1 = (switch_network_list_t *)jarg1; + argp2 = (ip_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0); + return 0; + } + arg2 = *argp2; + arg3 = (char **)jarg3; + result = (switch_bool_t)switch_network_list_validate_ip6_token(arg1,arg2,(char const **)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_dow_int2str(int jarg1) { + char * jresult ; + int arg1 ; + char *result = 0 ; + + arg1 = (int)jarg1; + result = (char *)switch_dow_int2str(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_dow_str2int(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + result = (int)switch_dow_str2int((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_dow_cmp(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (switch_bool_t)switch_dow_cmp((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_number_cmp(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (int)switch_number_cmp((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_tod_cmp(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (int)switch_tod_cmp((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_fulldate_cmp(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_time_t *arg2 = (switch_time_t *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (switch_time_t *)jarg2; + result = (int)switch_fulldate_cmp((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_split_date(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + int *arg4 = (int *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int *)jarg3; + arg4 = (int *)jarg4; + switch_split_date((char const *)arg1,arg2,arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_split_time(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + int *arg4 = (int *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int *)jarg3; + arg4 = (int *)jarg4; + switch_split_time((char const *)arg1,arg2,arg3,arg4); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_split_user_domain(char * jarg1, void * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char **arg2 = (char **) 0 ; + char **arg3 = (char **) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (char **)jarg2; + arg3 = (char **)jarg3; + result = (int)switch_split_user_domain(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_uuid_str(char * jarg1, void * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + result = (char *)switch_uuid_str(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_format_number(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_format_number((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_atoui(char * jarg1) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + unsigned int result; + + arg1 = (char *)jarg1; + result = (unsigned int)switch_atoui((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_atoul(char * jarg1) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + unsigned long result; + + arg1 = (char *)jarg1; + result = (unsigned long)switch_atoul((char const *)arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strerror_r(int jarg1, char * jarg2, void * jarg3) { + char * jresult ; + int arg1 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + char *result = 0 ; + + arg1 = (int)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (char *)switch_strerror_r(arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_wait_sock(int jarg1, unsigned long jarg2, int jarg3) { + int jresult ; + switch_os_socket_t arg1 ; + uint32_t arg2 ; + switch_poll_t arg3 ; + int result; + + arg1 = (switch_os_socket_t)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (switch_poll_t)jarg3; + result = (int)switch_wait_sock(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_wait_socklist(void * jarg1, unsigned long jarg2, unsigned long jarg3) { + int jresult ; + switch_waitlist_t *arg1 = (switch_waitlist_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + int result; + + arg1 = (switch_waitlist_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + result = (int)switch_wait_socklist(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_method_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->method = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->method, (const char *)arg2); + } else { + arg1->method = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_method_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->method); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_uri_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->uri = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uri, (const char *)arg2); + } else { + arg1->uri = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_uri_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->uri); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_qs_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->qs = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->qs, (const char *)arg2); + } else { + arg1->qs = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_qs_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->qs); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_host_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->host = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->host, (const char *)arg2); + } else { + arg1->host = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_host_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->host); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_port_set(void * jarg1, unsigned short jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_port_t arg2 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (switch_port_t)jarg2; + if (arg1) (arg1)->port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_http_request_t_port_get(void * jarg1) { + unsigned short jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_port_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = (switch_port_t) ((arg1)->port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_from_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->from = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->from, (const char *)arg2); + } else { + arg1->from = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_from_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->from); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_user_agent_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->user_agent = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->user_agent, (const char *)arg2); + } else { + arg1->user_agent = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_user_agent_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->user_agent); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_referer_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->referer = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->referer, (const char *)arg2); + } else { + arg1->referer = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_referer_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->referer); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_user_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->user = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->user, (const char *)arg2); + } else { + arg1->user = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_user_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->user); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_keepalive_set(void * jarg1, int jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->keepalive = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_request_t_keepalive_get(void * jarg1) { + int jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_bool_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = (switch_bool_t) ((arg1)->keepalive); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_content_type_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->content_type = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->content_type, (const char *)arg2); + } else { + arg1->content_type = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_content_type_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->content_type); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_content_length_set(void * jarg1, void * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_s *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->content_length = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_content_length_get(void * jarg1) { + void * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = ((arg1)->content_length); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_header_set(void * jarg1, void * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_s *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bytes_header = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_header_get(void * jarg1) { + void * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = ((arg1)->bytes_header); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_read_set(void * jarg1, void * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_s *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bytes_read = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_read_get(void * jarg1) { + void * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = ((arg1)->bytes_read); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_buffered_set(void * jarg1, void * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_s *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bytes_buffered = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_buffered_get(void * jarg1) { + void * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = ((arg1)->bytes_buffered); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_headers_set(void * jarg1, void * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (switch_event_t *)jarg2; + if (arg1) (arg1)->headers = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_headers_get(void * jarg1) { + void * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_event_t *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (switch_event_t *) ((arg1)->headers); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_user_data_set(void * jarg1, void * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_user_data_get(void * jarg1) { + void * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + void *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (void *) ((arg1)->user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__buffer_set(void * jarg1, char * jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->_buffer; + if (arg2) { + arg1->_buffer = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->_buffer, (const char *)arg2); + } else { + arg1->_buffer = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t__buffer_get(void * jarg1) { + char * jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_s *)jarg1; + result = (char *) ((arg1)->_buffer); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__destroy_headers_set(void * jarg1, int jarg2) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_http_request_s *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->_destroy_headers = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_request_t__destroy_headers_get(void * jarg1) { + int jresult ; + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + switch_bool_t result; + + arg1 = (switch_http_request_s *)jarg1; + result = (switch_bool_t) ((arg1)->_destroy_headers); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_http_request_t() { + void * jresult ; + switch_http_request_s *result = 0 ; + + result = (switch_http_request_s *)new switch_http_request_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_http_request_t(void * jarg1) { + switch_http_request_s *arg1 = (switch_http_request_s *) 0 ; + + arg1 = (switch_http_request_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_parse_header(char * jarg1, unsigned long jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + uint32_t arg2 ; + switch_http_request_t *arg3 = (switch_http_request_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (switch_http_request_t *)jarg3; + result = (switch_status_t)switch_http_parse_header(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_free_request(void * jarg1) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + + arg1 = (switch_http_request_t *)jarg1; + switch_http_free_request(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_dump_request(void * jarg1) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + + arg1 = (switch_http_request_t *)jarg1; + switch_http_dump_request(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_parse_qs(void * jarg1, char * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_t *)jarg1; + arg2 = (char *)jarg2; + switch_http_parse_qs(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_var_set(void * jarg1, char * jarg2) { + profile_node_s *arg1 = (profile_node_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (profile_node_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->var; + if (arg2) { + arg1->var = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->var, (const char *)arg2); + } else { + arg1->var = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_var_get(void * jarg1) { + char * jresult ; + profile_node_s *arg1 = (profile_node_s *) 0 ; + char *result = 0 ; + + arg1 = (profile_node_s *)jarg1; + result = (char *) ((arg1)->var); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_val_set(void * jarg1, char * jarg2) { + profile_node_s *arg1 = (profile_node_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (profile_node_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->val; + if (arg2) { + arg1->val = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->val, (const char *)arg2); + } else { + arg1->val = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_val_get(void * jarg1) { + char * jresult ; + profile_node_s *arg1 = (profile_node_s *) 0 ; + char *result = 0 ; + + arg1 = (profile_node_s *)jarg1; + result = (char *) ((arg1)->val); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_next_set(void * jarg1, void * jarg2) { + profile_node_s *arg1 = (profile_node_s *) 0 ; + profile_node_s *arg2 = (profile_node_s *) 0 ; + + arg1 = (profile_node_s *)jarg1; + arg2 = (profile_node_s *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_profile_node_t_next_get(void * jarg1) { + void * jresult ; + profile_node_s *arg1 = (profile_node_s *) 0 ; + profile_node_s *result = 0 ; + + arg1 = (profile_node_s *)jarg1; + result = (profile_node_s *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_profile_node_t() { + void * jresult ; + profile_node_s *result = 0 ; + + result = (profile_node_s *)new profile_node_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_profile_node_t(void * jarg1) { + profile_node_s *arg1 = (profile_node_s *) 0 ; + + arg1 = (profile_node_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_username_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->username = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->username, (const char *)arg2); + } else { + arg1->username = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_username_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->username); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_dialplan_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->dialplan = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->dialplan, (const char *)arg2); + } else { + arg1->dialplan = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_dialplan_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->dialplan); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_id_name_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->caller_id_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->caller_id_name, (const char *)arg2); + } else { + arg1->caller_id_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_caller_id_name_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->caller_id_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_id_number_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->caller_id_number = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->caller_id_number, (const char *)arg2); + } else { + arg1->caller_id_number = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_caller_id_number_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->caller_id_number); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_name_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->orig_caller_id_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->orig_caller_id_name, (const char *)arg2); + } else { + arg1->orig_caller_id_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_name_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->orig_caller_id_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_number_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->orig_caller_id_number = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->orig_caller_id_number, (const char *)arg2); + } else { + arg1->orig_caller_id_number = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_orig_caller_id_number_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->orig_caller_id_number); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_callee_id_name_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->callee_id_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->callee_id_name, (const char *)arg2); + } else { + arg1->callee_id_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_callee_id_name_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->callee_id_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_callee_id_number_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->callee_id_number = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->callee_id_number, (const char *)arg2); + } else { + arg1->callee_id_number = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_callee_id_number_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->callee_id_number); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_ton_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->caller_ton = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_caller_ton_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->caller_ton); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_numplan_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->caller_numplan = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_caller_numplan_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->caller_numplan); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_network_addr_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->network_addr = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->network_addr, (const char *)arg2); + } else { + arg1->network_addr = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_network_addr_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->network_addr); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_ani_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->ani = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->ani, (const char *)arg2); + } else { + arg1->ani = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_ani_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->ani); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_ani_ton_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->ani_ton = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_ani_ton_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->ani_ton); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_ani_numplan_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->ani_numplan = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_ani_numplan_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->ani_numplan); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_aniii_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->aniii = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->aniii, (const char *)arg2); + } else { + arg1->aniii = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_aniii_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->aniii); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_rdnis_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->rdnis = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->rdnis, (const char *)arg2); + } else { + arg1->rdnis = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_rdnis_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->rdnis); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_rdnis_ton_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->rdnis_ton = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_rdnis_ton_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->rdnis_ton); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_rdnis_numplan_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->rdnis_numplan = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_rdnis_numplan_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->rdnis_numplan); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_destination_number_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->destination_number; + if (arg2) { + arg1->destination_number = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->destination_number, (const char *)arg2); + } else { + arg1->destination_number = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_destination_number_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->destination_number); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_destination_number_ton_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->destination_number_ton = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_destination_number_ton_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->destination_number_ton); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_destination_number_numplan_set(void * jarg1, unsigned char jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->destination_number_numplan = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_caller_profile_destination_number_numplan_get(void * jarg1) { + unsigned char jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + uint8_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (uint8_t) ((arg1)->destination_number_numplan); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_source_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->source = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->source, (const char *)arg2); + } else { + arg1->source = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_source_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->source); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_chan_name_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->chan_name; + if (arg2) { + arg1->chan_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->chan_name, (const char *)arg2); + } else { + arg1->chan_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_chan_name_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->chan_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_uuid_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->uuid; + if (arg2) { + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); + } else { + arg1->uuid = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_uuid_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->uuid); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_context_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->context = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->context, (const char *)arg2); + } else { + arg1->context = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_context_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->context); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_profile_index_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->profile_index = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->profile_index, (const char *)arg2); + } else { + arg1->profile_index = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_profile_index_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->profile_index); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_flags_set(void * jarg1, unsigned long jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile_flag_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_profile_flag_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_caller_profile_flags_get(void * jarg1) { + unsigned long jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile_flag_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_profile_flag_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_originator_caller_profile_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_profile *)jarg2; + if (arg1) (arg1)->originator_caller_profile = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_originator_caller_profile_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_profile *) ((arg1)->originator_caller_profile); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_originatee_caller_profile_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_profile *)jarg2; + if (arg1) (arg1)->originatee_caller_profile = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_originatee_caller_profile_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_profile *) ((arg1)->originatee_caller_profile); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_origination_caller_profile_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_profile *)jarg2; + if (arg1) (arg1)->origination_caller_profile = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_origination_caller_profile_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_profile *) ((arg1)->origination_caller_profile); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_hunt_caller_profile_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_profile *)jarg2; + if (arg1) (arg1)->hunt_caller_profile = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_hunt_caller_profile_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_profile *) ((arg1)->hunt_caller_profile); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_times_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_channel_timetable *)jarg2; + if (arg1) (arg1)->times = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_times_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_channel_timetable *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_channel_timetable *) ((arg1)->times); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_old_times_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_channel_timetable *)jarg2; + if (arg1) (arg1)->old_times = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_old_times_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_channel_timetable *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_channel_timetable *) ((arg1)->old_times); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_caller_extension_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_extension *arg2 = (switch_caller_extension *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_extension *)jarg2; + if (arg1) (arg1)->caller_extension = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_caller_extension_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_extension *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_extension *) ((arg1)->caller_extension); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_pool_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_pool_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_next_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_caller_profile *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_next_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_caller_profile *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_caller_profile *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_direction_set(void * jarg1, int jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_call_direction_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + if (arg1) (arg1)->direction = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_direction_get(void * jarg1) { + int jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_call_direction_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_call_direction_t) ((arg1)->direction); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_logical_direction_set(void * jarg1, int jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_call_direction_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + if (arg1) (arg1)->logical_direction = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_logical_direction_get(void * jarg1) { + int jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_call_direction_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_call_direction_t) ((arg1)->logical_direction); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_soft_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + profile_node_t *arg2 = (profile_node_t *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (profile_node_t *)jarg2; + if (arg1) (arg1)->soft = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_soft_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + profile_node_t *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (profile_node_t *) ((arg1)->soft); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_uuid_str_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->uuid_str; + if (arg2) { + arg1->uuid_str = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid_str, (const char *)arg2); + } else { + arg1->uuid_str = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_uuid_str_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->uuid_str); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_clone_of_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->clone_of; + if (arg2) { + arg1->clone_of = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->clone_of, (const char *)arg2); + } else { + arg1->clone_of = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_clone_of_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->clone_of); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_transfer_source_set(void * jarg1, char * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->transfer_source; + if (arg2) { + arg1->transfer_source = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->transfer_source, (const char *)arg2); + } else { + arg1->transfer_source = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_profile_transfer_source_get(void * jarg1) { + char * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (char *) ((arg1)->transfer_source); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_profile() { + void * jresult ; + switch_caller_profile *result = 0 ; + + result = (switch_caller_profile *)new switch_caller_profile(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_caller_profile(void * jarg1) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_application_name_set(void * jarg1, char * jarg2) { + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_application *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->application_name; + if (arg2) { + arg1->application_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->application_name, (const char *)arg2); + } else { + arg1->application_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_application_application_name_get(void * jarg1) { + char * jresult ; + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_application *)jarg1; + result = (char *) ((arg1)->application_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_application_data_set(void * jarg1, char * jarg2) { + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_application *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->application_data; + if (arg2) { + arg1->application_data = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->application_data, (const char *)arg2); + } else { + arg1->application_data = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_application_application_data_get(void * jarg1) { + char * jresult ; + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_application *)jarg1; + result = (char *) ((arg1)->application_data); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_application_function_set(void * jarg1, void * jarg2) { + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + switch_application_function_t arg2 = (switch_application_function_t) 0 ; + + arg1 = (switch_caller_application *)jarg1; + arg2 = (switch_application_function_t)jarg2; + if (arg1) (arg1)->application_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_application_application_function_get(void * jarg1) { + void * jresult ; + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + switch_application_function_t result; + + arg1 = (switch_caller_application *)jarg1; + result = (switch_application_function_t) ((arg1)->application_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_application_next_set(void * jarg1, void * jarg2) { + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + switch_caller_application *arg2 = (switch_caller_application *) 0 ; + + arg1 = (switch_caller_application *)jarg1; + arg2 = (switch_caller_application *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_application_next_get(void * jarg1) { + void * jresult ; + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + switch_caller_application *result = 0 ; + + arg1 = (switch_caller_application *)jarg1; + result = (switch_caller_application *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_application() { + void * jresult ; + switch_caller_application *result = 0 ; + + result = (switch_caller_application *)new switch_caller_application(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_caller_application(void * jarg1) { + switch_caller_application *arg1 = (switch_caller_application *) 0 ; + + arg1 = (switch_caller_application *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_extension_name_set(void * jarg1, char * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->extension_name; + if (arg2) { + arg1->extension_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->extension_name, (const char *)arg2); + } else { + arg1->extension_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_extension_extension_name_get(void * jarg1) { + char * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (char *) ((arg1)->extension_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_extension_number_set(void * jarg1, char * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->extension_number; + if (arg2) { + arg1->extension_number = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->extension_number, (const char *)arg2); + } else { + arg1->extension_number = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_extension_extension_number_get(void * jarg1) { + char * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (char *) ((arg1)->extension_number); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_current_application_set(void * jarg1, void * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_application_t *arg2 = (switch_caller_application_t *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (switch_caller_application_t *)jarg2; + if (arg1) (arg1)->current_application = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_current_application_get(void * jarg1) { + void * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_application_t *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (switch_caller_application_t *) ((arg1)->current_application); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_last_application_set(void * jarg1, void * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_application_t *arg2 = (switch_caller_application_t *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (switch_caller_application_t *)jarg2; + if (arg1) (arg1)->last_application = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_last_application_get(void * jarg1) { + void * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_application_t *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (switch_caller_application_t *) ((arg1)->last_application); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_applications_set(void * jarg1, void * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_application_t *arg2 = (switch_caller_application_t *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (switch_caller_application_t *)jarg2; + if (arg1) (arg1)->applications = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_applications_get(void * jarg1) { + void * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_application_t *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (switch_caller_application_t *) ((arg1)->applications); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_children_set(void * jarg1, void * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_profile *arg2 = (switch_caller_profile *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (switch_caller_profile *)jarg2; + if (arg1) (arg1)->children = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_children_get(void * jarg1) { + void * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_profile *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (switch_caller_profile *) ((arg1)->children); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_next_set(void * jarg1, void * jarg2) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_extension *arg2 = (switch_caller_extension *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + arg2 = (switch_caller_extension *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_next_get(void * jarg1) { + void * jresult ; + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + switch_caller_extension *result = 0 ; + + arg1 = (switch_caller_extension *)jarg1; + result = (switch_caller_extension *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_extension() { + void * jresult ; + switch_caller_extension *result = 0 ; + + result = (switch_caller_extension *)new switch_caller_extension(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_caller_extension(void * jarg1) { + switch_caller_extension *arg1 = (switch_caller_extension *) 0 ; + + arg1 = (switch_caller_extension *)jarg1; + delete arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_extension_new(void * jarg1, char * jarg2, char * jarg3) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_caller_extension_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_caller_extension_t *)switch_caller_extension_new(arg1,(char const *)arg2,(char const *)arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_extension_clone(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_caller_extension_t **arg1 = (switch_caller_extension_t **) 0 ; + switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; + switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_caller_extension_t **)jarg1; + arg2 = (switch_caller_extension_t *)jarg2; + arg3 = (switch_memory_pool_t *)jarg3; + result = (switch_status_t)switch_caller_extension_clone(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_add_application(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_caller_extension_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + switch_caller_extension_add_application(arg1,arg2,(char const *)arg3,(char const *)arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_extension_add_application_printf(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *arg5 = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_caller_extension_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + switch_caller_extension_add_application_printf(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_caller_get_field_by_name(void * jarg1, char * jarg2) { + char * jresult ; + switch_caller_profile_t *arg1 = (switch_caller_profile_t *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_caller_profile_t *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_caller_get_field_by_name(arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_new(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, char * jarg11, char * jarg12) { + void * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + char *arg10 = (char *) 0 ; + char *arg11 = (char *) 0 ; + char *arg12 = (char *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char *)jarg10; + arg11 = (char *)jarg11; + arg12 = (char *)jarg12; + result = (switch_caller_profile_t *)switch_caller_profile_new(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,(char const *)arg12); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_clone(void * jarg1, void * jarg2) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + result = (switch_caller_profile_t *)switch_caller_profile_clone(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_dup(void * jarg1, void * jarg2) { + void * jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + result = (switch_caller_profile_t *)switch_caller_profile_dup(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_event_set_data(void * jarg1, char * jarg2, void * jarg3) { + switch_caller_profile_t *arg1 = (switch_caller_profile_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_event_t *arg3 = (switch_event_t *) 0 ; + + arg1 = (switch_caller_profile_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_event_t *)jarg3; + switch_caller_profile_event_set_data(arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_codec_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (switch_codec_t *)jarg2; + if (arg1) (arg1)->codec = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_codec_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (switch_codec_t *) ((arg1)->codec); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_source_set(void * jarg1, char * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->source = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->source, (const char *)arg2); + } else { + arg1->source = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_frame_source_get(void * jarg1) { + char * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + char *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (char *) ((arg1)->source); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_packet_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->packet = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_packet_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + void *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (void *) ((arg1)->packet); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_packetlen_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->packetlen = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_packetlen_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->packetlen); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_extra_data_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->extra_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_extra_data_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + void *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (void *) ((arg1)->extra_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_data_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_data_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + void *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (void *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_datalen_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->datalen = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_datalen_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->datalen); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_buflen_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->buflen = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_buflen_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->buflen); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_samples_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samples = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_samples_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->samples); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_rate_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_rate_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_channels_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->channels = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_channels_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->channels); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_payload_set(void * jarg1, unsigned char jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (switch_payload_t)jarg2; + if (arg1) (arg1)->payload = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_frame_payload_get(void * jarg1) { + unsigned char jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + switch_payload_t result; + + arg1 = (switch_frame *)jarg1; + result = (switch_payload_t) ((arg1)->payload); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_timestamp_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_frame *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->timestamp = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_timestamp_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + switch_size_t result; + + arg1 = (switch_frame *)jarg1; + result = ((arg1)->timestamp); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_seq_set(void * jarg1, unsigned short jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint16_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint16_t)jarg2; + if (arg1) (arg1)->seq = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_frame_seq_get(void * jarg1) { + unsigned short jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint16_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint16_t) ((arg1)->seq); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_ssrc_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->ssrc = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_ssrc_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + uint32_t result; + + arg1 = (switch_frame *)jarg1; + result = (uint32_t) ((arg1)->ssrc); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_m_set(void * jarg1, int jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->m = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_m_get(void * jarg1) { + int jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + switch_bool_t result; + + arg1 = (switch_frame *)jarg1; + result = (switch_bool_t) ((arg1)->m); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_flags_set(void * jarg1, unsigned long jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + switch_frame_flag_t arg2 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (switch_frame_flag_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_flags_get(void * jarg1) { + unsigned long jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + switch_frame_flag_t result; + + arg1 = (switch_frame *)jarg1; + result = (switch_frame_flag_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_user_data_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_user_data_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + void *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (void *) ((arg1)->user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_pmap_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + payload_map_t *arg2 = (payload_map_t *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (payload_map_t *)jarg2; + if (arg1) (arg1)->pmap = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_pmap_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + payload_map_t *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (payload_map_t *) ((arg1)->pmap); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_frame() { + void * jresult ; + switch_frame *result = 0 ; + + result = (switch_frame *)new switch_frame(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_frame(void * jarg1) { + switch_frame *arg1 = (switch_frame *) 0 ; + + arg1 = (switch_frame *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_init_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_init = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_init_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_init); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_routing_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_routing = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_routing_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_routing); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_execute_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_execute = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_execute_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_execute); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_hangup_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_hangup = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_hangup_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_hangup); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_exchange_media_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_exchange_media = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_exchange_media_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_exchange_media); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_soft_execute_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_soft_execute = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_soft_execute_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_soft_execute); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_consume_media_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_consume_media = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_consume_media_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_consume_media); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_hibernate_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_hibernate = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_hibernate_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_hibernate); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_reset_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_reset = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_reset_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_reset); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_park_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_park = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_park_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_park); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_reporting_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_reporting = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_reporting_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_reporting); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_destroy_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_destroy = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_destroy_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_destroy); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_flags_set(void * jarg1, int jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + int arg2 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_state_handler_table_flags_get(void * jarg1) { + int jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + int result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (int) ((arg1)->flags); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_padding_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + void **arg2 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (void **)jarg2; + { + size_t ii; + void * *b = (void * *) arg1->padding; + for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((void * *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_padding_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + void **result = 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + result = (void **)(void **) ((arg1)->padding); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_state_handler_table() { + void * jresult ; + switch_state_handler_table *result = 0 ; + + result = (switch_state_handler_table *)new switch_state_handler_table(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_state_handler_table(void * jarg1) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_read_function_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_stream_handle_read_function_t arg2 = (switch_stream_handle_read_function_t) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + arg2 = (switch_stream_handle_read_function_t)jarg2; + if (arg1) (arg1)->read_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_read_function_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_stream_handle_read_function_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = (switch_stream_handle_read_function_t) ((arg1)->read_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_write_function_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_stream_handle_write_function_t arg2 = (switch_stream_handle_write_function_t) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + arg2 = (switch_stream_handle_write_function_t)jarg2; + if (arg1) (arg1)->write_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_write_function_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_stream_handle_write_function_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = (switch_stream_handle_write_function_t) ((arg1)->write_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_raw_write_function_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_stream_handle_raw_write_function_t arg2 = (switch_stream_handle_raw_write_function_t) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + arg2 = (switch_stream_handle_raw_write_function_t)jarg2; + if (arg1) (arg1)->raw_write_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_raw_write_function_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_stream_handle_raw_write_function_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = (switch_stream_handle_raw_write_function_t) ((arg1)->raw_write_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_data_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_data_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + void *result = 0 ; + + arg1 = (switch_stream_handle *)jarg1; + result = (void *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_end_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->end = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_end_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + void *result = 0 ; + + arg1 = (switch_stream_handle *)jarg1; + result = (void *) ((arg1)->end); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_data_size_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_stream_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->data_size = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_data_size_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = ((arg1)->data_size); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_data_len_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_stream_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->data_len = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_data_len_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = ((arg1)->data_len); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_alloc_len_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_stream_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->alloc_len = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_alloc_len_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = ((arg1)->alloc_len); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_alloc_chunk_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_stream_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->alloc_chunk = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_alloc_chunk_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_stream_handle *)jarg1; + result = ((arg1)->alloc_chunk); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_stream_handle_param_event_set(void * jarg1, void * jarg2) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + arg2 = (switch_event_t *)jarg2; + if (arg1) (arg1)->param_event = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_stream_handle_param_event_get(void * jarg1) { + void * jresult ; + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + switch_event_t *result = 0 ; + + arg1 = (switch_stream_handle *)jarg1; + result = (switch_event_t *) ((arg1)->param_event); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_stream_handle() { + void * jresult ; + switch_stream_handle *result = 0 ; + + result = (switch_stream_handle *)new switch_stream_handle(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_stream_handle(void * jarg1) { + switch_stream_handle *arg1 = (switch_stream_handle *) 0 ; + + arg1 = (switch_stream_handle *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_outgoing_channel_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_outgoing_channel_t arg2 = (switch_io_outgoing_channel_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_outgoing_channel_t)jarg2; + if (arg1) (arg1)->outgoing_channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_outgoing_channel_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_outgoing_channel_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_outgoing_channel_t) ((arg1)->outgoing_channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_read_frame_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_read_frame_t arg2 = (switch_io_read_frame_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_read_frame_t)jarg2; + if (arg1) (arg1)->read_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_read_frame_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_read_frame_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_read_frame_t) ((arg1)->read_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_write_frame_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_write_frame_t arg2 = (switch_io_write_frame_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_write_frame_t)jarg2; + if (arg1) (arg1)->write_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_write_frame_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_write_frame_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_write_frame_t) ((arg1)->write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_kill_channel_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_kill_channel_t arg2 = (switch_io_kill_channel_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_kill_channel_t)jarg2; + if (arg1) (arg1)->kill_channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_kill_channel_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_kill_channel_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_kill_channel_t) ((arg1)->kill_channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_send_dtmf_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_send_dtmf_t arg2 = (switch_io_send_dtmf_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_send_dtmf_t)jarg2; + if (arg1) (arg1)->send_dtmf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_send_dtmf_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_send_dtmf_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_send_dtmf_t) ((arg1)->send_dtmf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_receive_message_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_receive_message_t arg2 = (switch_io_receive_message_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_receive_message_t)jarg2; + if (arg1) (arg1)->receive_message = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_receive_message_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_receive_message_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_receive_message_t) ((arg1)->receive_message); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_receive_event_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_receive_event_t arg2 = (switch_io_receive_event_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_receive_event_t)jarg2; + if (arg1) (arg1)->receive_event = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_receive_event_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_receive_event_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_receive_event_t) ((arg1)->receive_event); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_state_change_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_state_change_t arg2 = (switch_io_state_change_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_state_change_t)jarg2; + if (arg1) (arg1)->state_change = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_state_change_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_state_change_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_state_change_t) ((arg1)->state_change); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_read_video_frame_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_read_video_frame_t arg2 = (switch_io_read_video_frame_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_read_video_frame_t)jarg2; + if (arg1) (arg1)->read_video_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_read_video_frame_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_read_video_frame_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_read_video_frame_t) ((arg1)->read_video_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_write_video_frame_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_write_video_frame_t arg2 = (switch_io_write_video_frame_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_write_video_frame_t)jarg2; + if (arg1) (arg1)->write_video_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_write_video_frame_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_write_video_frame_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_write_video_frame_t) ((arg1)->write_video_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_state_run_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_state_run_t arg2 = (switch_io_state_run_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_state_run_t)jarg2; + if (arg1) (arg1)->state_run = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_state_run_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_state_run_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_state_run_t) ((arg1)->state_run); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_get_jb_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_get_jb_t arg2 = (switch_io_get_jb_t) 0 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (switch_io_get_jb_t)jarg2; + if (arg1) (arg1)->get_jb = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_get_jb_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + switch_io_get_jb_t result; + + arg1 = (switch_io_routines *)jarg1; + result = (switch_io_get_jb_t) ((arg1)->get_jb); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_routines_padding_set(void * jarg1, void * jarg2) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + void **arg2 ; + + arg1 = (switch_io_routines *)jarg1; + arg2 = (void **)jarg2; + { + size_t ii; + void * *b = (void * *) arg1->padding; + for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((void * *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_routines_padding_get(void * jarg1) { + void * jresult ; + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + void **result = 0 ; + + arg1 = (switch_io_routines *)jarg1; + result = (void **)(void **) ((arg1)->padding); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_routines() { + void * jresult ; + switch_io_routines *result = 0 ; + + result = (switch_io_routines *)new switch_io_routines(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_routines(void * jarg1) { + switch_io_routines *arg1 = (switch_io_routines *) 0 ; + + arg1 = (switch_io_routines *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_endpoint_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_io_routines_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_io_routines_t *arg2 = (switch_io_routines_t *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_io_routines_t *)jarg2; + if (arg1) (arg1)->io_routines = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_io_routines_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_io_routines_t *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_io_routines_t *) ((arg1)->io_routines); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_state_handler_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_state_handler_table_t *arg2 = (switch_state_handler_table_t *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_state_handler_table_t *)jarg2; + if (arg1) (arg1)->state_handler = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_state_handler_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_state_handler_table_t *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_state_handler_table_t *) ((arg1)->state_handler); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_private_info_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_private_info_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + void *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_refs_set(void * jarg1, int jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + int arg2 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_endpoint_interface_refs_get(void * jarg1) { + int jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + int result; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_reflock_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_parent_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_parent_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_next_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_endpoint_interface *arg2 = (switch_endpoint_interface *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_endpoint_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_next_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_endpoint_interface *result = 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_endpoint_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_endpoint_interface_recover_callback_set(void * jarg1, void * jarg2) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_core_recover_callback_t arg2 = (switch_core_recover_callback_t) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + arg2 = (switch_core_recover_callback_t)jarg2; + if (arg1) (arg1)->recover_callback = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_endpoint_interface_recover_callback_get(void * jarg1) { + void * jresult ; + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + switch_core_recover_callback_t result; + + arg1 = (switch_endpoint_interface *)jarg1; + result = (switch_core_recover_callback_t) ((arg1)->recover_callback); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_endpoint_interface() { + void * jresult ; + switch_endpoint_interface *result = 0 ; + + result = (switch_endpoint_interface *)new switch_endpoint_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_endpoint_interface(void * jarg1) { + switch_endpoint_interface *arg1 = (switch_endpoint_interface *) 0 ; + + arg1 = (switch_endpoint_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interval_set(void * jarg1, int jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + int arg2 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->interval = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_timer_interval_get(void * jarg1) { + int jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + int result; + + arg1 = (switch_timer *)jarg1; + result = (int) ((arg1)->interval); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_flags_set(void * jarg1, unsigned long jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_timer_flags_get(void * jarg1) { + unsigned long jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + uint32_t result; + + arg1 = (switch_timer *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_samples_set(void * jarg1, unsigned int jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->samples = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_timer_samples_get(void * jarg1) { + unsigned int jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + unsigned int result; + + arg1 = (switch_timer *)jarg1; + result = (unsigned int) ((arg1)->samples); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_samplecount_set(void * jarg1, unsigned long jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samplecount = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_timer_samplecount_get(void * jarg1) { + unsigned long jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + uint32_t result; + + arg1 = (switch_timer *)jarg1; + result = (uint32_t) ((arg1)->samplecount); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_timer_interface_set(void * jarg1, void * jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + switch_timer_interface_t *arg2 = (switch_timer_interface_t *) 0 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (switch_timer_interface_t *)jarg2; + if (arg1) (arg1)->timer_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_timer_interface_get(void * jarg1) { + void * jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + switch_timer_interface_t *result = 0 ; + + arg1 = (switch_timer *)jarg1; + result = (switch_timer_interface_t *) ((arg1)->timer_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_memory_pool_set(void * jarg1, void * jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->memory_pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_memory_pool_get(void * jarg1) { + void * jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_timer *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->memory_pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_private_info_set(void * jarg1, void * jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_private_info_get(void * jarg1) { + void * jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + void *result = 0 ; + + arg1 = (switch_timer *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_diff_set(void * jarg1, void * jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_timer *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->diff = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_diff_get(void * jarg1) { + void * jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + switch_size_t result; + + arg1 = (switch_timer *)jarg1; + result = ((arg1)->diff); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_start_set(void * jarg1, void * jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_timer *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->start = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_start_get(void * jarg1) { + void * jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + switch_time_t result; + + arg1 = (switch_timer *)jarg1; + result = ((arg1)->start); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_tick_set(void * jarg1, unsigned long long jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + uint64_t arg2 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (uint64_t)jarg2; + if (arg1) (arg1)->tick = arg2; +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_switch_timer_tick_get(void * jarg1) { + unsigned long long jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + uint64_t result; + + arg1 = (switch_timer *)jarg1; + result = (uint64_t) ((arg1)->tick); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_timer() { + void * jresult ; + switch_timer *result = 0 ; + + result = (switch_timer *)new switch_timer(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_timer(void * jarg1) { + switch_timer *arg1 = (switch_timer *) 0 ; + + arg1 = (switch_timer *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_timer_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_init_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; + if (arg1) (arg1)->timer_init = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_init_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*result)(switch_timer_t *) = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_init); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_next_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; + if (arg1) (arg1)->timer_next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_next_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*result)(switch_timer_t *) = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_step_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; + if (arg1) (arg1)->timer_step = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_step_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*result)(switch_timer_t *) = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_step); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_sync_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; + if (arg1) (arg1)->timer_sync = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_sync_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*result)(switch_timer_t *) = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_sync); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_check_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*arg2)(switch_timer_t *,switch_bool_t) = (switch_status_t (*)(switch_timer_t *,switch_bool_t)) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_timer_t *,switch_bool_t))jarg2; + if (arg1) (arg1)->timer_check = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_check_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*result)(switch_timer_t *,switch_bool_t) = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_status_t (*)(switch_timer_t *,switch_bool_t)) ((arg1)->timer_check); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_timer_destroy_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*arg2)(switch_timer_t *) = (switch_status_t (*)(switch_timer_t *)) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_timer_t *))jarg2; + if (arg1) (arg1)->timer_destroy = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_timer_destroy_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_status_t (*result)(switch_timer_t *) = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_status_t (*)(switch_timer_t *)) ((arg1)->timer_destroy); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_refs_set(void * jarg1, int jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + int arg2 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_timer_interface_refs_get(void * jarg1) { + int jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + int result; + + arg1 = (switch_timer_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_reflock_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_parent_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_parent_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_interface_next_set(void * jarg1, void * jarg2) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_timer_interface *arg2 = (switch_timer_interface *) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + arg2 = (switch_timer_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timer_interface_next_get(void * jarg1) { + void * jresult ; + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + switch_timer_interface *result = 0 ; + + arg1 = (switch_timer_interface *)jarg1; + result = (switch_timer_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_timer_interface() { + void * jresult ; + switch_timer_interface *result = 0 ; + + result = (switch_timer_interface *)new switch_timer_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_timer_interface(void * jarg1) { + switch_timer_interface *arg1 = (switch_timer_interface *) 0 ; + + arg1 = (switch_timer_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_dialplan_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_hunt_function_set(void * jarg1, void * jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_dialplan_hunt_function_t arg2 = (switch_dialplan_hunt_function_t) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (switch_dialplan_hunt_function_t)jarg2; + if (arg1) (arg1)->hunt_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_hunt_function_get(void * jarg1) { + void * jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_dialplan_hunt_function_t result; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (switch_dialplan_hunt_function_t) ((arg1)->hunt_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_refs_set(void * jarg1, int jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + int arg2 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_dialplan_interface_refs_get(void * jarg1) { + int jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + int result; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_reflock_set(void * jarg1, void * jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_parent_set(void * jarg1, void * jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_parent_get(void * jarg1) { + void * jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_dialplan_interface_next_set(void * jarg1, void * jarg2) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_dialplan_interface *arg2 = (switch_dialplan_interface *) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + arg2 = (switch_dialplan_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_dialplan_interface_next_get(void * jarg1) { + void * jresult ; + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + switch_dialplan_interface *result = 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + result = (switch_dialplan_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_dialplan_interface() { + void * jresult ; + switch_dialplan_interface *result = 0 ; + + result = (switch_dialplan_interface *)new switch_dialplan_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_dialplan_interface(void * jarg1) { + switch_dialplan_interface *arg1 = (switch_dialplan_interface *) 0 ; + + arg1 = (switch_dialplan_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_open_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,char const *) = (switch_status_t (*)(switch_file_handle_t *,char const *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,char const *))jarg2; + if (arg1) (arg1)->file_open = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_open_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,char const *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,char const *)) ((arg1)->file_open); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_close_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *) = (switch_status_t (*)(switch_file_handle_t *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *))jarg2; + if (arg1) (arg1)->file_close = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_close_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *)) ((arg1)->file_close); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_truncate_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,int64_t) = (switch_status_t (*)(switch_file_handle_t *,int64_t)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,int64_t))jarg2; + if (arg1) (arg1)->file_truncate = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_truncate_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,int64_t) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,int64_t)) ((arg1)->file_truncate); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_read_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; + if (arg1) (arg1)->file_read = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_read_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_read); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_write_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; + if (arg1) (arg1)->file_write = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_write_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_write); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_read_video_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; + if (arg1) (arg1)->file_read_video = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_read_video_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_read_video); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_write_video_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; + if (arg1) (arg1)->file_write_video = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_write_video_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_write_video); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_seek_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,unsigned int *,int64_t,int) = (switch_status_t (*)(switch_file_handle_t *,unsigned int *,int64_t,int)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,unsigned int *,int64_t,int))jarg2; + if (arg1) (arg1)->file_seek = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_seek_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,unsigned int *,int64_t,int) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,unsigned int *,int64_t,int)) ((arg1)->file_seek); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_set_string_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,switch_audio_col_t,char const *) = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const *)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const *))jarg2; + if (arg1) (arg1)->file_set_string = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_set_string_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,switch_audio_col_t,char const *) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const *)) ((arg1)->file_set_string); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_get_string_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,switch_audio_col_t,char const **) = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const **)) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const **))jarg2; + if (arg1) (arg1)->file_get_string = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_get_string_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_status_t (*result)(switch_file_handle_t *,switch_audio_col_t,char const **) = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_status_t (*)(switch_file_handle_t *,switch_audio_col_t,char const **)) ((arg1)->file_get_string); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_extens_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + char **arg2 = (char **) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (char **)jarg2; + if (arg1) (arg1)->extens = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_extens_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + char **result = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (char **) ((arg1)->extens); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_refs_set(void * jarg1, int jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + int arg2 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_interface_refs_get(void * jarg1) { + int jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + int result; + + arg1 = (switch_file_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_reflock_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_parent_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_parent_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_next_set(void * jarg1, void * jarg2) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_file_interface *arg2 = (switch_file_interface *) 0 ; + + arg1 = (switch_file_interface *)jarg1; + arg2 = (switch_file_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_next_get(void * jarg1) { + void * jresult ; + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + switch_file_interface *result = 0 ; + + arg1 = (switch_file_interface *)jarg1; + result = (switch_file_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_file_interface() { + void * jresult ; + switch_file_interface *result = 0 ; + + result = (switch_file_interface *)new switch_file_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_file_interface(void * jarg1) { + switch_file_interface *arg1 = (switch_file_interface *) 0 ; + + arg1 = (switch_file_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_interface_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_file_interface_t *arg2 = (switch_file_interface_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_file_interface_t *)jarg2; + if (arg1) (arg1)->file_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_file_interface_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_file_interface_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_file_interface_t *) ((arg1)->file_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_flags_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_flags_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_fd_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_file_t *arg2 = (switch_file_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_file_t *)jarg2; + if (arg1) (arg1)->fd = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_fd_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_file_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_file_t *) ((arg1)->fd); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samples_set(void * jarg1, unsigned int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->samples = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_file_handle_samples_get(void * jarg1) { + unsigned int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned int result; + + arg1 = (switch_file_handle *)jarg1; + result = (unsigned int) ((arg1)->samples); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samplerate_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samplerate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_samplerate_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->samplerate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_native_rate_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->native_rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_native_rate_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->native_rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_channels_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->channels = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_channels_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->channels); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_real_channels_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->real_channels = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_real_channels_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->real_channels); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_format_set(void * jarg1, unsigned int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->format = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_file_handle_format_get(void * jarg1) { + unsigned int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned int result; + + arg1 = (switch_file_handle *)jarg1; + result = (unsigned int) ((arg1)->format); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_sections_set(void * jarg1, unsigned int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->sections = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_file_handle_sections_get(void * jarg1) { + unsigned int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned int result; + + arg1 = (switch_file_handle *)jarg1; + result = (unsigned int) ((arg1)->sections); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_seekable_set(void * jarg1, int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->seekable = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_seekable_get(void * jarg1) { + int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int result; + + arg1 = (switch_file_handle *)jarg1; + result = (int) ((arg1)->seekable); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_sample_count_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_file_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->sample_count = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_sample_count_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_file_handle *)jarg1; + result = ((arg1)->sample_count); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_speed_set(void * jarg1, int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->speed = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_speed_get(void * jarg1) { + int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int result; + + arg1 = (switch_file_handle *)jarg1; + result = (int) ((arg1)->speed); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_memory_pool_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->memory_pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_memory_pool_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->memory_pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_prebuf_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->prebuf = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_prebuf_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->prebuf); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_interval_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->interval = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_interval_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->interval); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_private_info_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_private_info_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + void *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_handler_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->handler; + if (arg2) { + arg1->handler = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->handler, (const char *)arg2); + } else { + arg1->handler = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_handler_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->handler); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pos_set(void * jarg1, long long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int64_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->pos = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_file_handle_pos_get(void * jarg1) { + long long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int64_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (int64_t) ((arg1)->pos); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_audio_buffer_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_buffer_t *)jarg2; + if (arg1) (arg1)->audio_buffer = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_audio_buffer_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_buffer_t *) ((arg1)->audio_buffer); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_sp_audio_buffer_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_buffer_t *)jarg2; + if (arg1) (arg1)->sp_audio_buffer = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_sp_audio_buffer_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_buffer_t *) ((arg1)->sp_audio_buffer); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_thresh_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->thresh = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_thresh_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->thresh); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_silence_hits_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->silence_hits = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_silence_hits_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->silence_hits); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_offset_pos_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->offset_pos = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_offset_pos_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->offset_pos); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samples_in_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_file_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->samples_in = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_samples_in_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_file_handle *)jarg1; + result = ((arg1)->samples_in); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_samples_out_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_file_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->samples_out = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_samples_out_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_file_handle *)jarg1; + result = ((arg1)->samples_out); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_vol_set(void * jarg1, int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (int32_t)jarg2; + if (arg1) (arg1)->vol = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_vol_get(void * jarg1) { + int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (int32_t) ((arg1)->vol); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_resampler_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_audio_resampler_t *)jarg2; + if (arg1) (arg1)->resampler = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_resampler_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_audio_resampler_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_audio_resampler_t *) ((arg1)->resampler); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_buffer_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_buffer_t *)jarg2; + if (arg1) (arg1)->buffer = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_buffer_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_buffer_t *) ((arg1)->buffer); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_dbuf_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_byte_t *arg2 = (switch_byte_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_byte_t *)jarg2; + if (arg1) (arg1)->dbuf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_dbuf_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_byte_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_byte_t *) ((arg1)->dbuf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_dbuflen_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_file_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->dbuflen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_dbuflen_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_file_handle *)jarg1; + result = ((arg1)->dbuflen); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_buffer_t *)jarg2; + if (arg1) (arg1)->pre_buffer = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_buffer_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_buffer_t *) ((arg1)->pre_buffer); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_data_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (unsigned char *)jarg2; + if (arg1) (arg1)->pre_buffer_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_data_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + unsigned char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (unsigned char *) ((arg1)->pre_buffer_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_datalen_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_file_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->pre_buffer_datalen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_pre_buffer_datalen_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_file_handle *)jarg1; + result = ((arg1)->pre_buffer_datalen); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->file = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->file, (const char *)arg2); + } else { + arg1->file = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_file_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->file); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_func_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->func = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->func, (const char *)arg2); + } else { + arg1->func = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_func_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->func); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_line_set(void * jarg1, int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->line = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_line_get(void * jarg1) { + int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int result; + + arg1 = (switch_file_handle *)jarg1; + result = (int) ((arg1)->line); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_path_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->file_path; + if (arg2) { + arg1->file_path = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->file_path, (const char *)arg2); + } else { + arg1->file_path = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_file_path_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->file_path); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_spool_path_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->spool_path; + if (arg2) { + arg1->spool_path = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->spool_path, (const char *)arg2); + } else { + arg1->spool_path = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_spool_path_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->spool_path); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_prefix_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->prefix = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->prefix, (const char *)arg2); + } else { + arg1->prefix = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_prefix_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->prefix); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_max_samples_set(void * jarg1, int jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->max_samples = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_file_handle_max_samples_get(void * jarg1) { + int jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + int result; + + arg1 = (switch_file_handle *)jarg1; + result = (int) ((arg1)->max_samples); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle__params_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_event_t *)jarg2; + if (arg1) (arg1)->params = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle__params_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_event_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_event_t *) ((arg1)->params); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_cur_channels_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->cur_channels = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_cur_channels_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->cur_channels); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_cur_samplerate_set(void * jarg1, unsigned long jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->cur_samplerate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_cur_samplerate_get(void * jarg1) { + unsigned long jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + uint32_t result; + + arg1 = (switch_file_handle *)jarg1; + result = (uint32_t) ((arg1)->cur_samplerate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_file_handle() { + void * jresult ; + switch_file_handle *result = 0 ; + + result = (switch_file_handle *)new switch_file_handle(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_file_handle(void * jarg1) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_open_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_open = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_open_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,char const *,int,char const *,switch_asr_flag_t *)) ((arg1)->asr_open); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_load_grammar_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,char const *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *,char const *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *,char const *))jarg2; + if (arg1) (arg1)->asr_load_grammar = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_load_grammar_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,char const *,char const *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,char const *,char const *)) ((arg1)->asr_load_grammar); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_unload_grammar_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *))jarg2; + if (arg1) (arg1)->asr_unload_grammar = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_unload_grammar_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,char const *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,char const *)) ((arg1)->asr_unload_grammar); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_close_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_close = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_close_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) ((arg1)->asr_close); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_feed = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,void *,unsigned int,switch_asr_flag_t *)) ((arg1)->asr_feed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_resume_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; + if (arg1) (arg1)->asr_resume = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_resume_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_resume); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_pause_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; + if (arg1) (arg1)->asr_pause = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_pause_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_pause); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_check_results_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_check_results = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_check_results_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,switch_asr_flag_t *)) ((arg1)->asr_check_results); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_get_results_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,char **,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,char **,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,char **,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_get_results = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_get_results_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,char **,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,char **,switch_asr_flag_t *)) ((arg1)->asr_get_results); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_get_result_headers_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_get_result_headers = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_get_result_headers_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,switch_event_t **,switch_asr_flag_t *)) ((arg1)->asr_get_result_headers); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_start_input_timers_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; + if (arg1) (arg1)->asr_start_input_timers = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_start_input_timers_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_start_input_timers); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_text_param_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + void (*arg2)(switch_asr_handle_t *,char *,char const *) = (void (*)(switch_asr_handle_t *,char *,char const *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (void (*)(switch_asr_handle_t *,char *,char const *))jarg2; + if (arg1) (arg1)->asr_text_param = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_text_param_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + void (*result)(switch_asr_handle_t *,char *,char const *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (void (*)(switch_asr_handle_t *,char *,char const *)) ((arg1)->asr_text_param); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_numeric_param_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + void (*arg2)(switch_asr_handle_t *,char *,int) = (void (*)(switch_asr_handle_t *,char *,int)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (void (*)(switch_asr_handle_t *,char *,int))jarg2; + if (arg1) (arg1)->asr_numeric_param = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_numeric_param_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + void (*result)(switch_asr_handle_t *,char *,int) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (void (*)(switch_asr_handle_t *,char *,int)) ((arg1)->asr_numeric_param); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_float_param_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + void (*arg2)(switch_asr_handle_t *,char *,double) = (void (*)(switch_asr_handle_t *,char *,double)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (void (*)(switch_asr_handle_t *,char *,double))jarg2; + if (arg1) (arg1)->asr_float_param = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_float_param_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + void (*result)(switch_asr_handle_t *,char *,double) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (void (*)(switch_asr_handle_t *,char *,double)) ((arg1)->asr_float_param); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_refs_set(void * jarg1, int jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + int arg2 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_asr_interface_refs_get(void * jarg1) { + int jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + int result; + + arg1 = (switch_asr_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_reflock_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_parent_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_parent_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_next_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_asr_interface *arg2 = (switch_asr_interface *) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_asr_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_next_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_asr_interface *result = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_asr_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_enable_grammar_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *))jarg2; + if (arg1) (arg1)->asr_enable_grammar = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_enable_grammar_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,char const *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,char const *)) ((arg1)->asr_enable_grammar); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_grammar_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,char const *) = (switch_status_t (*)(switch_asr_handle_t *,char const *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,char const *))jarg2; + if (arg1) (arg1)->asr_disable_grammar = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_grammar_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,char const *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,char const *)) ((arg1)->asr_disable_grammar); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_all_grammars_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *) = (switch_status_t (*)(switch_asr_handle_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *))jarg2; + if (arg1) (arg1)->asr_disable_all_grammars = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_disable_all_grammars_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *)) ((arg1)->asr_disable_all_grammars); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_dtmf_set(void * jarg1, void * jarg2) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*arg2)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *) = (switch_status_t (*)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *)) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *))jarg2; + if (arg1) (arg1)->asr_feed_dtmf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_asr_feed_dtmf_get(void * jarg1) { + void * jresult ; + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + switch_status_t (*result)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *) = 0 ; + + arg1 = (switch_asr_interface *)jarg1; + result = (switch_status_t (*)(switch_asr_handle_t *,switch_dtmf_t const *,switch_asr_flag_t *)) ((arg1)->asr_feed_dtmf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_asr_interface() { + void * jresult ; + switch_asr_interface *result = 0 ; + + result = (switch_asr_interface *)new switch_asr_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_asr_interface(void * jarg1) { + switch_asr_interface *arg1 = (switch_asr_interface *) 0 ; + + arg1 = (switch_asr_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_asr_interface_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_asr_interface_t *arg2 = (switch_asr_interface_t *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (switch_asr_interface_t *)jarg2; + if (arg1) (arg1)->asr_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_asr_interface_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_asr_interface_t *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (switch_asr_interface_t *) ((arg1)->asr_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_flags_set(void * jarg1, unsigned long jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_flags_get(void * jarg1) { + unsigned long jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t result; + + arg1 = (switch_asr_handle *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_name_set(void * jarg1, char * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->name; + if (arg2) { + arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->name, (const char *)arg2); + } else { + arg1->name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_name_get(void * jarg1) { + char * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (char *) ((arg1)->name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_codec_set(void * jarg1, char * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->codec; + if (arg2) { + arg1->codec = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->codec, (const char *)arg2); + } else { + arg1->codec = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_codec_get(void * jarg1) { + char * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (char *) ((arg1)->codec); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_rate_set(void * jarg1, unsigned long jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_rate_get(void * jarg1) { + unsigned long jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t result; + + arg1 = (switch_asr_handle *)jarg1; + result = (uint32_t) ((arg1)->rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_grammar_set(void * jarg1, char * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->grammar; + if (arg2) { + arg1->grammar = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->grammar, (const char *)arg2); + } else { + arg1->grammar = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_grammar_get(void * jarg1) { + char * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (char *) ((arg1)->grammar); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_param_set(void * jarg1, char * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->param; + if (arg2) { + arg1->param = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->param, (const char *)arg2); + } else { + arg1->param = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_asr_handle_param_get(void * jarg1) { + char * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (char *) ((arg1)->param); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_memory_pool_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->memory_pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_memory_pool_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->memory_pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_buffer_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (switch_buffer_t *)jarg2; + if (arg1) (arg1)->buffer = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_buffer_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_buffer_t *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (switch_buffer_t *) ((arg1)->buffer); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_dbuf_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_byte_t *arg2 = (switch_byte_t *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (switch_byte_t *)jarg2; + if (arg1) (arg1)->dbuf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_dbuf_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_byte_t *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (switch_byte_t *) ((arg1)->dbuf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_dbuflen_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_asr_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->dbuflen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_dbuflen_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_asr_handle *)jarg1; + result = ((arg1)->dbuflen); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_resampler_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (switch_audio_resampler_t *)jarg2; + if (arg1) (arg1)->resampler = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_resampler_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + switch_audio_resampler_t *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (switch_audio_resampler_t *) ((arg1)->resampler); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_samplerate_set(void * jarg1, unsigned long jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samplerate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_samplerate_get(void * jarg1) { + unsigned long jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t result; + + arg1 = (switch_asr_handle *)jarg1; + result = (uint32_t) ((arg1)->samplerate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_native_rate_set(void * jarg1, unsigned long jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->native_rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_asr_handle_native_rate_get(void * jarg1) { + unsigned long jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + uint32_t result; + + arg1 = (switch_asr_handle *)jarg1; + result = (uint32_t) ((arg1)->native_rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_asr_handle_private_info_set(void * jarg1, void * jarg2) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_handle_private_info_get(void * jarg1) { + void * jresult ; + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + void *result = 0 ; + + arg1 = (switch_asr_handle *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_asr_handle() { + void * jresult ; + switch_asr_handle *result = 0 ; + + result = (switch_asr_handle *)new switch_asr_handle(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_asr_handle(void * jarg1) { + switch_asr_handle *arg1 = (switch_asr_handle *) 0 ; + + arg1 = (switch_asr_handle *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_open_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*arg2)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *))jarg2; + if (arg1) (arg1)->speech_open = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_open_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*result)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_status_t (*)(switch_speech_handle_t *,char const *,int,int,switch_speech_flag_t *)) ((arg1)->speech_open); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_close_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*arg2)(switch_speech_handle_t *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,switch_speech_flag_t *)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_speech_handle_t *,switch_speech_flag_t *))jarg2; + if (arg1) (arg1)->speech_close = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_close_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*result)(switch_speech_handle_t *,switch_speech_flag_t *) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_status_t (*)(switch_speech_handle_t *,switch_speech_flag_t *)) ((arg1)->speech_close); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_feed_tts_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*arg2)(switch_speech_handle_t *,char *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,char *,switch_speech_flag_t *)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_speech_handle_t *,char *,switch_speech_flag_t *))jarg2; + if (arg1) (arg1)->speech_feed_tts = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_feed_tts_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*result)(switch_speech_handle_t *,char *,switch_speech_flag_t *) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_status_t (*)(switch_speech_handle_t *,char *,switch_speech_flag_t *)) ((arg1)->speech_feed_tts); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*arg2)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *))jarg2; + if (arg1) (arg1)->speech_read_tts = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_status_t (*result)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *)) ((arg1)->speech_read_tts); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_flush_tts_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*arg2)(switch_speech_handle_t *) = (void (*)(switch_speech_handle_t *)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (void (*)(switch_speech_handle_t *))jarg2; + if (arg1) (arg1)->speech_flush_tts = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_flush_tts_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*result)(switch_speech_handle_t *) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (void (*)(switch_speech_handle_t *)) ((arg1)->speech_flush_tts); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_text_param_tts_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*arg2)(switch_speech_handle_t *,char *,char const *) = (void (*)(switch_speech_handle_t *,char *,char const *)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (void (*)(switch_speech_handle_t *,char *,char const *))jarg2; + if (arg1) (arg1)->speech_text_param_tts = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_text_param_tts_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*result)(switch_speech_handle_t *,char *,char const *) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (void (*)(switch_speech_handle_t *,char *,char const *)) ((arg1)->speech_text_param_tts); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_numeric_param_tts_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*arg2)(switch_speech_handle_t *,char *,int) = (void (*)(switch_speech_handle_t *,char *,int)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (void (*)(switch_speech_handle_t *,char *,int))jarg2; + if (arg1) (arg1)->speech_numeric_param_tts = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_numeric_param_tts_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*result)(switch_speech_handle_t *,char *,int) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (void (*)(switch_speech_handle_t *,char *,int)) ((arg1)->speech_numeric_param_tts); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_float_param_tts_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*arg2)(switch_speech_handle_t *,char *,double) = (void (*)(switch_speech_handle_t *,char *,double)) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (void (*)(switch_speech_handle_t *,char *,double))jarg2; + if (arg1) (arg1)->speech_float_param_tts = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_float_param_tts_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + void (*result)(switch_speech_handle_t *,char *,double) = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (void (*)(switch_speech_handle_t *,char *,double)) ((arg1)->speech_float_param_tts); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_refs_set(void * jarg1, int jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + int arg2 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_speech_interface_refs_get(void * jarg1) { + int jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + int result; + + arg1 = (switch_speech_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_reflock_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_parent_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_parent_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_next_set(void * jarg1, void * jarg2) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_speech_interface *arg2 = (switch_speech_interface *) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + arg2 = (switch_speech_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_next_get(void * jarg1) { + void * jresult ; + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + switch_speech_interface *result = 0 ; + + arg1 = (switch_speech_interface *)jarg1; + result = (switch_speech_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_speech_interface() { + void * jresult ; + switch_speech_interface *result = 0 ; + + result = (switch_speech_interface *)new switch_speech_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_speech_interface(void * jarg1) { + switch_speech_interface *arg1 = (switch_speech_interface *) 0 ; + + arg1 = (switch_speech_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_speech_interface_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_speech_interface_t *arg2 = (switch_speech_interface_t *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (switch_speech_interface_t *)jarg2; + if (arg1) (arg1)->speech_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_speech_interface_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_speech_interface_t *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (switch_speech_interface_t *) ((arg1)->speech_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_flags_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_flags_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_name_set(void * jarg1, char * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->name; + if (arg2) { + arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->name, (const char *)arg2); + } else { + arg1->name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_name_get(void * jarg1) { + char * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (char *) ((arg1)->name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_rate_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_rate_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_speed_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->speed = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_speed_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->speed); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_samples_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samples = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_samples_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->samples); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_channels_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->channels = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_channels_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->channels); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_real_channels_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->real_channels = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_real_channels_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->real_channels); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_voice_set(void * jarg1, char * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->voice, (const char *)arg2, 80-1); + arg1->voice[80-1] = 0; + } else { + arg1->voice[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_voice_get(void * jarg1) { + char * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (char *)(char *) ((arg1)->voice); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_engine_set(void * jarg1, char * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->engine; + if (arg2) { + arg1->engine = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->engine, (const char *)arg2); + } else { + arg1->engine = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_engine_get(void * jarg1) { + char * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (char *) ((arg1)->engine); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_param_set(void * jarg1, char * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->param; + if (arg2) { + arg1->param = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->param, (const char *)arg2); + } else { + arg1->param = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_speech_handle_param_get(void * jarg1) { + char * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (char *) ((arg1)->param); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_memory_pool_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->memory_pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_memory_pool_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->memory_pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_resampler_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (switch_audio_resampler_t *)jarg2; + if (arg1) (arg1)->resampler = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_resampler_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_audio_resampler_t *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (switch_audio_resampler_t *) ((arg1)->resampler); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_buffer_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_buffer_t *arg2 = (switch_buffer_t *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (switch_buffer_t *)jarg2; + if (arg1) (arg1)->buffer = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_buffer_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_buffer_t *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (switch_buffer_t *) ((arg1)->buffer); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_dbuf_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_byte_t *arg2 = (switch_byte_t *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (switch_byte_t *)jarg2; + if (arg1) (arg1)->dbuf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_dbuf_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_byte_t *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (switch_byte_t *) ((arg1)->dbuf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_dbuflen_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_speech_handle *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->dbuflen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_dbuflen_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + switch_size_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = ((arg1)->dbuflen); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_samplerate_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samplerate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_samplerate_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->samplerate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_native_rate_set(void * jarg1, unsigned long jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->native_rate = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_native_rate_get(void * jarg1) { + unsigned long jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + uint32_t result; + + arg1 = (switch_speech_handle *)jarg1; + result = (uint32_t) ((arg1)->native_rate); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_private_info_set(void * jarg1, void * jarg2) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_private_info_get(void * jarg1) { + void * jresult ; + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + void *result = 0 ; + + arg1 = (switch_speech_handle *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_speech_handle() { + void * jresult ; + switch_speech_handle *result = 0 ; + + result = (switch_speech_handle *)new switch_speech_handle(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_speech_handle(void * jarg1) { + switch_speech_handle *arg1 = (switch_speech_handle *) 0 ; + + arg1 = (switch_speech_handle *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_say_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_say_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_say_function_set(void * jarg1, void * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_say_callback_t arg2 = (switch_say_callback_t) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (switch_say_callback_t)jarg2; + if (arg1) (arg1)->say_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_say_function_get(void * jarg1) { + void * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_say_callback_t result; + + arg1 = (switch_say_interface *)jarg1; + result = (switch_say_callback_t) ((arg1)->say_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_say_string_function_set(void * jarg1, void * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_say_string_callback_t arg2 = (switch_say_string_callback_t) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (switch_say_string_callback_t)jarg2; + if (arg1) (arg1)->say_string_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_say_string_function_get(void * jarg1) { + void * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_say_string_callback_t result; + + arg1 = (switch_say_interface *)jarg1; + result = (switch_say_string_callback_t) ((arg1)->say_string_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_say_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_refs_set(void * jarg1, int jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + int arg2 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_interface_refs_get(void * jarg1) { + int jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + int result; + + arg1 = (switch_say_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_reflock_set(void * jarg1, void * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_say_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_parent_set(void * jarg1, void * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_parent_get(void * jarg1) { + void * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_say_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_interface_next_set(void * jarg1, void * jarg2) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_say_interface *arg2 = (switch_say_interface *) 0 ; + + arg1 = (switch_say_interface *)jarg1; + arg2 = (switch_say_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_say_interface_next_get(void * jarg1) { + void * jresult ; + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + switch_say_interface *result = 0 ; + + arg1 = (switch_say_interface *)jarg1; + result = (switch_say_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_say_interface() { + void * jresult ; + switch_say_interface *result = 0 ; + + result = (switch_say_interface *)new switch_say_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_say_interface(void * jarg1) { + switch_say_interface *arg1 = (switch_say_interface *) 0 ; + + arg1 = (switch_say_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_chat_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_chat_send_set(void * jarg1, void * jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_status_t (*arg2)(switch_event_t *) = (switch_status_t (*)(switch_event_t *)) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_event_t *))jarg2; + if (arg1) (arg1)->chat_send = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_chat_send_get(void * jarg1) { + void * jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_status_t (*result)(switch_event_t *) = 0 ; + + arg1 = (switch_chat_interface *)jarg1; + result = (switch_status_t (*)(switch_event_t *)) ((arg1)->chat_send); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_chat_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_refs_set(void * jarg1, int jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + int arg2 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_chat_interface_refs_get(void * jarg1) { + int jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + int result; + + arg1 = (switch_chat_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_reflock_set(void * jarg1, void * jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_chat_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_parent_set(void * jarg1, void * jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_parent_get(void * jarg1) { + void * jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_chat_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_interface_next_set(void * jarg1, void * jarg2) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_chat_interface *arg2 = (switch_chat_interface *) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + arg2 = (switch_chat_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_interface_next_get(void * jarg1) { + void * jresult ; + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + switch_chat_interface *result = 0 ; + + arg1 = (switch_chat_interface *)jarg1; + result = (switch_chat_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_chat_interface() { + void * jresult ; + switch_chat_interface *result = 0 ; + + result = (switch_chat_interface *)new switch_chat_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_chat_interface(void * jarg1) { + switch_chat_interface *arg1 = (switch_chat_interface *) 0 ; + + arg1 = (switch_chat_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_relative_oid_set(void * jarg1, char * jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->relative_oid = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->relative_oid, (const char *)arg2); + } else { + arg1->relative_oid = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_management_interface_relative_oid_get(void * jarg1) { + char * jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_management_interface *)jarg1; + result = (char *) ((arg1)->relative_oid); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_management_function_set(void * jarg1, void * jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_status_t (*arg2)(char *,switch_management_action_t,char *,switch_size_t) = (switch_status_t (*)(char *,switch_management_action_t,char *,switch_size_t)) 0 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (switch_status_t (*)(char *,switch_management_action_t,char *,switch_size_t))jarg2; + if (arg1) (arg1)->management_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_management_function_get(void * jarg1) { + void * jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_status_t (*result)(char *,switch_management_action_t,char *,switch_size_t) = 0 ; + + arg1 = (switch_management_interface *)jarg1; + result = (switch_status_t (*)(char *,switch_management_action_t,char *,switch_size_t)) ((arg1)->management_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_management_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_refs_set(void * jarg1, int jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + int arg2 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_management_interface_refs_get(void * jarg1) { + int jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + int result; + + arg1 = (switch_management_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_reflock_set(void * jarg1, void * jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_management_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_parent_set(void * jarg1, void * jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_parent_get(void * jarg1) { + void * jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_management_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_management_interface_next_set(void * jarg1, void * jarg2) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_management_interface *arg2 = (switch_management_interface *) 0 ; + + arg1 = (switch_management_interface *)jarg1; + arg2 = (switch_management_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_management_interface_next_get(void * jarg1) { + void * jresult ; + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + switch_management_interface *result = 0 ; + + arg1 = (switch_management_interface *)jarg1; + result = (switch_management_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_management_interface() { + void * jresult ; + switch_management_interface *result = 0 ; + + result = (switch_management_interface *)new switch_management_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_management_interface(void * jarg1) { + switch_management_interface *arg1 = (switch_management_interface *) 0 ; + + arg1 = (switch_management_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_limit_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_incr_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(switch_core_session_t *,char const *,char const *,int const,int const) = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const))jarg2; + if (arg1) (arg1)->incr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_incr_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(switch_core_session_t *,char const *,char const *,int const,int const) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const)) ((arg1)->incr); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_release_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(switch_core_session_t *,char const *,char const *) = (switch_status_t (*)(switch_core_session_t *,char const *,char const *)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_core_session_t *,char const *,char const *))jarg2; + if (arg1) (arg1)->release = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_release_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(switch_core_session_t *,char const *,char const *) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(switch_core_session_t *,char const *,char const *)) ((arg1)->release); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_usage_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int (*arg2)(char const *,char const *,uint32_t *) = (int (*)(char const *,char const *,uint32_t *)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (int (*)(char const *,char const *,uint32_t *))jarg2; + if (arg1) (arg1)->usage = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_usage_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int (*result)(char const *,char const *,uint32_t *) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (int (*)(char const *,char const *,uint32_t *)) ((arg1)->usage); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_reset_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(void) = (switch_status_t (*)(void)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(void))jarg2; + if (arg1) (arg1)->reset = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_reset_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(void) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(void)) ((arg1)->reset); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_status_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *(*arg2)(void) = (char *(*)(void)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (char *(*)(void))jarg2; + if (arg1) (arg1)->status = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_status_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *(*result)(void) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (char *(*)(void)) ((arg1)->status); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_interval_reset_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(char const *,char const *) = (switch_status_t (*)(char const *,char const *)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(char const *,char const *))jarg2; + if (arg1) (arg1)->interval_reset = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_interval_reset_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(char const *,char const *) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(char const *,char const *)) ((arg1)->interval_reset); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_refs_set(void * jarg1, int jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int arg2 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_limit_interface_refs_get(void * jarg1) { + int jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int result; + + arg1 = (switch_limit_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_reflock_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_parent_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_parent_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_next_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_limit_interface *arg2 = (switch_limit_interface *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_limit_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_next_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_limit_interface *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_limit_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_limit_interface() { + void * jresult ; + switch_limit_interface *result = 0 ; + + result = (switch_limit_interface *)new switch_limit_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_limit_interface(void * jarg1) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directory_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_open_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*arg2)(switch_directory_handle_t *,char *,char *,char *) = (switch_status_t (*)(switch_directory_handle_t *,char *,char *,char *)) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_directory_handle_t *,char *,char *,char *))jarg2; + if (arg1) (arg1)->directory_open = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_open_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*result)(switch_directory_handle_t *,char *,char *,char *) = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_status_t (*)(switch_directory_handle_t *,char *,char *,char *)) ((arg1)->directory_open); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_close_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*arg2)(switch_directory_handle_t *) = (switch_status_t (*)(switch_directory_handle_t *)) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_directory_handle_t *))jarg2; + if (arg1) (arg1)->directory_close = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_close_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*result)(switch_directory_handle_t *) = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_status_t (*)(switch_directory_handle_t *)) ((arg1)->directory_close); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_query_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*arg2)(switch_directory_handle_t *,char *,char *) = (switch_status_t (*)(switch_directory_handle_t *,char *,char *)) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_directory_handle_t *,char *,char *))jarg2; + if (arg1) (arg1)->directory_query = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_query_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*result)(switch_directory_handle_t *,char *,char *) = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_status_t (*)(switch_directory_handle_t *,char *,char *)) ((arg1)->directory_query); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_next_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*arg2)(switch_directory_handle_t *) = (switch_status_t (*)(switch_directory_handle_t *)) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_directory_handle_t *))jarg2; + if (arg1) (arg1)->directory_next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_next_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*result)(switch_directory_handle_t *) = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_status_t (*)(switch_directory_handle_t *)) ((arg1)->directory_next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_directory_next_pair_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*arg2)(switch_directory_handle_t *,char **,char **) = (switch_status_t (*)(switch_directory_handle_t *,char **,char **)) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_directory_handle_t *,char **,char **))jarg2; + if (arg1) (arg1)->directory_next_pair = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_directory_next_pair_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_status_t (*result)(switch_directory_handle_t *,char **,char **) = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_status_t (*)(switch_directory_handle_t *,char **,char **)) ((arg1)->directory_next_pair); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_refs_set(void * jarg1, int jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + int arg2 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_directory_interface_refs_get(void * jarg1) { + int jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + int result; + + arg1 = (switch_directory_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_reflock_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_parent_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_parent_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_next_set(void * jarg1, void * jarg2) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_directory_interface *arg2 = (switch_directory_interface *) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + arg2 = (switch_directory_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_interface_next_get(void * jarg1) { + void * jresult ; + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + switch_directory_interface *result = 0 ; + + arg1 = (switch_directory_interface *)jarg1; + result = (switch_directory_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directory_interface() { + void * jresult ; + switch_directory_interface *result = 0 ; + + result = (switch_directory_interface *)new switch_directory_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directory_interface(void * jarg1) { + switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; + + arg1 = (switch_directory_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_directory_interface_set(void * jarg1, void * jarg2) { + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + switch_directory_interface_t *arg2 = (switch_directory_interface_t *) 0 ; + + arg1 = (switch_directory_handle *)jarg1; + arg2 = (switch_directory_interface_t *)jarg2; + if (arg1) (arg1)->directory_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_handle_directory_interface_get(void * jarg1) { + void * jresult ; + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + switch_directory_interface_t *result = 0 ; + + arg1 = (switch_directory_handle *)jarg1; + result = (switch_directory_interface_t *) ((arg1)->directory_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_flags_set(void * jarg1, unsigned long jarg2) { + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_directory_handle *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_directory_handle_flags_get(void * jarg1) { + unsigned long jresult ; + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + uint32_t result; + + arg1 = (switch_directory_handle *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_memory_pool_set(void * jarg1, void * jarg2) { + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_directory_handle *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->memory_pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_handle_memory_pool_get(void * jarg1) { + void * jresult ; + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_directory_handle *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->memory_pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_handle_private_info_set(void * jarg1, void * jarg2) { + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_directory_handle *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_directory_handle_private_info_get(void * jarg1) { + void * jresult ; + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + void *result = 0 ; + + arg1 = (switch_directory_handle *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directory_handle() { + void * jresult ; + switch_directory_handle *result = 0 ; + + result = (switch_directory_handle *)new switch_directory_handle(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directory_handle(void * jarg1) { + switch_directory_handle *arg1 = (switch_directory_handle *) 0 ; + + arg1 = (switch_directory_handle *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_settings_unused_set(void * jarg1, int jarg2) { + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + int arg2 ; + + arg1 = (switch_codec_settings *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->unused = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_settings_unused_get(void * jarg1) { + int jresult ; + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + int result; + + arg1 = (switch_codec_settings *)jarg1; + result = (int) ((arg1)->unused); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_settings() { + void * jresult ; + switch_codec_settings *result = 0 ; + + result = (switch_codec_settings *)new switch_codec_settings(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_settings(void * jarg1) { + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + + arg1 = (switch_codec_settings *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_actual_samples_per_second_set(void * jarg1, unsigned long jarg2) { + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_fmtp *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->actual_samples_per_second = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_fmtp_actual_samples_per_second_get(void * jarg1) { + unsigned long jresult ; + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + uint32_t result; + + arg1 = (switch_codec_fmtp *)jarg1; + result = (uint32_t) ((arg1)->actual_samples_per_second); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_bits_per_second_set(void * jarg1, int jarg2) { + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + int arg2 ; + + arg1 = (switch_codec_fmtp *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->bits_per_second = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_fmtp_bits_per_second_get(void * jarg1) { + int jresult ; + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + int result; + + arg1 = (switch_codec_fmtp *)jarg1; + result = (int) ((arg1)->bits_per_second); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_microseconds_per_packet_set(void * jarg1, int jarg2) { + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + int arg2 ; + + arg1 = (switch_codec_fmtp *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->microseconds_per_packet = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_fmtp_microseconds_per_packet_get(void * jarg1) { + int jresult ; + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + int result; + + arg1 = (switch_codec_fmtp *)jarg1; + result = (int) ((arg1)->microseconds_per_packet); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_stereo_set(void * jarg1, int jarg2) { + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + int arg2 ; + + arg1 = (switch_codec_fmtp *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->stereo = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_fmtp_stereo_get(void * jarg1) { + int jresult ; + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + int result; + + arg1 = (switch_codec_fmtp *)jarg1; + result = (int) ((arg1)->stereo); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_private_info_set(void * jarg1, void * jarg2) { + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_codec_fmtp *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_fmtp_private_info_get(void * jarg1) { + void * jresult ; + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + void *result = 0 ; + + arg1 = (switch_codec_fmtp *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_fmtp() { + void * jresult ; + switch_codec_fmtp *result = 0 ; + + result = (switch_codec_fmtp *)new switch_codec_fmtp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_fmtp(void * jarg1) { + switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ; + + arg1 = (switch_codec_fmtp *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_codec_interface_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_codec_interface_t *)jarg2; + if (arg1) (arg1)->codec_interface = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_codec_interface_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_codec_interface_t *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_codec_interface_t *) ((arg1)->codec_interface); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + if (arg1) (arg1)->implementation = (switch_codec_implementation_t const *)arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_codec_implementation_t *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_codec_implementation_t *) ((arg1)->implementation); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_in_set(void * jarg1, char * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->fmtp_in; + if (arg2) { + arg1->fmtp_in = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->fmtp_in, (const char *)arg2); + } else { + arg1->fmtp_in = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_fmtp_in_get(void * jarg1) { + char * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (char *) ((arg1)->fmtp_in); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_fmtp_out_set(void * jarg1, char * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->fmtp_out; + if (arg2) { + arg1->fmtp_out = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->fmtp_out, (const char *)arg2); + } else { + arg1->fmtp_out = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_fmtp_out_get(void * jarg1) { + char * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (char *) ((arg1)->fmtp_out); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_flags_set(void * jarg1, unsigned long jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_flags_get(void * jarg1) { + unsigned long jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + uint32_t result; + + arg1 = (switch_codec *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_memory_pool_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + if (arg1) (arg1)->memory_pool = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_memory_pool_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_memory_pool_t *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_memory_pool_t *) ((arg1)->memory_pool); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_private_info_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->private_info = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_private_info_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + void *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (void *) ((arg1)->private_info); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_agreed_pt_set(void * jarg1, unsigned char jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_payload_t)jarg2; + if (arg1) (arg1)->agreed_pt = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_codec_agreed_pt_get(void * jarg1) { + unsigned char jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_payload_t result; + + arg1 = (switch_codec *)jarg1; + result = (switch_payload_t) ((arg1)->agreed_pt); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_mutex_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->mutex = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_mutex_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_mutex_t *) ((arg1)->mutex); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_next_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_codec *arg2 = (switch_codec *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_codec *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_next_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_codec *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_codec *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_session_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + if (arg1) (arg1)->session = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_session_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_core_session_t *) ((arg1)->session); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_cur_frame_set(void * jarg1, void * jarg2) { + switch_codec *arg1 = (switch_codec *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + + arg1 = (switch_codec *)jarg1; + arg2 = (switch_frame_t *)jarg2; + if (arg1) (arg1)->cur_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_cur_frame_get(void * jarg1) { + void * jresult ; + switch_codec *arg1 = (switch_codec *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_codec *)jarg1; + result = (switch_frame_t *) ((arg1)->cur_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec() { + void * jresult ; + switch_codec *result = 0 ; + + result = (switch_codec *)new switch_codec(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec(void * jarg1) { + switch_codec *arg1 = (switch_codec *) 0 ; + + arg1 = (switch_codec *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_type_set(void * jarg1, int jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_codec_type_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_codec_type_t)jarg2; + if (arg1) (arg1)->codec_type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_codec_type_get(void * jarg1) { + int jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_codec_type_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_codec_type_t) ((arg1)->codec_type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_ianacode_set(void * jarg1, unsigned char jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_payload_t)jarg2; + if (arg1) (arg1)->ianacode = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_codec_implementation_ianacode_get(void * jarg1) { + unsigned char jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_payload_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_payload_t) ((arg1)->ianacode); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_iananame_set(void * jarg1, char * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->iananame; + if (arg2) { + arg1->iananame = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->iananame, (const char *)arg2); + } else { + arg1->iananame = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_implementation_iananame_get(void * jarg1) { + char * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + result = (char *) ((arg1)->iananame); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_fmtp_set(void * jarg1, char * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->fmtp; + if (arg2) { + arg1->fmtp = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->fmtp, (const char *)arg2); + } else { + arg1->fmtp = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_implementation_fmtp_get(void * jarg1) { + char * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + result = (char *) ((arg1)->fmtp); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_second_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samples_per_second = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_second_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->samples_per_second); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_actual_samples_per_second_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->actual_samples_per_second = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_actual_samples_per_second_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->actual_samples_per_second); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_bits_per_second_set(void * jarg1, int jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + int arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->bits_per_second = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_bits_per_second_get(void * jarg1) { + int jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + int result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (int) ((arg1)->bits_per_second); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_microseconds_per_packet_set(void * jarg1, int jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + int arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->microseconds_per_packet = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_microseconds_per_packet_get(void * jarg1) { + int jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + int result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (int) ((arg1)->microseconds_per_packet); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_packet_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->samples_per_packet = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_samples_per_packet_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->samples_per_packet); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_decoded_bytes_per_packet_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->decoded_bytes_per_packet = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_decoded_bytes_per_packet_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->decoded_bytes_per_packet); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_encoded_bytes_per_packet_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->encoded_bytes_per_packet = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_encoded_bytes_per_packet_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->encoded_bytes_per_packet); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_number_of_channels_set(void * jarg1, unsigned char jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->number_of_channels = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_codec_implementation_number_of_channels_get(void * jarg1) { + unsigned char jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint8_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint8_t) ((arg1)->number_of_channels); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_frames_per_packet_set(void * jarg1, int jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + int arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->codec_frames_per_packet = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_implementation_codec_frames_per_packet_get(void * jarg1) { + int jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + int result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (int) ((arg1)->codec_frames_per_packet); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_init_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_init_func_t arg2 = (switch_core_codec_init_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_init_func_t)jarg2; + if (arg1) (arg1)->init = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_init_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_init_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_init_func_t) ((arg1)->init); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_encode_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_encode_func_t arg2 = (switch_core_codec_encode_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_encode_func_t)jarg2; + if (arg1) (arg1)->encode = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_encode_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_encode_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_encode_func_t) ((arg1)->encode); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_decode_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_decode_func_t arg2 = (switch_core_codec_decode_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_decode_func_t)jarg2; + if (arg1) (arg1)->decode = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_decode_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_decode_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_decode_func_t) ((arg1)->decode); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_destroy_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_destroy_func_t arg2 = (switch_core_codec_destroy_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_destroy_func_t)jarg2; + if (arg1) (arg1)->destroy = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_destroy_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_destroy_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_destroy_func_t) ((arg1)->destroy); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_id_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->codec_id = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_codec_id_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->codec_id); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_impl_id_set(void * jarg1, unsigned long jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->impl_id = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_impl_id_get(void * jarg1) { + unsigned long jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + uint32_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (uint32_t) ((arg1)->impl_id); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_next_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_codec_implementation *arg2 = (switch_codec_implementation *) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_codec_implementation *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_next_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_codec_implementation *result = 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_codec_implementation *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_implementation() { + void * jresult ; + switch_codec_implementation *result = 0 ; + + result = (switch_codec_implementation *)new switch_codec_implementation(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_implementation(void * jarg1) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_implementations_set(void * jarg1, void * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (switch_codec_implementation_t *)jarg2; + if (arg1) (arg1)->implementations = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_implementations_get(void * jarg1) { + void * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_codec_implementation_t *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (switch_codec_implementation_t *) ((arg1)->implementations); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_parse_fmtp_set(void * jarg1, void * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_core_codec_fmtp_parse_func_t arg2 = (switch_core_codec_fmtp_parse_func_t) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (switch_core_codec_fmtp_parse_func_t)jarg2; + if (arg1) (arg1)->parse_fmtp = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_parse_fmtp_get(void * jarg1) { + void * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_core_codec_fmtp_parse_func_t result; + + arg1 = (switch_codec_interface *)jarg1; + result = (switch_core_codec_fmtp_parse_func_t) ((arg1)->parse_fmtp); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_codec_id_set(void * jarg1, unsigned long jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->codec_id = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_interface_codec_id_get(void * jarg1) { + unsigned long jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + uint32_t result; + + arg1 = (switch_codec_interface *)jarg1; + result = (uint32_t) ((arg1)->codec_id); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_refs_set(void * jarg1, int jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + int arg2 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_interface_refs_get(void * jarg1) { + int jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + int result; + + arg1 = (switch_codec_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_reflock_set(void * jarg1, void * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_parent_set(void * jarg1, void * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_parent_get(void * jarg1) { + void * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_next_set(void * jarg1, void * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_codec_interface *arg2 = (switch_codec_interface *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (switch_codec_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_next_get(void * jarg1) { + void * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + switch_codec_interface *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (switch_codec_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_interface() { + void * jresult ; + switch_codec_interface *result = 0 ; + + result = (switch_codec_interface *)new switch_codec_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_interface(void * jarg1) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_application_function_set(void * jarg1, void * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_application_function_t arg2 = (switch_application_function_t) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (switch_application_function_t)jarg2; + if (arg1) (arg1)->application_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_application_function_get(void * jarg1) { + void * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_application_function_t result; + + arg1 = (switch_application_interface *)jarg1; + result = (switch_application_function_t) ((arg1)->application_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_long_desc_set(void * jarg1, char * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->long_desc = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->long_desc, (const char *)arg2); + } else { + arg1->long_desc = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_long_desc_get(void * jarg1) { + char * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (char *) ((arg1)->long_desc); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_short_desc_set(void * jarg1, char * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->short_desc = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->short_desc, (const char *)arg2); + } else { + arg1->short_desc = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_short_desc_get(void * jarg1) { + char * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (char *) ((arg1)->short_desc); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_syntax_set(void * jarg1, char * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->syntax, (const char *)arg2); + } else { + arg1->syntax = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_application_interface_syntax_get(void * jarg1) { + char * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (char *) ((arg1)->syntax); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_flags_set(void * jarg1, unsigned long jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_application_interface_flags_get(void * jarg1) { + unsigned long jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + uint32_t result; + + arg1 = (switch_application_interface *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_refs_set(void * jarg1, int jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + int arg2 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_application_interface_refs_get(void * jarg1) { + int jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + int result; + + arg1 = (switch_application_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_reflock_set(void * jarg1, void * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_parent_set(void * jarg1, void * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_parent_get(void * jarg1) { + void * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_application_interface_next_set(void * jarg1, void * jarg2) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_application_interface *arg2 = (switch_application_interface *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + arg2 = (switch_application_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_application_interface_next_get(void * jarg1) { + void * jresult ; + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + switch_application_interface *result = 0 ; + + arg1 = (switch_application_interface *)jarg1; + result = (switch_application_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_application_interface() { + void * jresult ; + switch_application_interface *result = 0 ; + + result = (switch_application_interface *)new switch_application_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_application_interface(void * jarg1) { + switch_application_interface *arg1 = (switch_application_interface *) 0 ; + + arg1 = (switch_application_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_chat_application_function_set(void * jarg1, void * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_chat_application_function_t arg2 = (switch_chat_application_function_t) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (switch_chat_application_function_t)jarg2; + if (arg1) (arg1)->chat_application_function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_chat_application_function_get(void * jarg1) { + void * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_chat_application_function_t result; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (switch_chat_application_function_t) ((arg1)->chat_application_function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_long_desc_set(void * jarg1, char * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->long_desc = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->long_desc, (const char *)arg2); + } else { + arg1->long_desc = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_long_desc_get(void * jarg1) { + char * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (char *) ((arg1)->long_desc); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_short_desc_set(void * jarg1, char * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->short_desc = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->short_desc, (const char *)arg2); + } else { + arg1->short_desc = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_short_desc_get(void * jarg1) { + char * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (char *) ((arg1)->short_desc); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_syntax_set(void * jarg1, char * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->syntax, (const char *)arg2); + } else { + arg1->syntax = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_chat_application_interface_syntax_get(void * jarg1) { + char * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (char *) ((arg1)->syntax); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_flags_set(void * jarg1, unsigned long jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_chat_application_interface_flags_get(void * jarg1) { + unsigned long jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + uint32_t result; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_refs_set(void * jarg1, int jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + int arg2 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_chat_application_interface_refs_get(void * jarg1) { + int jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + int result; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_reflock_set(void * jarg1, void * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_parent_set(void * jarg1, void * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_parent_get(void * jarg1) { + void * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_chat_application_interface_next_set(void * jarg1, void * jarg2) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_chat_application_interface *arg2 = (switch_chat_application_interface *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + arg2 = (switch_chat_application_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_chat_application_interface_next_get(void * jarg1) { + void * jresult ; + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + switch_chat_application_interface *result = 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + result = (switch_chat_application_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_chat_application_interface() { + void * jresult ; + switch_chat_application_interface *result = 0 ; + + result = (switch_chat_application_interface *)new switch_chat_application_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_chat_application_interface(void * jarg1) { + switch_chat_application_interface *arg1 = (switch_chat_application_interface *) 0 ; + + arg1 = (switch_chat_application_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_api_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_desc_set(void * jarg1, char * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->desc = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->desc, (const char *)arg2); + } else { + arg1->desc = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_api_interface_desc_get(void * jarg1) { + char * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (char *) ((arg1)->desc); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_function_set(void * jarg1, void * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_api_function_t arg2 = (switch_api_function_t) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (switch_api_function_t)jarg2; + if (arg1) (arg1)->function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_function_get(void * jarg1) { + void * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_api_function_t result; + + arg1 = (switch_api_interface *)jarg1; + result = (switch_api_function_t) ((arg1)->function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_syntax_set(void * jarg1, char * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->syntax, (const char *)arg2); + } else { + arg1->syntax = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_api_interface_syntax_get(void * jarg1) { + char * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (char *) ((arg1)->syntax); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_refs_set(void * jarg1, int jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + int arg2 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_api_interface_refs_get(void * jarg1) { + int jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + int result; + + arg1 = (switch_api_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_reflock_set(void * jarg1, void * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_parent_set(void * jarg1, void * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_parent_get(void * jarg1) { + void * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_api_interface_next_set(void * jarg1, void * jarg2) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_api_interface *arg2 = (switch_api_interface *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + arg2 = (switch_api_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_api_interface_next_get(void * jarg1) { + void * jresult ; + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + switch_api_interface *result = 0 ; + + arg1 = (switch_api_interface *)jarg1; + result = (switch_api_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_api_interface() { + void * jresult ; + switch_api_interface *result = 0 ; + + result = (switch_api_interface *)new switch_api_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_api_interface(void * jarg1) { + switch_api_interface *arg1 = (switch_api_interface *) 0 ; + + arg1 = (switch_api_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_json_api_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_desc_set(void * jarg1, char * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->desc = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->desc, (const char *)arg2); + } else { + arg1->desc = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_json_api_interface_desc_get(void * jarg1) { + char * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (char *) ((arg1)->desc); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_function_set(void * jarg1, void * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_json_api_function_t arg2 = (switch_json_api_function_t) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (switch_json_api_function_t)jarg2; + if (arg1) (arg1)->function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_function_get(void * jarg1) { + void * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_json_api_function_t result; + + arg1 = (switch_json_api_interface *)jarg1; + result = (switch_json_api_function_t) ((arg1)->function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_syntax_set(void * jarg1, char * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->syntax = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->syntax, (const char *)arg2); + } else { + arg1->syntax = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_json_api_interface_syntax_get(void * jarg1) { + char * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (char *) ((arg1)->syntax); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_refs_set(void * jarg1, int jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + int arg2 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_json_api_interface_refs_get(void * jarg1) { + int jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + int result; + + arg1 = (switch_json_api_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_reflock_set(void * jarg1, void * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_parent_set(void * jarg1, void * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_parent_get(void * jarg1) { + void * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_api_interface_next_set(void * jarg1, void * jarg2) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_json_api_interface *arg2 = (switch_json_api_interface *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + arg2 = (switch_json_api_interface *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_json_api_interface_next_get(void * jarg1) { + void * jresult ; + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + switch_json_api_interface *result = 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + result = (switch_json_api_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_json_api_interface() { + void * jresult ; + switch_json_api_interface *result = 0 ; + + result = (switch_json_api_interface *)new switch_json_api_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_json_api_interface(void * jarg1) { + switch_json_api_interface *arg1 = (switch_json_api_interface *) 0 ; + + arg1 = (switch_json_api_interface *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_session_set(void * jarg1, void * jarg2) { + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + + arg1 = (switch_slin_data *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + if (arg1) (arg1)->session = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_slin_data_session_get(void * jarg1) { + void * jresult ; + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_slin_data *)jarg1; + result = (switch_core_session_t *) ((arg1)->session); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_write_frame_set(void * jarg1, void * jarg2) { + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + + arg1 = (switch_slin_data *)jarg1; + arg2 = (switch_frame_t *)jarg2; + if (arg1) (arg1)->write_frame = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_slin_data_write_frame_get(void * jarg1) { + void * jresult ; + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_slin_data *)jarg1; + result = (switch_frame_t *)& ((arg1)->write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_codec_set(void * jarg1, void * jarg2) { + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + + arg1 = (switch_slin_data *)jarg1; + arg2 = (switch_codec_t *)jarg2; + if (arg1) (arg1)->codec = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_slin_data_codec_get(void * jarg1) { + void * jresult ; + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_slin_data *)jarg1; + result = (switch_codec_t *)& ((arg1)->codec); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_frame_data_set(void * jarg1, char * jarg2) { + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + char *arg2 ; + + arg1 = (switch_slin_data *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->frame_data, (const char *)arg2, 8192-1); + arg1->frame_data[8192-1] = 0; + } else { + arg1->frame_data[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_slin_data_frame_data_get(void * jarg1) { + char * jresult ; + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + char *result = 0 ; + + arg1 = (switch_slin_data *)jarg1; + result = (char *)(char *) ((arg1)->frame_data); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_slin_data() { + void * jresult ; + switch_slin_data *result = 0 ; + + result = (switch_slin_data *)new switch_slin_data(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_slin_data(void * jarg1) { + switch_slin_data *arg1 = (switch_slin_data *) 0 ; + + arg1 = (switch_slin_data *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_profile_created_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->profile_created = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_profile_created_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->profile_created); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_created_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->created = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_created_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->created); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_answered_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->answered = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_answered_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->answered); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_progress_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->progress = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_progress_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->progress); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_progress_media_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->progress_media = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_progress_media_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->progress_media); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_hungup_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->hungup = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_hungup_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->hungup); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_transferred_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->transferred = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_transferred_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->transferred); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_resurrected_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->resurrected = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_resurrected_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->resurrected); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_bridged_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bridged = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_bridged_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->bridged); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_last_hold_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->last_hold = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_last_hold_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->last_hold); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_hold_accum_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_channel_timetable *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->hold_accum = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_hold_accum_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_time_t result; + + arg1 = (switch_channel_timetable *)jarg1; + result = ((arg1)->hold_accum); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_next_set(void * jarg1, void * jarg2) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ; + + arg1 = (switch_channel_timetable *)jarg1; + arg2 = (switch_channel_timetable *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_next_get(void * jarg1) { + void * jresult ; + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + switch_channel_timetable *result = 0 ; + + arg1 = (switch_channel_timetable *)jarg1; + result = (switch_channel_timetable *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_channel_timetable() { + void * jresult ; + switch_channel_timetable *result = 0 ; + + result = (switch_channel_timetable *)new switch_channel_timetable(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_channel_timetable(void * jarg1) { + switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ; + + arg1 = (switch_channel_timetable *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_state(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_state_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_channel_state_t)switch_channel_get_state(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_running_state(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_state_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_channel_state_t)switch_channel_get_running_state(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_check_signal(void * jarg1, int jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_bool_t arg2 ; + int result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (int)switch_channel_check_signal(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_ready(void * jarg1, int jarg2, int jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_bool_t arg2 ; + switch_bool_t arg3 ; + int result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (int)switch_channel_test_ready(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_wait_for_state(void * jarg1, void * jarg2, int jarg3) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + switch_channel_state_t arg3 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (switch_channel_state_t)jarg3; + switch_channel_wait_for_state(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_wait_for_state_timeout(void * jarg1, int jarg2, unsigned long jarg3) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_state_t arg2 ; + uint32_t arg3 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_state_t)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_wait_for_state_timeout(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_wait_for_flag(void * jarg1, int jarg2, int jarg3, unsigned long jarg4, void * jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + switch_bool_t arg3 ; + uint32_t arg4 ; + switch_channel_t *arg5 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (switch_channel_t *)jarg5; + result = (switch_status_t)switch_channel_wait_for_flag(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_set_state(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_channel_state_t arg5 ; + switch_channel_state_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (switch_channel_state_t)jarg5; + result = (switch_channel_state_t)switch_channel_perform_set_state(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_set_running_state(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_state_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_channel_state_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_state_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_channel_state_t)switch_channel_perform_set_running_state(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_str2cause(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_call_cause_t result; + + arg1 = (char *)jarg1; + result = (switch_call_cause_t)switch_channel_str2cause((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_cause(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_cause_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_call_cause_t)switch_channel_get_cause(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_cause_q850(int jarg1) { + int jresult ; + switch_call_cause_t arg1 ; + switch_call_cause_t result; + + arg1 = (switch_call_cause_t)jarg1; + result = (switch_call_cause_t)switch_channel_cause_q850(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_cause_q850(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_cause_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_call_cause_t)switch_channel_get_cause_q850(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_cause_ptr(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_cause_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_call_cause_t *)switch_channel_get_cause_ptr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_cause2str(int jarg1) { + char * jresult ; + switch_call_cause_t arg1 ; + char *result = 0 ; + + arg1 = (switch_call_cause_t)jarg1; + result = (char *)switch_channel_cause2str(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_timetable(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_timetable_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_channel_timetable_t *)switch_channel_get_timetable(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_alloc(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + switch_channel_t **arg1 = (switch_channel_t **) 0 ; + switch_call_direction_t arg2 ; + switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t **)jarg1; + arg2 = (switch_call_direction_t)jarg2; + arg3 = (switch_memory_pool_t *)jarg3; + result = (switch_status_t)switch_channel_alloc(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_init(void * jarg1, void * jarg2, int jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_channel_state_t arg3 ; + switch_channel_flag_t arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (switch_channel_state_t)jarg3; + arg4 = (switch_channel_flag_t)jarg4; + result = (switch_status_t)switch_channel_init(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_presence_data_vals(void * jarg1, char * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + switch_channel_set_presence_data_vals(arg1,(char const *)arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_presence(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, int jarg7) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + int arg7 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (int)jarg7; + switch_channel_perform_presence(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_uninit(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_uninit(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_caller_profile(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + switch_channel_set_caller_profile(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_step_caller_profile(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_step_caller_profile(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_caller_profile(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_caller_profile_t *)switch_channel_get_caller_profile(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_originator_caller_profile(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + switch_channel_set_originator_caller_profile(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_hunt_caller_profile(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + switch_channel_set_hunt_caller_profile(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_originator_caller_profile(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_caller_profile_t *)switch_channel_get_originator_caller_profile(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_originatee_caller_profile(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + switch_channel_set_originatee_caller_profile(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_originatee_caller_profile(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_caller_profile_t *)switch_channel_get_originatee_caller_profile(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_origination_caller_profile(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + switch_channel_set_origination_caller_profile(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_origination_caller_profile(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_caller_profile_t *)switch_channel_get_origination_caller_profile(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_uuid(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_uuid(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_profile_var(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_channel_set_profile_var(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_var_check(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_channel_set_variable_var_check(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_add_variable_var_check(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t arg4 ; + switch_stack_t arg5 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_bool_t)jarg4; + arg5 = (switch_stack_t)jarg5; + result = (switch_status_t)switch_channel_add_variable_var_check(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_printf(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *arg4 = 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_channel_set_variable_printf(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_name_printf(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *arg4 = 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_channel_set_variable_name_printf(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_variable_partner_var_check(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_channel_set_variable_partner_var_check(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable_partner(void * jarg1, char * jarg2) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_channel_get_variable_partner(arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_hold_music(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_hold_music(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_hold_music_partner(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_hold_music_partner(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_del_variable_prefix(void * jarg1, char * jarg2) { + unsigned long jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (uint32_t)switch_channel_del_variable_prefix(arg1,(char const *)arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_transfer_variable_prefix(void * jarg1, void * jarg2, char * jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_channel_transfer_variable_prefix(arg1,arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_export_variable_var_check(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_bool_t arg5 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_bool_t)jarg5; + result = (switch_status_t)switch_channel_export_variable_var_check(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_process_export(void * jarg1, void * jarg2, void * jarg3, char * jarg4) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + switch_event_t *arg3 = (switch_event_t *) 0 ; + char *arg4 = (char *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (switch_event_t *)jarg3; + arg4 = (char *)jarg4; + switch_channel_process_export(arg1,arg2,arg3,(char const *)arg4); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_export_variable_printf(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *arg5 = 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_channel_export_variable_printf(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_scope_variables(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + switch_channel_set_scope_variables(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_scope_variables(void * jarg1, void * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_channel_get_scope_variables(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable_dup(void * jarg1, char * jarg2, int jarg3, int jarg4) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + int arg4 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (int)jarg4; + result = (char *)switch_channel_get_variable_dup(arg1,(char const *)arg2,arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_variables(void * jarg1, void * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t **arg2 = (switch_event_t **) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t **)jarg2; + result = (switch_status_t)switch_channel_get_variables(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_pass_callee_id(void * jarg1, void * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + result = (switch_status_t)switch_channel_pass_callee_id(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_variable_first(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_header_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_event_header_t *)switch_channel_variable_first(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_variable_last(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_variable_last(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_restart(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_restart(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_caller_extension_masquerade(void * jarg1, void * jarg2, unsigned long jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + result = (switch_status_t)switch_channel_caller_extension_masquerade(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_caller_extension(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_extension_t *)jarg2; + switch_channel_set_caller_extension(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_invert_cid(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_invert_cid(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_flip_cid(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_flip_cid(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_sort_cid(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_sort_cid(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_caller_extension(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_extension_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_caller_extension_t *)switch_channel_get_caller_extension(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_flag(void * jarg1, int jarg2) { + unsigned long jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + uint32_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + result = (uint32_t)switch_channel_test_flag(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag_value(void * jarg1, int jarg2, unsigned long jarg3) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + uint32_t arg3 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_set_flag_value(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag_recursive(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + switch_channel_set_flag_recursive(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_cap_value(void * jarg1, int jarg2, unsigned long jarg3) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_cap_t arg2 ; + uint32_t arg3 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_cap_t)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_set_cap_value(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_cap(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_cap_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_cap_t)jarg2; + switch_channel_clear_cap(arg1,arg2); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_cap(void * jarg1, int jarg2) { + unsigned long jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_cap_t arg2 ; + uint32_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_cap_t)jarg2; + result = (uint32_t)switch_channel_test_cap(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_cap_partner(void * jarg1, int jarg2) { + unsigned long jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_cap_t arg2 ; + uint32_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_cap_t)jarg2; + result = (uint32_t)switch_channel_test_cap_partner(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_flag_partner(void * jarg1, int jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + switch_bool_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + result = (switch_bool_t)switch_channel_set_flag_partner(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_clear_flag_partner(void * jarg1, int jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + switch_bool_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + result = (switch_bool_t)switch_channel_clear_flag_partner(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_flag_partner(void * jarg1, int jarg2) { + unsigned long jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + uint32_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + result = (uint32_t)switch_channel_test_flag_partner(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_state_flag(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + switch_channel_set_state_flag(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_state_flag(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + switch_channel_clear_state_flag(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_flag(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + switch_channel_clear_flag(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_flag_recursive(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_flag_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_flag_t)jarg2; + switch_channel_clear_flag_recursive(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_answer(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_channel_perform_answer(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_mark_answered(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_channel_perform_mark_answered(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_check_zrtp(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_check_zrtp(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_ring_ready_value(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_ring_ready_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_ring_ready_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_status_t)switch_channel_perform_ring_ready_value(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_pre_answer(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_channel_perform_pre_answer(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_mark_pre_answered(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_channel_perform_mark_pre_answered(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_mark_ring_ready_value(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_ring_ready_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_ring_ready_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + result = (switch_status_t)switch_channel_perform_mark_ring_ready_value(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_add_state_handler(void * jarg1, void * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_state_handler_table_t *arg2 = (switch_state_handler_table_t *) 0 ; + int result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_state_handler_table_t *)jarg2; + result = (int)switch_channel_add_state_handler(arg1,(switch_state_handler_table const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_state_handler(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_state_handler_table_t *arg2 = (switch_state_handler_table_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_state_handler_table_t *)jarg2; + switch_channel_clear_state_handler(arg1,(switch_state_handler_table const *)arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_state_handler(void * jarg1, int jarg2) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + int arg2 ; + switch_state_handler_table_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (int)jarg2; + result = (switch_state_handler_table_t *)switch_channel_get_state_handler(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_private(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_channel_set_private(arg1,(char const *)arg2,(void const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_private(void * jarg1, char * jarg2) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + void *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (void *)switch_channel_get_private(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_private_partner(void * jarg1, char * jarg2) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + void *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (void *)switch_channel_get_private_partner(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_name(void * jarg1, char * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_channel_set_name(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_name(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_name(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_perform_hangup(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_call_cause_t arg5 ; + switch_channel_state_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (switch_call_cause_t)jarg5; + result = (switch_channel_state_t)switch_channel_perform_hangup(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_has_dtmf(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_size_t result; + + arg1 = (switch_channel_t *)jarg1; + result = switch_channel_has_dtmf(arg1); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dtmf_lock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_dtmf_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_try_dtmf_lock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_try_dtmf_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dtmf_unlock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_dtmf_unlock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_queue_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = (switch_status_t)switch_channel_queue_dtmf(arg1,(switch_dtmf_t const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_queue_dtmf_string(void * jarg1, char * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_channel_queue_dtmf_string(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dequeue_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = (switch_status_t)switch_channel_dequeue_dtmf(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_flush_dtmf(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_flush_dtmf(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_dequeue_dtmf_string(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_channel_dequeue_dtmf_string(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_state_name(int jarg1) { + char * jresult ; + switch_channel_state_t arg1 ; + char *result = 0 ; + + arg1 = (switch_channel_state_t)jarg1; + result = (char *)switch_channel_state_name(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_name_state(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_channel_state_t result; + + arg1 = (char *)jarg1; + result = (switch_channel_state_t)switch_channel_name_state((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_event_set_data(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + switch_channel_event_set_data(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_event_set_basic_data(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + switch_channel_event_set_basic_data(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_event_set_extended_data(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + switch_channel_event_set_extended_data(arg1,arg2); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_expand_variables_check(void * jarg1, char * jarg2, void * jarg3, void * jarg4, unsigned long jarg5) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_event_t *arg3 = (switch_event_t *) 0 ; + switch_event_t *arg4 = (switch_event_t *) 0 ; + uint32_t arg5 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_event_t *)jarg3; + arg4 = (switch_event_t *)jarg4; + arg5 = (uint32_t)jarg5; + result = (char *)switch_channel_expand_variables_check(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_build_param_string(void * jarg1, void * jarg2, char * jarg3) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + arg3 = (char *)jarg3; + result = (char *)switch_channel_build_param_string(arg1,arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_set_timestamps(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_set_timestamps(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_audio_sync(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + switch_channel_perform_audio_sync(arg1,(char const *)arg2,(char const *)arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_private_flag(void * jarg1, unsigned long jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_channel_set_private_flag(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_private_flag(void * jarg1, unsigned long jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_channel_clear_private_flag(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_private_flag(void * jarg1, unsigned long jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + uint32_t arg2 ; + int result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (int)switch_channel_test_private_flag(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { + char *arg1 = (char *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; + + arg1 = (char *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_set_app_flag_key((char const *)arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { + char *arg1 = (char *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; + + arg1 = (char *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_clear_app_flag_key((char const *)arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + result = (int)switch_channel_test_app_flag_key((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_bridge_time(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_set_bridge_time(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_hangup_time(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_set_hangup_time(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_direction(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_direction_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_call_direction_t)switch_channel_direction(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_logical_direction(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_direction_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_call_direction_t)switch_channel_logical_direction(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_direction(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_direction_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + switch_channel_set_direction(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_session(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_core_session_t *)switch_channel_get_session(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_flag_string(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_flag_string(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_cap_string(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_cap_string(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_state_change_pending(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + int result; + + arg1 = (switch_channel_t *)jarg1; + result = (int)switch_channel_state_change_pending(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_set_callstate(void * jarg1, int jarg2, char * jarg3, char * jarg4, int jarg5) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_callstate_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_callstate_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + switch_channel_perform_set_callstate(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_callstate(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_callstate_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_channel_callstate_t)switch_channel_get_callstate(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_callstate2str(int jarg1) { + char * jresult ; + switch_channel_callstate_t arg1 ; + char *result = 0 ; + + arg1 = (switch_channel_callstate_t)jarg1; + result = (char *)switch_channel_callstate2str(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_str2callstate(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_channel_callstate_t result; + + arg1 = (char *)jarg1; + result = (switch_channel_callstate_t)switch_channel_str2callstate((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_mark_hold(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + switch_channel_mark_hold(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_execute_on(void * jarg1, char * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_channel_execute_on(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_api_on(void * jarg1, char * jarg2) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_channel_api_on(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_process_device_hangup(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_process_device_hangup(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_queued_extension(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_extension_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_caller_extension_t *)switch_channel_get_queued_extension(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_transfer_to_extension(void * jarg1, void * jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_caller_extension_t *)jarg2; + switch_channel_transfer_to_extension(arg1,arg2); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_partner_uuid(void * jarg1) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (char *)switch_channel_get_partner_uuid(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_hold_record(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_hold_record_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_hold_record_t *)switch_channel_get_hold_record(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_state_thread_lock(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_state_thread_lock(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_state_thread_unlock(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_state_thread_unlock(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_state_thread_trylock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_state_thread_trylock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_handle_cause(void * jarg1, int jarg2) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_call_cause_t arg2 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_call_cause_t)jarg2; + switch_channel_handle_cause(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_global_init(void * jarg1) { + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + switch_channel_global_init(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_global_uninit() { + switch_channel_global_uninit(); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_set_device_id(void * jarg1, char * jarg2) { + char * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_channel_set_device_id(arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_device_record(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_clear_device_record(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_device_record(void * jarg1) { + void * jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_device_record_t *result = 0 ; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_device_record_t *)switch_channel_get_device_record(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_release_device_record(void * jarg1) { + switch_device_record_t **arg1 = (switch_device_record_t **) 0 ; + + arg1 = (switch_device_record_t **)jarg1; + switch_channel_release_device_record(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_bind_device_state_handler(void * jarg1, void * jarg2) { + int jresult ; + switch_device_state_function_t arg1 = (switch_device_state_function_t) 0 ; + void *arg2 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_device_state_function_t)jarg1; + arg2 = (void *)jarg2; + result = (switch_status_t)switch_channel_bind_device_state_handler(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_unbind_device_state_handler(void * jarg1) { + int jresult ; + switch_device_state_function_t arg1 = (switch_device_state_function_t) 0 ; + switch_status_t result; + + arg1 = (switch_device_state_function_t)jarg1; + result = (switch_status_t)switch_channel_unbind_device_state_handler(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_device_state2str(int jarg1) { + char * jresult ; + switch_device_state_t arg1 ; + char *result = 0 ; + + arg1 = (switch_device_state_t)jarg1; + result = (char *)switch_channel_device_state2str(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_pass_sdp(void * jarg1, void * jarg2, char * jarg3) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_channel_pass_sdp(arg1,arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_buffer_t **arg2 = (switch_buffer_t **) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_buffer_t **)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_status_t)switch_buffer_create(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create_dynamic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_buffer_t **arg1 = (switch_buffer_t **) 0 ; + switch_size_t arg2 ; + switch_size_t arg3 ; + switch_size_t arg4 ; + switch_size_t *argp2 ; + switch_size_t *argp3 ; + switch_size_t *argp4 ; + switch_status_t result; + + arg1 = (switch_buffer_t **)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + result = (switch_status_t)switch_buffer_create_dynamic(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_add_mutex(void * jarg1, void * jarg2) { + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + switch_buffer_add_mutex(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_lock(void * jarg1) { + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + + arg1 = (switch_buffer_t *)jarg1; + switch_buffer_lock(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_trylock(void * jarg1) { + int jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_status_t result; + + arg1 = (switch_buffer_t *)jarg1; + result = (switch_status_t)switch_buffer_trylock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_unlock(void * jarg1) { + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + + arg1 = (switch_buffer_t *)jarg1; + switch_buffer_unlock(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_len(void * jarg1) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + result = switch_buffer_len(arg1); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_freespace(void * jarg1) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + result = switch_buffer_freespace(arg1); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_inuse(void * jarg1) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + result = switch_buffer_inuse(arg1); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_read(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_buffer_read(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_peek(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_buffer_peek(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_peek_zerocopy(void * jarg1, void * jarg2) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void **arg2 = (void **) 0 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void **)jarg2; + result = switch_buffer_peek_zerocopy(arg1,(void const **)arg2); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_read_loop(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_buffer_read_loop(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_set_loops(void * jarg1, int jarg2) { + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + int32_t arg2 ; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (int32_t)jarg2; + switch_buffer_set_loops(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_write(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_buffer_write(arg1,(void const *)arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_toss(void * jarg1, void * jarg2) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + result = switch_buffer_toss(arg1,arg2); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_zero(void * jarg1) { + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + + arg1 = (switch_buffer_t *)jarg1; + switch_buffer_zero(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_slide_write(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_buffer_slide_write(arg1,(void const *)arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_buffer_destroy(void * jarg1) { + switch_buffer_t **arg1 = (switch_buffer_t **) 0 ; + + arg1 = (switch_buffer_t **)jarg1; + switch_buffer_destroy(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_buffer_zwrite(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_buffer_zwrite(arg1,(void const *)arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_name_set(void * jarg1, char * jarg2) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_event_header *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->name; + if (arg2) { + arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->name, (const char *)arg2); + } else { + arg1->name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_header_name_get(void * jarg1) { + char * jresult ; + switch_event_header *arg1 = (switch_event_header *) 0 ; + char *result = 0 ; + + arg1 = (switch_event_header *)jarg1; + result = (char *) ((arg1)->name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_value_set(void * jarg1, char * jarg2) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_event_header *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->value; + if (arg2) { + arg1->value = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->value, (const char *)arg2); + } else { + arg1->value = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_header_value_get(void * jarg1) { + char * jresult ; + switch_event_header *arg1 = (switch_event_header *) 0 ; + char *result = 0 ; + + arg1 = (switch_event_header *)jarg1; + result = (char *) ((arg1)->value); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_array_set(void * jarg1, void * jarg2) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + char **arg2 = (char **) 0 ; + + arg1 = (switch_event_header *)jarg1; + arg2 = (char **)jarg2; + if (arg1) (arg1)->array = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_header_array_get(void * jarg1) { + void * jresult ; + switch_event_header *arg1 = (switch_event_header *) 0 ; + char **result = 0 ; + + arg1 = (switch_event_header *)jarg1; + result = (char **) ((arg1)->array); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_idx_set(void * jarg1, int jarg2) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + int arg2 ; + + arg1 = (switch_event_header *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->idx = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_header_idx_get(void * jarg1) { + int jresult ; + switch_event_header *arg1 = (switch_event_header *) 0 ; + int result; + + arg1 = (switch_event_header *)jarg1; + result = (int) ((arg1)->idx); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_hash_set(void * jarg1, unsigned long jarg2) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + unsigned long arg2 ; + + arg1 = (switch_event_header *)jarg1; + arg2 = (unsigned long)jarg2; + if (arg1) (arg1)->hash = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_header_hash_get(void * jarg1) { + unsigned long jresult ; + switch_event_header *arg1 = (switch_event_header *) 0 ; + unsigned long result; + + arg1 = (switch_event_header *)jarg1; + result = (unsigned long) ((arg1)->hash); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_header_next_set(void * jarg1, void * jarg2) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + switch_event_header *arg2 = (switch_event_header *) 0 ; + + arg1 = (switch_event_header *)jarg1; + arg2 = (switch_event_header *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_header_next_get(void * jarg1) { + void * jresult ; + switch_event_header *arg1 = (switch_event_header *) 0 ; + switch_event_header *result = 0 ; + + arg1 = (switch_event_header *)jarg1; + result = (switch_event_header *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_event_header() { + void * jresult ; + switch_event_header *result = 0 ; + + result = (switch_event_header *)new switch_event_header(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_event_header(void * jarg1) { + switch_event_header *arg1 = (switch_event_header *) 0 ; + + arg1 = (switch_event_header *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_event_id_set(void * jarg1, int jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + switch_event_types_t arg2 ; + + arg1 = (switch_event *)jarg1; + arg2 = (switch_event_types_t)jarg2; + if (arg1) (arg1)->event_id = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_event_id_get(void * jarg1) { + int jresult ; + switch_event *arg1 = (switch_event *) 0 ; + switch_event_types_t result; + + arg1 = (switch_event *)jarg1; + result = (switch_event_types_t) ((arg1)->event_id); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_priority_set(void * jarg1, int jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + switch_priority_t arg2 ; + + arg1 = (switch_event *)jarg1; + arg2 = (switch_priority_t)jarg2; + if (arg1) (arg1)->priority = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_priority_get(void * jarg1) { + int jresult ; + switch_event *arg1 = (switch_event *) 0 ; + switch_priority_t result; + + arg1 = (switch_event *)jarg1; + result = (switch_priority_t) ((arg1)->priority); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_owner_set(void * jarg1, char * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->owner; + if (arg2) { + arg1->owner = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->owner, (const char *)arg2); + } else { + arg1->owner = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_owner_get(void * jarg1) { + char * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + char *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (char *) ((arg1)->owner); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_subclass_name_set(void * jarg1, char * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->subclass_name; + if (arg2) { + arg1->subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->subclass_name, (const char *)arg2); + } else { + arg1->subclass_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_subclass_name_get(void * jarg1) { + char * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + char *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (char *) ((arg1)->subclass_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_headers_set(void * jarg1, void * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + switch_event_header_t *arg2 = (switch_event_header_t *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (switch_event_header_t *)jarg2; + if (arg1) (arg1)->headers = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_headers_get(void * jarg1) { + void * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + switch_event_header_t *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (switch_event_header_t *) ((arg1)->headers); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_last_header_set(void * jarg1, void * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + switch_event_header_t *arg2 = (switch_event_header_t *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (switch_event_header_t *)jarg2; + if (arg1) (arg1)->last_header = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_last_header_get(void * jarg1) { + void * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + switch_event_header_t *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (switch_event_header_t *) ((arg1)->last_header); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_body_set(void * jarg1, char * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->body; + if (arg2) { + arg1->body = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->body, (const char *)arg2); + } else { + arg1->body = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_body_get(void * jarg1) { + char * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + char *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (char *) ((arg1)->body); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_bind_user_data_set(void * jarg1, void * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->bind_user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_bind_user_data_get(void * jarg1) { + void * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + void *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (void *) ((arg1)->bind_user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_event_user_data_set(void * jarg1, void * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->event_user_data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_event_user_data_get(void * jarg1) { + void * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + void *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (void *) ((arg1)->event_user_data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_key_set(void * jarg1, unsigned long jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + unsigned long arg2 ; + + arg1 = (switch_event *)jarg1; + arg2 = (unsigned long)jarg2; + if (arg1) (arg1)->key = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_key_get(void * jarg1) { + unsigned long jresult ; + switch_event *arg1 = (switch_event *) 0 ; + unsigned long result; + + arg1 = (switch_event *)jarg1; + result = (unsigned long) ((arg1)->key); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_next_set(void * jarg1, void * jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + switch_event *arg2 = (switch_event *) 0 ; + + arg1 = (switch_event *)jarg1; + arg2 = (switch_event *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_next_get(void * jarg1) { + void * jresult ; + switch_event *arg1 = (switch_event *) 0 ; + switch_event *result = 0 ; + + arg1 = (switch_event *)jarg1; + result = (switch_event *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_flags_set(void * jarg1, int jarg2) { + switch_event *arg1 = (switch_event *) 0 ; + int arg2 ; + + arg1 = (switch_event *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_flags_get(void * jarg1) { + int jresult ; + switch_event *arg1 = (switch_event *) 0 ; + int result; + + arg1 = (switch_event *)jarg1; + result = (int) ((arg1)->flags); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_event() { + void * jresult ; + switch_event *result = 0 ; + + result = (switch_event *)new switch_event(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_event(void * jarg1) { + switch_event *arg1 = (switch_event *) 0 ; + + arg1 = (switch_event *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_event_id_set(void * jarg1, int jarg2) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + int arg2 ; + + arg1 = (switch_serial_event_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->event_id = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_serial_event_t_event_id_get(void * jarg1) { + int jresult ; + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + int result; + + arg1 = (switch_serial_event_s *)jarg1; + result = (int) ((arg1)->event_id); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_priority_set(void * jarg1, int jarg2) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + int arg2 ; + + arg1 = (switch_serial_event_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->priority = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_serial_event_t_priority_get(void * jarg1) { + int jresult ; + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + int result; + + arg1 = (switch_serial_event_s *)jarg1; + result = (int) ((arg1)->priority); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_flags_set(void * jarg1, int jarg2) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + int arg2 ; + + arg1 = (switch_serial_event_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_serial_event_t_flags_get(void * jarg1) { + int jresult ; + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + int result; + + arg1 = (switch_serial_event_s *)jarg1; + result = (int) ((arg1)->flags); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_owner_set(void * jarg1, char * jarg2) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->owner; + if (arg2) { + arg1->owner = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->owner, (const char *)arg2); + } else { + arg1->owner = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_t_owner_get(void * jarg1) { + char * jresult ; + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + result = (char *) ((arg1)->owner); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_subclass_name_set(void * jarg1, char * jarg2) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->subclass_name; + if (arg2) { + arg1->subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->subclass_name, (const char *)arg2); + } else { + arg1->subclass_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_t_subclass_name_get(void * jarg1) { + char * jresult ; + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + result = (char *) ((arg1)->subclass_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_t_body_set(void * jarg1, char * jarg2) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->body; + if (arg2) { + arg1->body = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->body, (const char *)arg2); + } else { + arg1->body = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_t_body_get(void * jarg1) { + char * jresult ; + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + result = (char *) ((arg1)->body); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_serial_event_t() { + void * jresult ; + switch_serial_event_s *result = 0 ; + + result = (switch_serial_event_s *)new switch_serial_event_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_serial_event_t(void * jarg1) { + switch_serial_event_s *arg1 = (switch_serial_event_s *) 0 ; + + arg1 = (switch_serial_event_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_header_t_name_set(void * jarg1, char * jarg2) { + switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_serial_event_header_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->name; + if (arg2) { + arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->name, (const char *)arg2); + } else { + arg1->name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_header_t_name_get(void * jarg1) { + char * jresult ; + switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_serial_event_header_s *)jarg1; + result = (char *) ((arg1)->name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_serial_event_header_t_value_set(void * jarg1, char * jarg2) { + switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_serial_event_header_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->value; + if (arg2) { + arg1->value = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->value, (const char *)arg2); + } else { + arg1->value = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_serial_event_header_t_value_get(void * jarg1) { + char * jresult ; + switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_serial_event_header_s *)jarg1; + result = (char *) ((arg1)->value); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_serial_event_header_t() { + void * jresult ; + switch_serial_event_header_s *result = 0 ; + + result = (switch_serial_event_header_s *)new switch_serial_event_header_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_serial_event_header_t(void * jarg1) { + switch_serial_event_header_s *arg1 = (switch_serial_event_header_s *) 0 ; + + arg1 = (switch_serial_event_header_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_init(void * jarg1) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + result = (switch_status_t)switch_event_init(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_shutdown() { + int jresult ; + switch_status_t result; + + result = (switch_status_t)switch_event_shutdown(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_subclass_detailed(char * jarg1, char * jarg2, int jarg3, void * jarg4, int jarg5, char * jarg6) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + switch_event_t **arg4 = (switch_event_t **) 0 ; + switch_event_types_t arg5 ; + char *arg6 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (switch_event_t **)jarg4; + arg5 = (switch_event_types_t)jarg5; + arg6 = (char *)jarg6; + result = (switch_status_t)switch_event_create_subclass_detailed((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,(char const *)arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_set_priority(void * jarg1, int jarg2) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + switch_priority_t arg2 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (switch_priority_t)jarg2; + result = (switch_status_t)switch_event_set_priority(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_event_get_header_ptr(void * jarg1, char * jarg2) { + void * jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_event_header_t *result = 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_event_header_t *)switch_event_get_header_ptr(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_get_header_idx(void * jarg1, char * jarg2, int jarg3) { + char * jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + char *result = 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + result = (char *)switch_event_get_header_idx(arg1,(char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_rename_header(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_event_rename_header(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_get_body(void * jarg1) { + char * jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_event_t *)jarg1; + result = (char *)switch_event_get_body(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_set_subclass_name(void * jarg1, char * jarg2) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_event_set_subclass_name(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_add_header_string(void * jarg1, int jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + switch_stack_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (switch_stack_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_event_add_header_string(arg1,arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_del_header_val(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_event_del_header_val(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_add_array(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (int)switch_event_add_array(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_destroy(void * jarg1) { + switch_event_t **arg1 = (switch_event_t **) 0 ; + + arg1 = (switch_event_t **)jarg1; + switch_event_destroy(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_dup(void * jarg1, void * jarg2) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (switch_event_t *)jarg2; + result = (switch_status_t)switch_event_dup(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_merge(void * jarg1, void * jarg2) { + switch_event_t *arg1 = (switch_event_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + switch_event_merge(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_dup_reply(void * jarg1, void * jarg2) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (switch_event_t *)jarg2; + result = (switch_status_t)switch_event_dup_reply(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_fire_detailed(char * jarg1, char * jarg2, int jarg3, void * jarg4, void * jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + switch_event_t **arg4 = (switch_event_t **) 0 ; + void *arg5 = (void *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (switch_event_t **)jarg4; + arg5 = (void *)jarg5; + result = (switch_status_t)switch_event_fire_detailed((char const *)arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_prep_for_delivery_detailed(char * jarg1, char * jarg2, int jarg3, void * jarg4) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + switch_event_t *arg4 = (switch_event_t *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (switch_event_t *)jarg4; + switch_event_prep_for_delivery_detailed((char const *)arg1,(char const *)arg2,arg3,arg4); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_bind(char * jarg1, int jarg2, char * jarg3, void * jarg4, void * jarg5) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_types_t arg2 ; + char *arg3 = (char *) 0 ; + switch_event_callback_t arg4 = (switch_event_callback_t) 0 ; + void *arg5 = (void *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_types_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_event_callback_t)jarg4; + arg5 = (void *)jarg5; + result = (switch_status_t)switch_event_bind((char const *)arg1,arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_bind_removable(char * jarg1, int jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_types_t arg2 ; + char *arg3 = (char *) 0 ; + switch_event_callback_t arg4 = (switch_event_callback_t) 0 ; + void *arg5 = (void *) 0 ; + switch_event_node_t **arg6 = (switch_event_node_t **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_types_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_event_callback_t)jarg4; + arg5 = (void *)jarg5; + arg6 = (switch_event_node_t **)jarg6; + result = (switch_status_t)switch_event_bind_removable((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_unbind(void * jarg1) { + int jresult ; + switch_event_node_t **arg1 = (switch_event_node_t **) 0 ; + switch_status_t result; + + arg1 = (switch_event_node_t **)jarg1; + result = (switch_status_t)switch_event_unbind(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_unbind_callback(void * jarg1) { + int jresult ; + switch_event_callback_t arg1 = (switch_event_callback_t) 0 ; + switch_status_t result; + + arg1 = (switch_event_callback_t)jarg1; + result = (switch_status_t)switch_event_unbind_callback(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_name(int jarg1) { + char * jresult ; + switch_event_types_t arg1 ; + char *result = 0 ; + + arg1 = (switch_event_types_t)jarg1; + result = (char *)switch_event_name(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_name_event(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_types_t *arg2 = (switch_event_types_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_types_t *)jarg2; + result = (switch_status_t)switch_name_event((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_reserve_subclass_detailed(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_event_reserve_subclass_detailed((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_free_subclass_detailed(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_event_free_subclass_detailed((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_binary_deserialize(void * jarg1, void * jarg2, void * jarg3, int jarg4) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + void **arg2 = (void **) 0 ; + switch_size_t arg3 ; + switch_bool_t arg4 ; + switch_size_t *argp3 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (void **)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_event_binary_deserialize(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_binary_serialize(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + void **arg2 = (void **) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (void **)jarg2; + arg3 = (switch_size_t *)jarg3; + result = (switch_status_t)switch_event_binary_serialize(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_serialize(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char **arg2 = (char **) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char **)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_event_serialize(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_serialize_json(void * jarg1, void * jarg2) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char **arg2 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char **)jarg2; + result = (switch_status_t)switch_event_serialize_json(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_serialize_json_obj(void * jarg1, void * jarg2) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + cJSON **arg2 = (cJSON **) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (cJSON **)jarg2; + result = (switch_status_t)switch_event_serialize_json_obj(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_json(void * jarg1, char * jarg2) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_event_create_json(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_brackets(char * jarg1, char jarg2, char jarg3, char jarg4, void * jarg5, void * jarg6, int jarg7) { + int jresult ; + char *arg1 = (char *) 0 ; + char arg2 ; + char arg3 ; + char arg4 ; + switch_event_t **arg5 = (switch_event_t **) 0 ; + char **arg6 = (char **) 0 ; + switch_bool_t arg7 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char)jarg2; + arg3 = (char)jarg3; + arg4 = (char)jarg4; + arg5 = (switch_event_t **)jarg5; + arg6 = (char **)jarg6; + arg7 = (switch_bool_t)jarg7; + result = (switch_status_t)switch_event_create_brackets(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_array_pair(void * jarg1, void * jarg2, void * jarg3, int jarg4) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + char **arg2 = (char **) 0 ; + char **arg3 = (char **) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (char **)jarg2; + arg3 = (char **)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_event_create_array_pair(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_running() { + int jresult ; + switch_status_t result; + + result = (switch_status_t)switch_event_running(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_set_body(void * jarg1, char * jarg2) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_event_set_body(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_expand_headers_check(void * jarg1, char * jarg2, void * jarg3, void * jarg4, unsigned long jarg5) { + char * jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_event_t *arg3 = (switch_event_t *) 0 ; + switch_event_t *arg4 = (switch_event_t *) 0 ; + uint32_t arg5 ; + char *result = 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_event_t *)jarg3; + arg4 = (switch_event_t *)jarg4; + arg5 = (uint32_t)jarg5; + result = (char *)switch_event_expand_headers_check(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_pres_in_detailed(char * jarg1, char * jarg2, int jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, int jarg11, char * jarg12, char * jarg13, char * jarg14, char * jarg15) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + char *arg10 = (char *) 0 ; + int arg11 ; + char *arg12 = (char *) 0 ; + char *arg13 = (char *) 0 ; + char *arg14 = (char *) 0 ; + char *arg15 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char *)jarg10; + arg11 = (int)jarg11; + arg12 = (char *)jarg12; + arg13 = (char *)jarg13; + arg14 = (char *)jarg14; + arg15 = (char *)jarg15; + result = (switch_status_t)switch_event_create_pres_in_detailed(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,arg11,(char const *)arg12,(char const *)arg13,(char const *)arg14,(char const *)arg15); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_create_plain(void * jarg1, int jarg2) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + switch_event_types_t arg2 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (switch_event_types_t)jarg2; + result = (switch_status_t)switch_event_create_plain(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_deliver(void * jarg1) { + switch_event_t **arg1 = (switch_event_t **) 0 ; + + arg1 = (switch_event_t **)jarg1; + switch_event_deliver(arg1); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_event_build_param_string(void * jarg1, char * jarg2, void * jarg3) { + char * jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_hash_t *arg3 = (switch_hash_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_hash_t *)jarg3; + result = (char *)switch_event_build_param_string(arg1,(char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_check_permission_list(void * jarg1, char * jarg2) { + int jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (switch_event_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_event_check_permission_list(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_add_presence_data_cols(void * jarg1, void * jarg2, char * jarg3) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + arg3 = (char *)jarg3; + switch_event_add_presence_data_cols(arg1,arg2,(char const *)arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_json_add_presence_data_cols(void * jarg1, void * jarg2, char * jarg3) { + switch_event_t *arg1 = (switch_event_t *) 0 ; + cJSON *arg2 = (cJSON *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (cJSON *)jarg2; + arg3 = (char *)jarg3; + switch_json_add_presence_data_cols(arg1,arg2,(char const *)arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_launch_dispatch_threads(unsigned long jarg1) { + uint32_t arg1 ; + + arg1 = (uint32_t)jarg1; + switch_event_launch_dispatch_threads(arg1); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_channel_broadcast(char * jarg1, void * jarg2, char * jarg3, unsigned long jarg4) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + cJSON **arg2 = (cJSON **) 0 ; + char *arg3 = (char *) 0 ; + switch_event_channel_id_t arg4 ; + uint32_t result; + + arg1 = (char *)jarg1; + arg2 = (cJSON **)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_event_channel_id_t)jarg4; + result = (uint32_t)switch_event_channel_broadcast((char const *)arg1,arg2,(char const *)arg3,arg4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_channel_unbind(char * jarg1, void * jarg2) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + switch_event_channel_func_t arg2 = (switch_event_channel_func_t) 0 ; + uint32_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_channel_func_t)jarg2; + result = (uint32_t)switch_event_channel_unbind((char const *)arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_channel_bind(char * jarg1, void * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_channel_func_t arg2 = (switch_event_channel_func_t) 0 ; + switch_event_channel_id_t *arg3 = (switch_event_channel_id_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_channel_func_t)jarg2; + arg3 = (switch_event_channel_id_t *)jarg3; + result = (switch_status_t)switch_event_channel_bind((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_NO_EVENT_CHANNEL_ID_get() { + int jresult ; + int result; + + result = (int)(0); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EVENT_CHANNEL_GLOBAL_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("__global__"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_clear(void * jarg1) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + switch_status_t result; + + arg1 = (switch_live_array_t *)jarg1; + result = (switch_status_t)switch_live_array_clear(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_bootstrap(void * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_event_channel_id_t arg3 ; + switch_status_t result; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_event_channel_id_t)jarg3; + result = (switch_status_t)switch_live_array_bootstrap(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_destroy(void * jarg1) { + int jresult ; + switch_live_array_t **arg1 = (switch_live_array_t **) 0 ; + switch_status_t result; + + arg1 = (switch_live_array_t **)jarg1; + result = (switch_status_t)switch_live_array_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_create(char * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_event_channel_id_t arg3 ; + switch_live_array_t **arg4 = (switch_live_array_t **) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_event_channel_id_t)jarg3; + arg4 = (switch_live_array_t **)jarg4; + result = (switch_status_t)switch_live_array_create((char const *)arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_live_array_get(void * jarg1, char * jarg2) { + void * jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + char *arg2 = (char *) 0 ; + cJSON *result = 0 ; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (char *)jarg2; + result = (cJSON *)switch_live_array_get(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_live_array_get_idx(void * jarg1, int jarg2) { + void * jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + int arg2 ; + cJSON *result = 0 ; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (int)jarg2; + result = (cJSON *)switch_live_array_get_idx(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_del(void * jarg1, char * jarg2) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_live_array_del(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_add(void * jarg1, char * jarg2, int jarg3, void * jarg4, int jarg5) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + cJSON **arg4 = (cJSON **) 0 ; + switch_bool_t arg5 ; + switch_status_t result; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (cJSON **)jarg4; + arg5 = (switch_bool_t)jarg5; + result = (switch_status_t)switch_live_array_add(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_visible(void * jarg1, int jarg2, int jarg3) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + switch_bool_t arg2 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_live_array_visible(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_isnew(void * jarg1) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_live_array_t *)jarg1; + result = (switch_bool_t)switch_live_array_isnew(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_lock(void * jarg1) { + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + + arg1 = (switch_live_array_t *)jarg1; + switch_live_array_lock(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_unlock(void * jarg1) { + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + + arg1 = (switch_live_array_t *)jarg1; + switch_live_array_unlock(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_set_user_data(void * jarg1, void * jarg2) { + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (void *)jarg2; + switch_live_array_set_user_data(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_set_command_handler(void * jarg1, void * jarg2) { + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + switch_live_array_command_handler_t arg2 = (switch_live_array_command_handler_t) 0 ; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (switch_live_array_command_handler_t)jarg2; + switch_live_array_set_command_handler(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_live_array_parse_json(void * jarg1, unsigned long jarg2) { + cJSON *arg1 = (cJSON *) 0 ; + switch_event_channel_id_t arg2 ; + + arg1 = (cJSON *)jarg1; + arg2 = (switch_event_channel_id_t)jarg2; + switch_live_array_parse_json(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_add_alias(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t result; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_bool_t)switch_live_array_add_alias(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_live_array_clear_alias(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_live_array_t *arg1 = (switch_live_array_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_bool_t result; + + arg1 = (switch_live_array_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_bool_t)switch_live_array_clear_alias(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_channel_permission_verify(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_bool_t)switch_event_channel_permission_verify((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_channel_permission_modify(char * jarg1, char * jarg2, int jarg3) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + switch_event_channel_permission_modify((char const *)arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_channel_permission_clear(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + switch_event_channel_permission_clear((char const *)arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RESAMPLE_QUALITY_get() { + int jresult ; + int result; + + result = (int)(2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_resampler_set(void * jarg1, void * jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->resampler = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_audio_resampler_t_resampler_get(void * jarg1) { + void * jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (void *) ((arg1)->resampler); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_from_rate_set(void * jarg1, int jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->from_rate = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_resampler_t_from_rate_get(void * jarg1) { + int jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (int) ((arg1)->from_rate); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_rate_set(void * jarg1, int jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->to_rate = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_resampler_t_to_rate_get(void * jarg1) { + int jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (int) ((arg1)->to_rate); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_factor_set(void * jarg1, double jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + double arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->factor = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_audio_resampler_t_factor_get(void * jarg1) { + double jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + double result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (double) ((arg1)->factor); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_rfactor_set(void * jarg1, double jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + double arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (double)jarg2; + if (arg1) (arg1)->rfactor = arg2; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_audio_resampler_t_rfactor_get(void * jarg1) { + double jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + double result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (double) ((arg1)->rfactor); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_set(void * jarg1, void * jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int16_t *arg2 = (int16_t *) 0 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (int16_t *)jarg2; + if (arg1) (arg1)->to = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_audio_resampler_t_to_get(void * jarg1) { + void * jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int16_t *result = 0 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (int16_t *) ((arg1)->to); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_len_set(void * jarg1, unsigned long jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->to_len = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_audio_resampler_t_to_len_get(void * jarg1) { + unsigned long jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + uint32_t result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (uint32_t) ((arg1)->to_len); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_to_size_set(void * jarg1, unsigned long jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->to_size = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_audio_resampler_t_to_size_get(void * jarg1) { + unsigned long jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + uint32_t result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (uint32_t) ((arg1)->to_size); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_resampler_t_channels_set(void * jarg1, int jarg2) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int arg2 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->channels = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_resampler_t_channels_get(void * jarg1) { + int jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int result; + + arg1 = (switch_audio_resampler_t *)jarg1; + result = (int) ((arg1)->channels); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_audio_resampler_t() { + void * jresult ; + switch_audio_resampler_t *result = 0 ; + + result = (switch_audio_resampler_t *)new switch_audio_resampler_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_audio_resampler_t(void * jarg1) { + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + + arg1 = (switch_audio_resampler_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_resample_perform_create(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, int jarg5, unsigned long jarg6, char * jarg7, char * jarg8, int jarg9) { + int jresult ; + switch_audio_resampler_t **arg1 = (switch_audio_resampler_t **) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + int arg5 ; + uint32_t arg6 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + int arg9 ; + switch_status_t result; + + arg1 = (switch_audio_resampler_t **)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (int)jarg5; + arg6 = (uint32_t)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (int)jarg9; + result = (switch_status_t)switch_resample_perform_create(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7,(char const *)arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_resample_destroy(void * jarg1) { + switch_audio_resampler_t **arg1 = (switch_audio_resampler_t **) 0 ; + + arg1 = (switch_audio_resampler_t **)jarg1; + switch_resample_destroy(arg1); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_resample_process(void * jarg1, void * jarg2, unsigned long jarg3) { + unsigned long jresult ; + switch_audio_resampler_t *arg1 = (switch_audio_resampler_t *) 0 ; + int16_t *arg2 = (int16_t *) 0 ; + uint32_t arg3 ; + uint32_t result; + + arg1 = (switch_audio_resampler_t *)jarg1; + arg2 = (int16_t *)jarg2; + arg3 = (uint32_t)jarg3; + result = (uint32_t)switch_resample_process(arg1,arg2,arg3); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_float_to_short(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + float *arg1 = (float *) 0 ; + short *arg2 = (short *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_size_t result; + + arg1 = (float *)jarg1; + arg2 = (short *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = switch_float_to_short(arg1,arg2,arg3); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_char_to_float(char * jarg1, void * jarg2, int jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + float *arg2 = (float *) 0 ; + int arg3 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (float *)jarg2; + arg3 = (int)jarg3; + result = (int)switch_char_to_float(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_float_to_char(void * jarg1, char * jarg2, int jarg3) { + int jresult ; + float *arg1 = (float *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + int result; + + arg1 = (float *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + result = (int)switch_float_to_char(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_short_to_float(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + short *arg1 = (short *) 0 ; + float *arg2 = (float *) 0 ; + int arg3 ; + int result; + + arg1 = (short *)jarg1; + arg2 = (float *)jarg2; + arg3 = (int)jarg3; + result = (int)switch_short_to_float(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_swap_linear(void * jarg1, int jarg2) { + int16_t *arg1 = (int16_t *) 0 ; + int arg2 ; + + arg1 = (int16_t *)jarg1; + arg2 = (int)jarg2; + switch_swap_linear(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_generate_sln_silence(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4) { + int16_t *arg1 = (int16_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + + arg1 = (int16_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + switch_generate_sln_silence(arg1,arg2,arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_change_sln_volume(void * jarg1, unsigned long jarg2, int jarg3) { + int16_t *arg1 = (int16_t *) 0 ; + uint32_t arg2 ; + int32_t arg3 ; + + arg1 = (int16_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (int32_t)jarg3; + switch_change_sln_volume(arg1,arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_change_sln_volume_granular(void * jarg1, unsigned long jarg2, int jarg3) { + int16_t *arg1 = (int16_t *) 0 ; + uint32_t arg2 ; + int32_t arg3 ; + + arg1 = (int16_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (int32_t)jarg3; + switch_change_sln_volume_granular(arg1,arg2,arg3); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_merge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4) { + unsigned long jresult ; + int16_t *arg1 = (int16_t *) 0 ; + uint32_t arg2 ; + int16_t *arg3 = (int16_t *) 0 ; + uint32_t arg4 ; + uint32_t result; + + arg1 = (int16_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (int16_t *)jarg3; + arg4 = (uint32_t)jarg4; + result = (uint32_t)switch_merge_sln(arg1,arg2,arg3,arg4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_unmerge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4) { + unsigned long jresult ; + int16_t *arg1 = (int16_t *) 0 ; + uint32_t arg2 ; + int16_t *arg3 = (int16_t *) 0 ; + uint32_t arg4 ; + uint32_t result; + + arg1 = (int16_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (int16_t *)jarg3; + arg4 = (uint32_t)jarg4; + result = (uint32_t)switch_unmerge_sln(arg1,arg2,arg3,arg4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mux_channels(void * jarg1, void * jarg2, unsigned long jarg3, unsigned long jarg4) { + int16_t *arg1 = (int16_t *) 0 ; + switch_size_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + switch_size_t *argp2 ; + + arg1 = (int16_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + switch_mux_channels(arg1,arg2,arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_session_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + if (arg1) (arg1)->session = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_session_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_core_session_t *) ((arg1)->session); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_read_codec_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_codec_t *arg2 = (switch_codec_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_codec_t *)jarg2; + if (arg1) (arg1)->read_codec = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_read_codec_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_codec_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_codec_t *)& ((arg1)->read_codec); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_frame_t *)jarg2; + if (arg1) (arg1)->write_frame = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_frame_t *)& ((arg1)->write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_data_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_byte_t *arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_byte_t *)jarg2; + { + size_t ii; + switch_byte_t *b = (switch_byte_t *) arg1->write_frame_data; + for (ii = 0; ii < (size_t)8192; ii++) b[ii] = *((switch_byte_t *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_data_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_byte_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_byte_t *)(switch_byte_t *) ((arg1)->write_frame_data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_socket_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_socket_t *arg2 = (switch_socket_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_socket_t *)jarg2; + if (arg1) (arg1)->socket = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_socket_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_socket_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_socket_t *) ((arg1)->socket); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_local_ip_set(void * jarg1, char * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->local_ip; + if (arg2) { + arg1->local_ip = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->local_ip, (const char *)arg2); + } else { + arg1->local_ip = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_unicast_conninfo_local_ip_get(void * jarg1) { + char * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + char *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (char *) ((arg1)->local_ip); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_local_port_set(void * jarg1, unsigned short jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_port_t arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_port_t)jarg2; + if (arg1) (arg1)->local_port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_unicast_conninfo_local_port_get(void * jarg1) { + unsigned short jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_port_t result; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_port_t) ((arg1)->local_port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_ip_set(void * jarg1, char * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->remote_ip; + if (arg2) { + arg1->remote_ip = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->remote_ip, (const char *)arg2); + } else { + arg1->remote_ip = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_ip_get(void * jarg1) { + char * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + char *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (char *) ((arg1)->remote_ip); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_port_set(void * jarg1, unsigned short jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_port_t arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_port_t)jarg2; + if (arg1) (arg1)->remote_port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_port_get(void * jarg1) { + unsigned short jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_port_t result; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_port_t) ((arg1)->remote_port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_local_addr_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_sockaddr_t *)jarg2; + if (arg1) (arg1)->local_addr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_local_addr_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_sockaddr_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_sockaddr_t *) ((arg1)->local_addr); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_addr_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_sockaddr_t *)jarg2; + if (arg1) (arg1)->remote_addr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_remote_addr_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_sockaddr_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_sockaddr_t *) ((arg1)->remote_addr); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_flag_mutex_set(void * jarg1, void * jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->flag_mutex = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_flag_mutex_get(void * jarg1) { + void * jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (switch_mutex_t *) ((arg1)->flag_mutex); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_flags_set(void * jarg1, int jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int32_t arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (int32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_flags_get(void * jarg1) { + int jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int32_t result; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (int32_t) ((arg1)->flags); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_type_set(void * jarg1, int jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_type_get(void * jarg1) { + int jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int result; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (int) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_transport_set(void * jarg1, int jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->transport = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_transport_get(void * jarg1) { + int jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int result; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (int) ((arg1)->transport); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_stream_id_set(void * jarg1, int jarg2) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int arg2 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->stream_id = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_unicast_conninfo_stream_id_get(void * jarg1) { + int jresult ; + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + int result; + + arg1 = (switch_unicast_conninfo *)jarg1; + result = (int) ((arg1)->stream_id); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_unicast_conninfo() { + void * jresult ; + switch_unicast_conninfo *result = 0 ; + + result = (switch_unicast_conninfo *)new switch_unicast_conninfo(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_unicast_conninfo(void * jarg1) { + switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ; + + arg1 = (switch_unicast_conninfo *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_deactivate_unicast(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_deactivate_unicast(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_activate_unicast(void * jarg1, char * jarg2, unsigned short jarg3, char * jarg4, unsigned short jarg5, char * jarg6, char * jarg7) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_port_t arg3 ; + char *arg4 = (char *) 0 ; + switch_port_t arg5 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_port_t)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_port_t)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + result = (switch_status_t)switch_ivr_activate_unicast(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_generate_json_cdr(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + cJSON **arg2 = (cJSON **) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (cJSON **)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_ivr_generate_json_cdr(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_generate_xml_cdr(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_xml_t *arg2 = (switch_xml_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_xml_t *)jarg2; + result = (switch_status_t)switch_ivr_generate_xml_cdr(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_xml_profile_data(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_caller_profile_t *arg2 = (switch_caller_profile_t *) 0 ; + int arg3 ; + int result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_caller_profile_t *)jarg2; + arg3 = (int)jarg3; + result = (int)switch_ivr_set_xml_profile_data(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_xml_chan_vars(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + int arg3 ; + int result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (int)jarg3; + result = (int)switch_ivr_set_xml_chan_vars(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_event(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_event_t *)jarg2; + result = (switch_status_t)switch_ivr_parse_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_events(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_parse_all_events(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_next_event(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_parse_next_event(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_messages(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_parse_all_messages(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_signal_data(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_parse_all_signal_data(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_process_indications(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_message_t *)jarg2; + result = (switch_status_t)switch_ivr_process_indications(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_sleep(void * jarg1, unsigned long jarg2, int jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + switch_bool_t arg3 ; + switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (switch_bool_t)jarg3; + arg4 = (switch_input_args_t *)jarg4; + result = (switch_status_t)switch_ivr_sleep(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_park(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_input_args_t *arg2 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_input_args_t *)jarg2; + result = (switch_status_t)switch_ivr_park(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_collect_digits_callback(void * jarg1, void * jarg2, unsigned long jarg3, unsigned long jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_input_args_t *arg2 = (switch_input_args_t *) 0 ; + uint32_t arg3 ; + uint32_t arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_input_args_t *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + result = (switch_status_t)switch_ivr_collect_digits_callback(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_collect_digits_count(void * jarg1, char * jarg2, void * jarg3, void * jarg4, char * jarg5, char * jarg6, unsigned long jarg7, unsigned long jarg8, unsigned long jarg9) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t arg4 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + uint32_t arg7 ; + uint32_t arg8 ; + uint32_t arg9 ; + switch_size_t *argp3 ; + switch_size_t *argp4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (uint32_t)jarg7; + arg8 = (uint32_t)jarg8; + arg9 = (uint32_t)jarg9; + result = (switch_status_t)switch_ivr_collect_digits_count(arg1,arg2,arg3,arg4,(char const *)arg5,arg6,arg7,arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_play_and_detect_speech(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, unsigned long jarg6, void * jarg7) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char **arg5 = (char **) 0 ; + uint32_t arg6 ; + switch_input_args_t *arg7 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char **)jarg5; + arg6 = (uint32_t)jarg6; + arg7 = (switch_input_args_t *)jarg7; + result = (switch_status_t)switch_ivr_play_and_detect_speech(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_init(void * jarg1, char * jarg2, char * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_asr_handle_t *arg4 = (switch_asr_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_asr_handle_t *)jarg4; + result = (switch_status_t)switch_ivr_detect_speech_init(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + switch_asr_handle_t *arg6 = (switch_asr_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_asr_handle_t *)jarg6; + result = (switch_status_t)switch_ivr_detect_speech(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_detect_speech(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_stop_detect_speech(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_pause_detect_speech(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_pause_detect_speech(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_resume_detect_speech(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_resume_detect_speech(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_load_grammar(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_ivr_detect_speech_load_grammar(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_unload_grammar(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_detect_speech_unload_grammar(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_enable_grammar(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_detect_speech_enable_grammar(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_disable_grammar(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_detect_speech_disable_grammar(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_disable_all_grammars(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_detect_speech_disable_all_grammars(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_param_detect_speech(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_ivr_set_param_detect_speech(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_start_input_timers(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_detect_speech_start_input_timers(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_session(void * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + switch_file_handle_t *arg4 = (switch_file_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (switch_file_handle_t *)jarg4; + result = (switch_status_t)switch_ivr_record_session(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_transfer_recordings(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + result = (switch_status_t)switch_ivr_transfer_recordings(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_pop_eavesdropper(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t **)jarg2; + result = (switch_status_t)switch_ivr_eavesdrop_pop_eavesdropper(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_exec_all(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_ivr_eavesdrop_exec_all(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_update_display(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_ivr_eavesdrop_update_display(arg1,(char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_eavesdrop_session(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_eavesdrop_flag_t arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_eavesdrop_flag_t)jarg4; + result = (switch_status_t)switch_ivr_eavesdrop_session(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_displace_session(void * jarg1, char * jarg2, unsigned long jarg3, char * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + uint32_t arg3 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_ivr_displace_session(arg1,(char const *)arg2,arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_displace_session(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_stop_displace_session(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_record_session(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_stop_record_session(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_audio(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_ivr_session_audio(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_session_audio(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_stop_session_audio(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_inband_dtmf_session(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_inband_dtmf_session(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_inband_dtmf_session(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_stop_inband_dtmf_session(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_inband_dtmf_generate_session(void * jarg1, int jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_ivr_inband_dtmf_generate_session(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_inband_dtmf_generate_session(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_stop_inband_dtmf_generate_session(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_echo(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_input_args_t *arg2 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_input_args_t *)jarg2; + result = (switch_status_t)switch_ivr_session_echo(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_tone_detect_session(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_stop_tone_detect_session(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_tone_detect_session(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, int jarg6, char * jarg7, char * jarg8, void * jarg9) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + time_t arg5 ; + int arg6 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + switch_tone_detect_callback_t arg9 = (switch_tone_detect_callback_t) 0 ; + time_t *argp5 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + argp5 = (time_t *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return 0; + } + arg5 = *argp5; + arg6 = (int)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (switch_tone_detect_callback_t)jarg9; + result = (switch_status_t)switch_ivr_tone_detect_session(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,(char const *)arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_play_file(void * jarg1, void * jarg2, char * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_file_handle_t *arg2 = (switch_file_handle_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_file_handle_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_input_args_t *)jarg4; + result = (switch_status_t)switch_ivr_play_file(arg1,arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_wait_for_silence(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, char * jarg6) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + char *arg6 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (char *)jarg6; + result = (switch_status_t)switch_ivr_wait_for_silence(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_gentones(void * jarg1, char * jarg2, int jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + int32_t arg3 ; + switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int32_t)jarg3; + arg4 = (switch_input_args_t *)jarg4; + result = (switch_status_t)switch_ivr_gentones(arg1,(char const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_file(void * jarg1, void * jarg2, char * jarg3, void * jarg4, unsigned long jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_file_handle_t *arg2 = (switch_file_handle_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; + uint32_t arg5 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_file_handle_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_input_args_t *)jarg4; + arg5 = (uint32_t)jarg5; + result = (switch_status_t)switch_ivr_record_file(arg1,arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_play_and_get_digits(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, unsigned long jarg11, char * jarg12, unsigned long jarg13, char * jarg14) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + char *arg10 = (char *) 0 ; + uint32_t arg11 ; + char *arg12 = (char *) 0 ; + uint32_t arg13 ; + char *arg14 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char *)jarg10; + arg11 = (uint32_t)jarg11; + arg12 = (char *)jarg12; + arg13 = (uint32_t)jarg13; + arg14 = (char *)jarg14; + result = (switch_status_t)switch_play_and_get_digits(arg1,arg2,arg3,arg4,arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,arg10,arg11,(char const *)arg12,arg13,(char const *)arg14); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_speak_text_handle(void * jarg1, void * jarg2, void * jarg3, void * jarg4, char * jarg5, void * jarg6) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_speech_handle_t *arg2 = (switch_speech_handle_t *) 0 ; + switch_codec_t *arg3 = (switch_codec_t *) 0 ; + switch_timer_t *arg4 = (switch_timer_t *) 0 ; + char *arg5 = (char *) 0 ; + switch_input_args_t *arg6 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_speech_handle_t *)jarg2; + arg3 = (switch_codec_t *)jarg3; + arg4 = (switch_timer_t *)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_input_args_t *)jarg6; + result = (switch_status_t)switch_ivr_speak_text_handle(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_clear_speech_cache(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_ivr_clear_speech_cache(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_speak_text(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_input_args_t *arg5 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_input_args_t *)jarg5; + result = (switch_status_t)switch_ivr_speak_text(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_originate(void * jarg1, void * jarg2, void * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, char * jarg7, char * jarg8, void * jarg9, void * jarg10, unsigned long jarg11, void * jarg12) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; + switch_call_cause_t *arg3 = (switch_call_cause_t *) 0 ; + char *arg4 = (char *) 0 ; + uint32_t arg5 ; + switch_state_handler_table_t *arg6 = (switch_state_handler_table_t *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + switch_caller_profile_t *arg9 = (switch_caller_profile_t *) 0 ; + switch_event_t *arg10 = (switch_event_t *) 0 ; + switch_originate_flag_t arg11 ; + switch_call_cause_t *arg12 = (switch_call_cause_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t **)jarg2; + arg3 = (switch_call_cause_t *)jarg3; + arg4 = (char *)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (switch_state_handler_table_t *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (switch_caller_profile_t *)jarg9; + arg10 = (switch_event_t *)jarg10; + arg11 = (switch_originate_flag_t)jarg11; + arg12 = (switch_call_cause_t *)jarg12; + result = (switch_status_t)switch_ivr_originate(arg1,arg2,arg3,(char const *)arg4,arg5,(switch_state_handler_table const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,arg11,arg12); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_enterprise_originate(void * jarg1, void * jarg2, void * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, char * jarg7, char * jarg8, void * jarg9, void * jarg10, unsigned long jarg11, void * jarg12) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t **arg2 = (switch_core_session_t **) 0 ; + switch_call_cause_t *arg3 = (switch_call_cause_t *) 0 ; + char *arg4 = (char *) 0 ; + uint32_t arg5 ; + switch_state_handler_table_t *arg6 = (switch_state_handler_table_t *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + switch_caller_profile_t *arg9 = (switch_caller_profile_t *) 0 ; + switch_event_t *arg10 = (switch_event_t *) 0 ; + switch_originate_flag_t arg11 ; + switch_call_cause_t *arg12 = (switch_call_cause_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t **)jarg2; + arg3 = (switch_call_cause_t *)jarg3; + arg4 = (char *)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (switch_state_handler_table_t *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (switch_caller_profile_t *)jarg9; + arg10 = (switch_event_t *)jarg10; + arg11 = (switch_originate_flag_t)jarg11; + arg12 = (switch_call_cause_t *)jarg12; + result = (switch_status_t)switch_ivr_enterprise_originate(arg1,arg2,arg3,(char const *)arg4,arg5,(switch_state_handler_table const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,arg11,arg12); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_bridge_display(void * jarg1, void * jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + switch_ivr_bridge_display(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_multi_threaded_bridge(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_input_callback_function_t arg3 = (switch_input_callback_function_t) 0 ; + void *arg4 = (void *) 0 ; + void *arg5 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (switch_input_callback_function_t)jarg3; + arg4 = (void *)jarg4; + arg5 = (void *)jarg5; + result = (switch_status_t)switch_ivr_multi_threaded_bridge(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_signal_bridge(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + result = (switch_status_t)switch_ivr_signal_bridge(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_ivr_session_transfer(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_ivr_schedule_transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5) { + unsigned long jresult ; + time_t arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + time_t *argp1 ; + uint32_t result; + + argp1 = (time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return 0; + } + arg1 = *argp1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + result = (uint32_t)switch_ivr_schedule_transfer(arg1,(char const *)arg2,arg3,arg4,arg5); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_ivr_schedule_hangup(void * jarg1, char * jarg2, int jarg3, int jarg4) { + unsigned long jresult ; + time_t arg1 ; + char *arg2 = (char *) 0 ; + switch_call_cause_t arg3 ; + switch_bool_t arg4 ; + time_t *argp1 ; + uint32_t result; + + argp1 = (time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return 0; + } + arg1 = *argp1; + arg2 = (char *)jarg2; + arg3 = (switch_call_cause_t)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (uint32_t)switch_ivr_schedule_hangup(arg1,(char const *)arg2,arg3,arg4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_uuid_bridge(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_uuid_bridge((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_media(char * jarg1, unsigned long jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_media_flag_t arg2 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_media_flag_t)jarg2; + result = (switch_status_t)switch_ivr_media((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_nomedia(char * jarg1, unsigned long jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_media_flag_t arg2 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_media_flag_t)jarg2; + result = (switch_status_t)switch_ivr_nomedia((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_hold_uuid(char * jarg1, char * jarg2, int jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_ivr_hold_uuid((char const *)arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_hold_toggle_uuid(char * jarg1, char * jarg2, int jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_ivr_hold_toggle_uuid((char const *)arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unhold_uuid(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + result = (switch_status_t)switch_ivr_unhold_uuid((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_hold(void * jarg1, char * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_ivr_hold(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unhold(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_unhold(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_ivr_schedule_broadcast(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4) { + unsigned long jresult ; + time_t arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_media_flag_t arg4 ; + time_t *argp1 ; + uint32_t result; + + argp1 = (time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return 0; + } + arg1 = *argp1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_media_flag_t)jarg4; + result = (uint32_t)switch_ivr_schedule_broadcast(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_broadcast(char * jarg1, char * jarg2, unsigned long jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_media_flag_t arg3 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_media_flag_t)jarg3; + result = (switch_status_t)switch_ivr_broadcast((char const *)arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_broadcast_in_thread(void * jarg1, char * jarg2, int jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + switch_ivr_broadcast_in_thread(arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_transfer_variable(void * jarg1, void * jarg2, char * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_ivr_transfer_variable(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_new(void * jarg1, void * jarg2) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_ivr_digit_stream_parser_t **arg2 = (switch_ivr_digit_stream_parser_t **) 0 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_ivr_digit_stream_parser_t **)jarg2; + result = (switch_status_t)switch_ivr_digit_stream_parser_new(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_destroy(void * jarg1) { + int jresult ; + switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; + result = (switch_status_t)switch_ivr_digit_stream_parser_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_new(void * jarg1, void * jarg2) { + int jresult ; + switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; + switch_ivr_digit_stream_t **arg2 = (switch_ivr_digit_stream_t **) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; + arg2 = (switch_ivr_digit_stream_t **)jarg2; + result = (switch_status_t)switch_ivr_digit_stream_new(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_destroy(void * jarg1) { + int jresult ; + switch_ivr_digit_stream_t **arg1 = (switch_ivr_digit_stream_t **) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_t **)jarg1; + result = (switch_status_t)switch_ivr_digit_stream_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_set_event(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_ivr_digit_stream_parser_set_event(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_del_event(void * jarg1, char * jarg2) { + int jresult ; + switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_digit_stream_parser_del_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_feed(void * jarg1, void * jarg2, char jarg3) { + void * jresult ; + switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; + switch_ivr_digit_stream_t *arg2 = (switch_ivr_digit_stream_t *) 0 ; + char arg3 ; + void *result = 0 ; + + arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; + arg2 = (switch_ivr_digit_stream_t *)jarg2; + arg3 = (char)jarg3; + result = (void *)switch_ivr_digit_stream_parser_feed(arg1,arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_reset(void * jarg1) { + int jresult ; + switch_ivr_digit_stream_t *arg1 = (switch_ivr_digit_stream_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_t *)jarg1; + result = (switch_status_t)switch_ivr_digit_stream_reset(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_digit_stream_parser_set_terminator(void * jarg1, char jarg2) { + int jresult ; + switch_ivr_digit_stream_parser_t *arg1 = (switch_ivr_digit_stream_parser_t *) 0 ; + char arg2 ; + switch_status_t result; + + arg1 = (switch_ivr_digit_stream_parser_t *)jarg1; + arg2 = (char)jarg2; + result = (switch_status_t)switch_ivr_digit_stream_parser_set_terminator(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_init(void * jarg1, void * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, char * jarg11, char * jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17, int jarg18, void * jarg19) { + int jresult ; + switch_ivr_menu_t **arg1 = (switch_ivr_menu_t **) 0 ; + switch_ivr_menu_t *arg2 = (switch_ivr_menu_t *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + char *arg10 = (char *) 0 ; + char *arg11 = (char *) 0 ; + char *arg12 = (char *) 0 ; + int arg13 ; + int arg14 ; + int arg15 ; + int arg16 ; + int arg17 ; + int arg18 ; + switch_memory_pool_t *arg19 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_t **)jarg1; + arg2 = (switch_ivr_menu_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char *)jarg10; + arg11 = (char *)jarg11; + arg12 = (char *)jarg12; + arg13 = (int)jarg13; + arg14 = (int)jarg14; + arg15 = (int)jarg15; + arg16 = (int)jarg16; + arg17 = (int)jarg17; + arg18 = (int)jarg18; + arg19 = (switch_memory_pool_t *)jarg19; + result = (switch_status_t)switch_ivr_menu_init(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,(char const *)arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_bind_action(void * jarg1, int jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_ivr_menu_t *arg1 = (switch_ivr_menu_t *) 0 ; + switch_ivr_action_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_t *)jarg1; + arg2 = (switch_ivr_action_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_ivr_menu_bind_action(arg1,arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_bind_function(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_ivr_menu_t *arg1 = (switch_ivr_menu_t *) 0 ; + switch_ivr_menu_action_function_t *arg2 = (switch_ivr_menu_action_function_t *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_t *)jarg1; + arg2 = (switch_ivr_menu_action_function_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_ivr_menu_bind_function(arg1,arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_execute(void * jarg1, void * jarg2, char * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_ivr_menu_t *arg2 = (switch_ivr_menu_t *) 0 ; + char *arg3 = (char *) 0 ; + void *arg4 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_ivr_menu_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (void *)jarg4; + result = (switch_status_t)switch_ivr_menu_execute(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_free(void * jarg1) { + int jresult ; + switch_ivr_menu_t *arg1 = (switch_ivr_menu_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_t *)jarg1; + result = (switch_status_t)switch_ivr_menu_stack_free(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_xml_build(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_ivr_menu_xml_ctx_t *arg1 = (switch_ivr_menu_xml_ctx_t *) 0 ; + switch_ivr_menu_t **arg2 = (switch_ivr_menu_t **) 0 ; + switch_xml_t arg3 = (switch_xml_t) 0 ; + switch_xml_t arg4 = (switch_xml_t) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_xml_ctx_t *)jarg1; + arg2 = (switch_ivr_menu_t **)jarg2; + arg3 = (switch_xml_t)jarg3; + arg4 = (switch_xml_t)jarg4; + result = (switch_status_t)switch_ivr_menu_stack_xml_build(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_str2action(char * jarg1, void * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_ivr_action_t *arg2 = (switch_ivr_action_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_ivr_action_t *)jarg2; + result = (switch_status_t)switch_ivr_menu_str2action((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_xml_add_custom(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_ivr_menu_xml_ctx_t *arg1 = (switch_ivr_menu_xml_ctx_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_ivr_menu_action_function_t *arg3 = (switch_ivr_menu_action_function_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_xml_ctx_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_ivr_menu_action_function_t *)jarg3; + result = (switch_status_t)switch_ivr_menu_stack_xml_add_custom(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_menu_stack_xml_init(void * jarg1, void * jarg2) { + int jresult ; + switch_ivr_menu_xml_ctx_t **arg1 = (switch_ivr_menu_xml_ctx_t **) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_menu_xml_ctx_t **)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + result = (switch_status_t)switch_ivr_menu_stack_xml_init(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_phrase_macro_event(void * jarg1, char * jarg2, char * jarg3, void * jarg4, char * jarg5, void * jarg6) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_event_t *arg4 = (switch_event_t *) 0 ; + char *arg5 = (char *) 0 ; + switch_input_args_t *arg6 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_event_t *)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_input_args_t *)jarg6; + result = (switch_status_t)switch_ivr_phrase_macro_event(arg1,(char const *)arg2,(char const *)arg3,arg4,(char const *)arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_delay_echo(void * jarg1, unsigned long jarg2) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_ivr_delay_echo(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_find_bridged_uuid(char * jarg1, char * jarg2, void * jarg3) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_status_t)switch_ivr_find_bridged_uuid((char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_intercept_session(void * jarg1, char * jarg2, int jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + switch_ivr_intercept_session(arg1,(char const *)arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_park_session(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_ivr_park_session(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_wait_for_answer(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + result = (switch_status_t)switch_ivr_wait_for_answer(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_read(void * jarg1, unsigned long jarg2, unsigned long jarg3, char * jarg4, char * jarg5, char * jarg6, void * jarg7, unsigned long jarg8, char * jarg9, unsigned long jarg10) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + switch_size_t arg7 ; + uint32_t arg8 ; + char *arg9 = (char *) 0 ; + uint32_t arg10 ; + switch_size_t *argp7 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + argp7 = (switch_size_t *)jarg7; + if (!argp7) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg7 = *argp7; + arg8 = (uint32_t)jarg8; + arg9 = (char *)jarg9; + arg10 = (uint32_t)jarg10; + result = (switch_status_t)switch_ivr_read(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6,arg7,arg8,(char const *)arg9,arg10); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_block_dtmf_session(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_block_dtmf_session(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unblock_dtmf_session(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_unblock_dtmf_session(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_bind_dtmf_meta_session(void * jarg1, unsigned long jarg2, unsigned long jarg3, char * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + switch_bind_flag_t arg3 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (switch_bind_flag_t)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_ivr_bind_dtmf_meta_session(arg1,arg2,arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_unbind_dtmf_meta_session(void * jarg1, unsigned long jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + uint32_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (switch_status_t)switch_ivr_unbind_dtmf_meta_session(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_soft_hold(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_status_t)switch_ivr_soft_hold(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, void * jarg7) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + switch_input_args_t *arg7 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (switch_input_args_t *)jarg7; + result = (switch_status_t)switch_ivr_say(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say_string(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, void * jarg9) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char **arg9 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char **)jarg9; + result = (switch_status_t)switch_ivr_say_string(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_method_by_name(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_say_method_t result; + + arg1 = (char *)jarg1; + result = (switch_say_method_t)switch_ivr_get_say_method_by_name((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_gender_by_name(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_say_gender_t result; + + arg1 = (char *)jarg1; + result = (switch_say_gender_t)switch_ivr_get_say_gender_by_name((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_type_by_name(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_say_type_t result; + + arg1 = (char *)jarg1; + result = (switch_say_type_t)switch_ivr_get_say_type_by_name((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say_spell(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_say_args_t *arg3 = (switch_say_args_t *) 0 ; + switch_input_args_t *arg4 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_say_args_t *)jarg3; + arg4 = (switch_input_args_t *)jarg4; + result = (switch_status_t)switch_ivr_say_spell(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say_ip(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_say_callback_t arg3 = (switch_say_callback_t) 0 ; + switch_say_args_t *arg4 = (switch_say_args_t *) 0 ; + switch_input_args_t *arg5 = (switch_input_args_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_say_callback_t)jarg3; + arg4 = (switch_say_args_t *)jarg4; + arg5 = (switch_input_args_t *)jarg5; + result = (switch_status_t)switch_ivr_say_ip(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_user(void * jarg1, char * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_set_user(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_user_xml(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_xml_t arg5 = (switch_xml_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_xml_t)jarg5; + result = (switch_status_t)switch_ivr_set_user_xml(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_sound_test(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)switch_ivr_sound_test(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_process_import(void * jarg1, void * jarg2, char * jarg3, char * jarg4) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + switch_process_import(arg1,arg2,(char const *)arg3,(char const *)arg4); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_uuid_exists(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_ivr_uuid_exists((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_uuid_force_exists(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t result; + + arg1 = (char *)jarg1; + result = (switch_bool_t)switch_ivr_uuid_force_exists((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_is_parsing(void * jarg1) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (switch_bool_t)switch_ivr_dmachine_is_parsing(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_last_ping(void * jarg1) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (switch_status_t)switch_ivr_dmachine_last_ping(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_dmachine_get_name(void * jarg1) { + char * jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (char *)switch_ivr_dmachine_get_name(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_match_callback(void * jarg1, void * jarg2) { + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_ivr_dmachine_callback_t arg2 = (switch_ivr_dmachine_callback_t) 0 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (switch_ivr_dmachine_callback_t)jarg2; + switch_ivr_dmachine_set_match_callback(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_nonmatch_callback(void * jarg1, void * jarg2) { + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_ivr_dmachine_callback_t arg2 = (switch_ivr_dmachine_callback_t) 0 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (switch_ivr_dmachine_callback_t)jarg2; + switch_ivr_dmachine_set_nonmatch_callback(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_create(void * jarg1, char * jarg2, void * jarg3, unsigned long jarg4, unsigned long jarg5, void * jarg6, void * jarg7, void * jarg8) { + int jresult ; + switch_ivr_dmachine_t **arg1 = (switch_ivr_dmachine_t **) 0 ; + char *arg2 = (char *) 0 ; + switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; + uint32_t arg4 ; + uint32_t arg5 ; + switch_ivr_dmachine_callback_t arg6 = (switch_ivr_dmachine_callback_t) 0 ; + switch_ivr_dmachine_callback_t arg7 = (switch_ivr_dmachine_callback_t) 0 ; + void *arg8 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t **)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_memory_pool_t *)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (switch_ivr_dmachine_callback_t)jarg6; + arg7 = (switch_ivr_dmachine_callback_t)jarg7; + arg8 = (void *)jarg8; + result = (switch_status_t)switch_ivr_dmachine_create(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_destroy(void * jarg1) { + switch_ivr_dmachine_t **arg1 = (switch_ivr_dmachine_t **) 0 ; + + arg1 = (switch_ivr_dmachine_t **)jarg1; + switch_ivr_dmachine_destroy(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_bind(void * jarg1, char * jarg2, char * jarg3, int jarg4, void * jarg5, void * jarg6) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + switch_ivr_dmachine_callback_t arg5 = (switch_ivr_dmachine_callback_t) 0 ; + void *arg6 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int32_t)jarg4; + arg5 = (switch_ivr_dmachine_callback_t)jarg5; + arg6 = (void *)jarg6; + result = (switch_status_t)switch_ivr_dmachine_bind(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_feed(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_ivr_dmachine_match_t **arg3 = (switch_ivr_dmachine_match_t **) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_ivr_dmachine_match_t **)jarg3; + result = (switch_status_t)switch_ivr_dmachine_feed(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_clear(void * jarg1) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (switch_status_t)switch_ivr_dmachine_clear(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_ping(void * jarg1, void * jarg2) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_ivr_dmachine_match_t **arg2 = (switch_ivr_dmachine_match_t **) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (switch_ivr_dmachine_match_t **)jarg2; + result = (switch_status_t)switch_ivr_dmachine_ping(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_ivr_dmachine_get_match(void * jarg1) { + void * jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + switch_ivr_dmachine_match_t *result = 0 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (switch_ivr_dmachine_match_t *)switch_ivr_dmachine_get_match(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_dmachine_get_failed_digits(void * jarg1) { + char * jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + result = (char *)switch_ivr_dmachine_get_failed_digits(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_digit_timeout_ms(void * jarg1, unsigned long jarg2) { + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_ivr_dmachine_set_digit_timeout_ms(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_input_timeout_ms(void * jarg1, unsigned long jarg2) { + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_ivr_dmachine_set_input_timeout_ms(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_clear_realm(void * jarg1, char * jarg2) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_dmachine_clear_realm(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_set_realm(void * jarg1, char * jarg2) { + int jresult ; + switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_ivr_dmachine_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_ivr_dmachine_set_realm(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_file_handle(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_file_handle_t **arg2 = (switch_file_handle_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_file_handle_t **)jarg2; + result = (switch_status_t)switch_ivr_get_file_handle(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_release_file_handle(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_file_handle_t **arg2 = (switch_file_handle_t **) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_file_handle_t **)jarg2; + result = (switch_status_t)switch_ivr_release_file_handle(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_process_fh(void * jarg1, char * jarg2, void * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_file_handle_t *arg3 = (switch_file_handle_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_file_handle_t *)jarg3; + result = (switch_status_t)switch_ivr_process_fh(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_insert_file(void * jarg1, char * jarg2, char * jarg3, void * jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_size_t arg4 ; + switch_size_t *argp4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + result = (switch_status_t)switch_ivr_insert_file(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_create_message_reply(void * jarg1, void * jarg2, char * jarg3) { + int jresult ; + switch_event_t **arg1 = (switch_event_t **) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + char *arg3 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_event_t **)jarg1; + arg2 = (switch_event_t *)jarg2; + arg3 = (char *)jarg3; + result = (switch_status_t)switch_ivr_create_message_reply(arg1,arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_ivr_check_presence_mapping(char * jarg1, char * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_ivr_check_presence_mapping((char const *)arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_kill_uuid(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_call_cause_t arg2 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_call_cause_t)jarg2; + result = (switch_status_t)switch_ivr_kill_uuid((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_blind_transfer_ack(void * jarg1, int jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_ivr_blind_transfer_ack(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_session_mask(void * jarg1, char * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_ivr_record_session_mask(arg1,(char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_BUF_LEN_get() { + int jresult ; + int result; + + result = (int)(16384); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTCP_MAX_BUF_LEN_get() { + int jresult ; + int result; + + result = (int)(16384); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_BUF_LEN_WORDS_get() { + int jresult ; + int result; + + result = (int)(4094); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_CRYPTO_LEN_get() { + int jresult ; + int result; + + result = (int)(64); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTP_CRYPTO_KEY_80_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("AES_CM_128_HMAC_SHA1_80"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_name_set(void * jarg1, char * jarg2) { + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->name; + if (arg2) { + arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->name, (const char *)arg2); + } else { + arg1->name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_name_get(void * jarg1) { + char * jresult ; + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + result = (char *) ((arg1)->name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_type_set(void * jarg1, int jarg2) { + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + switch_rtp_crypto_key_type_t arg2 ; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + arg2 = (switch_rtp_crypto_key_type_t)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_type_get(void * jarg1) { + int jresult ; + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + switch_rtp_crypto_key_type_t result; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + result = (switch_rtp_crypto_key_type_t) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_keylen_set(void * jarg1, int jarg2) { + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + int arg2 ; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->keylen = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_keylen_get(void * jarg1) { + int jresult ; + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + int result; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + result = (int) ((arg1)->keylen); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_srtp_crypto_suite_t() { + void * jresult ; + switch_srtp_crypto_suite_s *result = 0 ; + + result = (switch_srtp_crypto_suite_s *)new switch_srtp_crypto_suite_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_srtp_crypto_suite_t(void * jarg1) { + switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; + + arg1 = (switch_srtp_crypto_suite_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_index_set(void * jarg1, unsigned long jarg2) { + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->index = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_crypto_key_index_get(void * jarg1) { + unsigned long jresult ; + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + uint32_t result; + + arg1 = (switch_rtp_crypto_key *)jarg1; + result = (uint32_t) ((arg1)->index); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_type_set(void * jarg1, int jarg2) { + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + switch_rtp_crypto_key_type_t arg2 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + arg2 = (switch_rtp_crypto_key_type_t)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_crypto_key_type_get(void * jarg1) { + int jresult ; + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + switch_rtp_crypto_key_type_t result; + + arg1 = (switch_rtp_crypto_key *)jarg1; + result = (switch_rtp_crypto_key_type_t) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_key_set(void * jarg1, void * jarg2) { + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + unsigned char *arg2 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + arg2 = (unsigned char *)jarg2; + { + size_t ii; + unsigned char *b = (unsigned char *) arg1->key; + for (ii = 0; ii < (size_t)64; ii++) b[ii] = *((unsigned char *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_crypto_key_key_get(void * jarg1) { + void * jresult ; + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + unsigned char *result = 0 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + result = (unsigned char *)(unsigned char *) ((arg1)->key); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_keylen_set(void * jarg1, void * jarg2) { + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->keylen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_crypto_key_keylen_get(void * jarg1) { + void * jresult ; + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_crypto_key *)jarg1; + result = ((arg1)->keylen); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_crypto_key_next_set(void * jarg1, void * jarg2) { + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + switch_rtp_crypto_key *arg2 = (switch_rtp_crypto_key *) 0 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + arg2 = (switch_rtp_crypto_key *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_crypto_key_next_get(void * jarg1) { + void * jresult ; + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + switch_rtp_crypto_key *result = 0 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + result = (switch_rtp_crypto_key *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_crypto_key() { + void * jresult ; + switch_rtp_crypto_key *result = 0 ; + + result = (switch_rtp_crypto_key *)new switch_rtp_crypto_key(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_crypto_key(void * jarg1) { + switch_rtp_crypto_key *arg1 = (switch_rtp_crypto_key *) 0 ; + + arg1 = (switch_rtp_crypto_key *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_foundation_set(void * jarg1, char * jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (icand_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->foundation; + if (arg2) { + arg1->foundation = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->foundation, (const char *)arg2); + } else { + arg1->foundation = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_foundation_get(void * jarg1) { + char * jresult ; + icand_s *arg1 = (icand_s *) 0 ; + char *result = 0 ; + + arg1 = (icand_s *)jarg1; + result = (char *) ((arg1)->foundation); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_component_id_set(void * jarg1, int jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + int arg2 ; + + arg1 = (icand_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->component_id = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_icand_t_component_id_get(void * jarg1) { + int jresult ; + icand_s *arg1 = (icand_s *) 0 ; + int result; + + arg1 = (icand_s *)jarg1; + result = (int) ((arg1)->component_id); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_transport_set(void * jarg1, char * jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (icand_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->transport; + if (arg2) { + arg1->transport = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->transport, (const char *)arg2); + } else { + arg1->transport = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_transport_get(void * jarg1) { + char * jresult ; + icand_s *arg1 = (icand_s *) 0 ; + char *result = 0 ; + + arg1 = (icand_s *)jarg1; + result = (char *) ((arg1)->transport); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_priority_set(void * jarg1, unsigned long jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + uint32_t arg2 ; + + arg1 = (icand_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->priority = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_icand_t_priority_get(void * jarg1) { + unsigned long jresult ; + icand_s *arg1 = (icand_s *) 0 ; + uint32_t result; + + arg1 = (icand_s *)jarg1; + result = (uint32_t) ((arg1)->priority); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_con_addr_set(void * jarg1, char * jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (icand_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->con_addr; + if (arg2) { + arg1->con_addr = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->con_addr, (const char *)arg2); + } else { + arg1->con_addr = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_con_addr_get(void * jarg1) { + char * jresult ; + icand_s *arg1 = (icand_s *) 0 ; + char *result = 0 ; + + arg1 = (icand_s *)jarg1; + result = (char *) ((arg1)->con_addr); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_con_port_set(void * jarg1, unsigned short jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + switch_port_t arg2 ; + + arg1 = (icand_s *)jarg1; + arg2 = (switch_port_t)jarg2; + if (arg1) (arg1)->con_port = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_icand_t_con_port_get(void * jarg1) { + unsigned short jresult ; + icand_s *arg1 = (icand_s *) 0 ; + switch_port_t result; + + arg1 = (icand_s *)jarg1; + result = (switch_port_t) ((arg1)->con_port); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_cand_type_set(void * jarg1, char * jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (icand_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->cand_type; + if (arg2) { + arg1->cand_type = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->cand_type, (const char *)arg2); + } else { + arg1->cand_type = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_cand_type_get(void * jarg1) { + char * jresult ; + icand_s *arg1 = (icand_s *) 0 ; + char *result = 0 ; + + arg1 = (icand_s *)jarg1; + result = (char *) ((arg1)->cand_type); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_raddr_set(void * jarg1, char * jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (icand_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->raddr; + if (arg2) { + arg1->raddr = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->raddr, (const char *)arg2); + } else { + arg1->raddr = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_raddr_get(void * jarg1) { + char * jresult ; + icand_s *arg1 = (icand_s *) 0 ; + char *result = 0 ; + + arg1 = (icand_s *)jarg1; + result = (char *) ((arg1)->raddr); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_rport_set(void * jarg1, unsigned short jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + switch_port_t arg2 ; + + arg1 = (icand_s *)jarg1; + arg2 = (switch_port_t)jarg2; + if (arg1) (arg1)->rport = arg2; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_icand_t_rport_get(void * jarg1) { + unsigned short jresult ; + icand_s *arg1 = (icand_s *) 0 ; + switch_port_t result; + + arg1 = (icand_s *)jarg1; + result = (switch_port_t) ((arg1)->rport); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_generation_set(void * jarg1, char * jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (icand_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->generation; + if (arg2) { + arg1->generation = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->generation, (const char *)arg2); + } else { + arg1->generation = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_icand_t_generation_get(void * jarg1) { + char * jresult ; + icand_s *arg1 = (icand_s *) 0 ; + char *result = 0 ; + + arg1 = (icand_s *)jarg1; + result = (char *) ((arg1)->generation); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_icand_t_ready_set(void * jarg1, unsigned char jarg2) { + icand_s *arg1 = (icand_s *) 0 ; + uint8_t arg2 ; + + arg1 = (icand_s *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->ready = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_icand_t_ready_get(void * jarg1) { + unsigned char jresult ; + icand_s *arg1 = (icand_s *) 0 ; + uint8_t result; + + arg1 = (icand_s *)jarg1; + result = (uint8_t) ((arg1)->ready); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_icand_t() { + void * jresult ; + icand_s *result = 0 ; + + result = (icand_s *)new icand_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_icand_t(void * jarg1) { + icand_s *arg1 = (icand_s *) 0 ; + + arg1 = (icand_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MAX_CAND_get() { + int jresult ; + int result; + + result = (int)(50); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_cands_set(void * jarg1, void * jarg2) { + ice_s *arg1 = (ice_s *) 0 ; + icand_t (*arg2)[2] ; + + arg1 = (ice_s *)jarg1; + arg2 = (icand_t (*)[2])jarg2; + { + icand_t (*inp)[2] = (icand_t (*)[2])(arg2); + icand_t (*dest)[2] = (icand_t (*)[2])(arg1->cands); + size_t ii = 0; + for (; ii < 50; ++ii) { + icand_t *ip = inp[ii]; + icand_t *dp = dest[ii]; + size_t jj = 0; + for (; jj < 2; ++jj) dp[jj] = ip[jj]; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ice_t_cands_get(void * jarg1) { + void * jresult ; + ice_s *arg1 = (ice_s *) 0 ; + icand_t (*result)[2] = 0 ; + + arg1 = (ice_s *)jarg1; + result = (icand_t (*)[2])(icand_t (*)[2]) ((arg1)->cands); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_cand_idx_set(void * jarg1, int jarg2) { + ice_s *arg1 = (ice_s *) 0 ; + int arg2 ; + + arg1 = (ice_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->cand_idx = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ice_t_cand_idx_get(void * jarg1) { + int jresult ; + ice_s *arg1 = (ice_s *) 0 ; + int result; + + arg1 = (ice_s *)jarg1; + result = (int) ((arg1)->cand_idx); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_chosen_set(void * jarg1, void * jarg2) { + ice_s *arg1 = (ice_s *) 0 ; + int *arg2 ; + + arg1 = (ice_s *)jarg1; + arg2 = (int *)jarg2; + { + size_t ii; + int *b = (int *) arg1->chosen; + for (ii = 0; ii < (size_t)2; ii++) b[ii] = *((int *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ice_t_chosen_get(void * jarg1) { + void * jresult ; + ice_s *arg1 = (ice_s *) 0 ; + int *result = 0 ; + + arg1 = (ice_s *)jarg1; + result = (int *)(int *) ((arg1)->chosen); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_ufrag_set(void * jarg1, char * jarg2) { + ice_s *arg1 = (ice_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (ice_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->ufrag; + if (arg2) { + arg1->ufrag = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->ufrag, (const char *)arg2); + } else { + arg1->ufrag = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_ice_t_ufrag_get(void * jarg1) { + char * jresult ; + ice_s *arg1 = (ice_s *) 0 ; + char *result = 0 ; + + arg1 = (ice_s *)jarg1; + result = (char *) ((arg1)->ufrag); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_pwd_set(void * jarg1, char * jarg2) { + ice_s *arg1 = (ice_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (ice_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->pwd; + if (arg2) { + arg1->pwd = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->pwd, (const char *)arg2); + } else { + arg1->pwd = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_ice_t_pwd_get(void * jarg1) { + char * jresult ; + ice_s *arg1 = (ice_s *) 0 ; + char *result = 0 ; + + arg1 = (ice_s *)jarg1; + result = (char *) ((arg1)->pwd); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ice_t_options_set(void * jarg1, char * jarg2) { + ice_s *arg1 = (ice_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (ice_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->options; + if (arg2) { + arg1->options = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->options, (const char *)arg2); + } else { + arg1->options = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_ice_t_options_get(void * jarg1) { + char * jresult ; + ice_s *arg1 = (ice_s *) 0 ; + char *result = 0 ; + + arg1 = (ice_s *)jarg1; + result = (char *) ((arg1)->options); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ice_t() { + void * jresult ; + ice_s *result = 0 ; + + result = (ice_s *)new ice_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ice_t(void * jarg1) { + ice_s *arg1 = (ice_s *) 0 ; + + arg1 = (ice_s *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_add_crypto_key(void * jarg1, int jarg2, unsigned long jarg3, int jarg4, void * jarg5, void * jarg6) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_crypto_direction_t arg2 ; + uint32_t arg3 ; + switch_rtp_crypto_key_type_t arg4 ; + unsigned char *arg5 = (unsigned char *) 0 ; + switch_size_t arg6 ; + switch_size_t *argp6 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_crypto_direction_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (switch_rtp_crypto_key_type_t)jarg4; + arg5 = (unsigned char *)jarg5; + argp6 = (switch_size_t *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg6 = *argp6; + result = (switch_status_t)switch_rtp_add_crypto_key(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_get_random(void * jarg1, unsigned long jarg2) { + void *arg1 = (void *) 0 ; + uint32_t arg2 ; + + arg1 = (void *)jarg1; + arg2 = (uint32_t)jarg2; + switch_rtp_get_random(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_init(void * jarg1) { + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + switch_rtp_init(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_shutdown() { + switch_rtp_shutdown(); +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_set_start_port(unsigned short jarg1) { + unsigned short jresult ; + switch_port_t arg1 ; + switch_port_t result; + + arg1 = (switch_port_t)jarg1; + result = (switch_port_t)switch_rtp_set_start_port(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_ssrc(void * jarg1, unsigned long jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (switch_status_t)switch_rtp_set_ssrc(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_remote_ssrc(void * jarg1, unsigned long jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (switch_status_t)switch_rtp_set_remote_ssrc(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_set_end_port(unsigned short jarg1) { + unsigned short jresult ; + switch_port_t arg1 ; + switch_port_t result; + + arg1 = (switch_port_t)jarg1; + result = (switch_port_t)switch_rtp_set_end_port(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_request_port(char * jarg1) { + unsigned short jresult ; + char *arg1 = (char *) 0 ; + switch_port_t result; + + arg1 = (char *)jarg1; + result = (switch_port_t)switch_rtp_request_port((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_release_port(char * jarg1, unsigned short jarg2) { + char *arg1 = (char *) 0 ; + switch_port_t arg2 ; + + arg1 = (char *)jarg1; + arg2 = (switch_port_t)jarg2; + switch_rtp_release_port((char const *)arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_interval(void * jarg1, unsigned long jarg2, unsigned long jarg3) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + result = (switch_status_t)switch_rtp_set_interval(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_change_interval(void * jarg1, unsigned long jarg2, unsigned long jarg3) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + result = (switch_status_t)switch_rtp_change_interval(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_create(void * jarg1, unsigned char jarg2, unsigned long jarg3, unsigned long jarg4, void * jarg5, char * jarg6, void * jarg7, void * jarg8) { + int jresult ; + switch_rtp_t **arg1 = (switch_rtp_t **) 0 ; + switch_payload_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + switch_rtp_flag_t *arg5 ; + char *arg6 = (char *) 0 ; + char **arg7 = (char **) 0 ; + switch_memory_pool_t *arg8 = (switch_memory_pool_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t **)jarg1; + arg2 = (switch_payload_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (switch_rtp_flag_t *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char **)jarg7; + arg8 = (switch_memory_pool_t *)jarg8; + result = (switch_status_t)switch_rtp_create(arg1,arg2,arg3,arg4,arg5,arg6,(char const **)arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_new(char * jarg1, unsigned short jarg2, char * jarg3, unsigned short jarg4, unsigned char jarg5, unsigned long jarg6, unsigned long jarg7, void * jarg8, char * jarg9, void * jarg10, void * jarg11) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_port_t arg2 ; + char *arg3 = (char *) 0 ; + switch_port_t arg4 ; + switch_payload_t arg5 ; + uint32_t arg6 ; + uint32_t arg7 ; + switch_rtp_flag_t *arg8 ; + char *arg9 = (char *) 0 ; + char **arg10 = (char **) 0 ; + switch_memory_pool_t *arg11 = (switch_memory_pool_t *) 0 ; + switch_rtp_t *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (switch_port_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (switch_port_t)jarg4; + arg5 = (switch_payload_t)jarg5; + arg6 = (uint32_t)jarg6; + arg7 = (uint32_t)jarg7; + arg8 = (switch_rtp_flag_t *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char **)jarg10; + arg11 = (switch_memory_pool_t *)jarg11; + result = (switch_rtp_t *)switch_rtp_new((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const **)arg10,arg11); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_remote_address(void * jarg1, char * jarg2, unsigned short jarg3, unsigned short jarg4, int jarg5, void * jarg6) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_port_t arg3 ; + switch_port_t arg4 ; + switch_bool_t arg5 ; + char **arg6 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_port_t)jarg3; + arg4 = (switch_port_t)jarg4; + arg5 = (switch_bool_t)jarg5; + arg6 = (char **)jarg6; + result = (switch_status_t)switch_rtp_set_remote_address(arg1,(char const *)arg2,arg3,arg4,arg5,(char const **)arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtp_get_remote_host(void * jarg1) { + char * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_rtp_t *)jarg1; + result = (char *)switch_rtp_get_remote_host(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_get_remote_port(void * jarg1) { + unsigned short jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_port_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_port_t)switch_rtp_get_remote_port(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset_media_timer(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_reset_media_timer(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_max_missed_packets(void * jarg1, unsigned long jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_rtp_set_max_missed_packets(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_udptl_mode(void * jarg1) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_status_t)switch_rtp_udptl_mode(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_reset(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_local_address(void * jarg1, char * jarg2, unsigned short jarg3, void * jarg4) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_port_t arg3 ; + char **arg4 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_port_t)jarg3; + arg4 = (char **)jarg4; + result = (switch_status_t)switch_rtp_set_local_address(arg1,(char const *)arg2,arg3,(char const **)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_kill_socket(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_kill_socket(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_break(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_break(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_flush(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_flush(arg1); +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_rtp_ready(void * jarg1) { + unsigned char jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint8_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (uint8_t)switch_rtp_ready(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_destroy(void * jarg1) { + switch_rtp_t **arg1 = (switch_rtp_t **) 0 ; + + arg1 = (switch_rtp_t **)jarg1; + switch_rtp_destroy(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_ice(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, int jarg6, int jarg7, void * jarg8) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + ice_proto_t arg6 ; + switch_core_media_ice_type_t arg7 ; + ice_t *arg8 = (ice_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (ice_proto_t)jarg6; + arg7 = (switch_core_media_ice_type_t)jarg7; + arg8 = (ice_t *)jarg8; + result = (switch_status_t)switch_rtp_activate_ice(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_rtcp(void * jarg1, int jarg2, unsigned short jarg3, int jarg4) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + int arg2 ; + switch_port_t arg3 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (int)jarg2; + arg3 = (switch_port_t)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_rtp_activate_rtcp(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_jitter_buffer(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, unsigned long jarg6) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + uint32_t arg6 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (uint32_t)jarg6; + result = (switch_status_t)switch_rtp_activate_jitter_buffer(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_debug_jitter_buffer(void * jarg1, char * jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (char *)jarg2; + result = (switch_status_t)switch_rtp_debug_jitter_buffer(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_deactivate_jitter_buffer(void * jarg1) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_status_t)switch_rtp_deactivate_jitter_buffer(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_pause_jitter_buffer(void * jarg1, int jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_bool_t arg2 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_rtp_pause_jitter_buffer(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_jitter_buffer(void * jarg1) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + stfu_instance_t *result = 0 ; + + arg1 = (switch_rtp_t *)jarg1; + result = (stfu_instance_t *)switch_rtp_get_jitter_buffer(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_flag(void * jarg1, int jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_flag_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_flag_t)jarg2; + switch_rtp_set_flag(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_flags(void * jarg1, void * jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_flag_t *arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_flag_t *)jarg2; + switch_rtp_set_flags(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_clear_flags(void * jarg1, void * jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_flag_t *arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_flag_t *)jarg2; + switch_rtp_clear_flags(arg1,arg2); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_test_flag(void * jarg1, int jarg2) { + unsigned long jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_flag_t arg2 ; + uint32_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_flag_t)jarg2; + result = (uint32_t)switch_rtp_test_flag(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_clear_flag(void * jarg1, int jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_flag_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_flag_t)jarg2; + switch_rtp_clear_flag(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_rtp_socket(void * jarg1) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_socket_t *result = 0 ; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_socket_t *)switch_rtp_get_rtp_socket(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_ping(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_ping(arg1); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_default_samples_per_interval(void * jarg1) { + unsigned long jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (uint32_t)switch_rtp_get_default_samples_per_interval(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_default_payload(void * jarg1, unsigned char jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_payload_t)jarg2; + switch_rtp_set_default_payload(arg1,arg2); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_default_payload(void * jarg1) { + unsigned long jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (uint32_t)switch_rtp_get_default_payload(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_invalid_handler(void * jarg1, void * jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_invalid_handler_t arg2 = (switch_rtp_invalid_handler_t) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_invalid_handler_t)jarg2; + switch_rtp_set_invalid_handler(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_read(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, unsigned long jarg6) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t *arg3 = (uint32_t *) 0 ; + switch_payload_t *arg4 = (switch_payload_t *) 0 ; + switch_frame_flag_t *arg5 = (switch_frame_flag_t *) 0 ; + switch_io_flag_t arg6 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (uint32_t *)jarg3; + arg4 = (switch_payload_t *)jarg4; + arg5 = (switch_frame_flag_t *)jarg5; + arg6 = (switch_io_flag_t)jarg6; + result = (switch_status_t)switch_rtp_read(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_queue_rfc2833(void * jarg1, void * jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = (switch_status_t)switch_rtp_queue_rfc2833(arg1,(switch_dtmf_t const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_queue_rfc2833_in(void * jarg1, void * jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = (switch_status_t)switch_rtp_queue_rfc2833_in(arg1,(switch_dtmf_t const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_has_dtmf(void * jarg1) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = switch_rtp_has_dtmf(arg1); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_dequeue_dtmf(void * jarg1, void * jarg2) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_dtmf_t *arg2 = (switch_dtmf_t *) 0 ; + switch_size_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_dtmf_t *)jarg2; + result = switch_rtp_dequeue_dtmf(arg1,arg2); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_zerocopy_read(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, unsigned long jarg6) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + void **arg2 = (void **) 0 ; + uint32_t *arg3 = (uint32_t *) 0 ; + switch_payload_t *arg4 = (switch_payload_t *) 0 ; + switch_frame_flag_t *arg5 = (switch_frame_flag_t *) 0 ; + switch_io_flag_t arg6 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (void **)jarg2; + arg3 = (uint32_t *)jarg3; + arg4 = (switch_payload_t *)jarg4; + arg5 = (switch_frame_flag_t *)jarg5; + arg6 = (switch_io_flag_t)jarg6; + result = (switch_status_t)switch_rtp_zerocopy_read(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_zerocopy_read_frame(void * jarg1, void * jarg2, unsigned long jarg3) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_io_flag_t arg3 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_io_flag_t)jarg3; + result = (switch_status_t)switch_rtp_zerocopy_read_frame(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtcp_zerocopy_read_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtcp_frame_t *arg2 = (switch_rtcp_frame_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtcp_frame_t *)jarg2; + result = (switch_status_t)switch_rtcp_zerocopy_read_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_rtp_flush_read_buffer(void * jarg1, int jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_flush_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_flush_t)jarg2; + rtp_flush_read_buffer(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_enable_vad(void * jarg1, void * jarg2, void * jarg3, unsigned long jarg4) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_codec_t *arg3 = (switch_codec_t *) 0 ; + switch_vad_flag_t arg4 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (switch_codec_t *)jarg3; + arg4 = (switch_vad_flag_t)jarg4; + result = (switch_status_t)switch_rtp_enable_vad(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_disable_vad(void * jarg1) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_status_t)switch_rtp_disable_vad(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_write_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + int result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + result = (int)switch_rtp_write_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_write_manual(void * jarg1, void * jarg2, unsigned long jarg3, unsigned char jarg4, unsigned char jarg5, unsigned long jarg6, void * jarg7) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t arg3 ; + uint8_t arg4 ; + switch_payload_t arg5 ; + uint32_t arg6 ; + switch_frame_flag_t *arg7 = (switch_frame_flag_t *) 0 ; + int result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint8_t)jarg4; + arg5 = (switch_payload_t)jarg5; + arg6 = (uint32_t)jarg6; + arg7 = (switch_frame_flag_t *)jarg7; + result = (int)switch_rtp_write_manual(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_ssrc(void * jarg1) { + unsigned long jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (uint32_t)switch_rtp_get_ssrc(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_private(void * jarg1, void * jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (void *)jarg2; + switch_rtp_set_private(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_telephony_event(void * jarg1, unsigned char jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_payload_t)jarg2; + switch_rtp_set_telephony_event(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_telephony_recv_event(void * jarg1, unsigned char jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_payload_t)jarg2; + switch_rtp_set_telephony_recv_event(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_cng_pt(void * jarg1, unsigned char jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_payload_t)jarg2; + switch_rtp_set_cng_pt(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_private(void * jarg1) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_rtp_t *)jarg1; + result = (void *)switch_rtp_get_private(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_payload_map(void * jarg1, void * jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + payload_map_t **arg2 = (payload_map_t **) 0 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (payload_map_t **)jarg2; + result = (switch_status_t)switch_rtp_set_payload_map(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_intentional_bugs(void * jarg1, int jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_rtp_bug_flag_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_rtp_bug_flag_t)jarg2; + switch_rtp_intentional_bugs(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_stats(void * jarg1, void * jarg2) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + switch_rtp_stats_t *result = 0 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_memory_pool_t *)jarg2; + result = (switch_rtp_stats_t *)switch_rtp_get_stats(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_rtp_check_auto_adj(void * jarg1) { + unsigned char jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_byte_t result; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_byte_t)switch_rtp_check_auto_adj(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_interdigit_delay(void * jarg1, unsigned long jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (uint32_t)jarg2; + switch_rtp_set_interdigit_delay(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_add_dtls(void * jarg1, void * jarg2, void * jarg3, int jarg4) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + dtls_fingerprint_t *arg2 = (dtls_fingerprint_t *) 0 ; + dtls_fingerprint_t *arg3 = (dtls_fingerprint_t *) 0 ; + dtls_type_t arg4 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (dtls_fingerprint_t *)jarg2; + arg3 = (dtls_fingerprint_t *)jarg3; + arg4 = (dtls_type_t)jarg4; + result = (switch_status_t)switch_rtp_add_dtls(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_del_dtls(void * jarg1, int jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + dtls_type_t arg2 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (dtls_type_t)jarg2; + result = (switch_status_t)switch_rtp_del_dtls(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_has_dtls() { + int jresult ; + int result; + + result = (int)switch_rtp_has_dtls(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_video_refresh(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_video_refresh(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_data_set(void * jarg1, char * jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->data; + if (arg2) { + arg1->data = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->data, (const char *)arg2); + } else { + arg1->data = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_data_get(void * jarg1) { + char * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_log_node_t *)jarg1; + result = (char *) ((arg1)->data); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_file_set(void * jarg1, char * jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *arg2 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->file, (const char *)arg2, 80-1); + arg1->file[80-1] = 0; + } else { + arg1->file[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_file_get(void * jarg1) { + char * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_log_node_t *)jarg1; + result = (char *)(char *) ((arg1)->file); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_line_set(void * jarg1, unsigned long jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->line = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_log_node_t_line_get(void * jarg1) { + unsigned long jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + uint32_t result; + + arg1 = (switch_log_node_t *)jarg1; + result = (uint32_t) ((arg1)->line); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_func_set(void * jarg1, char * jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *arg2 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->func, (const char *)arg2, 80-1); + arg1->func[80-1] = 0; + } else { + arg1->func[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_func_get(void * jarg1) { + char * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_log_node_t *)jarg1; + result = (char *)(char *) ((arg1)->func); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_level_set(void * jarg1, int jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_log_level_t arg2 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (switch_log_level_t)jarg2; + if (arg1) (arg1)->level = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_level_get(void * jarg1) { + int jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_log_level_t result; + + arg1 = (switch_log_node_t *)jarg1; + result = (switch_log_level_t) ((arg1)->level); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_timestamp_set(void * jarg1, void * jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_log_node_t *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->timestamp = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_log_node_t_timestamp_get(void * jarg1) { + void * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_time_t result; + + arg1 = (switch_log_node_t *)jarg1; + result = ((arg1)->timestamp); + jresult = new switch_time_t((const switch_time_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_content_set(void * jarg1, char * jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->content; + if (arg2) { + arg1->content = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->content, (const char *)arg2); + } else { + arg1->content = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_content_get(void * jarg1) { + char * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_log_node_t *)jarg1; + result = (char *) ((arg1)->content); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_userdata_set(void * jarg1, char * jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->userdata; + if (arg2) { + arg1->userdata = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->userdata, (const char *)arg2); + } else { + arg1->userdata = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_node_t_userdata_get(void * jarg1) { + char * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_log_node_t *)jarg1; + result = (char *) ((arg1)->userdata); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_channel_set(void * jarg1, int jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_text_channel_t arg2 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (switch_text_channel_t)jarg2; + if (arg1) (arg1)->channel = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_channel_get(void * jarg1) { + int jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_text_channel_t result; + + arg1 = (switch_log_node_t *)jarg1; + result = (switch_text_channel_t) ((arg1)->channel); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_slevel_set(void * jarg1, int jarg2) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_log_level_t arg2 ; + + arg1 = (switch_log_node_t *)jarg1; + arg2 = (switch_log_level_t)jarg2; + if (arg1) (arg1)->slevel = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_slevel_get(void * jarg1) { + int jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_log_level_t result; + + arg1 = (switch_log_node_t *)jarg1; + result = (switch_log_level_t) ((arg1)->slevel); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_log_node_t() { + void * jresult ; + switch_log_node_t *result = 0 ; + + result = (switch_log_node_t *)new switch_log_node_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_log_node_t(void * jarg1) { + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + + arg1 = (switch_log_node_t *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_init(void * jarg1, int jarg2) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_bool_t arg2 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_log_init(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_shutdown() { + int jresult ; + switch_status_t result; + + result = (switch_status_t)switch_log_shutdown(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_bind_logger(void * jarg1, int jarg2, int jarg3) { + int jresult ; + switch_log_function_t arg1 = (switch_log_function_t) 0 ; + switch_log_level_t arg2 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_log_function_t)jarg1; + arg2 = (switch_log_level_t)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_log_bind_logger(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_unbind_logger(void * jarg1) { + int jresult ; + switch_log_function_t arg1 = (switch_log_function_t) 0 ; + switch_status_t result; + + arg1 = (switch_log_function_t)jarg1; + result = (switch_status_t)switch_log_unbind_logger(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_log_level2str(int jarg1) { + char * jresult ; + switch_log_level_t arg1 ; + char *result = 0 ; + + arg1 = (switch_log_level_t)jarg1; + result = (char *)switch_log_level2str(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_str2level(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_log_level_t result; + + arg1 = (char *)jarg1; + result = (switch_log_level_t)switch_log_str2level((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_log_str2mask(char * jarg1) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + uint32_t result; + + arg1 = (char *)jarg1; + result = (uint32_t)switch_log_str2mask((char const *)arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_log_node_dup(void * jarg1) { + void * jresult ; + switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; + switch_log_node_t *result = 0 ; + + arg1 = (switch_log_node_t *)jarg1; + result = (switch_log_node_t *)switch_log_node_dup((switch_log_node_t const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_free(void * jarg1) { + switch_log_node_t **arg1 = (switch_log_node_t **) 0 ; + + arg1 = (switch_log_node_t **)jarg1; + switch_log_node_free(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_XML_BUFSIZE_get() { + int jresult ; + int result; + + result = (int)(1024); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_name_set(void * jarg1, char * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->name; + if (arg2) { + arg1->name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->name, (const char *)arg2); + } else { + arg1->name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_name_get(void * jarg1) { + char * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + char *result = 0 ; + + arg1 = (switch_xml *)jarg1; + result = (char *) ((arg1)->name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_attr_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + char **arg2 = (char **) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (char **)jarg2; + if (arg1) (arg1)->attr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_attr_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + char **result = 0 ; + + arg1 = (switch_xml *)jarg1; + result = (char **) ((arg1)->attr); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_txt_set(void * jarg1, char * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->txt; + if (arg2) { + arg1->txt = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->txt, (const char *)arg2); + } else { + arg1->txt = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_txt_get(void * jarg1) { + char * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + char *result = 0 ; + + arg1 = (switch_xml *)jarg1; + result = (char *) ((arg1)->txt); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_free_path_set(void * jarg1, char * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->free_path; + if (arg2) { + arg1->free_path = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->free_path, (const char *)arg2); + } else { + arg1->free_path = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_free_path_get(void * jarg1) { + char * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + char *result = 0 ; + + arg1 = (switch_xml *)jarg1; + result = (char *) ((arg1)->free_path); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_off_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_xml *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->off = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_off_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_size_t result; + + arg1 = (switch_xml *)jarg1; + result = ((arg1)->off); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_next_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (switch_xml_t)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_next_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml *)jarg1; + result = (switch_xml_t) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_sibling_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (switch_xml_t)jarg2; + if (arg1) (arg1)->sibling = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_sibling_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml *)jarg1; + result = (switch_xml_t) ((arg1)->sibling); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_ordered_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (switch_xml_t)jarg2; + if (arg1) (arg1)->ordered = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_ordered_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml *)jarg1; + result = (switch_xml_t) ((arg1)->ordered); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_child_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (switch_xml_t)jarg2; + if (arg1) (arg1)->child = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_child_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml *)jarg1; + result = (switch_xml_t) ((arg1)->child); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_parent_set(void * jarg1, void * jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (switch_xml_t)jarg2; + if (arg1) (arg1)->parent = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parent_get(void * jarg1) { + void * jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml *)jarg1; + result = (switch_xml_t) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_flags_set(void * jarg1, unsigned long jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_flags_get(void * jarg1) { + unsigned long jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + uint32_t result; + + arg1 = (switch_xml *)jarg1; + result = (uint32_t) ((arg1)->flags); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_is_switch_xml_root_t_set(void * jarg1, int jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + switch_bool_t arg2 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (switch_bool_t)jarg2; + if (arg1) (arg1)->is_switch_xml_root_t = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_is_switch_xml_root_t_get(void * jarg1) { + int jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + switch_bool_t result; + + arg1 = (switch_xml *)jarg1; + result = (switch_bool_t) ((arg1)->is_switch_xml_root_t); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_refs_set(void * jarg1, unsigned long jarg2) { + switch_xml *arg1 = (switch_xml *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_xml *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->refs = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_refs_get(void * jarg1) { + unsigned long jresult ; + switch_xml *arg1 = (switch_xml *) 0 ; + uint32_t result; + + arg1 = (switch_xml *)jarg1; + result = (uint32_t) ((arg1)->refs); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_xml() { + void * jresult ; + switch_xml *result = 0 ; + + result = (switch_xml *)new switch_xml(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_xml(void * jarg1) { + switch_xml *arg1 = (switch_xml *) 0 ; + + arg1 = (switch_xml *)jarg1; + delete arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_str_dynamic(char * jarg1, int jarg2) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_bool_t arg2 ; + switch_xml_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (switch_xml_t)switch_xml_parse_str_dynamic(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_str(char * jarg1, void * jarg2) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + switch_xml_t result; + + arg1 = (char *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg2 = *argp2; + result = (switch_xml_t)switch_xml_parse_str(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_fd(int jarg1) { + void * jresult ; + int arg1 ; + switch_xml_t result; + + arg1 = (int)jarg1; + result = (switch_xml_t)switch_xml_parse_fd(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_file(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_xml_t result; + + arg1 = (char *)jarg1; + result = (switch_xml_t)switch_xml_parse_file((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_file_simple(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_xml_t result; + + arg1 = (char *)jarg1; + result = (switch_xml_t)switch_xml_parse_file_simple((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_parse_fp(void * jarg1) { + void * jresult ; + FILE *arg1 = (FILE *) 0 ; + switch_xml_t result; + + arg1 = (FILE *)jarg1; + result = (switch_xml_t)switch_xml_parse_fp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_child(void * jarg1, char * jarg2) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + result = (switch_xml_t)switch_xml_child(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_find_child(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (switch_xml_t)switch_xml_find_child(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_find_child_multi(void * jarg1, char * jarg2) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + result = (switch_xml_t)switch_xml_find_child_multi(arg1,(char const *)arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_attr(void * jarg1, char * jarg2) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_xml_attr(arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_attr_soft(void * jarg1, char * jarg2) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + result = (char *)switch_xml_attr_soft(arg1,(char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_get(void * jarg1) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + void *arg2 = 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + result = (switch_xml_t)switch_xml_get(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_toxml(void * jarg1, int jarg2) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_bool_t arg2 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (char *)switch_xml_toxml(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_toxml_nolock(void * jarg1, int jarg2) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_bool_t arg2 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (char *)switch_xml_toxml_nolock(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_tohtml(void * jarg1, int jarg2) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_bool_t arg2 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_bool_t)jarg2; + result = (char *)switch_xml_tohtml(arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_toxml_buf(void * jarg1, char * jarg2, void * jarg3, void * jarg4, int jarg5) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t arg4 ; + switch_bool_t arg5 ; + switch_size_t *argp3 ; + switch_size_t *argp4 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + arg5 = (switch_bool_t)jarg5; + result = (char *)switch_xml_toxml_buf(arg1,arg2,arg3,arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_free(void * jarg1) { + switch_xml_t arg1 = (switch_xml_t) 0 ; + + arg1 = (switch_xml_t)jarg1; + switch_xml_free(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_free_in_thread(void * jarg1, int jarg2) { + switch_xml_t arg1 = (switch_xml_t) 0 ; + int arg2 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (int)jarg2; + switch_xml_free_in_thread(arg1,arg2); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_error(void * jarg1) { + char * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *result = 0 ; + + arg1 = (switch_xml_t)jarg1; + result = (char *)switch_xml_error(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_new(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_xml_t result; + + arg1 = (char *)jarg1; + result = (switch_xml_t)switch_xml_new((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_add_child(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_xml_t)switch_xml_add_child(arg1,(char const *)arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_set_txt(void * jarg1, char * jarg2) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + result = (switch_xml_t)switch_xml_set_txt(arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_set_attr(void * jarg1, char * jarg2, char * jarg3) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (switch_xml_t)switch_xml_set_attr(arg1,(char const *)arg2,(char const *)arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_set_flag(void * jarg1, int jarg2) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_xml_flag_t arg2 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_xml_flag_t)jarg2; + result = (switch_xml_t)switch_xml_set_flag(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_cut(void * jarg1) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + result = (switch_xml_t)switch_xml_cut(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_insert(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_xml_t)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_xml_t)switch_xml_insert(arg1,arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_set_root(void * jarg1) { + int jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_status_t result; + + arg1 = (switch_xml_t)jarg1; + result = (switch_status_t)switch_xml_set_root(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_set_open_root_function(void * jarg1, void * jarg2) { + int jresult ; + switch_xml_open_root_function_t arg1 = (switch_xml_open_root_function_t) 0 ; + void *arg2 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_xml_open_root_function_t)jarg1; + arg2 = (void *)jarg2; + result = (switch_status_t)switch_xml_set_open_root_function(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_open_root(unsigned char jarg1, void * jarg2) { + void * jresult ; + uint8_t arg1 ; + char **arg2 = (char **) 0 ; + switch_xml_t result; + + arg1 = (uint8_t)jarg1; + arg2 = (char **)jarg2; + result = (switch_xml_t)switch_xml_open_root(arg1,(char const **)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_init(void * jarg1, void * jarg2) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + char **arg2 = (char **) 0 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (char **)jarg2; + result = (switch_status_t)switch_xml_init(arg1,(char const **)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_reload(void * jarg1) { + int jresult ; + char **arg1 = (char **) 0 ; + switch_status_t result; + + arg1 = (char **)jarg1; + result = (switch_status_t)switch_xml_reload((char const **)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_destroy() { + int jresult ; + switch_status_t result; + + result = (switch_status_t)switch_xml_destroy(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_root() { + void * jresult ; + switch_xml_t result; + + result = (switch_xml_t)switch_xml_root(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6, void * jarg7, int jarg8) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_xml_t *arg5 = (switch_xml_t *) 0 ; + switch_xml_t *arg6 = (switch_xml_t *) 0 ; + switch_event_t *arg7 = (switch_event_t *) 0 ; + switch_bool_t arg8 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_xml_t *)jarg5; + arg6 = (switch_xml_t *)jarg6; + arg7 = (switch_event_t *)jarg7; + arg8 = (switch_bool_t)jarg8; + result = (switch_status_t)switch_xml_locate((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_domain(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + switch_xml_t *arg3 = (switch_xml_t *) 0 ; + switch_xml_t *arg4 = (switch_xml_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_event_t *)jarg2; + arg3 = (switch_xml_t *)jarg3; + arg4 = (switch_xml_t *)jarg4; + result = (switch_status_t)switch_xml_locate_domain((char const *)arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_group(char * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + switch_xml_t *arg3 = (switch_xml_t *) 0 ; + switch_xml_t *arg4 = (switch_xml_t *) 0 ; + switch_xml_t *arg5 = (switch_xml_t *) 0 ; + switch_event_t *arg6 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_xml_t *)jarg3; + arg4 = (switch_xml_t *)jarg4; + arg5 = (switch_xml_t *)jarg5; + arg6 = (switch_event_t *)jarg6; + result = (switch_status_t)switch_xml_locate_group((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_xml_t *arg5 = (switch_xml_t *) 0 ; + switch_xml_t *arg6 = (switch_xml_t *) 0 ; + switch_xml_t *arg7 = (switch_xml_t *) 0 ; + switch_xml_t *arg8 = (switch_xml_t *) 0 ; + switch_event_t *arg9 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_xml_t *)jarg5; + arg6 = (switch_xml_t *)jarg6; + arg7 = (switch_xml_t *)jarg7; + arg8 = (switch_xml_t *)jarg8; + arg9 = (switch_event_t *)jarg9; + result = (switch_status_t)switch_xml_locate_user((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user_in_domain(char * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + char *arg1 = (char *) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + switch_xml_t *arg3 = (switch_xml_t *) 0 ; + switch_xml_t *arg4 = (switch_xml_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_xml_t)jarg2; + arg3 = (switch_xml_t *)jarg3; + arg4 = (switch_xml_t *)jarg4; + result = (switch_status_t)switch_xml_locate_user_in_domain((char const *)arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user_merged(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + switch_xml_t *arg5 = (switch_xml_t *) 0 ; + switch_event_t *arg6 = (switch_event_t *) 0 ; + switch_status_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (switch_xml_t *)jarg5; + arg6 = (switch_event_t *)jarg6; + result = (switch_status_t)switch_xml_locate_user_merged((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_clear_user_cache(char * jarg1, char * jarg2, char * jarg3) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + uint32_t result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (uint32_t)switch_xml_clear_user_cache((char const *)arg1,(char const *)arg2,(char const *)arg3); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_merge_user(void * jarg1, void * jarg2, void * jarg3) { + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_xml_t arg2 = (switch_xml_t) 0 ; + switch_xml_t arg3 = (switch_xml_t) 0 ; + + arg1 = (switch_xml_t)jarg1; + arg2 = (switch_xml_t)jarg2; + arg3 = (switch_xml_t)jarg3; + switch_xml_merge_user(arg1,arg2,arg3); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_dup(void * jarg1) { + void * jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + switch_xml_t result; + + arg1 = (switch_xml_t)jarg1; + result = (switch_xml_t)switch_xml_dup(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_open_cfg(char * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + char *arg1 = (char *) 0 ; + switch_xml_t *arg2 = (switch_xml_t *) 0 ; + switch_event_t *arg3 = (switch_event_t *) 0 ; + switch_xml_t result; + + arg1 = (char *)jarg1; + arg2 = (switch_xml_t *)jarg2; + arg3 = (switch_event_t *)jarg3; + result = (switch_xml_t)switch_xml_open_cfg((char const *)arg1,arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_set_binding_sections(void * jarg1, unsigned long jarg2) { + switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; + switch_xml_section_t arg2 ; + + arg1 = (switch_xml_binding_t *)jarg1; + arg2 = (switch_xml_section_t)jarg2; + switch_xml_set_binding_sections(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_xml_set_binding_user_data(void * jarg1, void * jarg2) { + switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_xml_binding_t *)jarg1; + arg2 = (void *)jarg2; + switch_xml_set_binding_user_data(arg1,arg2); +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_get_binding_sections(void * jarg1) { + unsigned long jresult ; + switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; + switch_xml_section_t result; + + arg1 = (switch_xml_binding_t *)jarg1; + result = (switch_xml_section_t)switch_xml_get_binding_sections(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_get_binding_user_data(void * jarg1) { + void * jresult ; + switch_xml_binding_t *arg1 = (switch_xml_binding_t *) 0 ; + void *result = 0 ; + + arg1 = (switch_xml_binding_t *)jarg1; + result = (void *)switch_xml_get_binding_user_data(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_bind_search_function_ret(void * jarg1, unsigned long jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_xml_search_function_t arg1 = (switch_xml_search_function_t) 0 ; + switch_xml_section_t arg2 ; + void *arg3 = (void *) 0 ; + switch_xml_binding_t **arg4 = (switch_xml_binding_t **) 0 ; + switch_status_t result; + + arg1 = (switch_xml_search_function_t)jarg1; + arg2 = (switch_xml_section_t)jarg2; + arg3 = (void *)jarg3; + arg4 = (switch_xml_binding_t **)jarg4; + result = (switch_status_t)switch_xml_bind_search_function_ret(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_unbind_search_function(void * jarg1) { + int jresult ; + switch_xml_binding_t **arg1 = (switch_xml_binding_t **) 0 ; + switch_status_t result; + + arg1 = (switch_xml_binding_t **)jarg1; + result = (switch_status_t)switch_xml_unbind_search_function(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_unbind_search_function_ptr(void * jarg1) { + int jresult ; + switch_xml_search_function_t arg1 = (switch_xml_search_function_t) 0 ; + switch_status_t result; + + arg1 = (switch_xml_search_function_t)jarg1; + result = (switch_status_t)switch_xml_unbind_search_function_ptr(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_xml_parse_section_string(char * jarg1) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + switch_xml_section_t result; + + arg1 = (char *)jarg1; + result = (switch_xml_section_t)switch_xml_parse_section_string((char const *)arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_std_datetime_check(void * jarg1, void * jarg2, char * jarg3) { + int jresult ; + switch_xml_t arg1 = (switch_xml_t) 0 ; + int *arg2 = (int *) 0 ; + char *arg3 = (char *) 0 ; + int result; + + arg1 = (switch_xml_t)jarg1; + arg2 = (int *)jarg2; + arg3 = (char *)jarg3; + result = (int)switch_xml_std_datetime_check(arg1,arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_language(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, char * jarg7) { + int jresult ; + switch_xml_t *arg1 = (switch_xml_t *) 0 ; + switch_xml_t *arg2 = (switch_xml_t *) 0 ; + switch_event_t *arg3 = (switch_event_t *) 0 ; + switch_xml_t *arg4 = (switch_xml_t *) 0 ; + switch_xml_t *arg5 = (switch_xml_t *) 0 ; + switch_xml_t *arg6 = (switch_xml_t *) 0 ; + char *arg7 = (char *) 0 ; + switch_status_t result; + + arg1 = (switch_xml_t *)jarg1; + arg2 = (switch_xml_t *)jarg2; + arg3 = (switch_event_t *)jarg3; + arg4 = (switch_xml_t *)jarg4; + arg5 = (switch_xml_t *)jarg5; + arg6 = (switch_xml_t *)jarg6; + arg7 = (char *)jarg7; + result = (switch_status_t)switch_xml_locate_language(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_set(void * jarg1, void * jarg2) { + switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; + switch_outgoing_channel_hook_t arg2 = (switch_outgoing_channel_hook_t) 0 ; + + arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; + arg2 = (switch_outgoing_channel_hook_t)jarg2; + if (arg1) (arg1)->outgoing_channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; + switch_outgoing_channel_hook_t result; + + arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; + result = (switch_outgoing_channel_hook_t) ((arg1)->outgoing_channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; + switch_io_event_hook_outgoing_channel *arg2 = (switch_io_event_hook_outgoing_channel *) 0 ; + + arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; + arg2 = (switch_io_event_hook_outgoing_channel *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_outgoing_channel_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; + switch_io_event_hook_outgoing_channel *result = 0 ; + + arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; + result = (switch_io_event_hook_outgoing_channel *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_outgoing_channel() { + void * jresult ; + switch_io_event_hook_outgoing_channel *result = 0 ; + + result = (switch_io_event_hook_outgoing_channel *)new switch_io_event_hook_outgoing_channel(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_outgoing_channel(void * jarg1) { + switch_io_event_hook_outgoing_channel *arg1 = (switch_io_event_hook_outgoing_channel *) 0 ; + + arg1 = (switch_io_event_hook_outgoing_channel *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_receive_message_set(void * jarg1, void * jarg2) { + switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; + switch_receive_message_hook_t arg2 = (switch_receive_message_hook_t) 0 ; + + arg1 = (switch_io_event_hook_receive_message *)jarg1; + arg2 = (switch_receive_message_hook_t)jarg2; + if (arg1) (arg1)->receive_message = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_receive_message_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; + switch_receive_message_hook_t result; + + arg1 = (switch_io_event_hook_receive_message *)jarg1; + result = (switch_receive_message_hook_t) ((arg1)->receive_message); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; + switch_io_event_hook_receive_message *arg2 = (switch_io_event_hook_receive_message *) 0 ; + + arg1 = (switch_io_event_hook_receive_message *)jarg1; + arg2 = (switch_io_event_hook_receive_message *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_message_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; + switch_io_event_hook_receive_message *result = 0 ; + + arg1 = (switch_io_event_hook_receive_message *)jarg1; + result = (switch_io_event_hook_receive_message *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_receive_message() { + void * jresult ; + switch_io_event_hook_receive_message *result = 0 ; + + result = (switch_io_event_hook_receive_message *)new switch_io_event_hook_receive_message(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_receive_message(void * jarg1) { + switch_io_event_hook_receive_message *arg1 = (switch_io_event_hook_receive_message *) 0 ; + + arg1 = (switch_io_event_hook_receive_message *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_receive_event_set(void * jarg1, void * jarg2) { + switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; + switch_receive_event_hook_t arg2 = (switch_receive_event_hook_t) 0 ; + + arg1 = (switch_io_event_hook_receive_event *)jarg1; + arg2 = (switch_receive_event_hook_t)jarg2; + if (arg1) (arg1)->receive_event = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_receive_event_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; + switch_receive_event_hook_t result; + + arg1 = (switch_io_event_hook_receive_event *)jarg1; + result = (switch_receive_event_hook_t) ((arg1)->receive_event); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; + switch_io_event_hook_receive_event *arg2 = (switch_io_event_hook_receive_event *) 0 ; + + arg1 = (switch_io_event_hook_receive_event *)jarg1; + arg2 = (switch_io_event_hook_receive_event *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_receive_event_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; + switch_io_event_hook_receive_event *result = 0 ; + + arg1 = (switch_io_event_hook_receive_event *)jarg1; + result = (switch_io_event_hook_receive_event *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_receive_event() { + void * jresult ; + switch_io_event_hook_receive_event *result = 0 ; + + result = (switch_io_event_hook_receive_event *)new switch_io_event_hook_receive_event(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_receive_event(void * jarg1) { + switch_io_event_hook_receive_event *arg1 = (switch_io_event_hook_receive_event *) 0 ; + + arg1 = (switch_io_event_hook_receive_event *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_read_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; + switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; + + arg1 = (switch_io_event_hook_read_frame *)jarg1; + arg2 = (switch_read_frame_hook_t)jarg2; + if (arg1) (arg1)->read_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_read_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; + switch_read_frame_hook_t result; + + arg1 = (switch_io_event_hook_read_frame *)jarg1; + result = (switch_read_frame_hook_t) ((arg1)->read_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; + switch_io_event_hook_read_frame *arg2 = (switch_io_event_hook_read_frame *) 0 ; + + arg1 = (switch_io_event_hook_read_frame *)jarg1; + arg2 = (switch_io_event_hook_read_frame *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_read_frame_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; + switch_io_event_hook_read_frame *result = 0 ; + + arg1 = (switch_io_event_hook_read_frame *)jarg1; + result = (switch_io_event_hook_read_frame *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_read_frame() { + void * jresult ; + switch_io_event_hook_read_frame *result = 0 ; + + result = (switch_io_event_hook_read_frame *)new switch_io_event_hook_read_frame(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_read_frame(void * jarg1) { + switch_io_event_hook_read_frame *arg1 = (switch_io_event_hook_read_frame *) 0 ; + + arg1 = (switch_io_event_hook_read_frame *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_video_read_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; + switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; + + arg1 = (switch_io_event_hook_video_read_frame *)jarg1; + arg2 = (switch_read_frame_hook_t)jarg2; + if (arg1) (arg1)->video_read_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_video_read_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; + switch_read_frame_hook_t result; + + arg1 = (switch_io_event_hook_video_read_frame *)jarg1; + result = (switch_read_frame_hook_t) ((arg1)->video_read_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; + switch_io_event_hook_video_read_frame *arg2 = (switch_io_event_hook_video_read_frame *) 0 ; + + arg1 = (switch_io_event_hook_video_read_frame *)jarg1; + arg2 = (switch_io_event_hook_video_read_frame *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_read_frame_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; + switch_io_event_hook_video_read_frame *result = 0 ; + + arg1 = (switch_io_event_hook_video_read_frame *)jarg1; + result = (switch_io_event_hook_video_read_frame *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_video_read_frame() { + void * jresult ; + switch_io_event_hook_video_read_frame *result = 0 ; + + result = (switch_io_event_hook_video_read_frame *)new switch_io_event_hook_video_read_frame(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_video_read_frame(void * jarg1) { + switch_io_event_hook_video_read_frame *arg1 = (switch_io_event_hook_video_read_frame *) 0 ; + + arg1 = (switch_io_event_hook_video_read_frame *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_write_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; + switch_write_frame_hook_t arg2 = (switch_write_frame_hook_t) 0 ; + + arg1 = (switch_io_event_hook_write_frame *)jarg1; + arg2 = (switch_write_frame_hook_t)jarg2; + if (arg1) (arg1)->write_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_write_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; + switch_write_frame_hook_t result; + + arg1 = (switch_io_event_hook_write_frame *)jarg1; + result = (switch_write_frame_hook_t) ((arg1)->write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; + switch_io_event_hook_write_frame *arg2 = (switch_io_event_hook_write_frame *) 0 ; + + arg1 = (switch_io_event_hook_write_frame *)jarg1; + arg2 = (switch_io_event_hook_write_frame *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_write_frame_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; + switch_io_event_hook_write_frame *result = 0 ; + + arg1 = (switch_io_event_hook_write_frame *)jarg1; + result = (switch_io_event_hook_write_frame *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_write_frame() { + void * jresult ; + switch_io_event_hook_write_frame *result = 0 ; + + result = (switch_io_event_hook_write_frame *)new switch_io_event_hook_write_frame(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_write_frame(void * jarg1) { + switch_io_event_hook_write_frame *arg1 = (switch_io_event_hook_write_frame *) 0 ; + + arg1 = (switch_io_event_hook_write_frame *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_video_write_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; + switch_video_write_frame_hook_t arg2 = (switch_video_write_frame_hook_t) 0 ; + + arg1 = (switch_io_event_hook_video_write_frame *)jarg1; + arg2 = (switch_video_write_frame_hook_t)jarg2; + if (arg1) (arg1)->video_write_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_video_write_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; + switch_video_write_frame_hook_t result; + + arg1 = (switch_io_event_hook_video_write_frame *)jarg1; + result = (switch_video_write_frame_hook_t) ((arg1)->video_write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; + switch_io_event_hook_video_write_frame *arg2 = (switch_io_event_hook_video_write_frame *) 0 ; + + arg1 = (switch_io_event_hook_video_write_frame *)jarg1; + arg2 = (switch_io_event_hook_video_write_frame *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_video_write_frame_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; + switch_io_event_hook_video_write_frame *result = 0 ; + + arg1 = (switch_io_event_hook_video_write_frame *)jarg1; + result = (switch_io_event_hook_video_write_frame *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_video_write_frame() { + void * jresult ; + switch_io_event_hook_video_write_frame *result = 0 ; + + result = (switch_io_event_hook_video_write_frame *)new switch_io_event_hook_video_write_frame(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_video_write_frame(void * jarg1) { + switch_io_event_hook_video_write_frame *arg1 = (switch_io_event_hook_video_write_frame *) 0 ; + + arg1 = (switch_io_event_hook_video_write_frame *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_kill_channel_set(void * jarg1, void * jarg2) { + switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; + switch_kill_channel_hook_t arg2 = (switch_kill_channel_hook_t) 0 ; + + arg1 = (switch_io_event_hook_kill_channel *)jarg1; + arg2 = (switch_kill_channel_hook_t)jarg2; + if (arg1) (arg1)->kill_channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_kill_channel_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; + switch_kill_channel_hook_t result; + + arg1 = (switch_io_event_hook_kill_channel *)jarg1; + result = (switch_kill_channel_hook_t) ((arg1)->kill_channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; + switch_io_event_hook_kill_channel *arg2 = (switch_io_event_hook_kill_channel *) 0 ; + + arg1 = (switch_io_event_hook_kill_channel *)jarg1; + arg2 = (switch_io_event_hook_kill_channel *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_kill_channel_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; + switch_io_event_hook_kill_channel *result = 0 ; + + arg1 = (switch_io_event_hook_kill_channel *)jarg1; + result = (switch_io_event_hook_kill_channel *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_kill_channel() { + void * jresult ; + switch_io_event_hook_kill_channel *result = 0 ; + + result = (switch_io_event_hook_kill_channel *)new switch_io_event_hook_kill_channel(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_kill_channel(void * jarg1) { + switch_io_event_hook_kill_channel *arg1 = (switch_io_event_hook_kill_channel *) 0 ; + + arg1 = (switch_io_event_hook_kill_channel *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_send_dtmf_set(void * jarg1, void * jarg2) { + switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; + switch_send_dtmf_hook_t arg2 = (switch_send_dtmf_hook_t) 0 ; + + arg1 = (switch_io_event_hook_send_dtmf *)jarg1; + arg2 = (switch_send_dtmf_hook_t)jarg2; + if (arg1) (arg1)->send_dtmf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_send_dtmf_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; + switch_send_dtmf_hook_t result; + + arg1 = (switch_io_event_hook_send_dtmf *)jarg1; + result = (switch_send_dtmf_hook_t) ((arg1)->send_dtmf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; + switch_io_event_hook_send_dtmf *arg2 = (switch_io_event_hook_send_dtmf *) 0 ; + + arg1 = (switch_io_event_hook_send_dtmf *)jarg1; + arg2 = (switch_io_event_hook_send_dtmf *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_send_dtmf_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; + switch_io_event_hook_send_dtmf *result = 0 ; + + arg1 = (switch_io_event_hook_send_dtmf *)jarg1; + result = (switch_io_event_hook_send_dtmf *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_send_dtmf() { + void * jresult ; + switch_io_event_hook_send_dtmf *result = 0 ; + + result = (switch_io_event_hook_send_dtmf *)new switch_io_event_hook_send_dtmf(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_send_dtmf(void * jarg1) { + switch_io_event_hook_send_dtmf *arg1 = (switch_io_event_hook_send_dtmf *) 0 ; + + arg1 = (switch_io_event_hook_send_dtmf *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_set(void * jarg1, void * jarg2) { + switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; + switch_recv_dtmf_hook_t arg2 = (switch_recv_dtmf_hook_t) 0 ; + + arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; + arg2 = (switch_recv_dtmf_hook_t)jarg2; + if (arg1) (arg1)->recv_dtmf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; + switch_recv_dtmf_hook_t result; + + arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; + result = (switch_recv_dtmf_hook_t) ((arg1)->recv_dtmf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; + switch_io_event_hook_recv_dtmf *arg2 = (switch_io_event_hook_recv_dtmf *) 0 ; + + arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; + arg2 = (switch_io_event_hook_recv_dtmf *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_recv_dtmf_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; + switch_io_event_hook_recv_dtmf *result = 0 ; + + arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; + result = (switch_io_event_hook_recv_dtmf *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_recv_dtmf() { + void * jresult ; + switch_io_event_hook_recv_dtmf *result = 0 ; + + result = (switch_io_event_hook_recv_dtmf *)new switch_io_event_hook_recv_dtmf(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_recv_dtmf(void * jarg1) { + switch_io_event_hook_recv_dtmf *arg1 = (switch_io_event_hook_recv_dtmf *) 0 ; + + arg1 = (switch_io_event_hook_recv_dtmf *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_change_state_change_set(void * jarg1, void * jarg2) { + switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; + switch_state_change_hook_t arg2 = (switch_state_change_hook_t) 0 ; + + arg1 = (switch_io_event_hook_state_change *)jarg1; + arg2 = (switch_state_change_hook_t)jarg2; + if (arg1) (arg1)->state_change = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_change_state_change_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; + switch_state_change_hook_t result; + + arg1 = (switch_io_event_hook_state_change *)jarg1; + result = (switch_state_change_hook_t) ((arg1)->state_change); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_change_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; + switch_io_event_hook_state_change *arg2 = (switch_io_event_hook_state_change *) 0 ; + + arg1 = (switch_io_event_hook_state_change *)jarg1; + arg2 = (switch_io_event_hook_state_change *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_change_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; + switch_io_event_hook_state_change *result = 0 ; + + arg1 = (switch_io_event_hook_state_change *)jarg1; + result = (switch_io_event_hook_state_change *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_state_change() { + void * jresult ; + switch_io_event_hook_state_change *result = 0 ; + + result = (switch_io_event_hook_state_change *)new switch_io_event_hook_state_change(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_state_change(void * jarg1) { + switch_io_event_hook_state_change *arg1 = (switch_io_event_hook_state_change *) 0 ; + + arg1 = (switch_io_event_hook_state_change *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_run_state_run_set(void * jarg1, void * jarg2) { + switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; + switch_state_run_hook_t arg2 = (switch_state_run_hook_t) 0 ; + + arg1 = (switch_io_event_hook_state_run *)jarg1; + arg2 = (switch_state_run_hook_t)jarg2; + if (arg1) (arg1)->state_run = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_run_state_run_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; + switch_state_run_hook_t result; + + arg1 = (switch_io_event_hook_state_run *)jarg1; + result = (switch_state_run_hook_t) ((arg1)->state_run); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hook_state_run_next_set(void * jarg1, void * jarg2) { + switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; + switch_io_event_hook_state_run *arg2 = (switch_io_event_hook_state_run *) 0 ; + + arg1 = (switch_io_event_hook_state_run *)jarg1; + arg2 = (switch_io_event_hook_state_run *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hook_state_run_next_get(void * jarg1) { + void * jresult ; + switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; + switch_io_event_hook_state_run *result = 0 ; + + arg1 = (switch_io_event_hook_state_run *)jarg1; + result = (switch_io_event_hook_state_run *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hook_state_run() { + void * jresult ; + switch_io_event_hook_state_run *result = 0 ; + + result = (switch_io_event_hook_state_run *)new switch_io_event_hook_state_run(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hook_state_run(void * jarg1) { + switch_io_event_hook_state_run *arg1 = (switch_io_event_hook_state_run *) 0 ; + + arg1 = (switch_io_event_hook_state_run *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_outgoing_channel_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_outgoing_channel_t *arg2 = (switch_io_event_hook_outgoing_channel_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_outgoing_channel_t *)jarg2; + if (arg1) (arg1)->outgoing_channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_outgoing_channel_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_outgoing_channel_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_outgoing_channel_t *) ((arg1)->outgoing_channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_receive_message_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_receive_message_t *arg2 = (switch_io_event_hook_receive_message_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_receive_message_t *)jarg2; + if (arg1) (arg1)->receive_message = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_receive_message_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_receive_message_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_receive_message_t *) ((arg1)->receive_message); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_receive_event_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_receive_event_t *arg2 = (switch_io_event_hook_receive_event_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_receive_event_t *)jarg2; + if (arg1) (arg1)->receive_event = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_receive_event_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_receive_event_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_receive_event_t *) ((arg1)->receive_event); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_read_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_read_frame_t *arg2 = (switch_io_event_hook_read_frame_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_read_frame_t *)jarg2; + if (arg1) (arg1)->read_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_read_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_read_frame_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_read_frame_t *) ((arg1)->read_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_video_read_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_video_read_frame_t *arg2 = (switch_io_event_hook_video_read_frame_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_video_read_frame_t *)jarg2; + if (arg1) (arg1)->video_read_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_video_read_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_video_read_frame_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_video_read_frame_t *) ((arg1)->video_read_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_write_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_write_frame_t *arg2 = (switch_io_event_hook_write_frame_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_write_frame_t *)jarg2; + if (arg1) (arg1)->write_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_write_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_write_frame_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_write_frame_t *) ((arg1)->write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_video_write_frame_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_video_write_frame_t *arg2 = (switch_io_event_hook_video_write_frame_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_video_write_frame_t *)jarg2; + if (arg1) (arg1)->video_write_frame = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_video_write_frame_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_video_write_frame_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_video_write_frame_t *) ((arg1)->video_write_frame); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_kill_channel_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_kill_channel_t *arg2 = (switch_io_event_hook_kill_channel_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_kill_channel_t *)jarg2; + if (arg1) (arg1)->kill_channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_kill_channel_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_kill_channel_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_kill_channel_t *) ((arg1)->kill_channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_send_dtmf_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_send_dtmf_t *arg2 = (switch_io_event_hook_send_dtmf_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_send_dtmf_t *)jarg2; + if (arg1) (arg1)->send_dtmf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_send_dtmf_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_send_dtmf_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_send_dtmf_t *) ((arg1)->send_dtmf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_recv_dtmf_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_recv_dtmf_t *arg2 = (switch_io_event_hook_recv_dtmf_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_recv_dtmf_t *)jarg2; + if (arg1) (arg1)->recv_dtmf = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_recv_dtmf_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_recv_dtmf_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_recv_dtmf_t *) ((arg1)->recv_dtmf); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_state_change_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_state_change_t *arg2 = (switch_io_event_hook_state_change_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_state_change_t *)jarg2; + if (arg1) (arg1)->state_change = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_state_change_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_state_change_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_state_change_t *) ((arg1)->state_change); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_io_event_hooks_state_run_set(void * jarg1, void * jarg2) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_state_run_t *arg2 = (switch_io_event_hook_state_run_t *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + arg2 = (switch_io_event_hook_state_run_t *)jarg2; + if (arg1) (arg1)->state_run = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_io_event_hooks_state_run_get(void * jarg1) { + void * jresult ; + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + switch_io_event_hook_state_run_t *result = 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + result = (switch_io_event_hook_state_run_t *) ((arg1)->state_run); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_io_event_hooks() { + void * jresult ; + switch_io_event_hooks *result = 0 ; + + result = (switch_io_event_hooks *)new switch_io_event_hooks(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_io_event_hooks(void * jarg1) { + switch_io_event_hooks *arg1 = (switch_io_event_hooks *) 0 ; + + arg1 = (switch_io_event_hooks *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_outgoing_channel(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_outgoing_channel_hook_t arg2 = (switch_outgoing_channel_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_outgoing_channel_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_outgoing_channel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_receive_message(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_receive_message_hook_t arg2 = (switch_receive_message_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_receive_message_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_receive_message(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_receive_event(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_receive_event_hook_t arg2 = (switch_receive_event_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_receive_event_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_receive_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_state_change(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_state_change_hook_t arg2 = (switch_state_change_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_state_change_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_state_change(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_state_run(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_state_run_hook_t arg2 = (switch_state_run_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_state_run_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_state_run(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_read_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_read_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_read_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_write_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_write_frame_hook_t arg2 = (switch_write_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_write_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_write_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_video_read_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_video_read_frame_hook_t arg2 = (switch_video_read_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_video_read_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_video_read_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_video_write_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_video_write_frame_hook_t arg2 = (switch_video_write_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_video_write_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_video_write_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_kill_channel(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_kill_channel_hook_t arg2 = (switch_kill_channel_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_kill_channel_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_kill_channel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_send_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_send_dtmf_hook_t arg2 = (switch_send_dtmf_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_send_dtmf_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_send_dtmf(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_add_recv_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_recv_dtmf_hook_t arg2 = (switch_recv_dtmf_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_recv_dtmf_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_add_recv_dtmf(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_outgoing_channel(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_outgoing_channel_hook_t arg2 = (switch_outgoing_channel_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_outgoing_channel_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_outgoing_channel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_receive_message(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_receive_message_hook_t arg2 = (switch_receive_message_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_receive_message_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_receive_message(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_receive_event(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_receive_event_hook_t arg2 = (switch_receive_event_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_receive_event_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_receive_event(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_state_change(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_state_change_hook_t arg2 = (switch_state_change_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_state_change_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_state_change(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_state_run(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_state_run_hook_t arg2 = (switch_state_run_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_state_run_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_state_run(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_read_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_read_frame_hook_t arg2 = (switch_read_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_read_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_read_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_write_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_write_frame_hook_t arg2 = (switch_write_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_write_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_write_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_video_read_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_video_read_frame_hook_t arg2 = (switch_video_read_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_video_read_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_video_read_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_video_write_frame(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_video_write_frame_hook_t arg2 = (switch_video_write_frame_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_video_write_frame_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_video_write_frame(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_kill_channel(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_kill_channel_hook_t arg2 = (switch_kill_channel_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_kill_channel_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_kill_channel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_send_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_send_dtmf_hook_t arg2 = (switch_send_dtmf_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_send_dtmf_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_send_dtmf(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_event_hook_remove_recv_dtmf(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_recv_dtmf_hook_t arg2 = (switch_recv_dtmf_hook_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_recv_dtmf_hook_t)jarg2; + result = (switch_status_t)switch_core_event_hook_remove_recv_dtmf(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_created_set(void * jarg1, long long jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + int64_t arg2 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->created = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_scheduler_task_created_get(void * jarg1) { + long long jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + int64_t result; + + arg1 = (switch_scheduler_task *)jarg1; + result = (int64_t) ((arg1)->created); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_runtime_set(void * jarg1, long long jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + int64_t arg2 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->runtime = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_scheduler_task_runtime_get(void * jarg1) { + long long jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + int64_t result; + + arg1 = (switch_scheduler_task *)jarg1; + result = (int64_t) ((arg1)->runtime); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_cmd_id_set(void * jarg1, unsigned long jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->cmd_id = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_cmd_id_get(void * jarg1) { + unsigned long jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + uint32_t result; + + arg1 = (switch_scheduler_task *)jarg1; + result = (uint32_t) ((arg1)->cmd_id); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_repeat_set(void * jarg1, unsigned long jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->repeat = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_repeat_get(void * jarg1) { + unsigned long jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + uint32_t result; + + arg1 = (switch_scheduler_task *)jarg1; + result = (uint32_t) ((arg1)->repeat); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_group_set(void * jarg1, char * jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->group; + if (arg2) { + arg1->group = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->group, (const char *)arg2); + } else { + arg1->group = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_scheduler_task_group_get(void * jarg1) { + char * jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + char *result = 0 ; + + arg1 = (switch_scheduler_task *)jarg1; + result = (char *) ((arg1)->group); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_cmd_arg_set(void * jarg1, void * jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->cmd_arg = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_scheduler_task_cmd_arg_get(void * jarg1) { + void * jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + void *result = 0 ; + + arg1 = (switch_scheduler_task *)jarg1; + result = (void *) ((arg1)->cmd_arg); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_task_id_set(void * jarg1, unsigned long jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->task_id = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_task_id_get(void * jarg1) { + unsigned long jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + uint32_t result; + + arg1 = (switch_scheduler_task *)jarg1; + result = (uint32_t) ((arg1)->task_id); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_hash_set(void * jarg1, unsigned long jarg2) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + unsigned long arg2 ; + + arg1 = (switch_scheduler_task *)jarg1; + arg2 = (unsigned long)jarg2; + if (arg1) (arg1)->hash = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_task_hash_get(void * jarg1) { + unsigned long jresult ; + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + unsigned long result; + + arg1 = (switch_scheduler_task *)jarg1; + result = (unsigned long) ((arg1)->hash); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_scheduler_task() { + void * jresult ; + switch_scheduler_task *result = 0 ; + + result = (switch_scheduler_task *)new switch_scheduler_task(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_scheduler_task(void * jarg1) { + switch_scheduler_task *arg1 = (switch_scheduler_task *) 0 ; + + arg1 = (switch_scheduler_task *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_add_task(void * jarg1, void * jarg2, char * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, unsigned long jarg7) { + unsigned long jresult ; + time_t arg1 ; + switch_scheduler_func_t arg2 = (switch_scheduler_func_t) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + uint32_t arg5 ; + void *arg6 = (void *) 0 ; + switch_scheduler_flag_t arg7 ; + time_t *argp1 ; + uint32_t result; + + argp1 = (time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); + return 0; + } + arg1 = *argp1; + arg2 = (switch_scheduler_func_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (uint32_t)jarg5; + arg6 = (void *)jarg6; + arg7 = (switch_scheduler_flag_t)jarg7; + result = (uint32_t)switch_scheduler_add_task(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_del_task_id(unsigned long jarg1) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + result = (uint32_t)switch_scheduler_del_task_id(arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_scheduler_del_task_group(char * jarg1) { + unsigned long jresult ; + char *arg1 = (char *) 0 ; + uint32_t result; + + arg1 = (char *)jarg1; + result = (uint32_t)switch_scheduler_del_task_group((char const *)arg1); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_thread_start() { + switch_scheduler_task_thread_start(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_scheduler_task_thread_stop() { + switch_scheduler_task_thread_stop(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_file_set(void * jarg1, void * jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + FILE *arg2 = (FILE *) 0 ; + + arg1 = (switch_config *)jarg1; + arg2 = (FILE *)jarg2; + if (arg1) (arg1)->file = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_config_file_get(void * jarg1) { + void * jresult ; + switch_config *arg1 = (switch_config *) 0 ; + FILE *result = 0 ; + + arg1 = (switch_config *)jarg1; + result = (FILE *) ((arg1)->file); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_path_set(void * jarg1, char * jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + char *arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->path, (const char *)arg2, 512-1); + arg1->path[512-1] = 0; + } else { + arg1->path[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_path_get(void * jarg1) { + char * jresult ; + switch_config *arg1 = (switch_config *) 0 ; + char *result = 0 ; + + arg1 = (switch_config *)jarg1; + result = (char *)(char *) ((arg1)->path); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_category_set(void * jarg1, char * jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + char *arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->category, (const char *)arg2, 256-1); + arg1->category[256-1] = 0; + } else { + arg1->category[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_category_get(void * jarg1) { + char * jresult ; + switch_config *arg1 = (switch_config *) 0 ; + char *result = 0 ; + + arg1 = (switch_config *)jarg1; + result = (char *)(char *) ((arg1)->category); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_section_set(void * jarg1, char * jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + char *arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->section, (const char *)arg2, 256-1); + arg1->section[256-1] = 0; + } else { + arg1->section[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_section_get(void * jarg1) { + char * jresult ; + switch_config *arg1 = (switch_config *) 0 ; + char *result = 0 ; + + arg1 = (switch_config *)jarg1; + result = (char *)(char *) ((arg1)->section); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_buf_set(void * jarg1, char * jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + char *arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->buf, (const char *)arg2, 1024-1); + arg1->buf[1024-1] = 0; + } else { + arg1->buf[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_config_buf_get(void * jarg1) { + char * jresult ; + switch_config *arg1 = (switch_config *) 0 ; + char *result = 0 ; + + arg1 = (switch_config *)jarg1; + result = (char *)(char *) ((arg1)->buf); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_lineno_set(void * jarg1, int jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + int arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->lineno = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_lineno_get(void * jarg1) { + int jresult ; + switch_config *arg1 = (switch_config *) 0 ; + int result; + + arg1 = (switch_config *)jarg1; + result = (int) ((arg1)->lineno); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_catno_set(void * jarg1, int jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + int arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->catno = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_catno_get(void * jarg1) { + int jresult ; + switch_config *arg1 = (switch_config *) 0 ; + int result; + + arg1 = (switch_config *)jarg1; + result = (int) ((arg1)->catno); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_sectno_set(void * jarg1, int jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + int arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->sectno = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_sectno_get(void * jarg1) { + int jresult ; + switch_config *arg1 = (switch_config *) 0 ; + int result; + + arg1 = (switch_config *)jarg1; + result = (int) ((arg1)->sectno); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_lockto_set(void * jarg1, int jarg2) { + switch_config *arg1 = (switch_config *) 0 ; + int arg2 ; + + arg1 = (switch_config *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->lockto = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_lockto_get(void * jarg1) { + int jresult ; + switch_config *arg1 = (switch_config *) 0 ; + int result; + + arg1 = (switch_config *)jarg1; + result = (int) ((arg1)->lockto); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_config() { + void * jresult ; + switch_config *result = 0 ; + + result = (switch_config *)new switch_config(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_config(void * jarg1) { + switch_config *arg1 = (switch_config *) 0 ; + + arg1 = (switch_config *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_open_file(void * jarg1, char * jarg2) { + int jresult ; + switch_config_t *arg1 = (switch_config_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (switch_config_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_config_open_file(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_config_close_file(void * jarg1) { + switch_config_t *arg1 = (switch_config_t *) 0 ; + + arg1 = (switch_config_t *)jarg1; + switch_config_close_file(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_config_next_pair(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_config_t *arg1 = (switch_config_t *) 0 ; + char **arg2 = (char **) 0 ; + char **arg3 = (char **) 0 ; + int result; + + arg1 = (switch_config_t *)jarg1; + arg2 = (char **)jarg2; + arg3 = (char **)jarg3; + result = (int)switch_config_next_pair(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_setGlobalVariable(char * jarg1, char * jarg2) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + setGlobalVariable(arg1,arg2); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_getGlobalVariable(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)getGlobalVariable(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + free(result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_consoleLog(char * jarg1, char * jarg2) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + consoleLog(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_consoleLog2(char * jarg1, char * jarg2, char * jarg3, int jarg4, char * jarg5) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + char *arg5 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (char *)jarg5; + consoleLog2(arg1,arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_consoleCleanLog(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + consoleCleanLog(arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_running() { + unsigned int jresult ; + bool result; + + result = (bool)running(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_email(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) NULL ; + char *arg4 = (char *) NULL ; + char *arg5 = (char *) NULL ; + char *arg6 = (char *) NULL ; + char *arg7 = (char *) NULL ; + bool result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_IvrMenu(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, char * jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17) { + void * jresult ; + IVRMenu *arg1 = (IVRMenu *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + char *arg10 = (char *) 0 ; + char *arg11 = (char *) 0 ; + int arg12 ; + int arg13 ; + int arg14 ; + int arg15 ; + int arg16 ; + int arg17 ; + IVRMenu *result = 0 ; + + arg1 = (IVRMenu *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char *)jarg10; + arg11 = (char *)jarg11; + arg12 = (int)jarg12; + arg13 = (int)jarg13; + arg14 = (int)jarg14; + arg15 = (int)jarg15; + arg16 = (int)jarg16; + arg17 = (int)jarg17; + result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_IvrMenu(void * jarg1) { + IVRMenu *arg1 = (IVRMenu *) 0 ; + + arg1 = (IVRMenu *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_IvrMenu_bindAction(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + IVRMenu *arg1 = (IVRMenu *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + + arg1 = (IVRMenu *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_IvrMenu_Execute(void * jarg1, void * jarg2, char * jarg3) { + IVRMenu *arg1 = (IVRMenu *) 0 ; + CoreSession *arg2 = (CoreSession *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (IVRMenu *)jarg1; + arg2 = (CoreSession *)jarg2; + arg3 = (char *)jarg3; + (arg1)->execute(arg2,(char const *)arg3); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_Api(void * jarg1) { + void * jresult ; + CoreSession *arg1 = (CoreSession *) NULL ; + API *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (API *)new API(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_Api(void * jarg1) { + API *arg1 = (API *) 0 ; + + arg1 = (API *)jarg1; + delete arg1; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Api_Execute(void * jarg1, char * jarg2, char * jarg3) { + char * jresult ; + API *arg1 = (API *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) NULL ; + char *result = 0 ; + + arg1 = (API *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + free(result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Api_ExecuteString(void * jarg1, char * jarg2) { + char * jresult ; + API *arg1 = (API *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (API *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->executeString((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + free(result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Api_getTime(void * jarg1) { + char * jresult ; + API *arg1 = (API *) 0 ; + char *result = 0 ; + + arg1 = (API *)jarg1; + result = (char *)(arg1)->getTime(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_function_set(void * jarg1, void * jarg2) { + input_callback_state *arg1 = (input_callback_state *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (input_callback_state *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->function = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_input_callback_state_t_function_get(void * jarg1) { + void * jresult ; + input_callback_state *arg1 = (input_callback_state *) 0 ; + void *result = 0 ; + + arg1 = (input_callback_state *)jarg1; + result = (void *) ((arg1)->function); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_threadState_set(void * jarg1, void * jarg2) { + input_callback_state *arg1 = (input_callback_state *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (input_callback_state *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->threadState = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_input_callback_state_t_threadState_get(void * jarg1) { + void * jresult ; + input_callback_state *arg1 = (input_callback_state *) 0 ; + void *result = 0 ; + + arg1 = (input_callback_state *)jarg1; + result = (void *) ((arg1)->threadState); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_extra_set(void * jarg1, void * jarg2) { + input_callback_state *arg1 = (input_callback_state *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (input_callback_state *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->extra = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_input_callback_state_t_extra_get(void * jarg1) { + void * jresult ; + input_callback_state *arg1 = (input_callback_state *) 0 ; + void *result = 0 ; + + arg1 = (input_callback_state *)jarg1; + result = (void *) ((arg1)->extra); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_funcargs_set(void * jarg1, char * jarg2) { + input_callback_state *arg1 = (input_callback_state *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (input_callback_state *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->funcargs; + if (arg2) { + arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->funcargs, (const char *)arg2); + } else { + arg1->funcargs = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_input_callback_state_t_funcargs_get(void * jarg1) { + char * jresult ; + input_callback_state *arg1 = (input_callback_state *) 0 ; + char *result = 0 ; + + arg1 = (input_callback_state *)jarg1; + result = (char *) ((arg1)->funcargs); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_input_callback_state_t() { + void * jresult ; + input_callback_state *result = 0 ; + + result = (input_callback_state *)new input_callback_state(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_input_callback_state_t(void * jarg1) { + input_callback_state *arg1 = (input_callback_state *) 0 ; + + arg1 = (input_callback_state *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_DTMF_digit_set(void * jarg1, char jarg2) { + DTMF *arg1 = (DTMF *) 0 ; + char arg2 ; + + arg1 = (DTMF *)jarg1; + arg2 = (char)jarg2; + if (arg1) (arg1)->digit = arg2; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_DTMF_digit_get(void * jarg1) { + char jresult ; + DTMF *arg1 = (DTMF *) 0 ; + char result; + + arg1 = (DTMF *)jarg1; + result = (char) ((arg1)->digit); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_DTMF_duration_set(void * jarg1, unsigned long jarg2) { + DTMF *arg1 = (DTMF *) 0 ; + uint32_t arg2 ; + + arg1 = (DTMF *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->duration = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_DTMF_duration_get(void * jarg1) { + unsigned long jresult ; + DTMF *arg1 = (DTMF *) 0 ; + uint32_t result; + + arg1 = (DTMF *)jarg1; + result = (uint32_t) ((arg1)->duration); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_DTMF(char jarg1, unsigned long jarg2) { + void * jresult ; + char arg1 ; + uint32_t arg2 = (uint32_t) 2000 ; + DTMF *result = 0 ; + + arg1 = (char)jarg1; + arg2 = (uint32_t)jarg2; + result = (DTMF *)new DTMF(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_DTMF(void * jarg1) { + DTMF *arg1 = (DTMF *) 0 ; + + arg1 = (DTMF *)jarg1; + delete arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_Stream__SWIG_0() { + void * jresult ; + Stream *result = 0 ; + + result = (Stream *)new Stream(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_Stream__SWIG_1(void * jarg1) { + void * jresult ; + switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; + Stream *result = 0 ; + + arg1 = (switch_stream_handle_t *)jarg1; + result = (Stream *)new Stream(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_Stream(void * jarg1) { + Stream *arg1 = (Stream *) 0 ; + + arg1 = (Stream *)jarg1; + delete arg1; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Stream_read(void * jarg1, void * jarg2) { + char * jresult ; + Stream *arg1 = (Stream *) 0 ; + int *arg2 = (int *) 0 ; + char *result = 0 ; + + arg1 = (Stream *)jarg1; + arg2 = (int *)jarg2; + result = (char *)(arg1)->read(arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Stream_Write(void * jarg1, char * jarg2) { + Stream *arg1 = (Stream *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (Stream *)jarg1; + arg2 = (char *)jarg2; + (arg1)->write((char const *)arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Stream_raw_write(void * jarg1, char * jarg2, int jarg3) { + Stream *arg1 = (Stream *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + + arg1 = (Stream *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + (arg1)->raw_write((char const *)arg2,arg3); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Stream_get_data(void * jarg1) { + char * jresult ; + Stream *arg1 = (Stream *) 0 ; + char *result = 0 ; + + arg1 = (Stream *)jarg1; + result = (char *)(arg1)->get_data(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Event_InternalEvent_set(void * jarg1, void * jarg2) { + Event *arg1 = (Event *) 0 ; + switch_event_t *arg2 = (switch_event_t *) 0 ; + + arg1 = (Event *)jarg1; + arg2 = (switch_event_t *)jarg2; + if (arg1) (arg1)->event = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Event_InternalEvent_get(void * jarg1) { + void * jresult ; + Event *arg1 = (Event *) 0 ; + switch_event_t *result = 0 ; + + arg1 = (Event *)jarg1; + result = (switch_event_t *) ((arg1)->event); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Event_serialized_string_set(void * jarg1, char * jarg2) { + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->serialized_string; + if (arg2) { + arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->serialized_string, (const char *)arg2); + } else { + arg1->serialized_string = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Event_serialized_string_get(void * jarg1) { + char * jresult ; + Event *arg1 = (Event *) 0 ; + char *result = 0 ; + + arg1 = (Event *)jarg1; + result = (char *) ((arg1)->serialized_string); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Event_mine_set(void * jarg1, int jarg2) { + Event *arg1 = (Event *) 0 ; + int arg2 ; + + arg1 = (Event *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->mine = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Event_mine_get(void * jarg1) { + int jresult ; + Event *arg1 = (Event *) 0 ; + int result; + + arg1 = (Event *)jarg1; + result = (int) ((arg1)->mine); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_Event__SWIG_0(char * jarg1, char * jarg2) { + void * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) NULL ; + Event *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (Event *)new Event((char const *)arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_Event__SWIG_1(void * jarg1, int jarg2) { + void * jresult ; + switch_event_t *arg1 = (switch_event_t *) 0 ; + int arg2 = (int) 0 ; + Event *result = 0 ; + + arg1 = (switch_event_t *)jarg1; + arg2 = (int)jarg2; + result = (Event *)new Event(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_Event(void * jarg1) { + Event *arg1 = (Event *) 0 ; + + arg1 = (Event *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Event_chat_execute(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) NULL ; + int result; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Event_chat_send(void * jarg1, char * jarg2) { + int jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) NULL ; + int result; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->chat_send((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Event_Serialize(void * jarg1, char * jarg2) { + char * jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) NULL ; + char *result = 0 ; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->serialize((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_SetPriority(void * jarg1, int jarg2) { + unsigned int jresult ; + Event *arg1 = (Event *) 0 ; + switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; + bool result; + + arg1 = (Event *)jarg1; + arg2 = (switch_priority_t)jarg2; + result = (bool)(arg1)->setPriority(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Event_GetHeader(void * jarg1, char * jarg2) { + char * jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getHeader((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Event_GetBody(void * jarg1) { + char * jresult ; + Event *arg1 = (Event *) 0 ; + char *result = 0 ; + + arg1 = (Event *)jarg1; + result = (char *)(arg1)->getBody(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Event_GetEventType(void * jarg1) { + char * jresult ; + Event *arg1 = (Event *) 0 ; + char *result = 0 ; + + arg1 = (Event *)jarg1; + result = (char *)(arg1)->getType(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_AddBody(void * jarg1, char * jarg2) { + unsigned int jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addBody((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_AddHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_DeleteHeader(void * jarg1, char * jarg2) { + unsigned int jresult ; + Event *arg1 = (Event *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (Event *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->delHeader((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Event_Fire(void * jarg1) { + unsigned int jresult ; + Event *arg1 = (Event *) 0 ; + bool result; + + arg1 = (Event *)jarg1; + result = (bool)(arg1)->fire(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_events_set(void * jarg1, void * jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + switch_queue_t *arg2 = (switch_queue_t *) 0 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (switch_queue_t *)jarg2; + if (arg1) (arg1)->events = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_events_get(void * jarg1) { + void * jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + switch_queue_t *result = 0 ; + + arg1 = (EventConsumer *)jarg1; + result = (switch_queue_t *) ((arg1)->events); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_event_id_set(void * jarg1, int jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + switch_event_types_t arg2 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (switch_event_types_t)jarg2; + if (arg1) (arg1)->e_event_id = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_EventConsumer_e_event_id_get(void * jarg1) { + int jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + switch_event_types_t result; + + arg1 = (EventConsumer *)jarg1; + result = (switch_event_types_t) ((arg1)->e_event_id); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_callback_set(void * jarg1, char * jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->e_callback; + if (arg2) { + arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_callback, (const char *)arg2); + } else { + arg1->e_callback = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_callback_get(void * jarg1) { + char * jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *result = 0 ; + + arg1 = (EventConsumer *)jarg1; + result = (char *) ((arg1)->e_callback); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_subclass_name_set(void * jarg1, char * jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->e_subclass_name; + if (arg2) { + arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_subclass_name, (const char *)arg2); + } else { + arg1->e_subclass_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_subclass_name_get(void * jarg1) { + char * jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *result = 0 ; + + arg1 = (EventConsumer *)jarg1; + result = (char *) ((arg1)->e_subclass_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_e_cb_arg_set(void * jarg1, char * jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->e_cb_arg; + if (arg2) { + arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_cb_arg, (const char *)arg2); + } else { + arg1->e_cb_arg = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_cb_arg_get(void * jarg1) { + char * jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *result = 0 ; + + arg1 = (EventConsumer *)jarg1; + result = (char *) ((arg1)->e_cb_arg); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_enodes_set(void * jarg1, void * jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + switch_event_node_t **arg2 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (switch_event_node_t **)jarg2; + { + size_t ii; + switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes; + for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_enodes_get(void * jarg1) { + void * jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + switch_event_node_t **result = 0 ; + + arg1 = (EventConsumer *)jarg1; + result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_node_index_set(void * jarg1, unsigned long jarg2) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + uint32_t arg2 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->node_index = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_EventConsumer_node_index_get(void * jarg1) { + unsigned long jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + uint32_t result; + + arg1 = (EventConsumer *)jarg1; + result = (uint32_t) ((arg1)->node_index); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_EventConsumer(char * jarg1, char * jarg2, int jarg3) { + void * jresult ; + char *arg1 = (char *) NULL ; + char *arg2 = (char *) "" ; + int arg3 = (int) 5000 ; + EventConsumer *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_EventConsumer(void * jarg1) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + + arg1 = (EventConsumer *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_EventConsumer_bind(void * jarg1, char * jarg2, char * jarg3) { + int jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) "" ; + int result; + + arg1 = (EventConsumer *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_pop(void * jarg1, int jarg2, int jarg3) { + void * jresult ; + EventConsumer *arg1 = (EventConsumer *) 0 ; + int arg2 = (int) 0 ; + int arg3 = (int) 0 ; + Event *result = 0 ; + + arg1 = (EventConsumer *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + result = (Event *)(arg1)->pop(arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_cleanup(void * jarg1) { + EventConsumer *arg1 = (EventConsumer *) 0 ; + + arg1 = (EventConsumer *)jarg1; + (arg1)->cleanup(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_CoreSession(void * jarg1) { + CoreSession *arg1 = (CoreSession *) 0 ; + + arg1 = (CoreSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_InternalSession_set(void * jarg1, void * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + if (arg1) (arg1)->session = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_InternalSession_get(void * jarg1) { + void * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + switch_core_session_t *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (switch_core_session_t *) ((arg1)->session); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_channel_set(void * jarg1, void * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (switch_channel_t *)jarg2; + if (arg1) (arg1)->channel = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_channel_get(void * jarg1) { + void * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + switch_channel_t *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (switch_channel_t *) ((arg1)->channel); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_flags_set(void * jarg1, unsigned int jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + unsigned int arg2 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->flags = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_flags_get(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + unsigned int result; + + arg1 = (CoreSession *)jarg1; + result = (unsigned int) ((arg1)->flags); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_allocated_set(void * jarg1, int jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->allocated = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_allocated_get(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + result = (int) ((arg1)->allocated); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_cb_state_set(void * jarg1, void * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + input_callback_state *arg2 = (input_callback_state *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (input_callback_state *)jarg2; + if (arg1) (arg1)->cb_state = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_cb_state_get(void * jarg1) { + void * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + input_callback_state *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (input_callback_state *)& ((arg1)->cb_state); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_HookState_set(void * jarg1, int jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + switch_channel_state_t arg2 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (switch_channel_state_t)jarg2; + if (arg1) (arg1)->hook_state = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_HookState_get(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + switch_channel_state_t result; + + arg1 = (CoreSession *)jarg1; + result = (switch_channel_state_t) ((arg1)->hook_state); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_cause_set(void * jarg1, int jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + switch_call_cause_t arg2 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (switch_call_cause_t)jarg2; + if (arg1) (arg1)->cause = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_cause_get(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + switch_call_cause_t result; + + arg1 = (CoreSession *)jarg1; + result = (switch_call_cause_t) ((arg1)->cause); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_uuid_set(void * jarg1, char * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->uuid; + if (arg2) { + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); + } else { + arg1->uuid = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_uuid_get(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *) ((arg1)->uuid); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_tts_name_set(void * jarg1, char * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->tts_name; + if (arg2) { + arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->tts_name, (const char *)arg2); + } else { + arg1->tts_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_tts_name_get(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *) ((arg1)->tts_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_voice_name_set(void * jarg1, char * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->voice_name; + if (arg2) { + arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->voice_name, (const char *)arg2); + } else { + arg1->voice_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_voice_name_get(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *) ((arg1)->voice_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_insertFile(void * jarg1, char * jarg2, char * jarg3, int jarg4) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Answer(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + result = (int)(arg1)->answer(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_preAnswer(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + result = (int)(arg1)->preAnswer(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Hangup(void * jarg1, char * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) "normal_clearing" ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + (arg1)->hangup((char const *)arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_hangupState(void * jarg1) { + CoreSession *arg1 = (CoreSession *) 0 ; + + arg1 = (CoreSession *)jarg1; + (arg1)->hangupState(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetVariable(void * jarg1, char * jarg2, char * jarg3) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + (arg1)->setVariable(arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetPrivate(void * jarg1, char * jarg2, void * jarg3) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (void *)jarg3; + (arg1)->setPrivate(arg2,arg3); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_GetPrivate(void * jarg1, char * jarg2) { + void * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + void *result = 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + result = (void *)(arg1)->getPrivate(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetVariable(void * jarg1, char * jarg2) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getVariable(arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) NULL ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SayPhrase(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) "" ; + char *arg4 = (char *) NULL ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_hangupCause(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *)(arg1)->hangupCause(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_getState(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *)(arg1)->getState(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_RecordFile(void * jarg1, char * jarg2, int jarg3, int jarg4, int jarg5) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 = (int) 0 ; + int arg4 = (int) 0 ; + int arg5 = (int) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (int)jarg5; + result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +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; + arg5 = (switch_state_handler_table_t *)jarg5; + result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_destroy(void * jarg1) { + CoreSession *arg1 = (CoreSession *) 0 ; + + arg1 = (CoreSession *)jarg1; + (arg1)->destroy(); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Speak(void * jarg1, char * jarg2) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->speak(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetTtsParameters(void * jarg1, char * jarg2, char * jarg3) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + (arg1)->set_tts_parms(arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_set_tts_params(void * jarg1, char * jarg2, char * jarg3) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + (arg1)->set_tts_params(arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_CollectDigits__SWIG_0(void * jarg1, int jarg2) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + result = (int)(arg1)->collectDigits(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_CollectDigits__SWIG_1(void * jarg1, int jarg2, int jarg3) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + int arg3 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + result = (int)(arg1)->collectDigits(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetDigits__SWIG_0(void * jarg1, int jarg2, char * jarg3, int jarg4) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (char *)(arg1)->getDigits(arg2,arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetDigits__SWIG_1(void * jarg1, int jarg2, char * jarg3, int jarg4, int jarg5) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + int arg5 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (int)jarg5; + result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) NULL ; + char *arg4 = (char *) NULL ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (int)(arg1)->transfer(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_read(void * jarg1, int jarg2, int jarg3, char * jarg4, int jarg5, char * jarg6, int jarg7) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + int arg3 ; + char *arg4 = (char *) 0 ; + int arg5 ; + char *arg6 = (char *) 0 ; + int arg7 = (int) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + arg6 = (char *)jarg6; + arg7 = (int)jarg7; + result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_PlayAndGetDigits(void * jarg1, int jarg2, int jarg3, int jarg4, int jarg5, char * jarg6, char * jarg7, char * jarg8, char * jarg9, char * jarg10, int jarg11, char * jarg12) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int arg5 ; + char *arg6 = (char *) 0 ; + char *arg7 = (char *) 0 ; + char *arg8 = (char *) 0 ; + char *arg9 = (char *) 0 ; + char *arg10 = (char *) NULL ; + int arg11 = (int) 0 ; + char *arg12 = (char *) NULL ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (int)jarg5; + arg6 = (char *)jarg6; + arg7 = (char *)jarg7; + arg8 = (char *)jarg8; + arg9 = (char *)jarg9; + arg10 = (char *)jarg10; + arg11 = (int)jarg11; + arg12 = (char *)jarg12; + result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_StreamFile(void * jarg1, char * jarg2, int jarg3) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 = (int) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + result = (int)(arg1)->streamFile(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_sleep(void * jarg1, int jarg2, int jarg3) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int arg2 ; + int arg3 = (int) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + result = (int)(arg1)->sleep(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_flushEvents(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + result = (int)(arg1)->flushEvents(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_flushDigits(void * jarg1) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + int result; + + arg1 = (CoreSession *)jarg1; + result = (int)(arg1)->flushDigits(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_SetAutoHangup(void * jarg1, unsigned int jarg2) { + int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool arg2 ; + int result; + + arg1 = (CoreSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (int)(arg1)->setAutoHangup(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_Ready(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + arg1 = (CoreSession *)jarg1; + result = (bool)(arg1)->ready(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_bridged(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + arg1 = (CoreSession *)jarg1; + result = (bool)(arg1)->bridged(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_answered(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + arg1 = (CoreSession *)jarg1; + result = (bool)(arg1)->answered(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_mediaReady(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + arg1 = (CoreSession *)jarg1; + result = (bool)(arg1)->mediaReady(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_waitForAnswer(void * jarg1, void * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + CoreSession *arg2 = (CoreSession *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (CoreSession *)jarg2; + (arg1)->waitForAnswer(arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Execute(void * jarg1, char * jarg2, char * jarg3) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) NULL ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + (arg1)->execute((char const *)arg2,(char const *)arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_sendEvent(void * jarg1, void * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + Event *arg2 = (Event *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (Event *)jarg2; + (arg1)->sendEvent(arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_setEventData(void * jarg1, void * jarg2) { + CoreSession *arg1 = (CoreSession *) 0 ; + Event *arg2 = (Event *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (Event *)jarg2; + (arg1)->setEventData(arg2); +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_getXMLCDR(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *)(arg1)->getXMLCDR(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_begin_allow_threads(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + arg1 = (CoreSession *)jarg1; + result = (bool)(arg1)->begin_allow_threads(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CoreSession_end_allow_threads(void * jarg1) { + unsigned int jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + arg1 = (CoreSession *)jarg1; + result = (bool)(arg1)->end_allow_threads(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetUuid(void * jarg1) { + char * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (char *)((CoreSession const *)arg1)->get_uuid(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_CoreSession_get_cb_args(void * jarg1) { + void * jresult ; + CoreSession *arg1 = (CoreSession *) 0 ; + switch_input_args_t *result = 0 ; + + arg1 = (CoreSession *)jarg1; + result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_check_hangup_hook(void * jarg1) { + CoreSession *arg1 = (CoreSession *) 0 ; + + arg1 = (CoreSession *)jarg1; + (arg1)->check_hangup_hook(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_consoleLog(void * jarg1, char * jarg2, char * jarg3) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + (arg1)->consoleLog(arg2,arg3); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_consoleLog2(void * jarg1, char * jarg2, char * jarg3, char * jarg4, int jarg5, char * jarg6) { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int arg5 ; + char *arg6 = (char *) 0 ; + + arg1 = (CoreSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (int)jarg5; + arg6 = (char *)jarg6; + (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_console_log(char * jarg1, char * jarg2) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + console_log(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_console_log2(char * jarg1, char * jarg2, char * jarg3, int jarg4, char * jarg5) { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int arg4 ; + char *arg5 = (char *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + arg5 = (char *)jarg5; + console_log2(arg1,arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_console_clean_log(char * jarg1) { + char *arg1 = (char *) 0 ; + + arg1 = (char *)jarg1; + console_clean_log(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_msleep(unsigned int jarg1) { + unsigned int arg1 ; + + arg1 = (unsigned int)jarg1; + switch_msleep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_bridge(void * jarg1, void * jarg2) { + CoreSession *arg1 = 0 ; + CoreSession *arg2 = 0 ; + + arg1 = (CoreSession *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "CoreSession & type is null", 0); + return ; + } + arg2 = (CoreSession *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "CoreSession & type is null", 0); + return ; + } + bridge(*arg1,*arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_hanguphook(void * jarg1) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_status_t)hanguphook(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_dtmf_callback(void * jarg1, void * jarg2, int jarg3, void * jarg4, unsigned int jarg5) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_input_type_t arg3 ; + void *arg4 = (void *) 0 ; + unsigned int arg5 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_input_type_t)jarg3; + arg4 = (void *)jarg4; + arg5 = (unsigned int)jarg5; + result = (switch_status_t)dtmf_callback(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ManagedSession__SWIG_0() { + void * jresult ; + ManagedSession *result = 0 ; + + result = (ManagedSession *)new ManagedSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ManagedSession__SWIG_1(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + ManagedSession *result = 0 ; + + arg1 = (char *)jarg1; + result = (ManagedSession *)new ManagedSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ManagedSession__SWIG_2(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + ManagedSession *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (ManagedSession *)new ManagedSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ManagedSession(void * jarg1) { + ManagedSession *arg1 = (ManagedSession *) 0 ; + + arg1 = (ManagedSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT CoreSession * SWIGSTDCALL CSharp_ManagedSession_SWIGUpcast(ManagedSession *jarg1) { + return (CoreSession *)jarg1; +} + +#ifdef __cplusplus +} +#endif + diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs new file mode 100644 index 0000000000..b9338434cf --- /dev/null +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -0,0 +1,40840 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class Api : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Api(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(Api obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~Api() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_Api(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public Api(CoreSession s) : this(freeswitchPINVOKE.new_Api(CoreSession.getCPtr(s)), true) { + } + + public string Execute(string command, string data) { + string ret = freeswitchPINVOKE.Api_Execute(swigCPtr, command, data); + return ret; + } + + public string ExecuteString(string command) { + string ret = freeswitchPINVOKE.Api_ExecuteString(swigCPtr, command); + return ret; + } + + public string getTime() { + string ret = freeswitchPINVOKE.Api_getTime(swigCPtr); + return ret; + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class audio_buffer_header_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal audio_buffer_header_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(audio_buffer_header_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~audio_buffer_header_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_audio_buffer_header_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint ts { + set { + freeswitchPINVOKE.audio_buffer_header_t_ts_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.audio_buffer_header_t_ts_get(swigCPtr); + return ret; + } + } + + public uint len { + set { + freeswitchPINVOKE.audio_buffer_header_t_len_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.audio_buffer_header_t_len_get(swigCPtr); + return ret; + } + } + + public audio_buffer_header_t() : this(freeswitchPINVOKE.new_audio_buffer_header_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum cache_db_flag_t { + CDF_INUSE = (1 << 0), + CDF_PRUNE = (1 << 1) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class CoreSession : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal CoreSession(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(CoreSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~CoreSession() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_CoreSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_core_session InternalSession { + set { + freeswitchPINVOKE.CoreSession_InternalSession_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.CoreSession_InternalSession_get(swigCPtr); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_channel channel { + set { + freeswitchPINVOKE.CoreSession_channel_set(swigCPtr, SWIGTYPE_p_switch_channel.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.CoreSession_channel_get(swigCPtr); + SWIGTYPE_p_switch_channel ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_channel(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.CoreSession_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.CoreSession_flags_get(swigCPtr); + return ret; + } + } + + public int allocated { + set { + freeswitchPINVOKE.CoreSession_allocated_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.CoreSession_allocated_get(swigCPtr); + return ret; + } + } + + public input_callback_state_t cb_state { + set { + freeswitchPINVOKE.CoreSession_cb_state_set(swigCPtr, input_callback_state_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.CoreSession_cb_state_get(swigCPtr); + input_callback_state_t ret = (cPtr == IntPtr.Zero) ? null : new input_callback_state_t(cPtr, false); + return ret; + } + } + + public switch_channel_state_t HookState { + set { + freeswitchPINVOKE.CoreSession_HookState_set(swigCPtr, (int)value); + } + get { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.CoreSession_HookState_get(swigCPtr); + return ret; + } + } + + public switch_call_cause_t cause { + set { + freeswitchPINVOKE.CoreSession_cause_set(swigCPtr, (int)value); + } + get { + switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.CoreSession_cause_get(swigCPtr); + return ret; + } + } + + public string uuid { + set { + freeswitchPINVOKE.CoreSession_uuid_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.CoreSession_uuid_get(swigCPtr); + return ret; + } + } + + public string tts_name { + set { + freeswitchPINVOKE.CoreSession_tts_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.CoreSession_tts_name_get(swigCPtr); + return ret; + } + } + + public string voice_name { + set { + freeswitchPINVOKE.CoreSession_voice_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.CoreSession_voice_name_get(swigCPtr); + return ret; + } + } + + public int insertFile(string file, string insert_file, int sample_point) { + int ret = freeswitchPINVOKE.CoreSession_insertFile(swigCPtr, file, insert_file, sample_point); + return ret; + } + + public int Answer() { + int ret = freeswitchPINVOKE.CoreSession_Answer(swigCPtr); + return ret; + } + + public int preAnswer() { + int ret = freeswitchPINVOKE.CoreSession_preAnswer(swigCPtr); + return ret; + } + + public void Hangup(string cause) { + freeswitchPINVOKE.CoreSession_Hangup(swigCPtr, cause); + } + + public void hangupState() { + freeswitchPINVOKE.CoreSession_hangupState(swigCPtr); + } + + public void SetVariable(string var, string val) { + freeswitchPINVOKE.CoreSession_SetVariable(swigCPtr, var, val); + } + + public void SetPrivate(string var, SWIGTYPE_p_void val) { + freeswitchPINVOKE.CoreSession_SetPrivate(swigCPtr, var, SWIGTYPE_p_void.getCPtr(val)); + } + + public SWIGTYPE_p_void GetPrivate(string var) { + IntPtr cPtr = freeswitchPINVOKE.CoreSession_GetPrivate(swigCPtr, var); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public string GetVariable(string var) { + string ret = freeswitchPINVOKE.CoreSession_GetVariable(swigCPtr, var); + return ret; + } + + public void Say(string tosay, string module_name, string say_type, string say_method, string say_gender) { + freeswitchPINVOKE.CoreSession_Say(swigCPtr, tosay, module_name, say_type, say_method, say_gender); + } + + public void SayPhrase(string phrase_name, string phrase_data, string phrase_lang) { + freeswitchPINVOKE.CoreSession_SayPhrase(swigCPtr, phrase_name, phrase_data, phrase_lang); + } + + public string hangupCause() { + string ret = freeswitchPINVOKE.CoreSession_hangupCause(swigCPtr); + return ret; + } + + public string getState() { + string ret = freeswitchPINVOKE.CoreSession_getState(swigCPtr); + return ret; + } + + public int RecordFile(string file_name, int time_limit, int silence_threshold, int silence_hits) { + int ret = freeswitchPINVOKE.CoreSession_RecordFile(swigCPtr, file_name, time_limit, silence_threshold, silence_hits); + return ret; + } + + protected 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; + } + + public virtual void destroy() { + freeswitchPINVOKE.CoreSession_destroy(swigCPtr); + } + + public int Speak(string text) { + int ret = freeswitchPINVOKE.CoreSession_Speak(swigCPtr, text); + return ret; + } + + public void SetTtsParameters(string tts_name, string voice_name) { + freeswitchPINVOKE.CoreSession_SetTtsParameters(swigCPtr, tts_name, voice_name); + } + + public void set_tts_params(string tts_name, string voice_name) { + freeswitchPINVOKE.CoreSession_set_tts_params(swigCPtr, tts_name, voice_name); + } + + public int CollectDigits(int abs_timeout) { + int ret = freeswitchPINVOKE.CoreSession_CollectDigits__SWIG_0(swigCPtr, abs_timeout); + return ret; + } + + public int CollectDigits(int digit_timeout, int abs_timeout) { + int ret = freeswitchPINVOKE.CoreSession_CollectDigits__SWIG_1(swigCPtr, digit_timeout, abs_timeout); + return ret; + } + + public string GetDigits(int maxdigits, string terminators, int timeout) { + string ret = freeswitchPINVOKE.CoreSession_GetDigits__SWIG_0(swigCPtr, maxdigits, terminators, timeout); + return ret; + } + + public string GetDigits(int maxdigits, string terminators, int timeout, int interdigit) { + string ret = freeswitchPINVOKE.CoreSession_GetDigits__SWIG_1(swigCPtr, maxdigits, terminators, timeout, interdigit); + return ret; + } + + public int Transfer(string extension, string dialplan, string context) { + int ret = freeswitchPINVOKE.CoreSession_Transfer(swigCPtr, extension, dialplan, context); + return ret; + } + + public string read(int min_digits, int max_digits, string prompt_audio_file, int timeout, string valid_terminators, int digit_timeout) { + string ret = freeswitchPINVOKE.CoreSession_read(swigCPtr, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout); + return ret; + } + + public string PlayAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, int digit_timeout, string transfer_on_failure) { + string ret = freeswitchPINVOKE.CoreSession_PlayAndGetDigits(swigCPtr, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure); + return ret; + } + + public int StreamFile(string file, int starting_sample_count) { + int ret = freeswitchPINVOKE.CoreSession_StreamFile(swigCPtr, file, starting_sample_count); + return ret; + } + + public int sleep(int ms, int sync) { + int ret = freeswitchPINVOKE.CoreSession_sleep(swigCPtr, ms, sync); + return ret; + } + + public int flushEvents() { + int ret = freeswitchPINVOKE.CoreSession_flushEvents(swigCPtr); + return ret; + } + + public int flushDigits() { + int ret = freeswitchPINVOKE.CoreSession_flushDigits(swigCPtr); + return ret; + } + + public int SetAutoHangup(bool val) { + int ret = freeswitchPINVOKE.CoreSession_SetAutoHangup(swigCPtr, val); + return ret; + } + + public bool Ready() { + bool ret = freeswitchPINVOKE.CoreSession_Ready(swigCPtr); + return ret; + } + + public bool bridged() { + bool ret = freeswitchPINVOKE.CoreSession_bridged(swigCPtr); + return ret; + } + + public bool answered() { + bool ret = freeswitchPINVOKE.CoreSession_answered(swigCPtr); + return ret; + } + + public bool mediaReady() { + bool ret = freeswitchPINVOKE.CoreSession_mediaReady(swigCPtr); + return ret; + } + + public void waitForAnswer(CoreSession calling_session) { + freeswitchPINVOKE.CoreSession_waitForAnswer(swigCPtr, CoreSession.getCPtr(calling_session)); + } + + public void Execute(string app, string data) { + freeswitchPINVOKE.CoreSession_Execute(swigCPtr, app, data); + } + + public void sendEvent(Event sendME) { + freeswitchPINVOKE.CoreSession_sendEvent(swigCPtr, Event.getCPtr(sendME)); + } + + public void setEventData(Event e) { + freeswitchPINVOKE.CoreSession_setEventData(swigCPtr, Event.getCPtr(e)); + } + + public string getXMLCDR() { + string ret = freeswitchPINVOKE.CoreSession_getXMLCDR(swigCPtr); + return ret; + } + + public virtual bool begin_allow_threads() { + bool ret = freeswitchPINVOKE.CoreSession_begin_allow_threads(swigCPtr); + return ret; + } + + public virtual bool end_allow_threads() { + bool ret = freeswitchPINVOKE.CoreSession_end_allow_threads(swigCPtr); + return ret; + } + + public string GetUuid() { + string ret = freeswitchPINVOKE.CoreSession_GetUuid(swigCPtr); + return ret; + } + + public switch_input_args_t get_cb_args() { + switch_input_args_t ret = new switch_input_args_t(freeswitchPINVOKE.CoreSession_get_cb_args(swigCPtr), false); + return ret; + } + + public virtual void check_hangup_hook() { + freeswitchPINVOKE.CoreSession_check_hangup_hook(swigCPtr); + } + + public void consoleLog(string level_str, string msg) { + freeswitchPINVOKE.CoreSession_consoleLog(swigCPtr, level_str, msg); + } + + public void consoleLog2(string level_str, string file, string func, int line, string msg) { + freeswitchPINVOKE.CoreSession_consoleLog2(swigCPtr, level_str, file, func, line, msg); + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum dm_match_type_t { + DM_MATCH_POSITIVE, + DM_MATCH_NEGATIVE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class dtls_fingerprint_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal dtls_fingerprint_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(dtls_fingerprint_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~dtls_fingerprint_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_dtls_fingerprint_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint len { + set { + freeswitchPINVOKE.dtls_fingerprint_t_len_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.dtls_fingerprint_t_len_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char data { + set { + freeswitchPINVOKE.dtls_fingerprint_t_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.dtls_fingerprint_t_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public string type { + set { + freeswitchPINVOKE.dtls_fingerprint_t_type_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.dtls_fingerprint_t_type_get(swigCPtr); + return ret; + } + } + + public string str { + set { + freeswitchPINVOKE.dtls_fingerprint_t_str_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.dtls_fingerprint_t_str_get(swigCPtr); + return ret; + } + } + + public dtls_fingerprint_t() : this(freeswitchPINVOKE.new_dtls_fingerprint_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum dtls_state_t { + DS_HANDSHAKE, + DS_SETUP, + DS_READY, + DS_FAIL, + DS_INVALID +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum dtls_type_t { + DTLS_TYPE_CLIENT = (1 << 0), + DTLS_TYPE_SERVER = (1 << 1), + DTLS_TYPE_RTP = (1 << 2), + DTLS_TYPE_RTCP = (1 << 3) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class DTMF : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal DTMF(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(DTMF obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~DTMF() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_DTMF(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public char digit { + set { + freeswitchPINVOKE.DTMF_digit_set(swigCPtr, value); + } + get { + char ret = freeswitchPINVOKE.DTMF_digit_get(swigCPtr); + return ret; + } + } + + public uint duration { + set { + freeswitchPINVOKE.DTMF_duration_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.DTMF_duration_get(swigCPtr); + return ret; + } + } + + public DTMF(char idigit, uint iduration) : this(freeswitchPINVOKE.new_DTMF(idigit, iduration), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum dtmf_flag_t { + DTMF_FLAG_SKIP_PROCESS = (1 << 0), + DTMF_FLAG_SENSITIVE = (1 << 1) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class EventConsumer : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal EventConsumer(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(EventConsumer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~EventConsumer() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_EventConsumer(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_queue_t events { + set { + freeswitchPINVOKE.EventConsumer_events_set(swigCPtr, SWIGTYPE_p_switch_queue_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.EventConsumer_events_get(swigCPtr); + SWIGTYPE_p_switch_queue_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_queue_t(cPtr, false); + return ret; + } + } + + public switch_event_types_t e_event_id { + set { + freeswitchPINVOKE.EventConsumer_e_event_id_set(swigCPtr, (int)value); + } + get { + switch_event_types_t ret = (switch_event_types_t)freeswitchPINVOKE.EventConsumer_e_event_id_get(swigCPtr); + return ret; + } + } + + public string e_callback { + set { + freeswitchPINVOKE.EventConsumer_e_callback_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.EventConsumer_e_callback_get(swigCPtr); + return ret; + } + } + + public string e_subclass_name { + set { + freeswitchPINVOKE.EventConsumer_e_subclass_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.EventConsumer_e_subclass_name_get(swigCPtr); + return ret; + } + } + + public string e_cb_arg { + set { + freeswitchPINVOKE.EventConsumer_e_cb_arg_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.EventConsumer_e_cb_arg_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_p_switch_event_node enodes { + set { + freeswitchPINVOKE.EventConsumer_enodes_set(swigCPtr, SWIGTYPE_p_p_switch_event_node.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.EventConsumer_enodes_get(swigCPtr); + SWIGTYPE_p_p_switch_event_node ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_switch_event_node(cPtr, false); + return ret; + } + } + + public uint node_index { + set { + freeswitchPINVOKE.EventConsumer_node_index_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.EventConsumer_node_index_get(swigCPtr); + return ret; + } + } + + public EventConsumer(string event_name, string subclass_name, int len) : this(freeswitchPINVOKE.new_EventConsumer(event_name, subclass_name, len), true) { + } + + public int bind(string event_name, string subclass_name) { + int ret = freeswitchPINVOKE.EventConsumer_bind(swigCPtr, event_name, subclass_name); + return ret; + } + + public Event pop(int block, int timeout) { + IntPtr cPtr = freeswitchPINVOKE.EventConsumer_pop(swigCPtr, block, timeout); + Event ret = (cPtr == IntPtr.Zero) ? null : new Event(cPtr, true); + return ret; + } + + public void cleanup() { + freeswitchPINVOKE.EventConsumer_cleanup(swigCPtr); + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public partial class Event : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Event(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(Event obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~Event() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_Event(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_event InternalEvent { + set { + freeswitchPINVOKE.Event_InternalEvent_set(swigCPtr, switch_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.Event_InternalEvent_get(swigCPtr); + switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); + return ret; + } + } + + public string serialized_string { + set { + freeswitchPINVOKE.Event_serialized_string_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.Event_serialized_string_get(swigCPtr); + return ret; + } + } + + public int mine { + set { + freeswitchPINVOKE.Event_mine_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.Event_mine_get(swigCPtr); + return ret; + } + } + + public Event(string type, string subclass_name) : this(freeswitchPINVOKE.new_Event__SWIG_0(type, subclass_name), true) { + } + + public Event(switch_event wrap_me, int free_me) : this(freeswitchPINVOKE.new_Event__SWIG_1(switch_event.getCPtr(wrap_me), free_me), true) { + } + + public int chat_execute(string app, string data) { + int ret = freeswitchPINVOKE.Event_chat_execute(swigCPtr, app, data); + return ret; + } + + public int chat_send(string dest_proto) { + int ret = freeswitchPINVOKE.Event_chat_send(swigCPtr, dest_proto); + return ret; + } + + public string Serialize(string format) { + string ret = freeswitchPINVOKE.Event_Serialize(swigCPtr, format); + return ret; + } + + public bool SetPriority(switch_priority_t priority) { + bool ret = freeswitchPINVOKE.Event_SetPriority(swigCPtr, (int)priority); + return ret; + } + + public string GetHeader(string header_name) { + string ret = freeswitchPINVOKE.Event_GetHeader(swigCPtr, header_name); + return ret; + } + + public string GetBody() { + string ret = freeswitchPINVOKE.Event_GetBody(swigCPtr); + return ret; + } + + public string GetEventType() { + string ret = freeswitchPINVOKE.Event_GetEventType(swigCPtr); + return ret; + } + + public bool AddBody(string value) { + bool ret = freeswitchPINVOKE.Event_AddBody(swigCPtr, value); + return ret; + } + + public bool AddHeader(string header_name, string value) { + bool ret = freeswitchPINVOKE.Event_AddHeader(swigCPtr, header_name, value); + return ret; + } + + public bool DeleteHeader(string header_name) { + bool ret = freeswitchPINVOKE.Event_DeleteHeader(swigCPtr, header_name); + return ret; + } + + public bool Fire() { + bool ret = freeswitchPINVOKE.Event_Fire(swigCPtr); + return ret; + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class freeswitch { + public static switch_directories SWITCH_GLOBAL_dirs { + set { + freeswitchPINVOKE.SWITCH_GLOBAL_dirs_set(switch_directories.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.SWITCH_GLOBAL_dirs_get(); + switch_directories ret = (cPtr == IntPtr.Zero) ? null : new switch_directories(cPtr, false); + return ret; + } + } + + public static switch_filenames SWITCH_GLOBAL_filenames { + set { + freeswitchPINVOKE.SWITCH_GLOBAL_filenames_set(switch_filenames.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.SWITCH_GLOBAL_filenames_get(); + switch_filenames ret = (cPtr == IntPtr.Zero) ? null : new switch_filenames(cPtr, false); + return ret; + } + } + + public static int switch_core_db_close(SWIGTYPE_p_sqlite3 db) { + int ret = freeswitchPINVOKE.switch_core_db_close(SWIGTYPE_p_sqlite3.getCPtr(db)); + return ret; + } + + public static int switch_core_db_open(string filename, SWIGTYPE_p_p_sqlite3 ppDb) { + int ret = freeswitchPINVOKE.switch_core_db_open(filename, SWIGTYPE_p_p_sqlite3.getCPtr(ppDb)); + return ret; + } + + public static SWIGTYPE_p_unsigned_char switch_core_db_column_text(SWIGTYPE_p_sqlite3_stmt stmt, int iCol) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_db_column_text(SWIGTYPE_p_sqlite3_stmt.getCPtr(stmt), iCol); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + + public static string switch_core_db_column_name(SWIGTYPE_p_sqlite3_stmt stmt, int N) { + string ret = freeswitchPINVOKE.switch_core_db_column_name(SWIGTYPE_p_sqlite3_stmt.getCPtr(stmt), N); + return ret; + } + + public static int switch_core_db_column_count(SWIGTYPE_p_sqlite3_stmt pStmt) { + int ret = freeswitchPINVOKE.switch_core_db_column_count(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt)); + return ret; + } + + public static string switch_core_db_errmsg(SWIGTYPE_p_sqlite3 db) { + string ret = freeswitchPINVOKE.switch_core_db_errmsg(SWIGTYPE_p_sqlite3.getCPtr(db)); + return ret; + } + + public static int switch_core_db_exec(SWIGTYPE_p_sqlite3 db, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void data, ref string errmsg) { + int ret = freeswitchPINVOKE.switch_core_db_exec(SWIGTYPE_p_sqlite3.getCPtr(db), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(data), ref errmsg); + return ret; + } + + public static int switch_core_db_finalize(SWIGTYPE_p_sqlite3_stmt pStmt) { + int ret = freeswitchPINVOKE.switch_core_db_finalize(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt)); + return ret; + } + + public static int switch_core_db_prepare(SWIGTYPE_p_sqlite3 db, string zSql, int nBytes, SWIGTYPE_p_p_sqlite3_stmt ppStmt, ref string pzTail) { + int ret = freeswitchPINVOKE.switch_core_db_prepare(SWIGTYPE_p_sqlite3.getCPtr(db), zSql, nBytes, SWIGTYPE_p_p_sqlite3_stmt.getCPtr(ppStmt), ref pzTail); + return ret; + } + + public static int switch_core_db_step(SWIGTYPE_p_sqlite3_stmt stmt) { + int ret = freeswitchPINVOKE.switch_core_db_step(SWIGTYPE_p_sqlite3_stmt.getCPtr(stmt)); + return ret; + } + + public static int switch_core_db_reset(SWIGTYPE_p_sqlite3_stmt pStmt) { + int ret = freeswitchPINVOKE.switch_core_db_reset(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt)); + return ret; + } + + public static int switch_core_db_bind_int(SWIGTYPE_p_sqlite3_stmt pStmt, int i, int iValue) { + int ret = freeswitchPINVOKE.switch_core_db_bind_int(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, iValue); + return ret; + } + + public static int switch_core_db_bind_int64(SWIGTYPE_p_sqlite3_stmt pStmt, int i, long iValue) { + int ret = freeswitchPINVOKE.switch_core_db_bind_int64(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, iValue); + return ret; + } + + public static int switch_core_db_bind_text(SWIGTYPE_p_sqlite3_stmt pStmt, int i, string zData, int nData, SWIGTYPE_p_f_p_void__void xDel) { + int ret = freeswitchPINVOKE.switch_core_db_bind_text(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, zData, nData, SWIGTYPE_p_f_p_void__void.getCPtr(xDel)); + return ret; + } + + public static int switch_core_db_bind_double(SWIGTYPE_p_sqlite3_stmt pStmt, int i, double dValue) { + int ret = freeswitchPINVOKE.switch_core_db_bind_double(SWIGTYPE_p_sqlite3_stmt.getCPtr(pStmt), i, dValue); + return ret; + } + + public static long switch_core_db_last_insert_rowid(SWIGTYPE_p_sqlite3 db) { + long ret = freeswitchPINVOKE.switch_core_db_last_insert_rowid(SWIGTYPE_p_sqlite3.getCPtr(db)); + return ret; + } + + public static int switch_core_db_get_table(SWIGTYPE_p_sqlite3 db, string sql, SWIGTYPE_p_p_p_char resultp, SWIGTYPE_p_int nrow, SWIGTYPE_p_int ncolumn, ref string errmsg) { + int ret = freeswitchPINVOKE.switch_core_db_get_table(SWIGTYPE_p_sqlite3.getCPtr(db), sql, SWIGTYPE_p_p_p_char.getCPtr(resultp), SWIGTYPE_p_int.getCPtr(nrow), SWIGTYPE_p_int.getCPtr(ncolumn), ref errmsg); + return ret; + } + + public static void switch_core_db_free_table(ref string result) { + freeswitchPINVOKE.switch_core_db_free_table(ref result); + } + + public static void switch_core_db_free(string z) { + freeswitchPINVOKE.switch_core_db_free(z); + } + + public static int switch_core_db_changes(SWIGTYPE_p_sqlite3 db) { + int ret = freeswitchPINVOKE.switch_core_db_changes(SWIGTYPE_p_sqlite3.getCPtr(db)); + return ret; + } + + public static int switch_core_db_load_extension(SWIGTYPE_p_sqlite3 db, string extension) { + int ret = freeswitchPINVOKE.switch_core_db_load_extension(SWIGTYPE_p_sqlite3.getCPtr(db), extension); + return ret; + } + + public static string switch_sql_concat() { + string ret = freeswitchPINVOKE.switch_sql_concat(); + return ret; + } + + public static SWIGTYPE_p_real_pcre switch_regex_compile(string pattern, int options, ref string errorptr, SWIGTYPE_p_int erroroffset, SWIGTYPE_p_unsigned_char tables) { + IntPtr cPtr = freeswitchPINVOKE.switch_regex_compile(pattern, options, ref errorptr, SWIGTYPE_p_int.getCPtr(erroroffset), SWIGTYPE_p_unsigned_char.getCPtr(tables)); + SWIGTYPE_p_real_pcre ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_real_pcre(cPtr, false); + return ret; + } + + public static int switch_regex_copy_substring(string subject, SWIGTYPE_p_int ovector, int stringcount, int stringnumber, string buffer, int size) { + int ret = freeswitchPINVOKE.switch_regex_copy_substring(subject, SWIGTYPE_p_int.getCPtr(ovector), stringcount, stringnumber, buffer, size); + return ret; + } + + public static void switch_regex_free(SWIGTYPE_p_void data) { + freeswitchPINVOKE.switch_regex_free(SWIGTYPE_p_void.getCPtr(data)); + } + + public static int switch_regex_perform(string field, string expression, SWIGTYPE_p_p_real_pcre new_re, SWIGTYPE_p_int ovector, uint olen) { + int ret = freeswitchPINVOKE.switch_regex_perform(field, expression, SWIGTYPE_p_p_real_pcre.getCPtr(new_re), SWIGTYPE_p_int.getCPtr(ovector), olen); + return ret; + } + + public static void switch_perform_substitution(SWIGTYPE_p_real_pcre re, int match_count, string data, string field_data, string substituted, SWIGTYPE_p_switch_size_t len, SWIGTYPE_p_int ovector) { + freeswitchPINVOKE.switch_perform_substitution(SWIGTYPE_p_real_pcre.getCPtr(re), match_count, data, field_data, substituted, SWIGTYPE_p_switch_size_t.getCPtr(len), SWIGTYPE_p_int.getCPtr(ovector)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static switch_status_t switch_regex_match(string target, string expression) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_regex_match(target, expression); + return ret; + } + + public static switch_status_t switch_regex_match_partial(string target, string expression, SWIGTYPE_p_int partial_match) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_regex_match_partial(target, expression, SWIGTYPE_p_int.getCPtr(partial_match)); + return ret; + } + + public static void switch_capture_regex(SWIGTYPE_p_real_pcre re, int match_count, string field_data, SWIGTYPE_p_int ovector, string var, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void callback, SWIGTYPE_p_void user_data) { + freeswitchPINVOKE.switch_capture_regex(SWIGTYPE_p_real_pcre.getCPtr(re), match_count, field_data, SWIGTYPE_p_int.getCPtr(ovector), var, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); + } + + public static void switch_regex_set_var_callback(string var, string val, SWIGTYPE_p_void user_data) { + freeswitchPINVOKE.switch_regex_set_var_callback(var, val, SWIGTYPE_p_void.getCPtr(user_data)); + } + + public static void switch_regex_set_event_header_callback(string var, string val, SWIGTYPE_p_void user_data) { + freeswitchPINVOKE.switch_regex_set_event_header_callback(var, val, SWIGTYPE_p_void.getCPtr(user_data)); + } + + public static void switch_core_screen_size(SWIGTYPE_p_int x, SWIGTYPE_p_int y) { + freeswitchPINVOKE.switch_core_screen_size(SWIGTYPE_p_int.getCPtr(x), SWIGTYPE_p_int.getCPtr(y)); + } + + public static void switch_core_session_sched_heartbeat(SWIGTYPE_p_switch_core_session session, uint seconds) { + freeswitchPINVOKE.switch_core_session_sched_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session), seconds); + } + + public static void switch_core_session_unsched_heartbeat(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_unsched_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_enable_heartbeat(SWIGTYPE_p_switch_core_session session, uint seconds) { + freeswitchPINVOKE.switch_core_session_enable_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session), seconds); + } + + public static void switch_core_session_disable_heartbeat(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_disable_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static switch_status_t switch_core_media_bug_pop(SWIGTYPE_p_switch_core_session orig_session, string function, SWIGTYPE_p_p_switch_media_bug pop) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_pop(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function, SWIGTYPE_p_p_switch_media_bug.getCPtr(pop)); + return ret; + } + + public static switch_status_t switch_core_media_bug_exec_all(SWIGTYPE_p_switch_core_session orig_session, string function, SWIGTYPE_p_f_p_switch_media_bug_p_void__void cb, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_exec_all(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function, SWIGTYPE_p_f_p_switch_media_bug_p_void__void.getCPtr(cb), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static uint switch_core_media_bug_count(SWIGTYPE_p_switch_core_session orig_session, string function) { + uint ret = freeswitchPINVOKE.switch_core_media_bug_count(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function); + return ret; + } + + public static switch_status_t switch_core_media_bug_add(SWIGTYPE_p_switch_core_session session, string function, string target, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback, SWIGTYPE_p_void user_data, SWIGTYPE_p_time_t stop_time, uint flags, SWIGTYPE_p_p_switch_media_bug new_bug) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_add(SWIGTYPE_p_switch_core_session.getCPtr(session), function, target, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_time_t.getCPtr(stop_time), flags, SWIGTYPE_p_p_switch_media_bug.getCPtr(new_bug)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_core_media_bug_pause(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_media_bug_pause(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_media_bug_resume(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_media_bug_resume(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_media_bug_inuse(SWIGTYPE_p_switch_media_bug bug, SWIGTYPE_p_switch_size_t readp, SWIGTYPE_p_switch_size_t writep) { + freeswitchPINVOKE.switch_core_media_bug_inuse(SWIGTYPE_p_switch_media_bug.getCPtr(bug), SWIGTYPE_p_switch_size_t.getCPtr(readp), SWIGTYPE_p_switch_size_t.getCPtr(writep)); + } + + public static SWIGTYPE_p_void switch_core_media_bug_get_user_data(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_user_data(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static switch_frame switch_core_media_bug_get_write_replace_frame(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_write_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + + public static switch_frame switch_core_media_bug_get_native_read_frame(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_native_read_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + + public static switch_frame switch_core_media_bug_get_native_write_frame(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_native_write_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + + public static void switch_core_media_bug_set_write_replace_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { + freeswitchPINVOKE.switch_core_media_bug_set_write_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); + } + + public static switch_frame switch_core_media_bug_get_read_replace_frame(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_read_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + + public static void switch_core_media_bug_set_read_demux_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { + freeswitchPINVOKE.switch_core_media_bug_set_read_demux_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); + } + + public static SWIGTYPE_p_switch_core_session switch_core_media_bug_get_session(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_session(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static uint switch_core_media_bug_test_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { + uint ret = freeswitchPINVOKE.switch_core_media_bug_test_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); + return ret; + } + + public static uint switch_core_media_bug_set_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { + uint ret = freeswitchPINVOKE.switch_core_media_bug_set_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); + return ret; + } + + public static uint switch_core_media_bug_clear_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { + uint ret = freeswitchPINVOKE.switch_core_media_bug_clear_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); + return ret; + } + + public static void switch_core_media_bug_set_read_replace_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { + freeswitchPINVOKE.switch_core_media_bug_set_read_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); + } + + public static uint switch_core_cpu_count() { + uint ret = freeswitchPINVOKE.switch_core_cpu_count(); + return ret; + } + + public static switch_status_t switch_core_media_bug_remove(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_media_bug bug) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_media_bug.getCPtr(bug)); + return ret; + } + + public static uint switch_core_media_bug_prune(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_media_bug_prune(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_media_bug_remove_callback(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback)); + return ret; + } + + public static switch_status_t switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug bug) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug.getCPtr(bug)); + return ret; + } + + public static switch_status_t switch_core_media_bug_remove_all_function(SWIGTYPE_p_switch_core_session session, string function) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove_all_function(SWIGTYPE_p_switch_core_session.getCPtr(session), function); + return ret; + } + + public static switch_status_t switch_core_media_bug_enumerate(SWIGTYPE_p_switch_core_session session, switch_stream_handle stream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_enumerate(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_stream_handle.getCPtr(stream)); + return ret; + } + + public static switch_status_t switch_core_media_bug_transfer_recordings(SWIGTYPE_p_switch_core_session orig_session, SWIGTYPE_p_switch_core_session new_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_transfer_recordings(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), SWIGTYPE_p_switch_core_session.getCPtr(new_session)); + return ret; + } + + public static switch_status_t switch_core_media_bug_transfer_callback(SWIGTYPE_p_switch_core_session orig_session, SWIGTYPE_p_switch_core_session new_session, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback, SWIGTYPE_p_f_p_switch_core_session_p_void__p_void user_data_dup_func) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_transfer_callback(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), SWIGTYPE_p_switch_core_session.getCPtr(new_session), SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback), SWIGTYPE_p_f_p_switch_core_session_p_void__p_void.getCPtr(user_data_dup_func)); + return ret; + } + + public static switch_status_t switch_core_media_bug_read(SWIGTYPE_p_switch_media_bug bug, switch_frame frame, switch_bool_t fill) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_read(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame), (int)fill); + return ret; + } + + public static void switch_core_media_bug_flush(SWIGTYPE_p_switch_media_bug bug) { + freeswitchPINVOKE.switch_core_media_bug_flush(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + } + + public static switch_status_t switch_core_media_bug_flush_all(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_flush_all(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_media_bug_set_pre_buffer_framecount(SWIGTYPE_p_switch_media_bug bug, uint framecount) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_set_pre_buffer_framecount(SWIGTYPE_p_switch_media_bug.getCPtr(bug), framecount); + return ret; + } + + public static switch_status_t switch_core_port_allocator_new(string ip, ushort start, ushort end, uint flags, SWIGTYPE_p_p_switch_core_port_allocator new_allocator) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_new(ip, start, end, flags, SWIGTYPE_p_p_switch_core_port_allocator.getCPtr(new_allocator)); + return ret; + } + + public static switch_status_t switch_core_port_allocator_request_port(SWIGTYPE_p_switch_core_port_allocator alloc, SWIGTYPE_p_unsigned_short port_ptr) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_request_port(SWIGTYPE_p_switch_core_port_allocator.getCPtr(alloc), SWIGTYPE_p_unsigned_short.getCPtr(port_ptr)); + return ret; + } + + public static switch_status_t switch_core_port_allocator_free_port(SWIGTYPE_p_switch_core_port_allocator alloc, ushort port) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_free_port(SWIGTYPE_p_switch_core_port_allocator.getCPtr(alloc), port); + return ret; + } + + public static void switch_core_port_allocator_destroy(SWIGTYPE_p_p_switch_core_port_allocator alloc) { + freeswitchPINVOKE.switch_core_port_allocator_destroy(SWIGTYPE_p_p_switch_core_port_allocator.getCPtr(alloc)); + } + + public static int switch_core_test_flag(int flag) { + int ret = freeswitchPINVOKE.switch_core_test_flag(flag); + return ret; + } + + public static switch_status_t switch_core_init(uint flags, switch_bool_t console, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_init(flags, (int)console, ref err); + return ret; + } + + public static switch_status_t switch_core_init_and_modload(uint flags, switch_bool_t console, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_init_and_modload(flags, (int)console, ref err); + return ret; + } + + public static uint switch_core_session_limit(uint new_limit) { + uint ret = freeswitchPINVOKE.switch_core_session_limit(new_limit); + return ret; + } + + public static uint switch_core_sessions_per_second(uint new_limit) { + uint ret = freeswitchPINVOKE.switch_core_sessions_per_second(new_limit); + return ret; + } + + public static switch_status_t switch_core_destroy() { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_destroy(); + return ret; + } + + public static switch_status_t switch_core_session_io_read_lock(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_read_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_io_write_lock(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_write_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_io_rwunlock(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_rwunlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_read_lock(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_read_lock_hangup(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_lock_hangup(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static void switch_core_session_write_lock(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_write_lock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_rwunlock(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_rwunlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static int switch_core_add_state_handler(switch_state_handler_table state_handler) { + int ret = freeswitchPINVOKE.switch_core_add_state_handler(switch_state_handler_table.getCPtr(state_handler)); + return ret; + } + + public static void switch_core_remove_state_handler(switch_state_handler_table state_handler) { + freeswitchPINVOKE.switch_core_remove_state_handler(switch_state_handler_table.getCPtr(state_handler)); + } + + public static switch_state_handler_table switch_core_get_state_handler(int index) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_get_state_handler(index); + switch_state_handler_table ret = (cPtr == IntPtr.Zero) ? null : new switch_state_handler_table(cPtr, false); + return ret; + } + + public static void switch_core_memory_pool_tag(SWIGTYPE_p_apr_pool_t pool, string tag) { + freeswitchPINVOKE.switch_core_memory_pool_tag(SWIGTYPE_p_apr_pool_t.getCPtr(pool), tag); + } + + public static switch_status_t switch_core_perform_new_memory_pool(SWIGTYPE_p_p_apr_pool_t pool, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_perform_new_memory_pool(SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), file, func, line); + return ret; + } + + public static int switch_core_session_sync_clock() { + int ret = freeswitchPINVOKE.switch_core_session_sync_clock(); + return ret; + } + + public static switch_status_t switch_core_perform_destroy_memory_pool(SWIGTYPE_p_p_apr_pool_t pool, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_perform_destroy_memory_pool(SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), file, func, line); + return ret; + } + + public static void switch_core_memory_pool_set_data(SWIGTYPE_p_apr_pool_t pool, string key, SWIGTYPE_p_void data) { + freeswitchPINVOKE.switch_core_memory_pool_set_data(SWIGTYPE_p_apr_pool_t.getCPtr(pool), key, SWIGTYPE_p_void.getCPtr(data)); + } + + public static SWIGTYPE_p_void switch_core_memory_pool_get_data(SWIGTYPE_p_apr_pool_t pool, string key) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_memory_pool_get_data(SWIGTYPE_p_apr_pool_t.getCPtr(pool), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static void switch_core_session_run(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_run(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static uint switch_core_session_running(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_session_running(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static uint switch_core_session_started(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_session_started(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static SWIGTYPE_p_void switch_core_perform_permanent_alloc(SWIGTYPE_p_switch_size_t memory, string file, string func, int line) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_perform_permanent_alloc(SWIGTYPE_p_switch_size_t.getCPtr(memory), file, func, line); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_void switch_core_perform_alloc(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_switch_size_t memory, string file, string func, int line) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_perform_alloc(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_switch_size_t.getCPtr(memory), file, func, line); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_void switch_core_perform_session_alloc(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_size_t memory, string file, string func, int line) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_perform_session_alloc(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_size_t.getCPtr(memory), file, func, line); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_core_perform_permanent_strdup(string todup, string file, string func, int line) { + string ret = freeswitchPINVOKE.switch_core_perform_permanent_strdup(todup, file, func, line); + return ret; + } + + public static string switch_core_perform_session_strdup(SWIGTYPE_p_switch_core_session session, string todup, string file, string func, int line) { + string ret = freeswitchPINVOKE.switch_core_perform_session_strdup(SWIGTYPE_p_switch_core_session.getCPtr(session), todup, file, func, line); + return ret; + } + + public static string switch_core_perform_strdup(SWIGTYPE_p_apr_pool_t pool, string todup, string file, string func, int line) { + string ret = freeswitchPINVOKE.switch_core_perform_strdup(SWIGTYPE_p_apr_pool_t.getCPtr(pool), todup, file, func, line); + return ret; + } + + public static string switch_core_session_sprintf(SWIGTYPE_p_switch_core_session session, string fmt) { + string ret = freeswitchPINVOKE.switch_core_session_sprintf(SWIGTYPE_p_switch_core_session.getCPtr(session), fmt); + return ret; + } + + public static string switch_core_sprintf(SWIGTYPE_p_apr_pool_t pool, string fmt) { + string ret = freeswitchPINVOKE.switch_core_sprintf(SWIGTYPE_p_apr_pool_t.getCPtr(pool), fmt); + return ret; + } + + public static SWIGTYPE_p_apr_pool_t switch_core_session_get_pool(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_pool(SWIGTYPE_p_switch_core_session.getCPtr(session)); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_switch_core_session switch_core_session_request_xml(switch_endpoint_interface endpoint_interface, SWIGTYPE_p_p_apr_pool_t pool, switch_xml xml) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_xml(switch_endpoint_interface.getCPtr(endpoint_interface), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), switch_xml.getCPtr(xml)); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_switch_core_session switch_core_session_request_uuid(switch_endpoint_interface endpoint_interface, switch_call_direction_t direction, uint originate_flags, SWIGTYPE_p_p_apr_pool_t pool, string use_uuid) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_uuid(switch_endpoint_interface.getCPtr(endpoint_interface), (int)direction, originate_flags, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), use_uuid); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_set_uuid(SWIGTYPE_p_switch_core_session session, string use_uuid) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_uuid(SWIGTYPE_p_switch_core_session.getCPtr(session), use_uuid); + return ret; + } + + public static void switch_core_session_perform_destroy(SWIGTYPE_p_p_switch_core_session session, string file, string func, int line) { + freeswitchPINVOKE.switch_core_session_perform_destroy(SWIGTYPE_p_p_switch_core_session.getCPtr(session), file, func, line); + } + + public static void switch_core_session_destroy_state(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_destroy_state(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_reporting_state(SWIGTYPE_p_switch_core_session session) { + 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, switch_bool_t force) { + freeswitchPINVOKE.switch_core_session_hangup_state(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)force); + } + + public static uint switch_core_session_count() { + uint ret = freeswitchPINVOKE.switch_core_session_count(); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_core_session_get_id(SWIGTYPE_p_switch_core_session session) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_get_id(SWIGTYPE_p_switch_core_session.getCPtr(session)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_core_session_id() { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_id(), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_core_session_id_dec() { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_id_dec(), true); + return ret; + } + + public static SWIGTYPE_p_switch_core_session switch_core_session_request_by_name(string endpoint_name, switch_call_direction_t direction, SWIGTYPE_p_p_apr_pool_t pool) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_by_name(endpoint_name, (int)direction, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool)); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_thread_launch(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_thread_launch(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_thread_pool_launch_thread(SWIGTYPE_p_p_switch_thread_data_s tdp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_thread_pool_launch_thread(SWIGTYPE_p_p_switch_thread_data_s.getCPtr(tdp)); + return ret; + } + + public static switch_status_t switch_core_session_thread_pool_launch(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_thread_pool_launch(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static SWIGTYPE_p_switch_channel switch_core_session_get_channel(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_channel(SWIGTYPE_p_switch_core_session.getCPtr(session)); + SWIGTYPE_p_switch_channel ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_channel(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_switch_mutex_t switch_core_session_get_mutex(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_mutex(SWIGTYPE_p_switch_core_session.getCPtr(session)); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static void switch_core_session_signal_state_change(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_signal_state_change(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static string switch_core_session_get_uuid(SWIGTYPE_p_switch_core_session session) { + string ret = freeswitchPINVOKE.switch_core_session_get_uuid(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_set_loglevel(SWIGTYPE_p_switch_core_session session, switch_log_level_t loglevel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_loglevel(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)loglevel); + return ret; + } + + public static switch_log_level_t switch_core_session_get_loglevel(SWIGTYPE_p_switch_core_session session) { + switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_core_session_get_loglevel(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static SWIGTYPE_p_stfu_instance_t switch_core_session_get_jb(SWIGTYPE_p_switch_core_session session, switch_media_type_t type) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_jb(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)type); + SWIGTYPE_p_stfu_instance_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_stfu_instance_t(cPtr, false); + return ret; + } + + public static void switch_core_session_soft_lock(SWIGTYPE_p_switch_core_session session, uint sec) { + freeswitchPINVOKE.switch_core_session_soft_lock(SWIGTYPE_p_switch_core_session.getCPtr(session), sec); + } + + public static void switch_core_session_soft_unlock(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_soft_unlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_ivr_dmachine dmachine, switch_digit_action_target_t target) { + freeswitchPINVOKE.switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target); + } + + public static SWIGTYPE_p_switch_ivr_dmachine switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session session, switch_digit_action_target_t target) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)target); + SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); + return ret; + } + + public static switch_digit_action_target_t switch_ivr_dmachine_get_target(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + switch_digit_action_target_t ret = (switch_digit_action_target_t)freeswitchPINVOKE.switch_ivr_dmachine_get_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + return ret; + } + + public static void switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine dmachine, switch_digit_action_target_t target) { + freeswitchPINVOKE.switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target); + } + + public static switch_status_t switch_ivr_dmachine_set_terminators(SWIGTYPE_p_switch_ivr_dmachine dmachine, string terminators) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_set_terminators(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), terminators); + return ret; + } + + public static switch_status_t switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session session, switch_slin_data data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_slin_data.getCPtr(data)); + return ret; + } + + public static string switch_core_get_uuid() { + string ret = freeswitchPINVOKE.switch_core_get_uuid(); + return ret; + } + + public static SWIGTYPE_p_switch_core_session switch_core_session_perform_locate(string uuid_str, string file, string func, int line) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_perform_locate(uuid_str, file, func, line); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_switch_core_session switch_core_session_perform_force_locate(string uuid_str, string file, string func, int line) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_perform_force_locate(uuid_str, file, func, line); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static string switch_core_get_variable(string varname) { + string ret = freeswitchPINVOKE.switch_core_get_variable(varname); + return ret; + } + + public static string switch_core_get_variable_dup(string varname) { + string ret = freeswitchPINVOKE.switch_core_get_variable_dup(varname); + return ret; + } + + public static string switch_core_get_variable_pdup(string varname, SWIGTYPE_p_apr_pool_t pool) { + string ret = freeswitchPINVOKE.switch_core_get_variable_pdup(varname, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static string switch_core_get_hostname() { + string ret = freeswitchPINVOKE.switch_core_get_hostname(); + return ret; + } + + public static string switch_core_get_switchname() { + string ret = freeswitchPINVOKE.switch_core_get_switchname(); + return ret; + } + + public static string switch_core_get_domain(switch_bool_t dup) { + string ret = freeswitchPINVOKE.switch_core_get_domain((int)dup); + return ret; + } + + public static void switch_core_set_variable(string varname, string value) { + freeswitchPINVOKE.switch_core_set_variable(varname, value); + } + + public static switch_status_t switch_core_get_variables(SWIGTYPE_p_p_switch_event arg0) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_get_variables(SWIGTYPE_p_p_switch_event.getCPtr(arg0)); + return ret; + } + + public static switch_bool_t switch_core_set_var_conditional(string varname, string value, string val2) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_set_var_conditional(varname, value, val2); + return ret; + } + + public static void switch_core_dump_variables(switch_stream_handle stream) { + freeswitchPINVOKE.switch_core_dump_variables(switch_stream_handle.getCPtr(stream)); + } + + public static void switch_core_session_hupall(switch_call_cause_t cause) { + freeswitchPINVOKE.switch_core_session_hupall((int)cause); + } + + public static uint switch_core_session_hupall_matching_var_ans(string var_name, string var_val, switch_call_cause_t cause, switch_hup_type_t type) { + uint ret = freeswitchPINVOKE.switch_core_session_hupall_matching_var_ans(var_name, var_val, (int)cause, (int)type); + return ret; + } + + public static switch_console_callback_match switch_core_session_findall_matching_var(string var_name, string var_val) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_findall_matching_var(var_name, var_val); + switch_console_callback_match ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match(cPtr, false); + return ret; + } + + public static switch_console_callback_match switch_core_session_findall() { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_findall(); + switch_console_callback_match ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match(cPtr, false); + return ret; + } + + public static void switch_core_session_hupall_endpoint(switch_endpoint_interface endpoint_interface, switch_call_cause_t cause) { + freeswitchPINVOKE.switch_core_session_hupall_endpoint(switch_endpoint_interface.getCPtr(endpoint_interface), (int)cause); + } + + public static switch_status_t switch_core_session_perform_get_partner(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session partner, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_perform_get_partner(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(partner), file, func, line); + return ret; + } + + public static switch_status_t switch_core_session_message_send(string uuid_str, switch_core_session_message message) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_message_send(uuid_str, switch_core_session_message.getCPtr(message)); + return ret; + } + + public static switch_status_t switch_core_session_queue_message(SWIGTYPE_p_switch_core_session session, switch_core_session_message message) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_message(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message)); + return ret; + } + + public static void switch_core_session_free_message(SWIGTYPE_p_p_switch_core_session_message message) { + freeswitchPINVOKE.switch_core_session_free_message(SWIGTYPE_p_p_switch_core_session_message.getCPtr(message)); + } + + public static switch_status_t switch_core_session_queue_signal_data(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void signal_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(signal_data)); + return ret; + } + + public static switch_status_t switch_core_session_dequeue_signal_data(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_void signal_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_void.getCPtr(signal_data)); + return ret; + } + + public static switch_status_t switch_core_session_pass_indication(SWIGTYPE_p_switch_core_session session, switch_core_session_message_types_t indication) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_pass_indication(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)indication); + return ret; + } + + public static switch_status_t switch_core_session_queue_indication(SWIGTYPE_p_switch_core_session session, switch_core_session_message_types_t indication) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_indication(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)indication); + return ret; + } + + public static switch_status_t switch_core_session_dequeue_message(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session_message message) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_message(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session_message.getCPtr(message)); + return ret; + } + + public static switch_status_t switch_core_session_flush_message(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_flush_message(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_event_send(string uuid_str, SWIGTYPE_p_p_switch_event arg1) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_event_send(uuid_str, SWIGTYPE_p_p_switch_event.getCPtr(arg1)); + return ret; + } + + public static switch_app_log switch_core_session_get_app_log(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_app_log(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_app_log ret = (cPtr == IntPtr.Zero) ? null : new switch_app_log(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_exec(SWIGTYPE_p_switch_core_session session, switch_application_interface application_interface, string arg) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_exec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_application_interface.getCPtr(application_interface), arg); + return ret; + } + + public static void switch_core_session_video_reset(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_video_reset(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static switch_status_t switch_core_session_execute_application_get_flags(SWIGTYPE_p_switch_core_session session, string app, string arg, SWIGTYPE_p_int flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_application_get_flags(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg, SWIGTYPE_p_int.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_session_execute_application_async(SWIGTYPE_p_switch_core_session session, string app, string arg) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_application_async(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg); + return ret; + } + + public static switch_status_t switch_core_session_get_app_flags(string app, SWIGTYPE_p_int flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_app_flags(app, SWIGTYPE_p_int.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_session_execute_exten(SWIGTYPE_p_switch_core_session session, string exten, string dialplan, string context) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_exten(SWIGTYPE_p_switch_core_session.getCPtr(session), exten, dialplan, context); + return ret; + } + + public static switch_status_t switch_core_session_receive_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_receive_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); + return ret; + } + + public static SWIGTYPE_p_void switch_core_session_get_private_class(SWIGTYPE_p_switch_core_session session, switch_pvt_class_t index) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_private_class(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)index); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_set_private_class(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void private_info, switch_pvt_class_t index) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_private_class(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(private_info), (int)index); + return ret; + } + + public static int switch_core_session_add_stream(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void private_info) { + int ret = freeswitchPINVOKE.switch_core_session_add_stream(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(private_info)); + return ret; + } + + public static SWIGTYPE_p_void switch_core_session_get_stream(SWIGTYPE_p_switch_core_session session, int index) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_stream(SWIGTYPE_p_switch_core_session.getCPtr(session), index); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static int switch_core_session_get_stream_count(SWIGTYPE_p_switch_core_session session) { + int ret = freeswitchPINVOKE.switch_core_session_get_stream_count(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static void switch_core_session_launch_thread(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void func, SWIGTYPE_p_void obj) { + freeswitchPINVOKE.switch_core_session_launch_thread(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void.getCPtr(func), SWIGTYPE_p_void.getCPtr(obj)); + } + + public static void switch_core_thread_session_end(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_thread_session_end(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_service_session_av(SWIGTYPE_p_switch_core_session session, switch_bool_t audio, switch_bool_t video) { + freeswitchPINVOKE.switch_core_service_session_av(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)audio, (int)video); + } + + public static switch_call_cause_t switch_core_session_outgoing_channel(SWIGTYPE_p_switch_core_session session, switch_event var_event, string endpoint_name, switch_caller_profile caller_profile, SWIGTYPE_p_p_switch_core_session new_session, SWIGTYPE_p_p_apr_pool_t pool, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) { + switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_core_session_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_event.getCPtr(var_event), endpoint_name, switch_caller_profile.getCPtr(caller_profile), SWIGTYPE_p_p_switch_core_session.getCPtr(new_session), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause)); + return ret; + } + + public static switch_status_t switch_core_session_perform_receive_message(SWIGTYPE_p_switch_core_session session, switch_core_session_message message, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_perform_receive_message(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message), file, func, line); + return ret; + } + + public static switch_status_t switch_core_session_queue_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); + return ret; + } + + public static uint switch_core_session_event_count(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_session_event_count(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static uint switch_core_session_messages_waiting(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_session_messages_waiting(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_dequeue_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1, switch_bool_t force) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1), (int)force); + return ret; + } + + public static switch_status_t switch_core_session_queue_private_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1, switch_bool_t priority) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_queue_private_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1), (int)priority); + return ret; + } + + public static uint switch_core_session_private_event_count(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_session_private_event_count(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_dequeue_private_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_private_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); + return ret; + } + + public static uint switch_core_session_flush_private_events(SWIGTYPE_p_switch_core_session session) { + uint ret = freeswitchPINVOKE.switch_core_session_flush_private_events(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_core_session_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_frame.getCPtr(frame), flags, stream_id); + return ret; + } + + public static switch_status_t switch_core_session_read_video_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_video_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_frame.getCPtr(frame), flags, stream_id); + return ret; + } + + public static switch_status_t switch_core_session_write_video_frame(SWIGTYPE_p_switch_core_session session, switch_frame frame, uint flags, int stream_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_write_video_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_frame.getCPtr(frame), flags, stream_id); + return ret; + } + + public static switch_status_t switch_core_session_set_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_set_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_set_video_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_set_video_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static void switch_core_session_reset(SWIGTYPE_p_switch_core_session session, switch_bool_t flush_dtmf, switch_bool_t reset_read_codec) { + freeswitchPINVOKE.switch_core_session_reset(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)flush_dtmf, (int)reset_read_codec); + } + + public static switch_status_t switch_core_session_write_frame(SWIGTYPE_p_switch_core_session session, switch_frame frame, uint flags, int stream_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_frame.getCPtr(frame), flags, stream_id); + return ret; + } + + public static switch_status_t switch_core_session_perform_kill_channel(SWIGTYPE_p_switch_core_session session, string file, string func, int line, switch_signal_t sig) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_perform_kill_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), file, func, line, (int)sig); + return ret; + } + + public static switch_status_t switch_core_session_send_dtmf(SWIGTYPE_p_switch_core_session session, switch_dtmf_t dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_send_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_dtmf_t.getCPtr(dtmf)); + return ret; + } + + public static switch_status_t switch_core_session_send_dtmf_string(SWIGTYPE_p_switch_core_session session, string dtmf_string) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_send_dtmf_string(SWIGTYPE_p_switch_core_session.getCPtr(session), dtmf_string); + return ret; + } + + public static switch_status_t switch_core_session_recv_dtmf(SWIGTYPE_p_switch_core_session session, switch_dtmf_t dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_recv_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_dtmf_t.getCPtr(dtmf)); + return ret; + } + + public static switch_status_t switch_core_hash_init_case(SWIGTYPE_p_p_switch_hashtable hash, switch_bool_t case_sensitive) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_init_case(SWIGTYPE_p_p_switch_hashtable.getCPtr(hash), (int)case_sensitive); + return ret; + } + + public static switch_status_t switch_core_hash_destroy(SWIGTYPE_p_p_switch_hashtable hash) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_destroy(SWIGTYPE_p_p_switch_hashtable.getCPtr(hash)); + return ret; + } + + public static switch_status_t switch_core_hash_insert_destructor(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_void data, SWIGTYPE_p_f_p_void__void destructor) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_insert_destructor(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_f_p_void__void.getCPtr(destructor)); + return ret; + } + + public static switch_status_t switch_core_hash_insert_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_void data, SWIGTYPE_p_switch_mutex_t mutex) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_insert_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); + return ret; + } + + public static switch_status_t switch_core_hash_insert_wrlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_void data, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_insert_wrlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); + return ret; + } + + public static switch_status_t switch_core_hash_delete(SWIGTYPE_p_switch_hashtable hash, string key) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); + return ret; + } + + public static switch_status_t switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_mutex_t mutex) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); + return ret; + } + + public static switch_status_t switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); + return ret; + } + + public static switch_status_t switch_core_hash_delete_multi(SWIGTYPE_p_switch_hashtable hash, SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t callback, SWIGTYPE_p_void pData) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_multi(SWIGTYPE_p_switch_hashtable.getCPtr(hash), SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pData)); + return ret; + } + + public static SWIGTYPE_p_void switch_core_hash_find(SWIGTYPE_p_switch_hashtable hash, string key) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_void switch_core_hash_find_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_mutex_t mutex) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_void switch_core_hash_find_rdlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find_rdlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_first_iter(SWIGTYPE_p_switch_hashtable hash, SWIGTYPE_p_switch_hashtable_iterator hi) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_first_iter(SWIGTYPE_p_switch_hashtable.getCPtr(hash), SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi)); + SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); + return ret; + } + + public static switch_bool_t switch_core_hash_empty(SWIGTYPE_p_switch_hashtable hash) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_hash_empty(SWIGTYPE_p_switch_hashtable.getCPtr(hash)); + return ret; + } + + public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_next(SWIGTYPE_p_p_switch_hashtable_iterator hi) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_next(SWIGTYPE_p_p_switch_hashtable_iterator.getCPtr(hi)); + SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); + return ret; + } + + public static void switch_core_hash_this(SWIGTYPE_p_switch_hashtable_iterator hi, SWIGTYPE_p_p_void key, SWIGTYPE_p_switch_ssize_t klen, SWIGTYPE_p_p_void val) { + freeswitchPINVOKE.switch_core_hash_this(SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi), SWIGTYPE_p_p_void.getCPtr(key), SWIGTYPE_p_switch_ssize_t.getCPtr(klen), SWIGTYPE_p_p_void.getCPtr(val)); + } + + public static switch_status_t switch_core_timer_init(switch_timer timer, string timer_name, int interval, int samples, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_init(switch_timer.getCPtr(timer), timer_name, interval, samples, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static void switch_time_calibrate_clock() { + freeswitchPINVOKE.switch_time_calibrate_clock(); + } + + public static switch_status_t switch_core_timer_next(switch_timer timer) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_next(switch_timer.getCPtr(timer)); + return ret; + } + + public static switch_status_t switch_core_timer_step(switch_timer timer) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_step(switch_timer.getCPtr(timer)); + return ret; + } + + public static switch_status_t switch_core_timer_sync(switch_timer timer) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_sync(switch_timer.getCPtr(timer)); + return ret; + } + + public static switch_status_t switch_core_timer_check(switch_timer timer, switch_bool_t step) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_check(switch_timer.getCPtr(timer), (int)step); + return ret; + } + + public static switch_status_t switch_core_timer_destroy(switch_timer timer) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_destroy(switch_timer.getCPtr(timer)); + return ret; + } + + public static switch_status_t switch_core_codec_init_with_bitrate(switch_codec codec, string codec_name, string fmtp, uint rate, int ms, int channels, uint bitrate, uint flags, switch_codec_settings codec_settings, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_init_with_bitrate(switch_codec.getCPtr(codec), codec_name, fmtp, rate, ms, channels, bitrate, flags, switch_codec_settings.getCPtr(codec_settings), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_core_codec_copy(switch_codec codec, switch_codec new_codec, switch_codec_settings codec_settings, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_copy(switch_codec.getCPtr(codec), switch_codec.getCPtr(new_codec), switch_codec_settings.getCPtr(codec_settings), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_core_codec_parse_fmtp(string codec_name, string fmtp, uint rate, switch_codec_fmtp codec_fmtp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_parse_fmtp(codec_name, fmtp, rate, switch_codec_fmtp.getCPtr(codec_fmtp)); + return ret; + } + + public static switch_status_t switch_core_codec_reset(switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_reset(switch_codec.getCPtr(codec)); + return ret; + } + + public static switch_status_t switch_core_codec_encode(switch_codec codec, switch_codec other_codec, SWIGTYPE_p_void decoded_data, uint decoded_data_len, uint decoded_rate, SWIGTYPE_p_void encoded_data, SWIGTYPE_p_unsigned_long encoded_data_len, SWIGTYPE_p_unsigned_long encoded_rate, SWIGTYPE_p_unsigned_int flag) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_encode(switch_codec.getCPtr(codec), switch_codec.getCPtr(other_codec), SWIGTYPE_p_void.getCPtr(decoded_data), decoded_data_len, decoded_rate, SWIGTYPE_p_void.getCPtr(encoded_data), SWIGTYPE_p_unsigned_long.getCPtr(encoded_data_len), SWIGTYPE_p_unsigned_long.getCPtr(encoded_rate), SWIGTYPE_p_unsigned_int.getCPtr(flag)); + return ret; + } + + public static switch_status_t switch_core_codec_decode(switch_codec codec, switch_codec other_codec, SWIGTYPE_p_void encoded_data, uint encoded_data_len, uint encoded_rate, SWIGTYPE_p_void decoded_data, SWIGTYPE_p_unsigned_long decoded_data_len, SWIGTYPE_p_unsigned_long decoded_rate, SWIGTYPE_p_unsigned_int flag) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_decode(switch_codec.getCPtr(codec), switch_codec.getCPtr(other_codec), SWIGTYPE_p_void.getCPtr(encoded_data), encoded_data_len, encoded_rate, SWIGTYPE_p_void.getCPtr(decoded_data), SWIGTYPE_p_unsigned_long.getCPtr(decoded_data_len), SWIGTYPE_p_unsigned_long.getCPtr(decoded_rate), SWIGTYPE_p_unsigned_int.getCPtr(flag)); + return ret; + } + + public static switch_status_t switch_core_codec_destroy(switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_destroy(switch_codec.getCPtr(codec)); + return ret; + } + + public static switch_status_t switch_core_session_set_read_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); + return ret; + } + + public static switch_status_t switch_core_session_set_real_read_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_real_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); + return ret; + } + + public static void switch_core_session_unset_read_codec(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_unset_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_unset_write_codec(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_unset_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_lock_codec_write(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_lock_codec_write(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_unlock_codec_write(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_unlock_codec_write(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_lock_codec_read(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_lock_codec_read(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_session_unlock_codec_read(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_unlock_codec_read(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static switch_status_t switch_core_session_get_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_get_real_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_real_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_get_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_get_video_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_video_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_status_t switch_core_session_get_video_write_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_video_write_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); + return ret; + } + + public static switch_codec switch_core_session_get_read_codec(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + + public static switch_codec switch_core_session_get_effective_read_codec(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_effective_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_set_write_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); + return ret; + } + + public static switch_codec switch_core_session_get_write_codec(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + + public static switch_codec switch_core_session_get_effective_write_codec(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_effective_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_set_video_read_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); + return ret; + } + + public static switch_codec switch_core_session_get_video_read_codec(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_video_read_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_session_set_video_write_codec(SWIGTYPE_p_switch_core_session session, switch_codec codec) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec)); + return ret; + } + + public static switch_codec switch_core_session_get_video_write_codec(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_video_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session)); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_sqlite3 switch_core_db_open_file(string filename) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_db_open_file(filename); + SWIGTYPE_p_sqlite3 ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_sqlite3(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_db_persistant_execute(SWIGTYPE_p_sqlite3 db, string sql, uint retries) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_db_persistant_execute(SWIGTYPE_p_sqlite3.getCPtr(db), sql, retries); + return ret; + } + + public static switch_status_t switch_core_db_persistant_execute_trans(SWIGTYPE_p_sqlite3 db, string sql, uint retries) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_db_persistant_execute_trans(SWIGTYPE_p_sqlite3.getCPtr(db), sql, retries); + return ret; + } + + public static void switch_core_db_test_reactive(SWIGTYPE_p_sqlite3 db, string test_sql, string drop_sql, string reactive_sql) { + freeswitchPINVOKE.switch_core_db_test_reactive(SWIGTYPE_p_sqlite3.getCPtr(db), test_sql, drop_sql, reactive_sql); + } + + public static switch_status_t switch_core_perform_file_open(string file, string func, int line, switch_file_handle fh, string file_path, uint channels, uint rate, uint flags, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_perform_file_open(file, func, line, switch_file_handle.getCPtr(fh), file_path, channels, rate, flags, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_core_file_read(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_read(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); + return ret; + } + + public static switch_status_t switch_core_file_write(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_write(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); + return ret; + } + + public static switch_status_t switch_core_file_write_video(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_write_video(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); + return ret; + } + + public static switch_status_t switch_core_file_seek(switch_file_handle fh, SWIGTYPE_p_unsigned_int cur_pos, long samples, int whence) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_seek(switch_file_handle.getCPtr(fh), SWIGTYPE_p_unsigned_int.getCPtr(cur_pos), samples, whence); + return ret; + } + + public static switch_status_t switch_core_file_set_string(switch_file_handle fh, switch_audio_col_t col, string arg2) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_set_string(switch_file_handle.getCPtr(fh), (int)col, arg2); + return ret; + } + + public static switch_status_t switch_core_file_get_string(switch_file_handle fh, switch_audio_col_t col, ref string arg2) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_get_string(switch_file_handle.getCPtr(fh), (int)col, ref arg2); + return ret; + } + + public static switch_status_t switch_core_file_close(switch_file_handle fh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_close(switch_file_handle.getCPtr(fh)); + return ret; + } + + public static switch_status_t switch_core_file_truncate(switch_file_handle fh, long offset) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_truncate(switch_file_handle.getCPtr(fh), offset); + return ret; + } + + public static switch_status_t switch_core_speech_open(switch_speech_handle sh, string module_name, string voice_name, uint rate, uint interval, uint channels, SWIGTYPE_p_unsigned_long flags, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_open(switch_speech_handle.getCPtr(sh), module_name, voice_name, rate, interval, channels, SWIGTYPE_p_unsigned_long.getCPtr(flags), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_core_speech_feed_tts(switch_speech_handle sh, string text, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_feed_tts(switch_speech_handle.getCPtr(sh), text, SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static void switch_core_speech_flush_tts(switch_speech_handle sh) { + freeswitchPINVOKE.switch_core_speech_flush_tts(switch_speech_handle.getCPtr(sh)); + } + + public static void switch_core_speech_text_param_tts(switch_speech_handle sh, string param, string val) { + freeswitchPINVOKE.switch_core_speech_text_param_tts(switch_speech_handle.getCPtr(sh), param, val); + } + + public static void switch_core_speech_numeric_param_tts(switch_speech_handle sh, string param, int val) { + freeswitchPINVOKE.switch_core_speech_numeric_param_tts(switch_speech_handle.getCPtr(sh), param, val); + } + + public static void switch_core_speech_float_param_tts(switch_speech_handle sh, string param, double val) { + freeswitchPINVOKE.switch_core_speech_float_param_tts(switch_speech_handle.getCPtr(sh), param, val); + } + + public static switch_status_t switch_core_speech_read_tts(switch_speech_handle sh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_read_tts(switch_speech_handle.getCPtr(sh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen), SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_speech_close(switch_speech_handle sh, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_close(switch_speech_handle.getCPtr(sh), SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_open(switch_asr_handle ah, string module_name, string codec, int rate, string dest, SWIGTYPE_p_unsigned_long flags, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_open(switch_asr_handle.getCPtr(ah), module_name, codec, rate, dest, SWIGTYPE_p_unsigned_long.getCPtr(flags), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_core_asr_close(switch_asr_handle ah, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_close(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_feed(switch_asr_handle ah, SWIGTYPE_p_void data, uint len, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_feed(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_void.getCPtr(data), len, SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_feed_dtmf(switch_asr_handle ah, switch_dtmf_t dtmf, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_feed_dtmf(switch_asr_handle.getCPtr(ah), switch_dtmf_t.getCPtr(dtmf), SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_check_results(switch_asr_handle ah, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_check_results(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_get_results(switch_asr_handle ah, ref string xmlstr, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_get_results(switch_asr_handle.getCPtr(ah), ref xmlstr, SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_get_result_headers(switch_asr_handle ah, SWIGTYPE_p_p_switch_event headers, SWIGTYPE_p_unsigned_long flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_get_result_headers(switch_asr_handle.getCPtr(ah), SWIGTYPE_p_p_switch_event.getCPtr(headers), SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static switch_status_t switch_core_asr_load_grammar(switch_asr_handle ah, string grammar, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_load_grammar(switch_asr_handle.getCPtr(ah), grammar, name); + return ret; + } + + public static switch_status_t switch_core_asr_unload_grammar(switch_asr_handle ah, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_unload_grammar(switch_asr_handle.getCPtr(ah), name); + return ret; + } + + public static switch_status_t switch_core_asr_enable_grammar(switch_asr_handle ah, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_enable_grammar(switch_asr_handle.getCPtr(ah), name); + return ret; + } + + public static switch_status_t switch_core_asr_disable_grammar(switch_asr_handle ah, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_disable_grammar(switch_asr_handle.getCPtr(ah), name); + return ret; + } + + public static switch_status_t switch_core_asr_disable_all_grammars(switch_asr_handle ah) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_disable_all_grammars(switch_asr_handle.getCPtr(ah)); + return ret; + } + + public static switch_status_t switch_core_asr_pause(switch_asr_handle ah) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_pause(switch_asr_handle.getCPtr(ah)); + return ret; + } + + public static switch_status_t switch_core_asr_resume(switch_asr_handle ah) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_resume(switch_asr_handle.getCPtr(ah)); + return ret; + } + + public static switch_status_t switch_core_asr_start_input_timers(switch_asr_handle ah) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_asr_start_input_timers(switch_asr_handle.getCPtr(ah)); + return ret; + } + + public static void switch_core_asr_text_param(switch_asr_handle ah, string param, string val) { + freeswitchPINVOKE.switch_core_asr_text_param(switch_asr_handle.getCPtr(ah), param, val); + } + + public static void switch_core_asr_numeric_param(switch_asr_handle ah, string param, int val) { + freeswitchPINVOKE.switch_core_asr_numeric_param(switch_asr_handle.getCPtr(ah), param, val); + } + + public static void switch_core_asr_float_param(switch_asr_handle ah, string param, double val) { + freeswitchPINVOKE.switch_core_asr_float_param(switch_asr_handle.getCPtr(ah), param, val); + } + + public static switch_status_t switch_core_directory_open(switch_directory_handle dh, string module_name, string source, string dsn, string passwd, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_open(switch_directory_handle.getCPtr(dh), module_name, source, dsn, passwd, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_core_directory_query(switch_directory_handle dh, string arg1, string query) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_query(switch_directory_handle.getCPtr(dh), arg1, query); + return ret; + } + + public static switch_status_t switch_core_directory_next(switch_directory_handle dh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_next(switch_directory_handle.getCPtr(dh)); + return ret; + } + + public static switch_status_t switch_core_directory_next_pair(switch_directory_handle dh, ref string var, ref string val) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_next_pair(switch_directory_handle.getCPtr(dh), ref var, ref val); + return ret; + } + + public static switch_status_t switch_core_directory_close(switch_directory_handle dh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_directory_close(switch_directory_handle.getCPtr(dh)); + return ret; + } + + public static SWIGTYPE_p_FILE switch_core_data_channel(switch_text_channel_t channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_data_channel((int)channel); + SWIGTYPE_p_FILE ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_FILE(cPtr, false); + return ret; + } + + public static switch_bool_t switch_core_ready() { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready(); + return ret; + } + + public static switch_bool_t switch_core_running() { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_running(); + return ret; + } + + public static switch_bool_t switch_core_ready_inbound() { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready_inbound(); + return ret; + } + + public static switch_bool_t switch_core_ready_outbound() { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready_outbound(); + return ret; + } + + public static uint switch_core_flags() { + uint ret = freeswitchPINVOKE.switch_core_flags(); + return ret; + } + + public static switch_status_t switch_core_management_exec(string relative_oid, switch_management_action_t action, string data, SWIGTYPE_p_switch_size_t datalen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_management_exec(relative_oid, (int)action, data, SWIGTYPE_p_switch_size_t.getCPtr(datalen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int set_normal_priority() { + int ret = freeswitchPINVOKE.set_normal_priority(); + return ret; + } + + public static int set_auto_priority() { + int ret = freeswitchPINVOKE.set_auto_priority(); + return ret; + } + + public static int set_realtime_priority() { + int ret = freeswitchPINVOKE.set_realtime_priority(); + return ret; + } + + public static int set_low_priority() { + int ret = freeswitchPINVOKE.set_low_priority(); + return ret; + } + + public static int change_user_group(string user, string group) { + int ret = freeswitchPINVOKE.change_user_group(user, group); + return ret; + } + + public static void switch_core_runtime_loop(int bg) { + freeswitchPINVOKE.switch_core_runtime_loop(bg); + } + + public static switch_status_t switch_core_set_console(string console) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_set_console(console); + return ret; + } + + public static void switch_core_measure_time(SWIGTYPE_p_switch_time_t total_ms, switch_core_time_duration duration) { + freeswitchPINVOKE.switch_core_measure_time(SWIGTYPE_p_switch_time_t.getCPtr(total_ms), switch_core_time_duration.getCPtr(duration)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_switch_time_t switch_core_uptime() { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_core_uptime(), true); + return ret; + } + + public static int switch_core_session_ctl(switch_session_ctl_t cmd, SWIGTYPE_p_void val) { + int ret = freeswitchPINVOKE.switch_core_session_ctl((int)cmd, SWIGTYPE_p_void.getCPtr(val)); + return ret; + } + + public static SWIGTYPE_p_FILE switch_core_get_console() { + IntPtr cPtr = freeswitchPINVOKE.switch_core_get_console(); + SWIGTYPE_p_FILE ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_FILE(cPtr, false); + return ret; + } + + public static void switch_core_set_globals() { + freeswitchPINVOKE.switch_core_set_globals(); + } + + public static byte switch_core_session_compare(SWIGTYPE_p_switch_core_session a, SWIGTYPE_p_switch_core_session b) { + byte ret = freeswitchPINVOKE.switch_core_session_compare(SWIGTYPE_p_switch_core_session.getCPtr(a), SWIGTYPE_p_switch_core_session.getCPtr(b)); + return ret; + } + + public static byte switch_core_session_check_interface(SWIGTYPE_p_switch_core_session session, switch_endpoint_interface endpoint_interface) { + byte ret = freeswitchPINVOKE.switch_core_session_check_interface(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_endpoint_interface.getCPtr(endpoint_interface)); + return ret; + } + + public static SWIGTYPE_p_switch_hashtable_iterator switch_core_mime_index() { + IntPtr cPtr = freeswitchPINVOKE.switch_core_mime_index(); + SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); + return ret; + } + + public static string switch_core_mime_ext2type(string ext) { + string ret = freeswitchPINVOKE.switch_core_mime_ext2type(ext); + return ret; + } + + public static switch_status_t switch_core_mime_add_type(string type, string ext) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_mime_add_type(type, ext); + return ret; + } + + public static switch_loadable_module_interface switch_loadable_module_create_module_interface(SWIGTYPE_p_apr_pool_t pool, string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_create_module_interface(SWIGTYPE_p_apr_pool_t.getCPtr(pool), name); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_void switch_loadable_module_create_interface(switch_loadable_module_interface mod, switch_module_interface_name_t iname) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_create_interface(switch_loadable_module_interface.getCPtr(mod), (int)iname); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_switch_time_t switch_micro_time_now() { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_micro_time_now(), true); + return ret; + } + + public static SWIGTYPE_p_switch_time_t switch_mono_micro_time_now() { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_mono_micro_time_now(), true); + return ret; + } + + public static void switch_core_memory_reclaim() { + freeswitchPINVOKE.switch_core_memory_reclaim(); + } + + public static void switch_core_memory_reclaim_events() { + freeswitchPINVOKE.switch_core_memory_reclaim_events(); + } + + public static void switch_core_memory_reclaim_logger() { + freeswitchPINVOKE.switch_core_memory_reclaim_logger(); + } + + public static void switch_core_memory_reclaim_all() { + freeswitchPINVOKE.switch_core_memory_reclaim_all(); + } + + public static void switch_core_setrlimits() { + freeswitchPINVOKE.switch_core_setrlimits(); + } + + public static SWIGTYPE_p_switch_time_t switch_time_ref() { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_time_ref(), true); + return ret; + } + + public static void switch_time_sync() { + freeswitchPINVOKE.switch_time_sync(); + } + + public static SWIGTYPE_p_time_t switch_epoch_time_now(SWIGTYPE_p_time_t t) { + SWIGTYPE_p_time_t ret = new SWIGTYPE_p_time_t(freeswitchPINVOKE.switch_epoch_time_now(SWIGTYPE_p_time_t.getCPtr(t)), true); + return ret; + } + + public static string switch_lookup_timezone(string tz_name) { + string ret = freeswitchPINVOKE.switch_lookup_timezone(tz_name); + return ret; + } + + public static switch_status_t switch_strftime_tz(string tz, string format, string date, uint len, SWIGTYPE_p_switch_time_t thetime) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_strftime_tz(tz, format, date, len, SWIGTYPE_p_switch_time_t.getCPtr(thetime)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_time_exp_tz_name(string tz, SWIGTYPE_p_switch_time_exp_t tm, SWIGTYPE_p_switch_time_t thetime) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_time_exp_tz_name(tz, SWIGTYPE_p_switch_time_exp_t.getCPtr(tm), SWIGTYPE_p_switch_time_t.getCPtr(thetime)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_load_network_lists(switch_bool_t reload) { + freeswitchPINVOKE.switch_load_network_lists((int)reload); + } + + public static switch_bool_t switch_check_network_list_ip_token(string ip_str, string list_name, ref string token) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_check_network_list_ip_token(ip_str, list_name, ref token); + return ret; + } + + public static void switch_time_set_monotonic(switch_bool_t enable) { + freeswitchPINVOKE.switch_time_set_monotonic((int)enable); + } + + public static void switch_time_set_timerfd(int enable) { + freeswitchPINVOKE.switch_time_set_timerfd(enable); + } + + public static void switch_time_set_nanosleep(switch_bool_t enable) { + freeswitchPINVOKE.switch_time_set_nanosleep((int)enable); + } + + public static void switch_time_set_matrix(switch_bool_t enable) { + freeswitchPINVOKE.switch_time_set_matrix((int)enable); + } + + public static void switch_time_set_cond_yield(switch_bool_t enable) { + freeswitchPINVOKE.switch_time_set_cond_yield((int)enable); + } + + public static void switch_time_set_use_system_time(switch_bool_t enable) { + freeswitchPINVOKE.switch_time_set_use_system_time((int)enable); + } + + public static uint switch_core_min_dtmf_duration(uint duration) { + uint ret = freeswitchPINVOKE.switch_core_min_dtmf_duration(duration); + return ret; + } + + public static uint switch_core_max_dtmf_duration(uint duration) { + uint ret = freeswitchPINVOKE.switch_core_max_dtmf_duration(duration); + return ret; + } + + public static double switch_core_min_idle_cpu(double new_limit) { + double ret = freeswitchPINVOKE.switch_core_min_idle_cpu(new_limit); + return ret; + } + + public static double switch_core_idle_cpu() { + double ret = freeswitchPINVOKE.switch_core_idle_cpu(); + return ret; + } + + public static uint switch_core_default_dtmf_duration(uint duration) { + uint ret = freeswitchPINVOKE.switch_core_default_dtmf_duration(duration); + return ret; + } + + public static switch_status_t switch_console_set_complete(string arg0) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_set_complete(arg0); + return ret; + } + + public static switch_status_t switch_console_set_alias(string arg0) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_set_alias(arg0); + return ret; + } + + public static int switch_system(string cmd, switch_bool_t wait) { + int ret = freeswitchPINVOKE.switch_system(cmd, (int)wait); + return ret; + } + + public static int switch_stream_system(string cmd, switch_stream_handle stream) { + int ret = freeswitchPINVOKE.switch_stream_system(cmd, switch_stream_handle.getCPtr(stream)); + return ret; + } + + public static void switch_cond_yield(SWIGTYPE_p_switch_interval_time_t t) { + freeswitchPINVOKE.switch_cond_yield(SWIGTYPE_p_switch_interval_time_t.getCPtr(t)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void switch_cond_next() { + freeswitchPINVOKE.switch_cond_next(); + } + + public static switch_status_t switch_core_chat_send_args(string dest_proto, string proto, string from, string to, string subject, string body, string type, string hint, switch_bool_t blocking) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_chat_send_args(dest_proto, proto, from, to, subject, body, type, hint, (int)blocking); + return ret; + } + + public static switch_status_t switch_core_chat_send(string dest_proto, switch_event message_event) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_chat_send(dest_proto, switch_event.getCPtr(message_event)); + return ret; + } + + public static switch_status_t switch_core_chat_deliver(string dest_proto, SWIGTYPE_p_p_switch_event message_event) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_chat_deliver(dest_proto, SWIGTYPE_p_p_switch_event.getCPtr(message_event)); + return ret; + } + + public static switch_status_t switch_ivr_preprocess_session(SWIGTYPE_p_switch_core_session session, string cmds) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_preprocess_session(SWIGTYPE_p_switch_core_session.getCPtr(session), cmds); + return ret; + } + + public static void switch_core_sqldb_pause() { + freeswitchPINVOKE.switch_core_sqldb_pause(); + } + + public static void switch_core_sqldb_resume() { + freeswitchPINVOKE.switch_core_sqldb_resume(); + } + + public static string switch_cache_db_type_name(switch_cache_db_handle_type_t type) { + string ret = freeswitchPINVOKE.switch_cache_db_type_name((int)type); + return ret; + } + + public static switch_cache_db_handle_type_t switch_cache_db_get_type(SWIGTYPE_p_switch_cache_db_handle dbh) { + switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_cache_db_get_type(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh)); + return ret; + } + + public static void switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh) { + freeswitchPINVOKE.switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh)); + } + + public static void switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh) { + freeswitchPINVOKE.switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh)); + } + + public static switch_status_t _switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh, switch_cache_db_handle_type_t type, switch_cache_db_connection_options_t connection_options, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), (int)type, switch_cache_db_connection_options_t.getCPtr(connection_options), file, func, line); + return ret; + } + + public static switch_status_t _switch_cache_db_get_db_handle_dsn(SWIGTYPE_p_p_switch_cache_db_handle dbh, string dsn, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_cache_db_get_db_handle_dsn(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), dsn, file, func, line); + return ret; + } + + public static switch_status_t switch_cache_db_create_schema(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_create_schema(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, ref err); + return ret; + } + + public static string switch_cache_db_execute_sql2str(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, string str, uint len, ref string err) { + string ret = freeswitchPINVOKE.switch_cache_db_execute_sql2str(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, str, len, ref err); + return ret; + } + + public static switch_status_t switch_cache_db_execute_sql(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, ref err); + return ret; + } + + public static switch_status_t switch_cache_db_execute_sql_callback(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); + return ret; + } + + public static switch_status_t switch_cache_db_execute_sql_callback_err(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback_err(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); + return ret; + } + + public static int switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle dbh) { + int ret = freeswitchPINVOKE.switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh)); + return ret; + } + + public static int switch_cache_db_load_extension(SWIGTYPE_p_switch_cache_db_handle dbh, string extension) { + int ret = freeswitchPINVOKE.switch_cache_db_load_extension(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), extension); + return ret; + } + + public static void switch_cache_db_status(switch_stream_handle stream) { + freeswitchPINVOKE.switch_cache_db_status(switch_stream_handle.getCPtr(stream)); + } + + public static switch_status_t _switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), file, func, line); + return ret; + } + + public static switch_bool_t switch_cache_db_test_reactive(SWIGTYPE_p_switch_cache_db_handle db, string test_sql, string drop_sql, string reactive_sql) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_cache_db_test_reactive(SWIGTYPE_p_switch_cache_db_handle.getCPtr(db), test_sql, drop_sql, reactive_sql); + return ret; + } + + public static switch_status_t switch_cache_db_persistant_execute(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, uint retries) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, retries); + return ret; + } + + public static switch_status_t switch_cache_db_persistant_execute_trans_full(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, uint retries, string pre_trans_execute, string post_trans_execute, string inner_pre_trans_execute, string inner_post_trans_execute) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute_trans_full(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, retries, pre_trans_execute, post_trans_execute, inner_pre_trans_execute, inner_post_trans_execute); + return ret; + } + + public static void switch_core_set_signal_handlers() { + freeswitchPINVOKE.switch_core_set_signal_handlers(); + } + + public static uint switch_core_debug_level() { + uint ret = freeswitchPINVOKE.switch_core_debug_level(); + return ret; + } + + public static void switch_cache_db_flush_handles() { + freeswitchPINVOKE.switch_cache_db_flush_handles(); + } + + public static string switch_core_banner() { + string ret = freeswitchPINVOKE.switch_core_banner(); + return ret; + } + + public static switch_bool_t switch_core_session_in_thread(SWIGTYPE_p_switch_core_session session) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_session_in_thread(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static uint switch_default_ptime(string name, uint number) { + uint ret = freeswitchPINVOKE.switch_default_ptime(name, number); + return ret; + } + + public static uint switch_default_rate(string name, uint number) { + uint ret = freeswitchPINVOKE.switch_default_rate(name, number); + return ret; + } + + public static switch_status_t switch_core_add_registration(string user, string realm, string token, string url, uint expires, string network_ip, string network_port, string network_proto, string metadata) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_add_registration(user, realm, token, url, expires, network_ip, network_port, network_proto, metadata); + return ret; + } + + public static switch_status_t switch_core_del_registration(string user, string realm, string token) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_del_registration(user, realm, token); + return ret; + } + + public static switch_status_t switch_core_expire_registration(int force) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_expire_registration(force); + return ret; + } + + public static string switch_say_file_handle_get_variable(SWIGTYPE_p_switch_say_file_handle sh, string var) { + string ret = freeswitchPINVOKE.switch_say_file_handle_get_variable(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh), var); + return ret; + } + + public static string switch_say_file_handle_get_path(SWIGTYPE_p_switch_say_file_handle sh) { + string ret = freeswitchPINVOKE.switch_say_file_handle_get_path(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh)); + return ret; + } + + public static string switch_say_file_handle_detach_path(SWIGTYPE_p_switch_say_file_handle sh) { + string ret = freeswitchPINVOKE.switch_say_file_handle_detach_path(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh)); + return ret; + } + + public static void switch_say_file_handle_destroy(SWIGTYPE_p_p_switch_say_file_handle sh) { + freeswitchPINVOKE.switch_say_file_handle_destroy(SWIGTYPE_p_p_switch_say_file_handle.getCPtr(sh)); + } + + public static switch_status_t switch_say_file_handle_create(SWIGTYPE_p_p_switch_say_file_handle sh, string ext, SWIGTYPE_p_p_switch_event var_event) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_say_file_handle_create(SWIGTYPE_p_p_switch_say_file_handle.getCPtr(sh), ext, SWIGTYPE_p_p_switch_event.getCPtr(var_event)); + return ret; + } + + public static void switch_say_file(SWIGTYPE_p_switch_say_file_handle sh, string fmt) { + freeswitchPINVOKE.switch_say_file(SWIGTYPE_p_switch_say_file_handle.getCPtr(sh), fmt); + } + + public static int switch_max_file_desc() { + int ret = freeswitchPINVOKE.switch_max_file_desc(); + return ret; + } + + public static void switch_close_extra_files(SWIGTYPE_p_int keep, int keep_ttl) { + freeswitchPINVOKE.switch_close_extra_files(SWIGTYPE_p_int.getCPtr(keep), keep_ttl); + } + + public static switch_status_t switch_core_thread_set_cpu_affinity(int cpu) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_thread_set_cpu_affinity(cpu); + return ret; + } + + public static void switch_os_yield() { + freeswitchPINVOKE.switch_os_yield(); + } + + public static switch_status_t switch_core_get_stacksizes(SWIGTYPE_p_switch_size_t cur, SWIGTYPE_p_switch_size_t max) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_get_stacksizes(SWIGTYPE_p_switch_size_t.getCPtr(cur), SWIGTYPE_p_switch_size_t.getCPtr(max)); + return ret; + } + + public static void switch_core_gen_encoded_silence(SWIGTYPE_p_unsigned_char data, switch_codec_implementation read_impl, SWIGTYPE_p_switch_size_t len) { + freeswitchPINVOKE.switch_core_gen_encoded_silence(SWIGTYPE_p_unsigned_char.getCPtr(data), switch_codec_implementation.getCPtr(read_impl), SWIGTYPE_p_switch_size_t.getCPtr(len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static switch_cache_db_handle_type_t switch_core_dbtype() { + switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_core_dbtype(); + return ret; + } + + public static void switch_core_sql_exec(string sql) { + freeswitchPINVOKE.switch_core_sql_exec(sql); + } + + public static int switch_core_recovery_recover(string technology, string profile_name) { + int ret = freeswitchPINVOKE.switch_core_recovery_recover(technology, profile_name); + return ret; + } + + public static void switch_core_recovery_untrack(SWIGTYPE_p_switch_core_session session, switch_bool_t force) { + freeswitchPINVOKE.switch_core_recovery_untrack(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)force); + } + + public static void switch_core_recovery_track(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_recovery_track(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static void switch_core_recovery_flush(string technology, string profile_name) { + freeswitchPINVOKE.switch_core_recovery_flush(technology, profile_name); + } + + public static void switch_sql_queue_manager_pause(SWIGTYPE_p_switch_sql_queue_manager qm, switch_bool_t flush) { + freeswitchPINVOKE.switch_sql_queue_manager_pause(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), (int)flush); + } + + public static void switch_sql_queue_manager_resume(SWIGTYPE_p_switch_sql_queue_manager qm) { + freeswitchPINVOKE.switch_sql_queue_manager_resume(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm)); + } + + public static int switch_sql_queue_manager_size(SWIGTYPE_p_switch_sql_queue_manager qm, uint index) { + int ret = freeswitchPINVOKE.switch_sql_queue_manager_size(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), index); + return ret; + } + + public static switch_status_t switch_sql_queue_manager_push_confirm(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_push_confirm(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup); + return ret; + } + + public static switch_status_t switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup); + return ret; + } + + public static switch_status_t switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager qmp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp)); + return ret; + } + + public static switch_status_t switch_sql_queue_manager_init_name(string name, SWIGTYPE_p_p_switch_sql_queue_manager qmp, uint numq, string dsn, uint max_trans, string pre_trans_execute, string post_trans_execute, string inner_pre_trans_execute, string inner_post_trans_execute) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_init_name(name, SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp), numq, dsn, max_trans, pre_trans_execute, post_trans_execute, inner_pre_trans_execute, inner_post_trans_execute); + return ret; + } + + public static switch_status_t switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager qm) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm)); + return ret; + } + + public static switch_status_t switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager qm) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm)); + return ret; + } + + public static switch_status_t switch_cache_db_execute_sql_event_callback(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_event_callback(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); + return ret; + } + + public static void switch_sql_queue_manager_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata) { + freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata)); + } + + public static void switch_sql_queue_manager_execute_sql_callback_err(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata) { + freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_callback_err(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata)); + } + + public static void switch_sql_queue_manager_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata) { + freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata)); + } + + public static void switch_sql_queue_manager_execute_sql_event_callback_err(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata) { + freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_event_callback_err(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata)); + } + + public static SWIGTYPE_p_pid_t switch_fork() { + SWIGTYPE_p_pid_t ret = new SWIGTYPE_p_pid_t(freeswitchPINVOKE.switch_fork(), true); + return ret; + } + + public static int switch_core_gen_certs(string prefix) { + int ret = freeswitchPINVOKE.switch_core_gen_certs(prefix); + return ret; + } + + public static int switch_core_cert_gen_fingerprint(string prefix, dtls_fingerprint_t fp) { + int ret = freeswitchPINVOKE.switch_core_cert_gen_fingerprint(prefix, dtls_fingerprint_t.getCPtr(fp)); + return ret; + } + + public static int switch_core_cert_expand_fingerprint(dtls_fingerprint_t fp, string str) { + int ret = freeswitchPINVOKE.switch_core_cert_expand_fingerprint(dtls_fingerprint_t.getCPtr(fp), str); + return ret; + } + + public static int switch_core_cert_verify(dtls_fingerprint_t fp) { + int ret = freeswitchPINVOKE.switch_core_cert_verify(dtls_fingerprint_t.getCPtr(fp)); + return ret; + } + + public static switch_status_t switch_core_session_refresh_video(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_refresh_video(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static int switch_stream_system_fork(string cmd, switch_stream_handle stream) { + int ret = freeswitchPINVOKE.switch_stream_system_fork(cmd, switch_stream_handle.getCPtr(stream)); + return ret; + } + + public static switch_call_direction_t switch_ice_direction(SWIGTYPE_p_switch_core_session session) { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_ice_direction(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static void switch_core_session_debug_pool(switch_stream_handle stream) { + freeswitchPINVOKE.switch_core_session_debug_pool(switch_stream_handle.getCPtr(stream)); + } + + public static string switch_version_major() { + string ret = freeswitchPINVOKE.switch_version_major(); + return ret; + } + + public static string switch_version_minor() { + string ret = freeswitchPINVOKE.switch_version_minor(); + return ret; + } + + public static string switch_version_micro() { + string ret = freeswitchPINVOKE.switch_version_micro(); + return ret; + } + + public static string switch_version_revision() { + string ret = freeswitchPINVOKE.switch_version_revision(); + return ret; + } + + public static string switch_version_revision_human() { + string ret = freeswitchPINVOKE.switch_version_revision_human(); + return ret; + } + + public static string switch_version_full() { + string ret = freeswitchPINVOKE.switch_version_full(); + return ret; + } + + public static string switch_version_full_human() { + string ret = freeswitchPINVOKE.switch_version_full_human(); + return ret; + } + + public static switch_status_t switch_loadable_module_init(switch_bool_t autoload) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_init((int)autoload); + return ret; + } + + public static void switch_loadable_module_shutdown() { + freeswitchPINVOKE.switch_loadable_module_shutdown(); + } + + public static switch_endpoint_interface switch_loadable_module_get_endpoint_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_endpoint_interface(name); + switch_endpoint_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_endpoint_interface(cPtr, false); + return ret; + } + + public static switch_codec_interface switch_loadable_module_get_codec_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_codec_interface(name); + switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); + return ret; + } + + public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels) { + string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels)); + return ret; + } + + public static switch_dialplan_interface switch_loadable_module_get_dialplan_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_dialplan_interface(name); + switch_dialplan_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_dialplan_interface(cPtr, false); + return ret; + } + + public static switch_status_t switch_loadable_module_enumerate_available(string dir_path, SWIGTYPE_p_f_p_void_p_q_const__char__int callback, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_enumerate_available(dir_path, SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_status_t switch_loadable_module_enumerate_loaded(SWIGTYPE_p_f_p_void_p_q_const__char__int callback, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_enumerate_loaded(SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_status_t switch_loadable_module_build_dynamic(string filename, SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t switch_module_load, SWIGTYPE_p_f_void__switch_status_t switch_module_runtime, SWIGTYPE_p_f_void__switch_status_t switch_module_shutdown, switch_bool_t runtime) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_build_dynamic(filename, SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t.getCPtr(switch_module_load), SWIGTYPE_p_f_void__switch_status_t.getCPtr(switch_module_runtime), SWIGTYPE_p_f_void__switch_status_t.getCPtr(switch_module_shutdown), (int)runtime); + return ret; + } + + public static switch_timer_interface switch_loadable_module_get_timer_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_timer_interface(name); + switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); + return ret; + } + + public static switch_application_interface switch_loadable_module_get_application_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_application_interface(name); + switch_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_application_interface(cPtr, false); + return ret; + } + + public static switch_chat_application_interface switch_loadable_module_get_chat_application_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_chat_application_interface(name); + switch_chat_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_application_interface(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_execute_chat_app(switch_event message, string app, string data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_execute_chat_app(switch_event.getCPtr(message), app, data); + return ret; + } + + public static switch_api_interface switch_loadable_module_get_api_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_api_interface(name); + switch_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_api_interface(cPtr, false); + return ret; + } + + public static switch_json_api_interface switch_loadable_module_get_json_api_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_json_api_interface(name); + switch_json_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_json_api_interface(cPtr, false); + return ret; + } + + public static switch_file_interface switch_loadable_module_get_file_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_file_interface(name); + switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); + return ret; + } + + public static switch_speech_interface switch_loadable_module_get_speech_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_speech_interface(name); + switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); + return ret; + } + + public static switch_asr_interface switch_loadable_module_get_asr_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_asr_interface(name); + switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); + return ret; + } + + public static switch_directory_interface switch_loadable_module_get_directory_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_directory_interface(name); + switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); + return ret; + } + + public static switch_chat_interface switch_loadable_module_get_chat_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_chat_interface(name); + switch_chat_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_interface(cPtr, false); + return ret; + } + + public static switch_say_interface switch_loadable_module_get_say_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_say_interface(name); + switch_say_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_say_interface(cPtr, false); + return ret; + } + + public static switch_management_interface switch_loadable_module_get_management_interface(string relative_oid) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_management_interface(relative_oid); + switch_management_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_management_interface(cPtr, false); + return ret; + } + + public static switch_limit_interface switch_loadable_module_get_limit_interface(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_limit_interface(name); + switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); + return ret; + } + + public static int switch_loadable_module_get_codecs(SWIGTYPE_p_p_switch_codec_implementation array, int arraylen) { + int ret = freeswitchPINVOKE.switch_loadable_module_get_codecs(SWIGTYPE_p_p_switch_codec_implementation.getCPtr(array), arraylen); + return ret; + } + + public static int switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation array, int arraylen, ref string prefs, int preflen) { + int ret = freeswitchPINVOKE.switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation.getCPtr(array), arraylen, ref prefs, preflen); + return ret; + } + + public static switch_status_t switch_api_execute(string cmd, string arg, SWIGTYPE_p_switch_core_session session, switch_stream_handle stream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_api_execute(cmd, arg, SWIGTYPE_p_switch_core_session.getCPtr(session), switch_stream_handle.getCPtr(stream)); + return ret; + } + + public static switch_status_t switch_json_api_execute(SWIGTYPE_p_cJSON json, SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_cJSON retval) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_json_api_execute(SWIGTYPE_p_cJSON.getCPtr(json), SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_cJSON.getCPtr(retval)); + return ret; + } + + public static switch_status_t switch_loadable_module_load_module(string dir, string fname, switch_bool_t runtime, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_load_module(dir, fname, (int)runtime, ref err); + return ret; + } + + public static switch_status_t switch_loadable_module_exists(string mod) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_exists(mod); + return ret; + } + + public static switch_status_t switch_loadable_module_unload_module(string dir, string fname, switch_bool_t force, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_unload_module(dir, fname, (int)force, ref err); + return ret; + } + + public static uint switch_core_codec_next_id() { + uint ret = freeswitchPINVOKE.switch_core_codec_next_id(); + return ret; + } + + public static int switch_check_interval(uint rate, uint ptime) { + int ret = freeswitchPINVOKE.switch_check_interval(rate, ptime); + return ret; + } + + public static void switch_core_codec_add_implementation(SWIGTYPE_p_apr_pool_t pool, switch_codec_interface codec_interface, switch_codec_type_t codec_type, byte ianacode, string iananame, string fmtp, uint samples_per_second, uint actual_samples_per_second, int bits_per_second, int microseconds_per_packet, uint samples_per_packet, uint decoded_bytes_per_packet, uint encoded_bytes_per_packet, byte number_of_channels, int codec_frames_per_packet, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t init, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t encode, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t decode, SWIGTYPE_p_f_p_switch_codec__switch_status_t destroy) { + freeswitchPINVOKE.switch_core_codec_add_implementation(SWIGTYPE_p_apr_pool_t.getCPtr(pool), switch_codec_interface.getCPtr(codec_interface), (int)codec_type, ianacode, iananame, fmtp, samples_per_second, actual_samples_per_second, bits_per_second, microseconds_per_packet, samples_per_packet, decoded_bytes_per_packet, encoded_bytes_per_packet, number_of_channels, codec_frames_per_packet, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t.getCPtr(init), SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(encode), SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(decode), SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(destroy)); + } + + public static switch_bool_t switch_core_codec_ready(switch_codec codec) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_codec_ready(switch_codec.getCPtr(codec)); + return ret; + } + + public static SWIGTYPE_p_f_p_switch_core_session__int switch_core_get_secondary_recover_callback(string key) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_get_secondary_recover_callback(key); + SWIGTYPE_p_f_p_switch_core_session__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__int(cPtr, false); + return ret; + } + + public static switch_status_t switch_core_register_secondary_recover_callback(string key, SWIGTYPE_p_f_p_switch_core_session__int cb) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_register_secondary_recover_callback(key, SWIGTYPE_p_f_p_switch_core_session__int.getCPtr(cb)); + return ret; + } + + public static void switch_core_unregister_secondary_recover_callback(string key) { + freeswitchPINVOKE.switch_core_unregister_secondary_recover_callback(key); + } + + public static void switch_console_loop() { + freeswitchPINVOKE.switch_console_loop(); + } + + public static switch_status_t switch_console_stream_raw_write(switch_stream_handle handle, SWIGTYPE_p_unsigned_char data, SWIGTYPE_p_switch_size_t datalen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_stream_raw_write(switch_stream_handle.getCPtr(handle), SWIGTYPE_p_unsigned_char.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_stream_write_file_contents(switch_stream_handle stream, string path) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_stream_write_file_contents(switch_stream_handle.getCPtr(stream), path); + return ret; + } + + public static switch_status_t switch_console_init(SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_console_shutdown() { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_shutdown(); + return ret; + } + + public static switch_status_t switch_console_add_complete_func(string name, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t cb) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_add_complete_func(name, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t.getCPtr(cb)); + return ret; + } + + public static switch_status_t switch_console_del_complete_func(string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_del_complete_func(name); + return ret; + } + + public static switch_status_t switch_console_run_complete_func(string func, string line, string last_word, SWIGTYPE_p_p_switch_console_callback_match matches) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_run_complete_func(func, line, last_word, SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches)); + return ret; + } + + public static void switch_console_push_match_unique(SWIGTYPE_p_p_switch_console_callback_match matches, string new_val) { + freeswitchPINVOKE.switch_console_push_match_unique(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches), new_val); + } + + public static void switch_console_push_match(SWIGTYPE_p_p_switch_console_callback_match matches, string new_val) { + freeswitchPINVOKE.switch_console_push_match(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches), new_val); + } + + public static void switch_console_free_matches(SWIGTYPE_p_p_switch_console_callback_match matches) { + freeswitchPINVOKE.switch_console_free_matches(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches)); + } + + public static byte switch_console_complete(string line, string last_word, SWIGTYPE_p_FILE console_out, switch_stream_handle stream, switch_xml xml) { + byte ret = freeswitchPINVOKE.switch_console_complete(line, last_word, SWIGTYPE_p_FILE.getCPtr(console_out), switch_stream_handle.getCPtr(stream), switch_xml.getCPtr(xml)); + return ret; + } + + public static void switch_console_sort_matches(switch_console_callback_match matches) { + freeswitchPINVOKE.switch_console_sort_matches(switch_console_callback_match.getCPtr(matches)); + } + + public static void switch_console_save_history() { + freeswitchPINVOKE.switch_console_save_history(); + } + + public static string switch_console_expand_alias(string cmd, string arg) { + string ret = freeswitchPINVOKE.switch_console_expand_alias(cmd, arg); + return ret; + } + + public static switch_status_t switch_console_execute(string xcmd, int rec, switch_stream_handle istream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_console_execute(xcmd, rec, switch_stream_handle.getCPtr(istream)); + return ret; + } + + public static uint switch_toupper(uint eax) { + uint ret = freeswitchPINVOKE.switch_toupper(eax); + return ret; + } + + public static uint switch_tolower(uint eax) { + uint ret = freeswitchPINVOKE.switch_tolower(eax); + return ret; + } + + public static void switch_toupper_max(string s) { + freeswitchPINVOKE.switch_toupper_max(s); + } + + public static void switch_tolower_max(string s) { + freeswitchPINVOKE.switch_tolower_max(s); + } + + public static int old_switch_toupper(int c) { + int ret = freeswitchPINVOKE.old_switch_toupper(c); + return ret; + } + + public static int old_switch_tolower(int c) { + int ret = freeswitchPINVOKE.old_switch_tolower(c); + return ret; + } + + public static int switch_isalnum(int c) { + int ret = freeswitchPINVOKE.switch_isalnum(c); + return ret; + } + + public static int switch_isalpha(int c) { + int ret = freeswitchPINVOKE.switch_isalpha(c); + return ret; + } + + public static int switch_iscntrl(int c) { + int ret = freeswitchPINVOKE.switch_iscntrl(c); + return ret; + } + + public static int switch_isdigit(int c) { + int ret = freeswitchPINVOKE.switch_isdigit(c); + return ret; + } + + public static int switch_isgraph(int c) { + int ret = freeswitchPINVOKE.switch_isgraph(c); + return ret; + } + + public static int switch_islower(int c) { + int ret = freeswitchPINVOKE.switch_islower(c); + return ret; + } + + public static int switch_isprint(int c) { + int ret = freeswitchPINVOKE.switch_isprint(c); + return ret; + } + + public static int switch_ispunct(int c) { + int ret = freeswitchPINVOKE.switch_ispunct(c); + return ret; + } + + public static int switch_isspace(int c) { + int ret = freeswitchPINVOKE.switch_isspace(c); + return ret; + } + + public static int switch_isupper(int c) { + int ret = freeswitchPINVOKE.switch_isupper(c); + return ret; + } + + public static int switch_isxdigit(int c) { + int ret = freeswitchPINVOKE.switch_isxdigit(c); + return ret; + } + + public static switch_bool_t switch_testv6_subnet(ip_t _ip, ip_t _net, ip_t _mask) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_testv6_subnet(ip_t.getCPtr(_ip), ip_t.getCPtr(_net), ip_t.getCPtr(_mask)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_print_host(SWIGTYPE_p_switch_sockaddr_t addr, string buf, SWIGTYPE_p_switch_size_t len) { + string ret = freeswitchPINVOKE.switch_print_host(SWIGTYPE_p_switch_sockaddr_t.getCPtr(addr), buf, SWIGTYPE_p_switch_size_t.getCPtr(len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int _zstr(string s) { + int ret = freeswitchPINVOKE._zstr(s); + return ret; + } + + public static switch_bool_t switch_is_moh(string s) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_moh(s); + return ret; + } + + public static string switch_strchr_strict(string arg0, char find, string allowed) { + string ret = freeswitchPINVOKE.switch_strchr_strict(arg0, find, allowed); + return ret; + } + + public static int switch_string_has_escaped_data(string arg0) { + int ret = freeswitchPINVOKE.switch_string_has_escaped_data(arg0); + return ret; + } + + public static switch_status_t switch_b64_encode(SWIGTYPE_p_unsigned_char arg0, SWIGTYPE_p_switch_size_t ilen, SWIGTYPE_p_unsigned_char arg2, SWIGTYPE_p_switch_size_t olen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_b64_encode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), SWIGTYPE_p_switch_size_t.getCPtr(ilen), SWIGTYPE_p_unsigned_char.getCPtr(arg2), SWIGTYPE_p_switch_size_t.getCPtr(olen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_b64_decode(string arg0, string arg1, SWIGTYPE_p_switch_size_t olen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_b64_decode(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(olen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_amp_encode(string s, string buf, SWIGTYPE_p_switch_size_t len) { + string ret = freeswitchPINVOKE.switch_amp_encode(s, buf, SWIGTYPE_p_switch_size_t.getCPtr(len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_bool_t switch_is_digit_string(string s) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_digit_string(s); + return ret; + } + + public static char switch_itodtmf(char i) { + char ret = freeswitchPINVOKE.switch_itodtmf(i); + return ret; + } + + public static int switch_dtmftoi(string s) { + int ret = freeswitchPINVOKE.switch_dtmftoi(s); + return ret; + } + + public static uint switch_known_bitrate(byte payload) { + uint ret = freeswitchPINVOKE.switch_known_bitrate(payload); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_fd_read_line(int fd, string buf, SWIGTYPE_p_switch_size_t len) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_fd_read_line(fd, buf, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_fd_read_dline(int fd, ref string buf, SWIGTYPE_p_switch_size_t len) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_fd_read_dline(fd, ref buf, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_fp_read_dline(SWIGTYPE_p_FILE fd, ref string buf, SWIGTYPE_p_switch_size_t len) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_fp_read_dline(SWIGTYPE_p_FILE.getCPtr(fd), ref buf, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); + return ret; + } + + public static switch_status_t switch_frame_alloc(SWIGTYPE_p_p_switch_frame frame, SWIGTYPE_p_switch_size_t size) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_alloc(SWIGTYPE_p_p_switch_frame.getCPtr(frame), SWIGTYPE_p_switch_size_t.getCPtr(size)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_frame_dup(switch_frame orig, SWIGTYPE_p_p_switch_frame clone) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_dup(switch_frame.getCPtr(orig), SWIGTYPE_p_p_switch_frame.getCPtr(clone)); + return ret; + } + + public static switch_status_t switch_frame_free(SWIGTYPE_p_p_switch_frame frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_free(SWIGTYPE_p_p_switch_frame.getCPtr(frame)); + return ret; + } + + public static switch_bool_t switch_is_number(string str) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_number(str); + return ret; + } + + public static switch_bool_t switch_is_leading_number(string str) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_leading_number(str); + return ret; + } + + public static string switch_find_parameter(string str, string param, SWIGTYPE_p_apr_pool_t pool) { + string ret = freeswitchPINVOKE.switch_find_parameter(str, param, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static int switch_true(string expr) { + int ret = freeswitchPINVOKE.switch_true(expr); + return ret; + } + + public static byte switch_true_byte(string expr) { + byte ret = freeswitchPINVOKE.switch_true_byte(expr); + return ret; + } + + public static int switch_false(string expr) { + int ret = freeswitchPINVOKE.switch_false(expr); + return ret; + } + + public static switch_status_t switch_resolve_host(string host, string buf, uint buflen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_resolve_host(host, buf, buflen); + return ret; + } + + public static switch_status_t switch_find_local_ip(string buf, int len, SWIGTYPE_p_int mask, int family) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_find_local_ip(buf, len, SWIGTYPE_p_int.getCPtr(mask), family); + return ret; + } + + public static switch_status_t switch_find_interface_ip(string buf, int len, SWIGTYPE_p_int mask, string ifname, int family) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_find_interface_ip(buf, len, SWIGTYPE_p_int.getCPtr(mask), ifname, family); + return ret; + } + + public static string get_addr(string buf, SWIGTYPE_p_switch_size_t len, SWIGTYPE_p_sockaddr sa, SWIGTYPE_p_socklen_t salen) { + string ret = freeswitchPINVOKE.get_addr(buf, SWIGTYPE_p_switch_size_t.getCPtr(len), SWIGTYPE_p_sockaddr.getCPtr(sa), SWIGTYPE_p_socklen_t.getCPtr(salen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string get_addr6(string buf, SWIGTYPE_p_switch_size_t len, SWIGTYPE_p_sockaddr_in6 sa, SWIGTYPE_p_socklen_t salen) { + string ret = freeswitchPINVOKE.get_addr6(buf, SWIGTYPE_p_switch_size_t.getCPtr(len), SWIGTYPE_p_sockaddr_in6.getCPtr(sa), SWIGTYPE_p_socklen_t.getCPtr(salen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int get_addr_int(SWIGTYPE_p_switch_sockaddr_t sa) { + int ret = freeswitchPINVOKE.get_addr_int(SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa)); + return ret; + } + + public static int switch_cmp_addr(SWIGTYPE_p_switch_sockaddr_t sa1, SWIGTYPE_p_switch_sockaddr_t sa2) { + int ret = freeswitchPINVOKE.switch_cmp_addr(SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa1), SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa2)); + return ret; + } + + public static ushort get_port(SWIGTYPE_p_sockaddr sa) { + ushort ret = freeswitchPINVOKE.get_port(SWIGTYPE_p_sockaddr.getCPtr(sa)); + return ret; + } + + public static int switch_build_uri(string uri, SWIGTYPE_p_switch_size_t size, string scheme, string user, SWIGTYPE_p_switch_sockaddr_t sa, int flags) { + int ret = freeswitchPINVOKE.switch_build_uri(uri, SWIGTYPE_p_switch_size_t.getCPtr(size), scheme, user, SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa), flags); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int switch_errno_is_break(int errcode) { + int ret = freeswitchPINVOKE.switch_errno_is_break(errcode); + return ret; + } + + public static string switch_priority_name(switch_priority_t priority) { + string ret = freeswitchPINVOKE.switch_priority_name((int)priority); + return ret; + } + + public static char switch_rfc2833_to_char(int arg0) { + char ret = freeswitchPINVOKE.switch_rfc2833_to_char(arg0); + return ret; + } + + public static byte switch_char_to_rfc2833(char key) { + byte ret = freeswitchPINVOKE.switch_char_to_rfc2833(key); + return ret; + } + + public static string switch_sanitize_number(string number) { + string ret = freeswitchPINVOKE.switch_sanitize_number(number); + return ret; + } + + public static switch_bool_t switch_string_var_check(string s, switch_bool_t disable) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_string_var_check(s, (int)disable); + return ret; + } + + public static switch_bool_t switch_string_var_check_const(string s) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_string_var_check_const(s); + return ret; + } + + public static string switch_var_clean_string(string s) { + string ret = freeswitchPINVOKE.switch_var_clean_string(s); + return ret; + } + + public static string switch_clean_string(string s) { + string ret = freeswitchPINVOKE.switch_clean_string(s); + return ret; + } + + public static string switch_clean_name_string(string s) { + string ret = freeswitchPINVOKE.switch_clean_name_string(s); + return ret; + } + + public static int switch_safe_atoi(string nptr, int dft) { + int ret = freeswitchPINVOKE.switch_safe_atoi(nptr, dft); + return ret; + } + + public static string switch_safe_strdup(string it) { + string ret = freeswitchPINVOKE.switch_safe_strdup(it); + return ret; + } + + public static string switch_lc_strdup(string it) { + string ret = freeswitchPINVOKE.switch_lc_strdup(it); + return ret; + } + + public static string switch_uc_strdup(string it) { + string ret = freeswitchPINVOKE.switch_uc_strdup(it); + return ret; + } + + public static switch_bool_t switch_strstr(string s, string q) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_strstr(s, q); + return ret; + } + + public static SWIGTYPE_p_switch_time_t switch_str_time(string arg0) { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_str_time(arg0), true); + return ret; + } + + public static uint switch_separate_string(string buf, char delim, ref string array, uint arraylen) { + uint ret = freeswitchPINVOKE.switch_separate_string(buf, delim, ref array, arraylen); + return ret; + } + + public static uint switch_separate_string_string(string buf, string delim, ref string array, uint arraylen) { + uint ret = freeswitchPINVOKE.switch_separate_string_string(buf, delim, ref array, arraylen); + return ret; + } + + public static string switch_strip_spaces(string str, switch_bool_t dup) { + string ret = freeswitchPINVOKE.switch_strip_spaces(str, (int)dup); + return ret; + } + + public static string switch_strip_whitespace(string str) { + string ret = freeswitchPINVOKE.switch_strip_whitespace(str); + return ret; + } + + public static string switch_strip_commas(string arg0, string arg1, SWIGTYPE_p_switch_size_t len) { + string ret = freeswitchPINVOKE.switch_strip_commas(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_strip_nonnumerics(string arg0, string arg1, SWIGTYPE_p_switch_size_t len) { + string ret = freeswitchPINVOKE.switch_strip_nonnumerics(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_separate_paren_args(string str) { + string ret = freeswitchPINVOKE.switch_separate_paren_args(str); + return ret; + } + + public static string switch_stristr(string instr, string str) { + string ret = freeswitchPINVOKE.switch_stristr(instr, str); + return ret; + } + + public static switch_bool_t switch_is_lan_addr(string ip) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_lan_addr(ip); + return ret; + } + + public static string switch_replace_char(string str, char from, char to, switch_bool_t dup) { + string ret = freeswitchPINVOKE.switch_replace_char(str, from, to, (int)dup); + return ret; + } + + public static switch_bool_t switch_ast2regex(string pat, string rbuf, uint len) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ast2regex(pat, rbuf, len); + return ret; + } + + public static string switch_escape_char(SWIGTYPE_p_apr_pool_t pool, string arg1, string delim, char esc) { + string ret = freeswitchPINVOKE.switch_escape_char(SWIGTYPE_p_apr_pool_t.getCPtr(pool), arg1, delim, esc); + return ret; + } + + public static string switch_escape_string(string arg0, string arg1, SWIGTYPE_p_switch_size_t outlen) { + string ret = freeswitchPINVOKE.switch_escape_string(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(outlen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_escape_string_pool(string arg0, SWIGTYPE_p_apr_pool_t pool) { + string ret = freeswitchPINVOKE.switch_escape_string_pool(arg0, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static int switch_socket_waitfor(SWIGTYPE_p_switch_pollfd_t poll, int ms) { + int ret = freeswitchPINVOKE.switch_socket_waitfor(SWIGTYPE_p_switch_pollfd_t.getCPtr(poll), ms); + return ret; + } + + public static string switch_cut_path(string arg0) { + string ret = freeswitchPINVOKE.switch_cut_path(arg0); + return ret; + } + + public static string switch_string_replace(string arg0, string search, string replace) { + string ret = freeswitchPINVOKE.switch_string_replace(arg0, search, replace); + return ret; + } + + public static switch_status_t switch_string_match(string arg0, uint string_len, string search, uint search_len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_string_match(arg0, string_len, search, search_len); + return ret; + } + + public static int switch_strcasecmp_any(string str) { + int ret = freeswitchPINVOKE.switch_strcasecmp_any(str); + return ret; + } + + public static string switch_util_quote_shell_arg(string arg0) { + string ret = freeswitchPINVOKE.switch_util_quote_shell_arg(arg0); + return ret; + } + + public static string switch_util_quote_shell_arg_pool(string arg0, SWIGTYPE_p_apr_pool_t pool) { + string ret = freeswitchPINVOKE.switch_util_quote_shell_arg_pool(arg0, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static int switch_needs_url_encode(string s) { + int ret = freeswitchPINVOKE.switch_needs_url_encode(s); + return ret; + } + + public static string switch_url_encode(string url, string buf, uint len) { + string ret = freeswitchPINVOKE.switch_url_encode(url, buf, len); + return ret; + } + + public static string switch_url_decode(string s) { + string ret = freeswitchPINVOKE.switch_url_decode(s); + return ret; + } + + public static switch_bool_t switch_simple_email(string to, string from, string headers, string body, string file, string convert_cmd, string convert_ext) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_simple_email(to, from, headers, body, file, convert_cmd, convert_ext); + return ret; + } + + public static string switch_find_end_paren(string s, char open, char close) { + string ret = freeswitchPINVOKE.switch_find_end_paren(s, open, close); + return ret; + } + + public static void switch_separate_file_params(string file, ref string file_portion, ref string params_portion) { + freeswitchPINVOKE.switch_separate_file_params(file, ref file_portion, ref params_portion); + } + + public static switch_bool_t switch_is_file_path(string file) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_file_path(file); + return ret; + } + + public static int switch_parse_cidr(string arg0, ip_t ip, ip_t mask, SWIGTYPE_p_unsigned_long bitp) { + int ret = freeswitchPINVOKE.switch_parse_cidr(arg0, ip_t.getCPtr(ip), ip_t.getCPtr(mask), SWIGTYPE_p_unsigned_long.getCPtr(bitp)); + return ret; + } + + public static switch_status_t switch_network_list_create(SWIGTYPE_p_p_switch_network_list list, string name, switch_bool_t default_type, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_network_list_create(SWIGTYPE_p_p_switch_network_list.getCPtr(list), name, (int)default_type, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_network_list_add_cidr_token(SWIGTYPE_p_switch_network_list list, string cidr_str, switch_bool_t ok, string token) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_network_list_add_cidr_token(SWIGTYPE_p_switch_network_list.getCPtr(list), cidr_str, (int)ok, token); + return ret; + } + + public static switch_status_t switch_network_list_add_host_mask(SWIGTYPE_p_switch_network_list list, string host, string mask_str, switch_bool_t ok) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_network_list_add_host_mask(SWIGTYPE_p_switch_network_list.getCPtr(list), host, mask_str, (int)ok); + return ret; + } + + public static switch_bool_t switch_network_list_validate_ip_token(SWIGTYPE_p_switch_network_list list, uint ip, ref string token) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_network_list_validate_ip_token(SWIGTYPE_p_switch_network_list.getCPtr(list), ip, ref token); + return ret; + } + + public static switch_bool_t switch_network_list_validate_ip6_token(SWIGTYPE_p_switch_network_list list, ip_t ip, ref string token) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_network_list_validate_ip6_token(SWIGTYPE_p_switch_network_list.getCPtr(list), ip_t.getCPtr(ip), ref token); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_dow_int2str(int val) { + string ret = freeswitchPINVOKE.switch_dow_int2str(val); + return ret; + } + + public static int switch_dow_str2int(string exp) { + int ret = freeswitchPINVOKE.switch_dow_str2int(exp); + return ret; + } + + public static switch_bool_t switch_dow_cmp(string exp, int val) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_dow_cmp(exp, val); + return ret; + } + + public static int switch_number_cmp(string exp, int val) { + int ret = freeswitchPINVOKE.switch_number_cmp(exp, val); + return ret; + } + + public static int switch_tod_cmp(string exp, int val) { + int ret = freeswitchPINVOKE.switch_tod_cmp(exp, val); + return ret; + } + + public static int switch_fulldate_cmp(string exp, SWIGTYPE_p_switch_time_t ts) { + int ret = freeswitchPINVOKE.switch_fulldate_cmp(exp, SWIGTYPE_p_switch_time_t.getCPtr(ts)); + return ret; + } + + public static void switch_split_date(string exp, SWIGTYPE_p_int year, SWIGTYPE_p_int month, SWIGTYPE_p_int day) { + freeswitchPINVOKE.switch_split_date(exp, SWIGTYPE_p_int.getCPtr(year), SWIGTYPE_p_int.getCPtr(month), SWIGTYPE_p_int.getCPtr(day)); + } + + public static void switch_split_time(string exp, SWIGTYPE_p_int hour, SWIGTYPE_p_int min, SWIGTYPE_p_int sec) { + freeswitchPINVOKE.switch_split_time(exp, SWIGTYPE_p_int.getCPtr(hour), SWIGTYPE_p_int.getCPtr(min), SWIGTYPE_p_int.getCPtr(sec)); + } + + public static int switch_split_user_domain(string arg0, ref string user, ref string domain) { + int ret = freeswitchPINVOKE.switch_split_user_domain(arg0, ref user, ref domain); + return ret; + } + + public static string switch_uuid_str(string buf, SWIGTYPE_p_switch_size_t len) { + string ret = freeswitchPINVOKE.switch_uuid_str(buf, SWIGTYPE_p_switch_size_t.getCPtr(len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_format_number(string num) { + string ret = freeswitchPINVOKE.switch_format_number(num); + return ret; + } + + public static uint switch_atoui(string nptr) { + uint ret = freeswitchPINVOKE.switch_atoui(nptr); + return ret; + } + + public static uint switch_atoul(string nptr) { + uint ret = freeswitchPINVOKE.switch_atoul(nptr); + return ret; + } + + public static string switch_strerror_r(int errnum, string buf, SWIGTYPE_p_switch_size_t buflen) { + string ret = freeswitchPINVOKE.switch_strerror_r(errnum, buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int switch_wait_sock(int sock, uint ms, switch_poll_t flags) { + int ret = freeswitchPINVOKE.switch_wait_sock(sock, ms, (int)flags); + return ret; + } + + public static int switch_wait_socklist(switch_waitlist_t waitlist, uint len, uint ms) { + int ret = freeswitchPINVOKE.switch_wait_socklist(switch_waitlist_t.getCPtr(waitlist), len, ms); + return ret; + } + + public static switch_status_t switch_http_parse_header(string buffer, uint datalen, switch_http_request_t request) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_http_parse_header(buffer, datalen, switch_http_request_t.getCPtr(request)); + return ret; + } + + public static void switch_http_free_request(switch_http_request_t request) { + freeswitchPINVOKE.switch_http_free_request(switch_http_request_t.getCPtr(request)); + } + + public static void switch_http_dump_request(switch_http_request_t request) { + freeswitchPINVOKE.switch_http_dump_request(switch_http_request_t.getCPtr(request)); + } + + public static void switch_http_parse_qs(switch_http_request_t request, string qs) { + freeswitchPINVOKE.switch_http_parse_qs(switch_http_request_t.getCPtr(request), qs); + } + + public static switch_caller_extension switch_caller_extension_new(SWIGTYPE_p_switch_core_session session, string extension_name, string extension_number) { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_new(SWIGTYPE_p_switch_core_session.getCPtr(session), extension_name, extension_number); + switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); + return ret; + } + + public static switch_status_t switch_caller_extension_clone(SWIGTYPE_p_p_switch_caller_extension new_ext, switch_caller_extension orig, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_caller_extension_clone(SWIGTYPE_p_p_switch_caller_extension.getCPtr(new_ext), switch_caller_extension.getCPtr(orig), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static void switch_caller_extension_add_application(SWIGTYPE_p_switch_core_session session, switch_caller_extension caller_extension, string application_name, string extra_data) { + freeswitchPINVOKE.switch_caller_extension_add_application(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_caller_extension.getCPtr(caller_extension), application_name, extra_data); + } + + public static void switch_caller_extension_add_application_printf(SWIGTYPE_p_switch_core_session session, switch_caller_extension caller_extension, string application_name, string fmt) { + freeswitchPINVOKE.switch_caller_extension_add_application_printf(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_caller_extension.getCPtr(caller_extension), application_name, fmt); + } + + public static string switch_caller_get_field_by_name(switch_caller_profile caller_profile, string name) { + string ret = freeswitchPINVOKE.switch_caller_get_field_by_name(switch_caller_profile.getCPtr(caller_profile), name); + return ret; + } + + public static switch_caller_profile switch_caller_profile_new(SWIGTYPE_p_apr_pool_t pool, string username, string dialplan, string caller_id_name, string caller_id_number, string network_addr, string ani, string aniii, string rdnis, string source, string context, string destination_number) { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_new(SWIGTYPE_p_apr_pool_t.getCPtr(pool), username, dialplan, caller_id_name, caller_id_number, network_addr, ani, aniii, rdnis, source, context, destination_number); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static switch_caller_profile switch_caller_profile_clone(SWIGTYPE_p_switch_core_session session, switch_caller_profile tocopy) { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_clone(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_caller_profile.getCPtr(tocopy)); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static switch_caller_profile switch_caller_profile_dup(SWIGTYPE_p_apr_pool_t pool, switch_caller_profile tocopy) { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_dup(SWIGTYPE_p_apr_pool_t.getCPtr(pool), switch_caller_profile.getCPtr(tocopy)); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static void switch_caller_profile_event_set_data(switch_caller_profile caller_profile, string prefix, switch_event arg2) { + freeswitchPINVOKE.switch_caller_profile_event_set_data(switch_caller_profile.getCPtr(caller_profile), prefix, switch_event.getCPtr(arg2)); + } + + public static switch_channel_state_t switch_channel_get_state(SWIGTYPE_p_switch_channel channel) { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_get_state(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_channel_state_t switch_channel_get_running_state(SWIGTYPE_p_switch_channel channel) { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_get_running_state(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static int switch_channel_check_signal(SWIGTYPE_p_switch_channel channel, switch_bool_t in_thread_only) { + int ret = freeswitchPINVOKE.switch_channel_check_signal(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)in_thread_only); + return ret; + } + + public static int switch_channel_test_ready(SWIGTYPE_p_switch_channel channel, switch_bool_t check_ready, switch_bool_t check_media) { + int ret = freeswitchPINVOKE.switch_channel_test_ready(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)check_ready, (int)check_media); + return ret; + } + + public static void switch_channel_wait_for_state(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel other_channel, switch_channel_state_t want_state) { + freeswitchPINVOKE.switch_channel_wait_for_state(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(other_channel), (int)want_state); + } + + public static void switch_channel_wait_for_state_timeout(SWIGTYPE_p_switch_channel other_channel, switch_channel_state_t want_state, uint timeout) { + freeswitchPINVOKE.switch_channel_wait_for_state_timeout(SWIGTYPE_p_switch_channel.getCPtr(other_channel), (int)want_state, timeout); + } + + public static switch_status_t switch_channel_wait_for_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t want_flag, switch_bool_t pres, uint to, SWIGTYPE_p_switch_channel super_channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_wait_for_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)want_flag, (int)pres, to, SWIGTYPE_p_switch_channel.getCPtr(super_channel)); + return ret; + } + + public static switch_channel_state_t switch_channel_perform_set_state(SWIGTYPE_p_switch_channel channel, string file, string func, int line, switch_channel_state_t state) { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_set_state(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line, (int)state); + return ret; + } + + public static switch_channel_state_t switch_channel_perform_set_running_state(SWIGTYPE_p_switch_channel channel, switch_channel_state_t state, string file, string func, int line) { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_set_running_state(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)state, file, func, line); + return ret; + } + + public static switch_call_cause_t switch_channel_str2cause(string str) { + switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_str2cause(str); + return ret; + } + + public static switch_call_cause_t switch_channel_get_cause(SWIGTYPE_p_switch_channel channel) { + switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_get_cause(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_call_cause_t switch_channel_cause_q850(switch_call_cause_t cause) { + switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_cause_q850((int)cause); + return ret; + } + + public static switch_call_cause_t switch_channel_get_cause_q850(SWIGTYPE_p_switch_channel channel) { + switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_channel_get_cause_q850(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static SWIGTYPE_p_switch_call_cause_t switch_channel_get_cause_ptr(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_cause_ptr(SWIGTYPE_p_switch_channel.getCPtr(channel)); + SWIGTYPE_p_switch_call_cause_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_call_cause_t(cPtr, false); + return ret; + } + + public static string switch_channel_cause2str(switch_call_cause_t cause) { + string ret = freeswitchPINVOKE.switch_channel_cause2str((int)cause); + return ret; + } + + public static switch_channel_timetable switch_channel_get_timetable(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_timetable(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); + return ret; + } + + public static switch_status_t switch_channel_alloc(SWIGTYPE_p_p_switch_channel channel, switch_call_direction_t direction, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_alloc(SWIGTYPE_p_p_switch_channel.getCPtr(channel), (int)direction, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_channel_init(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_core_session session, switch_channel_state_t state, switch_channel_flag_t flag) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_init(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_core_session.getCPtr(session), (int)state, (int)flag); + return ret; + } + + public static void switch_channel_set_presence_data_vals(SWIGTYPE_p_switch_channel channel, string presence_data_cols) { + freeswitchPINVOKE.switch_channel_set_presence_data_vals(SWIGTYPE_p_switch_channel.getCPtr(channel), presence_data_cols); + } + + public static void switch_channel_perform_presence(SWIGTYPE_p_switch_channel channel, string rpid, string status, string id, string file, string func, int line) { + freeswitchPINVOKE.switch_channel_perform_presence(SWIGTYPE_p_switch_channel.getCPtr(channel), rpid, status, id, file, func, line); + } + + public static void switch_channel_uninit(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_uninit(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_set_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { + freeswitchPINVOKE.switch_channel_set_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); + } + + public static void switch_channel_step_caller_profile(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_step_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_caller_profile switch_channel_get_caller_profile(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static void switch_channel_set_originator_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { + freeswitchPINVOKE.switch_channel_set_originator_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); + } + + public static void switch_channel_set_hunt_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { + freeswitchPINVOKE.switch_channel_set_hunt_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); + } + + public static switch_caller_profile switch_channel_get_originator_caller_profile(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_originator_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static void switch_channel_set_originatee_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { + freeswitchPINVOKE.switch_channel_set_originatee_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); + } + + public static switch_caller_profile switch_channel_get_originatee_caller_profile(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_originatee_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static void switch_channel_set_origination_caller_profile(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile) { + freeswitchPINVOKE.switch_channel_set_origination_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile)); + } + + public static switch_caller_profile switch_channel_get_origination_caller_profile(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_origination_caller_profile(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + + public static string switch_channel_get_uuid(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_uuid(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_status_t switch_channel_set_profile_var(SWIGTYPE_p_switch_channel channel, string name, string val) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_profile_var(SWIGTYPE_p_switch_channel.getCPtr(channel), name, val); + return ret; + } + + public static switch_status_t switch_channel_set_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check); + return ret; + } + + public static switch_status_t switch_channel_add_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check, switch_stack_t stack) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_add_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check, (int)stack); + return ret; + } + + public static switch_status_t switch_channel_set_variable_printf(SWIGTYPE_p_switch_channel channel, string varname, string fmt) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, fmt); + return ret; + } + + public static switch_status_t switch_channel_set_variable_name_printf(SWIGTYPE_p_switch_channel channel, string val, string fmt) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_name_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), val, fmt); + return ret; + } + + public static switch_status_t switch_channel_set_variable_partner_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_partner_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check); + return ret; + } + + public static string switch_channel_get_variable_partner(SWIGTYPE_p_switch_channel channel, string varname) { + string ret = freeswitchPINVOKE.switch_channel_get_variable_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), varname); + return ret; + } + + public static string switch_channel_get_hold_music(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_hold_music(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static string switch_channel_get_hold_music_partner(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_hold_music_partner(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static uint switch_channel_del_variable_prefix(SWIGTYPE_p_switch_channel channel, string prefix) { + uint ret = freeswitchPINVOKE.switch_channel_del_variable_prefix(SWIGTYPE_p_switch_channel.getCPtr(channel), prefix); + return ret; + } + + public static switch_status_t switch_channel_transfer_variable_prefix(SWIGTYPE_p_switch_channel orig_channel, SWIGTYPE_p_switch_channel new_channel, string prefix) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_transfer_variable_prefix(SWIGTYPE_p_switch_channel.getCPtr(orig_channel), SWIGTYPE_p_switch_channel.getCPtr(new_channel), prefix); + return ret; + } + + public static switch_status_t switch_channel_export_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string val, string export_varname, switch_bool_t var_check) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_export_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, val, export_varname, (int)var_check); + return ret; + } + + public static void switch_channel_process_export(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel peer_channel, switch_event var_event, string export_varname) { + freeswitchPINVOKE.switch_channel_process_export(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(peer_channel), switch_event.getCPtr(var_event), export_varname); + } + + public static switch_status_t switch_channel_export_variable_printf(SWIGTYPE_p_switch_channel channel, string varname, string export_varname, string fmt) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_export_variable_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, export_varname, fmt); + return ret; + } + + public static void switch_channel_set_scope_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) { + freeswitchPINVOKE.switch_channel_set_scope_variables(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); + } + + public static switch_status_t switch_channel_get_scope_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_get_scope_variables(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_p_switch_event.getCPtr(arg1)); + return ret; + } + + public static string switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel channel, string varname, switch_bool_t dup, int idx) { + string ret = freeswitchPINVOKE.switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, (int)dup, idx); + return ret; + } + + public static switch_status_t switch_channel_get_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) { + 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)); + return ret; + } + + public static switch_status_t switch_channel_pass_callee_id(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel other_channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_pass_callee_id(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(other_channel)); + return ret; + } + + public static switch_event_header switch_channel_variable_first(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_variable_first(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); + return ret; + } + + public static void switch_channel_variable_last(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_variable_last(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_restart(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_restart(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_status_t switch_channel_caller_extension_masquerade(SWIGTYPE_p_switch_channel orig_channel, SWIGTYPE_p_switch_channel new_channel, uint offset) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_caller_extension_masquerade(SWIGTYPE_p_switch_channel.getCPtr(orig_channel), SWIGTYPE_p_switch_channel.getCPtr(new_channel), offset); + return ret; + } + + public static void switch_channel_set_caller_extension(SWIGTYPE_p_switch_channel channel, switch_caller_extension caller_extension) { + freeswitchPINVOKE.switch_channel_set_caller_extension(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_extension.getCPtr(caller_extension)); + } + + public static void switch_channel_invert_cid(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_invert_cid(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_flip_cid(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_flip_cid(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_sort_cid(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_sort_cid(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_caller_extension switch_channel_get_caller_extension(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_caller_extension(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); + return ret; + } + + public static uint switch_channel_test_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + uint ret = freeswitchPINVOKE.switch_channel_test_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + return ret; + } + + public static void switch_channel_set_flag_value(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag, uint value) { + freeswitchPINVOKE.switch_channel_set_flag_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag, value); + } + + public static void switch_channel_set_flag_recursive(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + freeswitchPINVOKE.switch_channel_set_flag_recursive(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + } + + public static void switch_channel_set_cap_value(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap, uint value) { + freeswitchPINVOKE.switch_channel_set_cap_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap, value); + } + + public static void switch_channel_clear_cap(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) { + freeswitchPINVOKE.switch_channel_clear_cap(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap); + } + + public static uint switch_channel_test_cap(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) { + uint ret = freeswitchPINVOKE.switch_channel_test_cap(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap); + return ret; + } + + public static uint switch_channel_test_cap_partner(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) { + uint ret = freeswitchPINVOKE.switch_channel_test_cap_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap); + return ret; + } + + public static switch_bool_t switch_channel_set_flag_partner(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_channel_set_flag_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + return ret; + } + + public static switch_bool_t switch_channel_clear_flag_partner(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_channel_clear_flag_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + return ret; + } + + public static uint switch_channel_test_flag_partner(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + uint ret = freeswitchPINVOKE.switch_channel_test_flag_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + return ret; + } + + public static void switch_channel_set_state_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + freeswitchPINVOKE.switch_channel_set_state_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + } + + public static void switch_channel_clear_state_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + freeswitchPINVOKE.switch_channel_clear_state_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + } + + public static void switch_channel_clear_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + freeswitchPINVOKE.switch_channel_clear_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + } + + public static void switch_channel_clear_flag_recursive(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) { + freeswitchPINVOKE.switch_channel_clear_flag_recursive(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag); + } + + public static switch_status_t switch_channel_perform_answer(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_answer(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); + return ret; + } + + public static switch_status_t switch_channel_perform_mark_answered(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_mark_answered(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); + return ret; + } + + public static void switch_channel_check_zrtp(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_check_zrtp(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_status_t switch_channel_perform_ring_ready_value(SWIGTYPE_p_switch_channel channel, switch_ring_ready_t rv, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_ring_ready_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)rv, file, func, line); + return ret; + } + + public static switch_status_t switch_channel_perform_pre_answer(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_pre_answer(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); + return ret; + } + + public static switch_status_t switch_channel_perform_mark_pre_answered(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_mark_pre_answered(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); + return ret; + } + + public static switch_status_t switch_channel_perform_mark_ring_ready_value(SWIGTYPE_p_switch_channel channel, switch_ring_ready_t rv, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_perform_mark_ring_ready_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)rv, file, func, line); + return ret; + } + + public static int switch_channel_add_state_handler(SWIGTYPE_p_switch_channel channel, switch_state_handler_table state_handler) { + int ret = freeswitchPINVOKE.switch_channel_add_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_state_handler_table.getCPtr(state_handler)); + return ret; + } + + public static void switch_channel_clear_state_handler(SWIGTYPE_p_switch_channel channel, switch_state_handler_table state_handler) { + freeswitchPINVOKE.switch_channel_clear_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_state_handler_table.getCPtr(state_handler)); + } + + public static switch_state_handler_table switch_channel_get_state_handler(SWIGTYPE_p_switch_channel channel, int index) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), index); + switch_state_handler_table ret = (cPtr == IntPtr.Zero) ? null : new switch_state_handler_table(cPtr, false); + return ret; + } + + public static switch_status_t switch_channel_set_private(SWIGTYPE_p_switch_channel channel, string key, SWIGTYPE_p_void private_info) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_private(SWIGTYPE_p_switch_channel.getCPtr(channel), key, SWIGTYPE_p_void.getCPtr(private_info)); + return ret; + } + + public static SWIGTYPE_p_void switch_channel_get_private(SWIGTYPE_p_switch_channel channel, string key) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_private(SWIGTYPE_p_switch_channel.getCPtr(channel), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_void switch_channel_get_private_partner(SWIGTYPE_p_switch_channel channel, string key) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_private_partner(SWIGTYPE_p_switch_channel.getCPtr(channel), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static switch_status_t switch_channel_set_name(SWIGTYPE_p_switch_channel channel, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_name(SWIGTYPE_p_switch_channel.getCPtr(channel), name); + return ret; + } + + public static string switch_channel_get_name(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_name(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_channel_state_t switch_channel_perform_hangup(SWIGTYPE_p_switch_channel channel, string file, string func, int line, switch_call_cause_t hangup_cause) { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_hangup(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line, (int)hangup_cause); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_channel_has_dtmf(SWIGTYPE_p_switch_channel channel) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_channel_has_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel)), true); + return ret; + } + + public static switch_status_t switch_channel_dtmf_lock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dtmf_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_status_t switch_channel_try_dtmf_lock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_try_dtmf_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_status_t switch_channel_dtmf_unlock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dtmf_unlock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_status_t switch_channel_queue_dtmf(SWIGTYPE_p_switch_channel channel, switch_dtmf_t dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_queue_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_dtmf_t.getCPtr(dtmf)); + return ret; + } + + public static switch_status_t switch_channel_queue_dtmf_string(SWIGTYPE_p_switch_channel channel, string dtmf_string) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_queue_dtmf_string(SWIGTYPE_p_switch_channel.getCPtr(channel), dtmf_string); + return ret; + } + + public static switch_status_t switch_channel_dequeue_dtmf(SWIGTYPE_p_switch_channel channel, switch_dtmf_t dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dequeue_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_dtmf_t.getCPtr(dtmf)); + return ret; + } + + public static void switch_channel_flush_dtmf(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_flush_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static SWIGTYPE_p_switch_size_t switch_channel_dequeue_dtmf_string(SWIGTYPE_p_switch_channel channel, string dtmf_str, SWIGTYPE_p_switch_size_t len) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_channel_dequeue_dtmf_string(SWIGTYPE_p_switch_channel.getCPtr(channel), dtmf_str, SWIGTYPE_p_switch_size_t.getCPtr(len)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static string switch_channel_state_name(switch_channel_state_t state) { + string ret = freeswitchPINVOKE.switch_channel_state_name((int)state); + return ret; + } + + public static switch_channel_state_t switch_channel_name_state(string name) { + switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_name_state(name); + return ret; + } + + public static void switch_channel_event_set_data(SWIGTYPE_p_switch_channel channel, switch_event arg1) { + freeswitchPINVOKE.switch_channel_event_set_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1)); + } + + public static void switch_channel_event_set_basic_data(SWIGTYPE_p_switch_channel channel, switch_event arg1) { + freeswitchPINVOKE.switch_channel_event_set_basic_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1)); + } + + public static void switch_channel_event_set_extended_data(SWIGTYPE_p_switch_channel channel, switch_event arg1) { + freeswitchPINVOKE.switch_channel_event_set_extended_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1)); + } + + public static string switch_channel_expand_variables_check(SWIGTYPE_p_switch_channel channel, string arg1, switch_event var_list, switch_event api_list, uint recur) { + string ret = freeswitchPINVOKE.switch_channel_expand_variables_check(SWIGTYPE_p_switch_channel.getCPtr(channel), arg1, switch_event.getCPtr(var_list), switch_event.getCPtr(api_list), recur); + return ret; + } + + public static string switch_channel_build_param_string(SWIGTYPE_p_switch_channel channel, switch_caller_profile caller_profile, string prefix) { + string ret = freeswitchPINVOKE.switch_channel_build_param_string(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_profile.getCPtr(caller_profile), prefix); + return ret; + } + + public static switch_status_t switch_channel_set_timestamps(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_timestamps(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static void switch_channel_perform_audio_sync(SWIGTYPE_p_switch_channel channel, string file, string func, int line) { + freeswitchPINVOKE.switch_channel_perform_audio_sync(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line); + } + + public static void switch_channel_set_private_flag(SWIGTYPE_p_switch_channel channel, uint flags) { + freeswitchPINVOKE.switch_channel_set_private_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + } + + public static void switch_channel_clear_private_flag(SWIGTYPE_p_switch_channel channel, uint flags) { + freeswitchPINVOKE.switch_channel_clear_private_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + } + + public static int switch_channel_test_private_flag(SWIGTYPE_p_switch_channel channel, uint flags) { + int ret = freeswitchPINVOKE.switch_channel_test_private_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + return ret; + } + + public static void switch_channel_set_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { + freeswitchPINVOKE.switch_channel_set_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + } + + public static void switch_channel_clear_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { + freeswitchPINVOKE.switch_channel_clear_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + } + + public static int switch_channel_test_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { + int ret = freeswitchPINVOKE.switch_channel_test_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + return ret; + } + + public static void switch_channel_set_bridge_time(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_set_bridge_time(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_set_hangup_time(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_set_hangup_time(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_call_direction_t switch_channel_direction(SWIGTYPE_p_switch_channel channel) { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_channel_direction(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_call_direction_t switch_channel_logical_direction(SWIGTYPE_p_switch_channel channel) { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_channel_logical_direction(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static void switch_channel_set_direction(SWIGTYPE_p_switch_channel channel, switch_call_direction_t direction) { + freeswitchPINVOKE.switch_channel_set_direction(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)direction); + } + + public static SWIGTYPE_p_switch_core_session switch_channel_get_session(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_session(SWIGTYPE_p_switch_channel.getCPtr(channel)); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + + public static string switch_channel_get_flag_string(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_flag_string(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static string switch_channel_get_cap_string(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_cap_string(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static int switch_channel_state_change_pending(SWIGTYPE_p_switch_channel channel) { + int ret = freeswitchPINVOKE.switch_channel_state_change_pending(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static void switch_channel_perform_set_callstate(SWIGTYPE_p_switch_channel channel, switch_channel_callstate_t callstate, string file, string func, int line) { + freeswitchPINVOKE.switch_channel_perform_set_callstate(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)callstate, file, func, line); + } + + public static switch_channel_callstate_t switch_channel_get_callstate(SWIGTYPE_p_switch_channel channel) { + switch_channel_callstate_t ret = (switch_channel_callstate_t)freeswitchPINVOKE.switch_channel_get_callstate(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static string switch_channel_callstate2str(switch_channel_callstate_t callstate) { + string ret = freeswitchPINVOKE.switch_channel_callstate2str((int)callstate); + return ret; + } + + public static switch_channel_callstate_t switch_channel_str2callstate(string str) { + switch_channel_callstate_t ret = (switch_channel_callstate_t)freeswitchPINVOKE.switch_channel_str2callstate(str); + return ret; + } + + public static void switch_channel_mark_hold(SWIGTYPE_p_switch_channel channel, switch_bool_t on) { + freeswitchPINVOKE.switch_channel_mark_hold(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)on); + } + + public static switch_status_t switch_channel_execute_on(SWIGTYPE_p_switch_channel channel, string variable_prefix) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_execute_on(SWIGTYPE_p_switch_channel.getCPtr(channel), variable_prefix); + return ret; + } + + public static switch_status_t switch_channel_api_on(SWIGTYPE_p_switch_channel channel, string variable_prefix) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_api_on(SWIGTYPE_p_switch_channel.getCPtr(channel), variable_prefix); + return ret; + } + + public static void switch_channel_process_device_hangup(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_process_device_hangup(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_caller_extension switch_channel_get_queued_extension(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_queued_extension(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); + return ret; + } + + public static void switch_channel_transfer_to_extension(SWIGTYPE_p_switch_channel channel, switch_caller_extension caller_extension) { + freeswitchPINVOKE.switch_channel_transfer_to_extension(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_extension.getCPtr(caller_extension)); + } + + public static string switch_channel_get_partner_uuid(SWIGTYPE_p_switch_channel channel) { + string ret = freeswitchPINVOKE.switch_channel_get_partner_uuid(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_hold_record_t switch_channel_get_hold_record(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_hold_record(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_hold_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_hold_record_t(cPtr, false); + return ret; + } + + public static void switch_channel_state_thread_lock(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_state_thread_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_state_thread_unlock(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_state_thread_unlock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_status_t switch_channel_state_thread_trylock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_state_thread_trylock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static void switch_channel_handle_cause(SWIGTYPE_p_switch_channel channel, switch_call_cause_t cause) { + freeswitchPINVOKE.switch_channel_handle_cause(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cause); + } + + public static void switch_channel_global_init(SWIGTYPE_p_apr_pool_t pool) { + freeswitchPINVOKE.switch_channel_global_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + } + + public static void switch_channel_global_uninit() { + freeswitchPINVOKE.switch_channel_global_uninit(); + } + + public static string switch_channel_set_device_id(SWIGTYPE_p_switch_channel channel, string device_id) { + string ret = freeswitchPINVOKE.switch_channel_set_device_id(SWIGTYPE_p_switch_channel.getCPtr(channel), device_id); + return ret; + } + + public static void switch_channel_clear_device_record(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_clear_device_record(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static switch_device_record_t switch_channel_get_device_record(SWIGTYPE_p_switch_channel channel) { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_device_record(SWIGTYPE_p_switch_channel.getCPtr(channel)); + switch_device_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_record_t(cPtr, false); + return ret; + } + + public static void switch_channel_release_device_record(SWIGTYPE_p_p_switch_device_record_s dcdrp) { + freeswitchPINVOKE.switch_channel_release_device_record(SWIGTYPE_p_p_switch_device_record_s.getCPtr(dcdrp)); + } + + public static switch_status_t switch_channel_bind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void function, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_bind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void.getCPtr(function), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_status_t switch_channel_unbind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void function) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_unbind_device_state_handler(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void.getCPtr(function)); + return ret; + } + + public static string switch_channel_device_state2str(switch_device_state_t device_state) { + string ret = freeswitchPINVOKE.switch_channel_device_state2str((int)device_state); + return ret; + } + + public static switch_status_t switch_channel_pass_sdp(SWIGTYPE_p_switch_channel from_channel, SWIGTYPE_p_switch_channel to_channel, string sdp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_pass_sdp(SWIGTYPE_p_switch_channel.getCPtr(from_channel), SWIGTYPE_p_switch_channel.getCPtr(to_channel), sdp); + return ret; + } + + public static switch_status_t switch_buffer_create(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t max_len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(max_len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_buffer_create_dynamic(SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t blocksize, SWIGTYPE_p_switch_size_t start_len, SWIGTYPE_p_switch_size_t max_len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create_dynamic(SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(blocksize), SWIGTYPE_p_switch_size_t.getCPtr(start_len), SWIGTYPE_p_switch_size_t.getCPtr(max_len)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_buffer_add_mutex(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_switch_mutex_t mutex) { + freeswitchPINVOKE.switch_buffer_add_mutex(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); + } + + public static void switch_buffer_lock(SWIGTYPE_p_switch_buffer buffer) { + freeswitchPINVOKE.switch_buffer_lock(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); + } + + public static switch_status_t switch_buffer_trylock(SWIGTYPE_p_switch_buffer buffer) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_trylock(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); + return ret; + } + + public static void switch_buffer_unlock(SWIGTYPE_p_switch_buffer buffer) { + freeswitchPINVOKE.switch_buffer_unlock(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_len(SWIGTYPE_p_switch_buffer buffer) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_len(SWIGTYPE_p_switch_buffer.getCPtr(buffer)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_freespace(SWIGTYPE_p_switch_buffer buffer) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_freespace(SWIGTYPE_p_switch_buffer.getCPtr(buffer)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_inuse(SWIGTYPE_p_switch_buffer buffer) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_inuse(SWIGTYPE_p_switch_buffer.getCPtr(buffer)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_read(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_read(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_peek(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_peek(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_peek_zerocopy(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_p_void ptr) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_peek_zerocopy(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_p_void.getCPtr(ptr)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_read_loop(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_read_loop(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_buffer_set_loops(SWIGTYPE_p_switch_buffer buffer, int loops) { + freeswitchPINVOKE.switch_buffer_set_loops(SWIGTYPE_p_switch_buffer.getCPtr(buffer), loops); + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_write(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_write(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_toss(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_toss(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_buffer_zero(SWIGTYPE_p_switch_buffer buffer) { + freeswitchPINVOKE.switch_buffer_zero(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_slide_write(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_slide_write(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_buffer_destroy(SWIGTYPE_p_p_switch_buffer buffer) { + freeswitchPINVOKE.switch_buffer_destroy(SWIGTYPE_p_p_switch_buffer.getCPtr(buffer)); + } + + public static SWIGTYPE_p_switch_size_t switch_buffer_zwrite(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_buffer_zwrite(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_event_init(SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_event_shutdown() { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_shutdown(); + return ret; + } + + public static switch_status_t switch_event_create_subclass_detailed(string file, string func, int line, SWIGTYPE_p_p_switch_event arg3, switch_event_types_t event_id, string subclass_name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_subclass_detailed(file, func, line, SWIGTYPE_p_p_switch_event.getCPtr(arg3), (int)event_id, subclass_name); + return ret; + } + + public static switch_status_t switch_event_set_priority(switch_event arg0, switch_priority_t priority) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_priority(switch_event.getCPtr(arg0), (int)priority); + return ret; + } + + public static switch_event_header switch_event_get_header_ptr(switch_event arg0, string header_name) { + IntPtr cPtr = freeswitchPINVOKE.switch_event_get_header_ptr(switch_event.getCPtr(arg0), header_name); + switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); + return ret; + } + + public static string switch_event_get_header_idx(switch_event arg0, string header_name, int idx) { + string ret = freeswitchPINVOKE.switch_event_get_header_idx(switch_event.getCPtr(arg0), header_name, idx); + return ret; + } + + public static switch_status_t switch_event_rename_header(switch_event arg0, string header_name, string new_header_name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_rename_header(switch_event.getCPtr(arg0), header_name, new_header_name); + return ret; + } + + public static string switch_event_get_body(switch_event arg0) { + string ret = freeswitchPINVOKE.switch_event_get_body(switch_event.getCPtr(arg0)); + return ret; + } + + public static switch_status_t switch_event_set_subclass_name(switch_event arg0, string subclass_name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_subclass_name(switch_event.getCPtr(arg0), subclass_name); + return ret; + } + + public static switch_status_t switch_event_add_header_string(switch_event arg0, switch_stack_t stack, string header_name, string data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_add_header_string(switch_event.getCPtr(arg0), (int)stack, header_name, data); + return ret; + } + + public static switch_status_t switch_event_del_header_val(switch_event arg0, string header_name, string val) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_del_header_val(switch_event.getCPtr(arg0), header_name, val); + return ret; + } + + public static int switch_event_add_array(switch_event arg0, string var, string val) { + int ret = freeswitchPINVOKE.switch_event_add_array(switch_event.getCPtr(arg0), var, val); + return ret; + } + + public static void switch_event_destroy(SWIGTYPE_p_p_switch_event arg0) { + freeswitchPINVOKE.switch_event_destroy(SWIGTYPE_p_p_switch_event.getCPtr(arg0)); + } + + public static switch_status_t switch_event_dup(SWIGTYPE_p_p_switch_event arg0, switch_event todup) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_dup(SWIGTYPE_p_p_switch_event.getCPtr(arg0), switch_event.getCPtr(todup)); + return ret; + } + + public static void switch_event_merge(switch_event arg0, switch_event tomerge) { + freeswitchPINVOKE.switch_event_merge(switch_event.getCPtr(arg0), switch_event.getCPtr(tomerge)); + } + + public static switch_status_t switch_event_dup_reply(SWIGTYPE_p_p_switch_event arg0, switch_event todup) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_dup_reply(SWIGTYPE_p_p_switch_event.getCPtr(arg0), switch_event.getCPtr(todup)); + return ret; + } + + public static switch_status_t switch_event_fire_detailed(string file, string func, int line, SWIGTYPE_p_p_switch_event arg3, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_fire_detailed(file, func, line, SWIGTYPE_p_p_switch_event.getCPtr(arg3), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static void switch_event_prep_for_delivery_detailed(string file, string func, int line, switch_event arg3) { + freeswitchPINVOKE.switch_event_prep_for_delivery_detailed(file, func, line, switch_event.getCPtr(arg3)); + } + + public static switch_status_t switch_event_bind(string id, switch_event_types_t arg1, string subclass_name, SWIGTYPE_p_f_p_switch_event__void callback, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_bind(id, (int)arg1, subclass_name, SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_status_t switch_event_bind_removable(string id, switch_event_types_t arg1, string subclass_name, SWIGTYPE_p_f_p_switch_event__void callback, SWIGTYPE_p_void user_data, SWIGTYPE_p_p_switch_event_node node) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_bind_removable(id, (int)arg1, subclass_name, SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_p_switch_event_node.getCPtr(node)); + return ret; + } + + public static switch_status_t switch_event_unbind(SWIGTYPE_p_p_switch_event_node node) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_unbind(SWIGTYPE_p_p_switch_event_node.getCPtr(node)); + return ret; + } + + public static switch_status_t switch_event_unbind_callback(SWIGTYPE_p_f_p_switch_event__void callback) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_unbind_callback(SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback)); + return ret; + } + + public static string switch_event_name(switch_event_types_t arg0) { + string ret = freeswitchPINVOKE.switch_event_name((int)arg0); + return ret; + } + + public static switch_status_t switch_name_event(string name, SWIGTYPE_p_switch_event_types_t type) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_name_event(name, SWIGTYPE_p_switch_event_types_t.getCPtr(type)); + return ret; + } + + public static switch_status_t switch_event_reserve_subclass_detailed(string owner, string subclass_name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_reserve_subclass_detailed(owner, subclass_name); + return ret; + } + + public static switch_status_t switch_event_free_subclass_detailed(string owner, string subclass_name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_free_subclass_detailed(owner, subclass_name); + return ret; + } + + public static switch_status_t switch_event_binary_deserialize(SWIGTYPE_p_p_switch_event eventp, SWIGTYPE_p_p_void data, SWIGTYPE_p_switch_size_t len, switch_bool_t duplicate) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_binary_deserialize(SWIGTYPE_p_p_switch_event.getCPtr(eventp), SWIGTYPE_p_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len), (int)duplicate); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_event_binary_serialize(switch_event arg0, SWIGTYPE_p_p_void data, SWIGTYPE_p_switch_size_t len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_binary_serialize(switch_event.getCPtr(arg0), SWIGTYPE_p_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); + return ret; + } + + public static switch_status_t switch_event_serialize(switch_event arg0, ref string str, switch_bool_t encode) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize(switch_event.getCPtr(arg0), ref str, (int)encode); + return ret; + } + + public static switch_status_t switch_event_serialize_json(switch_event arg0, ref string str) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize_json(switch_event.getCPtr(arg0), ref str); + return ret; + } + + public static switch_status_t switch_event_serialize_json_obj(switch_event arg0, SWIGTYPE_p_p_cJSON json) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize_json_obj(switch_event.getCPtr(arg0), SWIGTYPE_p_p_cJSON.getCPtr(json)); + return ret; + } + + public static switch_status_t switch_event_create_json(SWIGTYPE_p_p_switch_event arg0, string json) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_json(SWIGTYPE_p_p_switch_event.getCPtr(arg0), json); + return ret; + } + + public static switch_status_t switch_event_create_brackets(string data, char a, char b, char c, SWIGTYPE_p_p_switch_event arg4, ref string new_data, switch_bool_t dup) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_brackets(data, a, b, c, SWIGTYPE_p_p_switch_event.getCPtr(arg4), ref new_data, (int)dup); + return ret; + } + + public static switch_status_t switch_event_create_array_pair(SWIGTYPE_p_p_switch_event arg0, ref string names, ref string vals, int len) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_array_pair(SWIGTYPE_p_p_switch_event.getCPtr(arg0), ref names, ref vals, len); + return ret; + } + + public static switch_status_t switch_event_running() { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_running(); + return ret; + } + + public static switch_status_t switch_event_set_body(switch_event arg0, string body) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_body(switch_event.getCPtr(arg0), body); + return ret; + } + + public static string switch_event_expand_headers_check(switch_event arg0, string arg1, switch_event var_list, switch_event api_list, uint recur) { + string ret = freeswitchPINVOKE.switch_event_expand_headers_check(switch_event.getCPtr(arg0), arg1, switch_event.getCPtr(var_list), switch_event.getCPtr(api_list), recur); + return ret; + } + + public static switch_status_t switch_event_create_pres_in_detailed(string file, string func, int line, string proto, string login, string from, string from_domain, string status, string event_type, string alt_event_type, int event_count, string unique_id, string channel_state, string answer_state, string call_direction) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_pres_in_detailed(file, func, line, proto, login, from, from_domain, status, event_type, alt_event_type, event_count, unique_id, channel_state, answer_state, call_direction); + return ret; + } + + public static switch_status_t switch_event_create_plain(SWIGTYPE_p_p_switch_event arg0, switch_event_types_t event_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_create_plain(SWIGTYPE_p_p_switch_event.getCPtr(arg0), (int)event_id); + return ret; + } + + public static void switch_event_deliver(SWIGTYPE_p_p_switch_event arg0) { + freeswitchPINVOKE.switch_event_deliver(SWIGTYPE_p_p_switch_event.getCPtr(arg0)); + } + + public static string switch_event_build_param_string(switch_event arg0, string prefix, SWIGTYPE_p_switch_hashtable vars_map) { + string ret = freeswitchPINVOKE.switch_event_build_param_string(switch_event.getCPtr(arg0), prefix, SWIGTYPE_p_switch_hashtable.getCPtr(vars_map)); + return ret; + } + + public static int switch_event_check_permission_list(switch_event list, string name) { + int ret = freeswitchPINVOKE.switch_event_check_permission_list(switch_event.getCPtr(list), name); + return ret; + } + + public static void switch_event_add_presence_data_cols(SWIGTYPE_p_switch_channel channel, switch_event arg1, string prefix) { + freeswitchPINVOKE.switch_event_add_presence_data_cols(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1), prefix); + } + + public static void switch_json_add_presence_data_cols(switch_event arg0, SWIGTYPE_p_cJSON json, string prefix) { + freeswitchPINVOKE.switch_json_add_presence_data_cols(switch_event.getCPtr(arg0), SWIGTYPE_p_cJSON.getCPtr(json), prefix); + } + + public static void switch_event_launch_dispatch_threads(uint max) { + freeswitchPINVOKE.switch_event_launch_dispatch_threads(max); + } + + public static uint switch_event_channel_broadcast(string event_channel, SWIGTYPE_p_p_cJSON json, string key, uint id) { + uint ret = freeswitchPINVOKE.switch_event_channel_broadcast(event_channel, SWIGTYPE_p_p_cJSON.getCPtr(json), key, id); + return ret; + } + + public static uint switch_event_channel_unbind(string event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void func) { + uint ret = freeswitchPINVOKE.switch_event_channel_unbind(event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void.getCPtr(func)); + return ret; + } + + public static switch_status_t switch_event_channel_bind(string event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void func, SWIGTYPE_p_unsigned_long id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_channel_bind(event_channel, SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void.getCPtr(func), SWIGTYPE_p_unsigned_long.getCPtr(id)); + return ret; + } + + public static switch_status_t switch_live_array_clear(SWIGTYPE_p_switch_live_array_s la) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_clear(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); + return ret; + } + + public static switch_status_t switch_live_array_bootstrap(SWIGTYPE_p_switch_live_array_s la, string sessid, uint channel_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_bootstrap(SWIGTYPE_p_switch_live_array_s.getCPtr(la), sessid, channel_id); + return ret; + } + + public static switch_status_t switch_live_array_destroy(SWIGTYPE_p_p_switch_live_array_s live_arrayP) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_destroy(SWIGTYPE_p_p_switch_live_array_s.getCPtr(live_arrayP)); + return ret; + } + + public static switch_status_t switch_live_array_create(string event_channel, string name, uint channel_id, SWIGTYPE_p_p_switch_live_array_s live_arrayP) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_create(event_channel, name, channel_id, SWIGTYPE_p_p_switch_live_array_s.getCPtr(live_arrayP)); + return ret; + } + + public static SWIGTYPE_p_cJSON switch_live_array_get(SWIGTYPE_p_switch_live_array_s la, string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_live_array_get(SWIGTYPE_p_switch_live_array_s.getCPtr(la), name); + SWIGTYPE_p_cJSON ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_cJSON(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_cJSON switch_live_array_get_idx(SWIGTYPE_p_switch_live_array_s la, int idx) { + IntPtr cPtr = freeswitchPINVOKE.switch_live_array_get_idx(SWIGTYPE_p_switch_live_array_s.getCPtr(la), idx); + SWIGTYPE_p_cJSON ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_cJSON(cPtr, false); + return ret; + } + + public static switch_status_t switch_live_array_del(SWIGTYPE_p_switch_live_array_s la, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_del(SWIGTYPE_p_switch_live_array_s.getCPtr(la), name); + return ret; + } + + public static switch_status_t switch_live_array_add(SWIGTYPE_p_switch_live_array_s la, string name, int index, SWIGTYPE_p_p_cJSON obj, switch_bool_t destroy) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_add(SWIGTYPE_p_switch_live_array_s.getCPtr(la), name, index, SWIGTYPE_p_p_cJSON.getCPtr(obj), (int)destroy); + return ret; + } + + public static switch_status_t switch_live_array_visible(SWIGTYPE_p_switch_live_array_s la, switch_bool_t visible, switch_bool_t force) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_live_array_visible(SWIGTYPE_p_switch_live_array_s.getCPtr(la), (int)visible, (int)force); + return ret; + } + + public static switch_bool_t switch_live_array_isnew(SWIGTYPE_p_switch_live_array_s la) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_live_array_isnew(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); + return ret; + } + + public static void switch_live_array_lock(SWIGTYPE_p_switch_live_array_s la) { + freeswitchPINVOKE.switch_live_array_lock(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); + } + + public static void switch_live_array_unlock(SWIGTYPE_p_switch_live_array_s la) { + freeswitchPINVOKE.switch_live_array_unlock(SWIGTYPE_p_switch_live_array_s.getCPtr(la)); + } + + public static void switch_live_array_set_user_data(SWIGTYPE_p_switch_live_array_s la, SWIGTYPE_p_void user_data) { + freeswitchPINVOKE.switch_live_array_set_user_data(SWIGTYPE_p_switch_live_array_s.getCPtr(la), SWIGTYPE_p_void.getCPtr(user_data)); + } + + public static void switch_live_array_set_command_handler(SWIGTYPE_p_switch_live_array_s la, SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void command_handler) { + freeswitchPINVOKE.switch_live_array_set_command_handler(SWIGTYPE_p_switch_live_array_s.getCPtr(la), SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void.getCPtr(command_handler)); + } + + public static void switch_live_array_parse_json(SWIGTYPE_p_cJSON json, uint channel_id) { + freeswitchPINVOKE.switch_live_array_parse_json(SWIGTYPE_p_cJSON.getCPtr(json), channel_id); + } + + public static switch_bool_t switch_live_array_add_alias(SWIGTYPE_p_switch_live_array_s la, string event_channel, string name) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_live_array_add_alias(SWIGTYPE_p_switch_live_array_s.getCPtr(la), event_channel, name); + return ret; + } + + public static switch_bool_t switch_live_array_clear_alias(SWIGTYPE_p_switch_live_array_s la, string event_channel, string name) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_live_array_clear_alias(SWIGTYPE_p_switch_live_array_s.getCPtr(la), event_channel, name); + return ret; + } + + public static switch_bool_t switch_event_channel_permission_verify(string cookie, string event_channel) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_event_channel_permission_verify(cookie, event_channel); + return ret; + } + + public static void switch_event_channel_permission_modify(string cookie, string event_channel, switch_bool_t set) { + freeswitchPINVOKE.switch_event_channel_permission_modify(cookie, event_channel, (int)set); + } + + public static void switch_event_channel_permission_clear(string cookie) { + freeswitchPINVOKE.switch_event_channel_permission_clear(cookie); + } + + public static switch_status_t switch_resample_perform_create(SWIGTYPE_p_p_switch_audio_resampler_t new_resampler, uint from_rate, uint to_rate, uint to_size, int quality, uint channels, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_resample_perform_create(SWIGTYPE_p_p_switch_audio_resampler_t.getCPtr(new_resampler), from_rate, to_rate, to_size, quality, channels, file, func, line); + return ret; + } + + public static void switch_resample_destroy(SWIGTYPE_p_p_switch_audio_resampler_t resampler) { + freeswitchPINVOKE.switch_resample_destroy(SWIGTYPE_p_p_switch_audio_resampler_t.getCPtr(resampler)); + } + + public static uint switch_resample_process(switch_audio_resampler_t resampler, SWIGTYPE_p_short src, uint srclen) { + uint ret = freeswitchPINVOKE.switch_resample_process(switch_audio_resampler_t.getCPtr(resampler), SWIGTYPE_p_short.getCPtr(src), srclen); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_float_to_short(SWIGTYPE_p_float f, SWIGTYPE_p_short s, SWIGTYPE_p_switch_size_t len) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_float_to_short(SWIGTYPE_p_float.getCPtr(f), SWIGTYPE_p_short.getCPtr(s), SWIGTYPE_p_switch_size_t.getCPtr(len)), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int switch_char_to_float(string c, SWIGTYPE_p_float f, int len) { + int ret = freeswitchPINVOKE.switch_char_to_float(c, SWIGTYPE_p_float.getCPtr(f), len); + return ret; + } + + public static int switch_float_to_char(SWIGTYPE_p_float f, string c, int len) { + int ret = freeswitchPINVOKE.switch_float_to_char(SWIGTYPE_p_float.getCPtr(f), c, len); + return ret; + } + + public static int switch_short_to_float(SWIGTYPE_p_short s, SWIGTYPE_p_float f, int len) { + int ret = freeswitchPINVOKE.switch_short_to_float(SWIGTYPE_p_short.getCPtr(s), SWIGTYPE_p_float.getCPtr(f), len); + return ret; + } + + public static void switch_swap_linear(SWIGTYPE_p_short buf, int len) { + freeswitchPINVOKE.switch_swap_linear(SWIGTYPE_p_short.getCPtr(buf), len); + } + + public static void switch_generate_sln_silence(SWIGTYPE_p_short data, uint samples, uint channels, uint divisor) { + freeswitchPINVOKE.switch_generate_sln_silence(SWIGTYPE_p_short.getCPtr(data), samples, channels, divisor); + } + + public static void switch_change_sln_volume(SWIGTYPE_p_short data, uint samples, int vol) { + freeswitchPINVOKE.switch_change_sln_volume(SWIGTYPE_p_short.getCPtr(data), samples, vol); + } + + public static void switch_change_sln_volume_granular(SWIGTYPE_p_short data, uint samples, int vol) { + freeswitchPINVOKE.switch_change_sln_volume_granular(SWIGTYPE_p_short.getCPtr(data), samples, vol); + } + + public static uint switch_merge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples) { + uint ret = freeswitchPINVOKE.switch_merge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples); + return ret; + } + + public static uint switch_unmerge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples) { + uint ret = freeswitchPINVOKE.switch_unmerge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples); + return ret; + } + + public static void switch_mux_channels(SWIGTYPE_p_short data, SWIGTYPE_p_switch_size_t samples, uint orig_channels, uint channels) { + freeswitchPINVOKE.switch_mux_channels(SWIGTYPE_p_short.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(samples), orig_channels, channels); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static switch_status_t switch_ivr_deactivate_unicast(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_deactivate_unicast(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_activate_unicast(SWIGTYPE_p_switch_core_session session, string local_ip, ushort local_port, string remote_ip, ushort remote_port, string transport, string flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_activate_unicast(SWIGTYPE_p_switch_core_session.getCPtr(session), local_ip, local_port, remote_ip, remote_port, transport, flags); + return ret; + } + + public static switch_status_t switch_ivr_generate_json_cdr(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_cJSON json_cdr, switch_bool_t urlencode) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_generate_json_cdr(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_cJSON.getCPtr(json_cdr), (int)urlencode); + return ret; + } + + public static switch_status_t switch_ivr_generate_xml_cdr(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_xml xml_cdr) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_generate_xml_cdr(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_xml.getCPtr(xml_cdr)); + return ret; + } + + public static int switch_ivr_set_xml_profile_data(switch_xml xml, switch_caller_profile caller_profile, int off) { + int ret = freeswitchPINVOKE.switch_ivr_set_xml_profile_data(switch_xml.getCPtr(xml), switch_caller_profile.getCPtr(caller_profile), off); + return ret; + } + + public static int switch_ivr_set_xml_chan_vars(switch_xml xml, SWIGTYPE_p_switch_channel channel, int off) { + int ret = freeswitchPINVOKE.switch_ivr_set_xml_chan_vars(switch_xml.getCPtr(xml), SWIGTYPE_p_switch_channel.getCPtr(channel), off); + return ret; + } + + public static switch_status_t switch_ivr_parse_event(SWIGTYPE_p_switch_core_session session, switch_event arg1) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_event(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_event.getCPtr(arg1)); + return ret; + } + + public static switch_status_t switch_ivr_parse_all_events(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_all_events(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_parse_next_event(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_next_event(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_parse_all_messages(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_all_messages(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_parse_all_signal_data(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_all_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_process_indications(SWIGTYPE_p_switch_core_session session, switch_core_session_message message) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_process_indications(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message)); + return ret; + } + + public static switch_status_t switch_ivr_sleep(SWIGTYPE_p_switch_core_session session, uint ms, switch_bool_t sync, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_sleep(SWIGTYPE_p_switch_core_session.getCPtr(session), ms, (int)sync, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_park(SWIGTYPE_p_switch_core_session session, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_park(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_collect_digits_callback(SWIGTYPE_p_switch_core_session session, switch_input_args_t args, uint digit_timeout, uint abs_timeout) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_collect_digits_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args), digit_timeout, abs_timeout); + return ret; + } + + public static switch_status_t switch_ivr_collect_digits_count(SWIGTYPE_p_switch_core_session session, string buf, SWIGTYPE_p_switch_size_t buflen, SWIGTYPE_p_switch_size_t maxdigits, string terminators, string terminator, uint first_timeout, uint digit_timeout, uint abs_timeout) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_collect_digits_count(SWIGTYPE_p_switch_core_session.getCPtr(session), buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen), SWIGTYPE_p_switch_size_t.getCPtr(maxdigits), terminators, terminator, first_timeout, digit_timeout, abs_timeout); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_ivr_play_and_detect_speech(SWIGTYPE_p_switch_core_session session, string file, string mod_name, string grammar, ref string result, uint input_timeout, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_play_and_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session), file, mod_name, grammar, ref result, input_timeout, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_init(SWIGTYPE_p_switch_core_session session, string mod_name, string dest, switch_asr_handle ah) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_init(SWIGTYPE_p_switch_core_session.getCPtr(session), mod_name, dest, switch_asr_handle.getCPtr(ah)); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech(SWIGTYPE_p_switch_core_session session, string mod_name, string grammar, string name, string dest, switch_asr_handle ah) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session), mod_name, grammar, name, dest, switch_asr_handle.getCPtr(ah)); + return ret; + } + + public static switch_status_t switch_ivr_stop_detect_speech(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_pause_detect_speech(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_pause_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_resume_detect_speech(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_resume_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_load_grammar(SWIGTYPE_p_switch_core_session session, string grammar, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_load_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), grammar, name); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_unload_grammar(SWIGTYPE_p_switch_core_session session, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_unload_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), name); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_enable_grammar(SWIGTYPE_p_switch_core_session session, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_enable_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), name); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_disable_grammar(SWIGTYPE_p_switch_core_session session, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_disable_grammar(SWIGTYPE_p_switch_core_session.getCPtr(session), name); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_disable_all_grammars(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_disable_all_grammars(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_set_param_detect_speech(SWIGTYPE_p_switch_core_session session, string name, string val) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_param_detect_speech(SWIGTYPE_p_switch_core_session.getCPtr(session), name, val); + return ret; + } + + public static switch_status_t switch_ivr_detect_speech_start_input_timers(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_detect_speech_start_input_timers(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_record_session(SWIGTYPE_p_switch_core_session session, string file, uint limit, switch_file_handle fh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_record_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file, limit, switch_file_handle.getCPtr(fh)); + return ret; + } + + public static switch_status_t switch_ivr_transfer_recordings(SWIGTYPE_p_switch_core_session orig_session, SWIGTYPE_p_switch_core_session new_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_transfer_recordings(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), SWIGTYPE_p_switch_core_session.getCPtr(new_session)); + return ret; + } + + public static switch_status_t switch_ivr_eavesdrop_pop_eavesdropper(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session sessionp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_pop_eavesdropper(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(sessionp)); + return ret; + } + + public static switch_status_t switch_ivr_eavesdrop_exec_all(SWIGTYPE_p_switch_core_session session, string app, string arg) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_exec_all(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg); + return ret; + } + + public static switch_status_t switch_ivr_eavesdrop_update_display(SWIGTYPE_p_switch_core_session session, string name, string number) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_update_display(SWIGTYPE_p_switch_core_session.getCPtr(session), name, number); + return ret; + } + + public static switch_status_t switch_ivr_eavesdrop_session(SWIGTYPE_p_switch_core_session session, string uuid, string require_group, uint flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_eavesdrop_session(SWIGTYPE_p_switch_core_session.getCPtr(session), uuid, require_group, flags); + return ret; + } + + public static switch_status_t switch_ivr_displace_session(SWIGTYPE_p_switch_core_session session, string file, uint limit, string flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_displace_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file, limit, flags); + return ret; + } + + public static switch_status_t switch_ivr_stop_displace_session(SWIGTYPE_p_switch_core_session session, string file) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_displace_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file); + return ret; + } + + public static switch_status_t switch_ivr_stop_record_session(SWIGTYPE_p_switch_core_session session, string file) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_record_session(SWIGTYPE_p_switch_core_session.getCPtr(session), file); + return ret; + } + + public static switch_status_t switch_ivr_session_audio(SWIGTYPE_p_switch_core_session session, string cmd, string direction, int level) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_audio(SWIGTYPE_p_switch_core_session.getCPtr(session), cmd, direction, level); + return ret; + } + + public static switch_status_t switch_ivr_stop_session_audio(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_session_audio(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_inband_dtmf_session(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_inband_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_stop_inband_dtmf_session(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_inband_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session session, switch_bool_t read_stream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)read_stream); + return ret; + } + + public static switch_status_t switch_ivr_stop_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_inband_dtmf_generate_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_session_echo(SWIGTYPE_p_switch_core_session session, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_echo(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_stop_tone_detect_session(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_tone_detect_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_tone_detect_session(SWIGTYPE_p_switch_core_session session, string key, string tone_spec, string flags, SWIGTYPE_p_time_t timeout, int hits, string app, string data, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t callback) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_tone_detect_session(SWIGTYPE_p_switch_core_session.getCPtr(session), key, tone_spec, flags, SWIGTYPE_p_time_t.getCPtr(timeout), hits, app, data, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t.getCPtr(callback)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_ivr_play_file(SWIGTYPE_p_switch_core_session session, switch_file_handle fh, string file, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_play_file(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_file_handle.getCPtr(fh), file, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_wait_for_silence(SWIGTYPE_p_switch_core_session session, uint thresh, uint silence_hits, uint listen_hits, uint timeout_ms, string file) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_wait_for_silence(SWIGTYPE_p_switch_core_session.getCPtr(session), thresh, silence_hits, listen_hits, timeout_ms, file); + return ret; + } + + public static switch_status_t switch_ivr_gentones(SWIGTYPE_p_switch_core_session session, string script, int loops, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_gentones(SWIGTYPE_p_switch_core_session.getCPtr(session), script, loops, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_record_file(SWIGTYPE_p_switch_core_session session, switch_file_handle fh, string file, switch_input_args_t args, uint limit) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_record_file(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_file_handle.getCPtr(fh), file, switch_input_args_t.getCPtr(args), limit); + return ret; + } + + public static switch_status_t switch_play_and_get_digits(SWIGTYPE_p_switch_core_session session, uint min_digits, uint max_digits, uint max_tries, uint timeout, string valid_terminators, string audio_file, string bad_input_audio_file, string var_name, string digit_buffer, uint digit_buffer_length, string digits_regex, uint digit_timeout, string transfer_on_failure) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_play_and_get_digits(SWIGTYPE_p_switch_core_session.getCPtr(session), min_digits, max_digits, max_tries, timeout, valid_terminators, audio_file, bad_input_audio_file, var_name, digit_buffer, digit_buffer_length, digits_regex, digit_timeout, transfer_on_failure); + return ret; + } + + public static switch_status_t switch_ivr_speak_text_handle(SWIGTYPE_p_switch_core_session session, switch_speech_handle sh, switch_codec codec, switch_timer timer, string text, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_speak_text_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_speech_handle.getCPtr(sh), switch_codec.getCPtr(codec), switch_timer.getCPtr(timer), text, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static void switch_ivr_clear_speech_cache(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_ivr_clear_speech_cache(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static switch_status_t switch_ivr_speak_text(SWIGTYPE_p_switch_core_session session, string tts_name, string voice_name, string text, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_speak_text(SWIGTYPE_p_switch_core_session.getCPtr(session), tts_name, voice_name, text, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause)); + return ret; + } + + public static switch_status_t switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause)); + return ret; + } + + public static void switch_ivr_bridge_display(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session) { + freeswitchPINVOKE.switch_ivr_bridge_display(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session)); + } + + public static switch_status_t switch_ivr_multi_threaded_bridge(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session, SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t dtmf_callback, SWIGTYPE_p_void session_data, SWIGTYPE_p_void peer_session_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_multi_threaded_bridge(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session), SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t.getCPtr(dtmf_callback), SWIGTYPE_p_void.getCPtr(session_data), SWIGTYPE_p_void.getCPtr(peer_session_data)); + return ret; + } + + public static switch_status_t switch_ivr_signal_bridge(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_signal_bridge(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session)); + return ret; + } + + public static switch_status_t switch_ivr_session_transfer(SWIGTYPE_p_switch_core_session session, string extension, string dialplan, string context) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_transfer(SWIGTYPE_p_switch_core_session.getCPtr(session), extension, dialplan, context); + return ret; + } + + public static uint switch_ivr_schedule_transfer(SWIGTYPE_p_time_t runtime, string uuid, string extension, string dialplan, string context) { + uint ret = freeswitchPINVOKE.switch_ivr_schedule_transfer(SWIGTYPE_p_time_t.getCPtr(runtime), uuid, extension, dialplan, context); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint switch_ivr_schedule_hangup(SWIGTYPE_p_time_t runtime, string uuid, switch_call_cause_t cause, switch_bool_t bleg) { + uint ret = freeswitchPINVOKE.switch_ivr_schedule_hangup(SWIGTYPE_p_time_t.getCPtr(runtime), uuid, (int)cause, (int)bleg); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_ivr_uuid_bridge(string originator_uuid, string originatee_uuid) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_uuid_bridge(originator_uuid, originatee_uuid); + return ret; + } + + public static switch_status_t switch_ivr_media(string uuid, uint flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_media(uuid, flags); + return ret; + } + + public static switch_status_t switch_ivr_nomedia(string uuid, uint flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_nomedia(uuid, flags); + return ret; + } + + public static switch_status_t switch_ivr_hold_uuid(string uuid, string message, switch_bool_t moh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_hold_uuid(uuid, message, (int)moh); + return ret; + } + + public static switch_status_t switch_ivr_hold_toggle_uuid(string uuid, string message, switch_bool_t moh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_hold_toggle_uuid(uuid, message, (int)moh); + return ret; + } + + public static switch_status_t switch_ivr_unhold_uuid(string uuid) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unhold_uuid(uuid); + return ret; + } + + public static switch_status_t switch_ivr_hold(SWIGTYPE_p_switch_core_session session, string message, switch_bool_t moh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_hold(SWIGTYPE_p_switch_core_session.getCPtr(session), message, (int)moh); + return ret; + } + + public static switch_status_t switch_ivr_unhold(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unhold(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static uint switch_ivr_schedule_broadcast(SWIGTYPE_p_time_t runtime, string uuid, string path, uint flags) { + uint ret = freeswitchPINVOKE.switch_ivr_schedule_broadcast(SWIGTYPE_p_time_t.getCPtr(runtime), uuid, path, flags); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_ivr_broadcast(string uuid, string path, uint flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_broadcast(uuid, path, flags); + return ret; + } + + public static void switch_ivr_broadcast_in_thread(SWIGTYPE_p_switch_core_session session, string app, int flags) { + freeswitchPINVOKE.switch_ivr_broadcast_in_thread(SWIGTYPE_p_switch_core_session.getCPtr(session), app, flags); + } + + public static switch_status_t switch_ivr_transfer_variable(SWIGTYPE_p_switch_core_session sessa, SWIGTYPE_p_switch_core_session sessb, string var) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_transfer_variable(SWIGTYPE_p_switch_core_session.getCPtr(sessa), SWIGTYPE_p_switch_core_session.getCPtr(sessb), var); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_parser_new(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_ivr_digit_stream_parser parser) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_new(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_ivr_digit_stream_parser.getCPtr(parser)); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_parser_destroy(SWIGTYPE_p_switch_ivr_digit_stream_parser parser) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_destroy(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser)); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_new(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, SWIGTYPE_p_p_switch_ivr_digit_stream stream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_new(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), SWIGTYPE_p_p_switch_ivr_digit_stream.getCPtr(stream)); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_destroy(SWIGTYPE_p_p_switch_ivr_digit_stream stream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_destroy(SWIGTYPE_p_p_switch_ivr_digit_stream.getCPtr(stream)); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_parser_set_event(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, string digits, SWIGTYPE_p_void data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_set_event(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), digits, SWIGTYPE_p_void.getCPtr(data)); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_parser_del_event(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, string digits) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_del_event(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), digits); + return ret; + } + + public static SWIGTYPE_p_void switch_ivr_digit_stream_parser_feed(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, SWIGTYPE_p_switch_ivr_digit_stream stream, char digit) { + IntPtr cPtr = freeswitchPINVOKE.switch_ivr_digit_stream_parser_feed(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), SWIGTYPE_p_switch_ivr_digit_stream.getCPtr(stream), digit); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_reset(SWIGTYPE_p_switch_ivr_digit_stream stream) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_reset(SWIGTYPE_p_switch_ivr_digit_stream.getCPtr(stream)); + return ret; + } + + public static switch_status_t switch_ivr_digit_stream_parser_set_terminator(SWIGTYPE_p_switch_ivr_digit_stream_parser parser, char digit) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_digit_stream_parser_set_terminator(SWIGTYPE_p_switch_ivr_digit_stream_parser.getCPtr(parser), digit); + return ret; + } + + public static switch_status_t switch_ivr_menu_init(SWIGTYPE_p_p_switch_ivr_menu new_menu, SWIGTYPE_p_switch_ivr_menu main, string name, string greeting_sound, string short_greeting_sound, string invalid_sound, string exit_sound, string transfer_sound, string confirm_macro, string confirm_key, string tts_engine, string tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_init(SWIGTYPE_p_p_switch_ivr_menu.getCPtr(new_menu), SWIGTYPE_p_switch_ivr_menu.getCPtr(main), name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_ivr_menu_bind_action(SWIGTYPE_p_switch_ivr_menu menu, switch_ivr_action_t ivr_action, string arg, string bind) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_bind_action(SWIGTYPE_p_switch_ivr_menu.getCPtr(menu), (int)ivr_action, arg, bind); + return ret; + } + + public static switch_status_t switch_ivr_menu_bind_function(SWIGTYPE_p_switch_ivr_menu menu, SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t function, string arg, string bind) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_bind_function(SWIGTYPE_p_switch_ivr_menu.getCPtr(menu), SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t.getCPtr(function), arg, bind); + return ret; + } + + public static switch_status_t switch_ivr_menu_execute(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_ivr_menu stack, string name, SWIGTYPE_p_void obj) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_execute(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_ivr_menu.getCPtr(stack), name, SWIGTYPE_p_void.getCPtr(obj)); + return ret; + } + + public static switch_status_t switch_ivr_menu_stack_free(SWIGTYPE_p_switch_ivr_menu stack) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_free(SWIGTYPE_p_switch_ivr_menu.getCPtr(stack)); + return ret; + } + + public static switch_status_t switch_ivr_menu_stack_xml_build(SWIGTYPE_p_switch_ivr_menu_xml_ctx xml_menu_ctx, SWIGTYPE_p_p_switch_ivr_menu menu_stack, switch_xml xml_menus, switch_xml xml_menu) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_xml_build(SWIGTYPE_p_switch_ivr_menu_xml_ctx.getCPtr(xml_menu_ctx), SWIGTYPE_p_p_switch_ivr_menu.getCPtr(menu_stack), switch_xml.getCPtr(xml_menus), switch_xml.getCPtr(xml_menu)); + return ret; + } + + public static switch_status_t switch_ivr_menu_str2action(string action_name, SWIGTYPE_p_switch_ivr_action_t action) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_str2action(action_name, SWIGTYPE_p_switch_ivr_action_t.getCPtr(action)); + return ret; + } + + public static switch_status_t switch_ivr_menu_stack_xml_add_custom(SWIGTYPE_p_switch_ivr_menu_xml_ctx xml_menu_ctx, string name, SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t function) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_xml_add_custom(SWIGTYPE_p_switch_ivr_menu_xml_ctx.getCPtr(xml_menu_ctx), name, SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t.getCPtr(function)); + return ret; + } + + public static switch_status_t switch_ivr_menu_stack_xml_init(SWIGTYPE_p_p_switch_ivr_menu_xml_ctx xml_menu_ctx, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_menu_stack_xml_init(SWIGTYPE_p_p_switch_ivr_menu_xml_ctx.getCPtr(xml_menu_ctx), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static switch_status_t switch_ivr_phrase_macro_event(SWIGTYPE_p_switch_core_session session, string macro_name, string data, switch_event arg3, string lang, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_phrase_macro_event(SWIGTYPE_p_switch_core_session.getCPtr(session), macro_name, data, switch_event.getCPtr(arg3), lang, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static void switch_ivr_delay_echo(SWIGTYPE_p_switch_core_session session, uint delay_ms) { + freeswitchPINVOKE.switch_ivr_delay_echo(SWIGTYPE_p_switch_core_session.getCPtr(session), delay_ms); + } + + public static switch_status_t switch_ivr_find_bridged_uuid(string uuid, string b_uuid, SWIGTYPE_p_switch_size_t blen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_find_bridged_uuid(uuid, b_uuid, SWIGTYPE_p_switch_size_t.getCPtr(blen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_ivr_intercept_session(SWIGTYPE_p_switch_core_session session, string uuid, switch_bool_t bleg) { + freeswitchPINVOKE.switch_ivr_intercept_session(SWIGTYPE_p_switch_core_session.getCPtr(session), uuid, (int)bleg); + } + + public static void switch_ivr_park_session(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_ivr_park_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + + public static switch_status_t switch_ivr_wait_for_answer(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_core_session peer_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_wait_for_answer(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_core_session.getCPtr(peer_session)); + return ret; + } + + public static switch_status_t switch_ivr_read(SWIGTYPE_p_switch_core_session session, uint min_digits, uint max_digits, string prompt_audio_file, string var_name, string digit_buffer, SWIGTYPE_p_switch_size_t digit_buffer_length, uint timeout, string valid_terminators, uint digit_timeout) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_read(SWIGTYPE_p_switch_core_session.getCPtr(session), min_digits, max_digits, prompt_audio_file, var_name, digit_buffer, SWIGTYPE_p_switch_size_t.getCPtr(digit_buffer_length), timeout, valid_terminators, digit_timeout); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_ivr_block_dtmf_session(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_block_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_unblock_dtmf_session(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unblock_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t switch_ivr_bind_dtmf_meta_session(SWIGTYPE_p_switch_core_session session, uint key, uint bind_flags, string app) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_bind_dtmf_meta_session(SWIGTYPE_p_switch_core_session.getCPtr(session), key, bind_flags, app); + return ret; + } + + public static switch_status_t switch_ivr_unbind_dtmf_meta_session(SWIGTYPE_p_switch_core_session session, uint key) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_unbind_dtmf_meta_session(SWIGTYPE_p_switch_core_session.getCPtr(session), key); + return ret; + } + + public static switch_status_t switch_ivr_soft_hold(SWIGTYPE_p_switch_core_session session, string unhold_key, string moh_a, string moh_b) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_soft_hold(SWIGTYPE_p_switch_core_session.getCPtr(session), unhold_key, moh_a, moh_b); + return ret; + } + + public static switch_status_t switch_ivr_say(SWIGTYPE_p_switch_core_session session, string tosay, string module_name, string say_type, string say_method, string say_gender, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, module_name, say_type, say_method, say_gender, switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_say_string(SWIGTYPE_p_switch_core_session session, string lang, string ext, string tosay, string module_name, string say_type, string say_method, string say_gender, ref string rstr) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say_string(SWIGTYPE_p_switch_core_session.getCPtr(session), lang, ext, tosay, module_name, say_type, say_method, say_gender, ref rstr); + return ret; + } + + public static switch_say_method_t switch_ivr_get_say_method_by_name(string name) { + switch_say_method_t ret = (switch_say_method_t)freeswitchPINVOKE.switch_ivr_get_say_method_by_name(name); + return ret; + } + + public static switch_say_gender_t switch_ivr_get_say_gender_by_name(string name) { + switch_say_gender_t ret = (switch_say_gender_t)freeswitchPINVOKE.switch_ivr_get_say_gender_by_name(name); + return ret; + } + + public static switch_say_type_t switch_ivr_get_say_type_by_name(string name) { + switch_say_type_t ret = (switch_say_type_t)freeswitchPINVOKE.switch_ivr_get_say_type_by_name(name); + return ret; + } + + public static switch_status_t switch_ivr_say_spell(SWIGTYPE_p_switch_core_session session, string tosay, switch_say_args_t say_args, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say_spell(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, switch_say_args_t.getCPtr(say_args), switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_say_ip(SWIGTYPE_p_switch_core_session session, string tosay, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t number_func, switch_say_args_t say_args, switch_input_args_t args) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say_ip(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t.getCPtr(number_func), switch_say_args_t.getCPtr(say_args), switch_input_args_t.getCPtr(args)); + return ret; + } + + public static switch_status_t switch_ivr_set_user(SWIGTYPE_p_switch_core_session session, string data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_user(SWIGTYPE_p_switch_core_session.getCPtr(session), data); + return ret; + } + + public static switch_status_t switch_ivr_set_user_xml(SWIGTYPE_p_switch_core_session session, string prefix, string user, string domain, switch_xml x_user) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_user_xml(SWIGTYPE_p_switch_core_session.getCPtr(session), prefix, user, domain, switch_xml.getCPtr(x_user)); + return ret; + } + + public static switch_status_t switch_ivr_sound_test(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_sound_test(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static void switch_process_import(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_channel peer_channel, string varname, string prefix) { + freeswitchPINVOKE.switch_process_import(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_channel.getCPtr(peer_channel), varname, prefix); + } + + public static switch_bool_t switch_ivr_uuid_exists(string uuid) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ivr_uuid_exists(uuid); + return ret; + } + + public static switch_bool_t switch_ivr_uuid_force_exists(string uuid) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ivr_uuid_force_exists(uuid); + return ret; + } + + public static switch_bool_t switch_ivr_dmachine_is_parsing(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_ivr_dmachine_is_parsing(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + return ret; + } + + public static switch_status_t switch_ivr_dmachine_last_ping(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_last_ping(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + return ret; + } + + public static string switch_ivr_dmachine_get_name(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + string ret = freeswitchPINVOKE.switch_ivr_dmachine_get_name(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + return ret; + } + + public static void switch_ivr_dmachine_set_match_callback(SWIGTYPE_p_switch_ivr_dmachine dmachine, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t match_callback) { + freeswitchPINVOKE.switch_ivr_dmachine_set_match_callback(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(match_callback)); + } + + public static void switch_ivr_dmachine_set_nonmatch_callback(SWIGTYPE_p_switch_ivr_dmachine dmachine, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t nonmatch_callback) { + freeswitchPINVOKE.switch_ivr_dmachine_set_nonmatch_callback(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(nonmatch_callback)); + } + + public static switch_status_t switch_ivr_dmachine_create(SWIGTYPE_p_p_switch_ivr_dmachine dmachine_p, string name, SWIGTYPE_p_apr_pool_t pool, uint digit_timeout, uint input_timeout, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t match_callback, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t nonmatch_callback, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_create(SWIGTYPE_p_p_switch_ivr_dmachine.getCPtr(dmachine_p), name, SWIGTYPE_p_apr_pool_t.getCPtr(pool), digit_timeout, input_timeout, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(match_callback), SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(nonmatch_callback), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static void switch_ivr_dmachine_destroy(SWIGTYPE_p_p_switch_ivr_dmachine dmachine) { + freeswitchPINVOKE.switch_ivr_dmachine_destroy(SWIGTYPE_p_p_switch_ivr_dmachine.getCPtr(dmachine)); + } + + public static switch_status_t switch_ivr_dmachine_bind(SWIGTYPE_p_switch_ivr_dmachine dmachine, string realm, string digits, int key, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t callback, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_bind(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), realm, digits, key, SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_status_t switch_ivr_dmachine_feed(SWIGTYPE_p_switch_ivr_dmachine dmachine, string digits, SWIGTYPE_p_p_switch_ivr_dmachine_match match) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_feed(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), digits, SWIGTYPE_p_p_switch_ivr_dmachine_match.getCPtr(match)); + return ret; + } + + public static switch_status_t switch_ivr_dmachine_clear(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_clear(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + return ret; + } + + public static switch_status_t switch_ivr_dmachine_ping(SWIGTYPE_p_switch_ivr_dmachine dmachine, SWIGTYPE_p_p_switch_ivr_dmachine_match match_p) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_ping(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), SWIGTYPE_p_p_switch_ivr_dmachine_match.getCPtr(match_p)); + return ret; + } + + public static switch_ivr_dmachine_match switch_ivr_dmachine_get_match(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + IntPtr cPtr = freeswitchPINVOKE.switch_ivr_dmachine_get_match(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + switch_ivr_dmachine_match ret = (cPtr == IntPtr.Zero) ? null : new switch_ivr_dmachine_match(cPtr, false); + return ret; + } + + public static string switch_ivr_dmachine_get_failed_digits(SWIGTYPE_p_switch_ivr_dmachine dmachine) { + string ret = freeswitchPINVOKE.switch_ivr_dmachine_get_failed_digits(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + return ret; + } + + public static void switch_ivr_dmachine_set_digit_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine dmachine, uint digit_timeout_ms) { + freeswitchPINVOKE.switch_ivr_dmachine_set_digit_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), digit_timeout_ms); + } + + public static void switch_ivr_dmachine_set_input_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine dmachine, uint input_timeout_ms) { + freeswitchPINVOKE.switch_ivr_dmachine_set_input_timeout_ms(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), input_timeout_ms); + } + + public static switch_status_t switch_ivr_dmachine_clear_realm(SWIGTYPE_p_switch_ivr_dmachine dmachine, string realm) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_clear_realm(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), realm); + return ret; + } + + public static switch_status_t switch_ivr_dmachine_set_realm(SWIGTYPE_p_switch_ivr_dmachine dmachine, string realm) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_set_realm(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), realm); + return ret; + } + + public static switch_status_t switch_ivr_get_file_handle(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_file_handle fh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_get_file_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_file_handle.getCPtr(fh)); + return ret; + } + + public static switch_status_t switch_ivr_release_file_handle(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_file_handle fh) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_release_file_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_file_handle.getCPtr(fh)); + return ret; + } + + public static switch_status_t switch_ivr_process_fh(SWIGTYPE_p_switch_core_session session, string cmd, switch_file_handle fhp) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_process_fh(SWIGTYPE_p_switch_core_session.getCPtr(session), cmd, switch_file_handle.getCPtr(fhp)); + return ret; + } + + public static switch_status_t switch_ivr_insert_file(SWIGTYPE_p_switch_core_session session, string file, string insert_file, SWIGTYPE_p_switch_size_t sample_point) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_insert_file(SWIGTYPE_p_switch_core_session.getCPtr(session), file, insert_file, SWIGTYPE_p_switch_size_t.getCPtr(sample_point)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_ivr_create_message_reply(SWIGTYPE_p_p_switch_event reply, switch_event message, string new_proto) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_create_message_reply(SWIGTYPE_p_p_switch_event.getCPtr(reply), switch_event.getCPtr(message), new_proto); + return ret; + } + + public static string switch_ivr_check_presence_mapping(string exten_name, string domain_name) { + string ret = freeswitchPINVOKE.switch_ivr_check_presence_mapping(exten_name, domain_name); + return ret; + } + + public static switch_status_t switch_ivr_kill_uuid(string uuid, switch_call_cause_t cause) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_kill_uuid(uuid, (int)cause); + return ret; + } + + public static switch_status_t switch_ivr_blind_transfer_ack(SWIGTYPE_p_switch_core_session session, switch_bool_t success) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_blind_transfer_ack(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)success); + return ret; + } + + public static switch_status_t switch_ivr_record_session_mask(SWIGTYPE_p_switch_core_session session, string file, switch_bool_t on) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_record_session_mask(SWIGTYPE_p_switch_core_session.getCPtr(session), file, (int)on); + return ret; + } + + public static switch_status_t switch_rtp_add_crypto_key(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_crypto_direction_t direction, uint index, switch_rtp_crypto_key_type_t type, SWIGTYPE_p_unsigned_char key, SWIGTYPE_p_switch_size_t keylen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_add_crypto_key(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)direction, index, (int)type, SWIGTYPE_p_unsigned_char.getCPtr(key), SWIGTYPE_p_switch_size_t.getCPtr(keylen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_rtp_get_random(SWIGTYPE_p_void buf, uint len) { + freeswitchPINVOKE.switch_rtp_get_random(SWIGTYPE_p_void.getCPtr(buf), len); + } + + public static void switch_rtp_init(SWIGTYPE_p_apr_pool_t pool) { + freeswitchPINVOKE.switch_rtp_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + } + + public static void switch_rtp_shutdown() { + freeswitchPINVOKE.switch_rtp_shutdown(); + } + + public static ushort switch_rtp_set_start_port(ushort port) { + ushort ret = freeswitchPINVOKE.switch_rtp_set_start_port(port); + return ret; + } + + public static switch_status_t switch_rtp_set_ssrc(SWIGTYPE_p_switch_rtp rtp_session, uint ssrc) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ssrc); + return ret; + } + + public static switch_status_t switch_rtp_set_remote_ssrc(SWIGTYPE_p_switch_rtp rtp_session, uint ssrc) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_remote_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ssrc); + return ret; + } + + public static ushort switch_rtp_set_end_port(ushort port) { + ushort ret = freeswitchPINVOKE.switch_rtp_set_end_port(port); + return ret; + } + + public static ushort switch_rtp_request_port(string ip) { + ushort ret = freeswitchPINVOKE.switch_rtp_request_port(ip); + return ret; + } + + public static void switch_rtp_release_port(string ip, ushort port) { + freeswitchPINVOKE.switch_rtp_release_port(ip, port); + } + + public static switch_status_t switch_rtp_set_interval(SWIGTYPE_p_switch_rtp rtp_session, uint ms_per_packet, uint samples_per_interval) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_interval(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ms_per_packet, samples_per_interval); + return ret; + } + + public static switch_status_t switch_rtp_change_interval(SWIGTYPE_p_switch_rtp rtp_session, uint ms_per_packet, uint samples_per_interval) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_change_interval(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ms_per_packet, samples_per_interval); + return ret; + } + + public static switch_status_t switch_rtp_create(SWIGTYPE_p_p_switch_rtp new_rtp_session, byte payload, uint samples_per_interval, uint ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t flags, string timer_name, ref string err, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_create(SWIGTYPE_p_p_switch_rtp.getCPtr(new_rtp_session), payload, samples_per_interval, ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags), timer_name, ref err, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + return ret; + } + + public static SWIGTYPE_p_switch_rtp switch_rtp_new(string rx_host, ushort rx_port, string tx_host, ushort tx_port, byte payload, uint samples_per_interval, uint ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t flags, string timer_name, ref string err, SWIGTYPE_p_apr_pool_t pool) { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_new(rx_host, rx_port, tx_host, tx_port, payload, samples_per_interval, ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags), timer_name, ref err, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + SWIGTYPE_p_switch_rtp ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_rtp(cPtr, false); + return ret; + } + + public static switch_status_t switch_rtp_set_remote_address(SWIGTYPE_p_switch_rtp rtp_session, string host, ushort port, ushort remote_rtcp_port, switch_bool_t change_adv_addr, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_remote_address(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), host, port, remote_rtcp_port, (int)change_adv_addr, ref err); + return ret; + } + + public static string switch_rtp_get_remote_host(SWIGTYPE_p_switch_rtp rtp_session) { + string ret = freeswitchPINVOKE.switch_rtp_get_remote_host(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static ushort switch_rtp_get_remote_port(SWIGTYPE_p_switch_rtp rtp_session) { + ushort ret = freeswitchPINVOKE.switch_rtp_get_remote_port(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_reset_media_timer(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_reset_media_timer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static void switch_rtp_set_max_missed_packets(SWIGTYPE_p_switch_rtp rtp_session, uint max) { + freeswitchPINVOKE.switch_rtp_set_max_missed_packets(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), max); + } + + public static switch_status_t switch_rtp_udptl_mode(SWIGTYPE_p_switch_rtp rtp_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_udptl_mode(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_reset(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_reset(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static switch_status_t switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp rtp_session, string host, ushort port, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), host, port, ref err); + return ret; + } + + public static void switch_rtp_kill_socket(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_kill_socket(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static void switch_rtp_break(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_break(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static void switch_rtp_flush(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_flush(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static byte switch_rtp_ready(SWIGTYPE_p_switch_rtp rtp_session) { + byte ret = freeswitchPINVOKE.switch_rtp_ready(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_destroy(SWIGTYPE_p_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_destroy(SWIGTYPE_p_p_switch_rtp.getCPtr(rtp_session)); + } + + public static switch_status_t switch_rtp_activate_ice(SWIGTYPE_p_switch_rtp rtp_session, string login, string rlogin, string password, string rpassword, ice_proto_t proto, switch_core_media_ice_type_t type, ice_t ice_params) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_ice(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), login, rlogin, password, rpassword, (int)proto, (int)type, ice_t.getCPtr(ice_params)); + return ret; + } + + public static switch_status_t switch_rtp_activate_rtcp(SWIGTYPE_p_switch_rtp rtp_session, int send_rate, ushort remote_port, switch_bool_t mux) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_rtcp(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), send_rate, remote_port, (int)mux); + return ret; + } + + public static switch_status_t switch_rtp_activate_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, uint queue_frames, uint max_queue_frames, uint samples_per_packet, uint samples_per_second, uint max_drift) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), queue_frames, max_queue_frames, samples_per_packet, samples_per_second, max_drift); + return ret; + } + + public static switch_status_t switch_rtp_debug_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, string name) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_debug_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), name); + return ret; + } + + public static switch_status_t switch_rtp_deactivate_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_deactivate_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static switch_status_t switch_rtp_pause_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, switch_bool_t pause) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_pause_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)pause); + return ret; + } + + public static SWIGTYPE_p_stfu_instance_t switch_rtp_get_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session) { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + SWIGTYPE_p_stfu_instance_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_stfu_instance_t(cPtr, false); + return ret; + } + + public static void switch_rtp_set_flag(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flag_t flag) { + freeswitchPINVOKE.switch_rtp_set_flag(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flag); + } + + public static void switch_rtp_set_flags(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_rtp_flag_t flags) { + freeswitchPINVOKE.switch_rtp_set_flags(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags)); + } + + public static void switch_rtp_clear_flags(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_rtp_flag_t flags) { + freeswitchPINVOKE.switch_rtp_clear_flags(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags)); + } + + public static uint switch_rtp_test_flag(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flag_t flags) { + uint ret = freeswitchPINVOKE.switch_rtp_test_flag(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flags); + return ret; + } + + public static void switch_rtp_clear_flag(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flag_t flag) { + freeswitchPINVOKE.switch_rtp_clear_flag(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flag); + } + + public static SWIGTYPE_p_switch_socket_t switch_rtp_get_rtp_socket(SWIGTYPE_p_switch_rtp rtp_session) { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_rtp_socket(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + SWIGTYPE_p_switch_socket_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_socket_t(cPtr, false); + return ret; + } + + public static void switch_rtp_ping(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_ping(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static uint switch_rtp_get_default_samples_per_interval(SWIGTYPE_p_switch_rtp rtp_session) { + uint ret = freeswitchPINVOKE.switch_rtp_get_default_samples_per_interval(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_set_default_payload(SWIGTYPE_p_switch_rtp rtp_session, byte payload) { + freeswitchPINVOKE.switch_rtp_set_default_payload(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), payload); + } + + public static uint switch_rtp_get_default_payload(SWIGTYPE_p_switch_rtp rtp_session) { + uint ret = freeswitchPINVOKE.switch_rtp_get_default_payload(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_set_invalid_handler(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void on_invalid) { + freeswitchPINVOKE.switch_rtp_set_invalid_handler(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void.getCPtr(on_invalid)); + } + + public static switch_status_t switch_rtp_read(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void data, SWIGTYPE_p_unsigned_long datalen, SWIGTYPE_p_unsigned_char payload_type, SWIGTYPE_p_unsigned_long flags, uint io_flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_read(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_unsigned_long.getCPtr(datalen), SWIGTYPE_p_unsigned_char.getCPtr(payload_type), SWIGTYPE_p_unsigned_long.getCPtr(flags), io_flags); + return ret; + } + + public static switch_status_t switch_rtp_queue_rfc2833(SWIGTYPE_p_switch_rtp rtp_session, switch_dtmf_t dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_queue_rfc2833(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_dtmf_t.getCPtr(dtmf)); + return ret; + } + + public static switch_status_t switch_rtp_queue_rfc2833_in(SWIGTYPE_p_switch_rtp rtp_session, switch_dtmf_t dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_queue_rfc2833_in(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_dtmf_t.getCPtr(dtmf)); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_rtp_has_dtmf(SWIGTYPE_p_switch_rtp rtp_session) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_has_dtmf(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)), true); + return ret; + } + + public static SWIGTYPE_p_switch_size_t switch_rtp_dequeue_dtmf(SWIGTYPE_p_switch_rtp rtp_session, switch_dtmf_t dtmf) { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_dequeue_dtmf(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_dtmf_t.getCPtr(dtmf)), true); + return ret; + } + + public static switch_status_t switch_rtp_zerocopy_read(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_p_void data, SWIGTYPE_p_unsigned_long datalen, SWIGTYPE_p_unsigned_char payload_type, SWIGTYPE_p_unsigned_long flags, uint io_flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_zerocopy_read(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_p_void.getCPtr(data), SWIGTYPE_p_unsigned_long.getCPtr(datalen), SWIGTYPE_p_unsigned_char.getCPtr(payload_type), SWIGTYPE_p_unsigned_long.getCPtr(flags), io_flags); + return ret; + } + + public static switch_status_t switch_rtp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp rtp_session, switch_frame frame, uint io_flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_frame.getCPtr(frame), io_flags); + return ret; + } + + public static switch_status_t switch_rtcp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_rtcp_frame frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtcp_zerocopy_read_frame(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_rtcp_frame.getCPtr(frame)); + return ret; + } + + public static void rtp_flush_read_buffer(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_flush_t flush) { + freeswitchPINVOKE.rtp_flush_read_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)flush); + } + + public static switch_status_t switch_rtp_enable_vad(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_switch_core_session session, switch_codec codec, uint flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_enable_vad(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec.getCPtr(codec), flags); + return ret; + } + + public static switch_status_t switch_rtp_disable_vad(SWIGTYPE_p_switch_rtp rtp_session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_disable_vad(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static int switch_rtp_write_frame(SWIGTYPE_p_switch_rtp rtp_session, switch_frame frame) { + int ret = freeswitchPINVOKE.switch_rtp_write_frame(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), switch_frame.getCPtr(frame)); + return ret; + } + + public static int switch_rtp_write_manual(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void data, uint datalen, byte m, byte payload, uint ts, SWIGTYPE_p_unsigned_long flags) { + int ret = freeswitchPINVOKE.switch_rtp_write_manual(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(data), datalen, m, payload, ts, SWIGTYPE_p_unsigned_long.getCPtr(flags)); + return ret; + } + + public static uint switch_rtp_get_ssrc(SWIGTYPE_p_switch_rtp rtp_session) { + uint ret = freeswitchPINVOKE.switch_rtp_get_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_set_private(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void private_data) { + freeswitchPINVOKE.switch_rtp_set_private(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(private_data)); + } + + public static void switch_rtp_set_telephony_event(SWIGTYPE_p_switch_rtp rtp_session, byte te) { + freeswitchPINVOKE.switch_rtp_set_telephony_event(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), te); + } + + public static void switch_rtp_set_telephony_recv_event(SWIGTYPE_p_switch_rtp rtp_session, byte te) { + freeswitchPINVOKE.switch_rtp_set_telephony_recv_event(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), te); + } + + public static void switch_rtp_set_cng_pt(SWIGTYPE_p_switch_rtp rtp_session, byte pt) { + freeswitchPINVOKE.switch_rtp_set_cng_pt(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), pt); + } + + public static SWIGTYPE_p_void switch_rtp_get_private(SWIGTYPE_p_switch_rtp rtp_session) { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_private(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static switch_status_t switch_rtp_set_payload_map(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_p_payload_map_s pmap) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_payload_map(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_p_payload_map_s.getCPtr(pmap)); + return ret; + } + + public static void switch_rtp_intentional_bugs(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_bug_flag_t bugs) { + freeswitchPINVOKE.switch_rtp_intentional_bugs(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)bugs); + } + + public static switch_rtp_stats_t switch_rtp_get_stats(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_apr_pool_t pool) { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_stats(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + switch_rtp_stats_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_stats_t(cPtr, false); + return ret; + } + + public static byte switch_rtp_check_auto_adj(SWIGTYPE_p_switch_rtp rtp_session) { + byte ret = freeswitchPINVOKE.switch_rtp_check_auto_adj(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + return ret; + } + + public static void switch_rtp_set_interdigit_delay(SWIGTYPE_p_switch_rtp rtp_session, uint delay) { + freeswitchPINVOKE.switch_rtp_set_interdigit_delay(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), delay); + } + + public static switch_status_t switch_rtp_add_dtls(SWIGTYPE_p_switch_rtp rtp_session, dtls_fingerprint_t local_fp, dtls_fingerprint_t remote_fp, dtls_type_t type) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_add_dtls(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), dtls_fingerprint_t.getCPtr(local_fp), dtls_fingerprint_t.getCPtr(remote_fp), (int)type); + return ret; + } + + public static switch_status_t switch_rtp_del_dtls(SWIGTYPE_p_switch_rtp rtp_session, dtls_type_t type) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_del_dtls(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)type); + return ret; + } + + public static int switch_rtp_has_dtls() { + int ret = freeswitchPINVOKE.switch_rtp_has_dtls(); + return ret; + } + + public static void switch_rtp_video_refresh(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_video_refresh(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + + public static switch_status_t switch_log_init(SWIGTYPE_p_apr_pool_t pool, switch_bool_t colorize) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool), (int)colorize); + return ret; + } + + public static switch_status_t switch_log_shutdown() { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_shutdown(); + return ret; + } + + public static switch_status_t switch_log_bind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t function, switch_log_level_t level, switch_bool_t is_console) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_bind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t.getCPtr(function), (int)level, (int)is_console); + return ret; + } + + public static switch_status_t switch_log_unbind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t function) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_unbind_logger(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t.getCPtr(function)); + return ret; + } + + public static string switch_log_level2str(switch_log_level_t level) { + string ret = freeswitchPINVOKE.switch_log_level2str((int)level); + return ret; + } + + public static switch_log_level_t switch_log_str2level(string str) { + switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_log_str2level(str); + return ret; + } + + public static uint switch_log_str2mask(string str) { + uint ret = freeswitchPINVOKE.switch_log_str2mask(str); + return ret; + } + + public static switch_log_node_t switch_log_node_dup(switch_log_node_t node) { + IntPtr cPtr = freeswitchPINVOKE.switch_log_node_dup(switch_log_node_t.getCPtr(node)); + switch_log_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_log_node_t(cPtr, false); + return ret; + } + + public static void switch_log_node_free(SWIGTYPE_p_p_switch_log_node_t pnode) { + freeswitchPINVOKE.switch_log_node_free(SWIGTYPE_p_p_switch_log_node_t.getCPtr(pnode)); + } + + public static switch_xml switch_xml_parse_str_dynamic(string s, switch_bool_t dup) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_str_dynamic(s, (int)dup); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_parse_str(string s, SWIGTYPE_p_switch_size_t len) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_str(s, SWIGTYPE_p_switch_size_t.getCPtr(len)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_xml switch_xml_parse_fd(int fd) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_fd(fd); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_parse_file(string file) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_file(file); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_parse_file_simple(string file) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_file_simple(file); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_parse_fp(SWIGTYPE_p_FILE fp) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_fp(SWIGTYPE_p_FILE.getCPtr(fp)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_child(switch_xml xml, string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_child(switch_xml.getCPtr(xml), name); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_find_child(switch_xml node, string childname, string attrname, string value) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_find_child(switch_xml.getCPtr(node), childname, attrname, value); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_find_child_multi(switch_xml node, string childname) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_find_child_multi(switch_xml.getCPtr(node), childname); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static string switch_xml_attr(switch_xml xml, string attr) { + string ret = freeswitchPINVOKE.switch_xml_attr(switch_xml.getCPtr(xml), attr); + return ret; + } + + public static string switch_xml_attr_soft(switch_xml xml, string attr) { + string ret = freeswitchPINVOKE.switch_xml_attr_soft(switch_xml.getCPtr(xml), attr); + return ret; + } + + public static switch_xml switch_xml_get(switch_xml xml) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_get(switch_xml.getCPtr(xml)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static string switch_xml_toxml(switch_xml xml, switch_bool_t prn_header) { + string ret = freeswitchPINVOKE.switch_xml_toxml(switch_xml.getCPtr(xml), (int)prn_header); + return ret; + } + + public static string switch_xml_toxml_nolock(switch_xml xml, switch_bool_t prn_header) { + string ret = freeswitchPINVOKE.switch_xml_toxml_nolock(switch_xml.getCPtr(xml), (int)prn_header); + return ret; + } + + public static string switch_xml_tohtml(switch_xml xml, switch_bool_t prn_header) { + string ret = freeswitchPINVOKE.switch_xml_tohtml(switch_xml.getCPtr(xml), (int)prn_header); + return ret; + } + + public static string switch_xml_toxml_buf(switch_xml xml, string buf, SWIGTYPE_p_switch_size_t buflen, SWIGTYPE_p_switch_size_t offset, switch_bool_t prn_header) { + string ret = freeswitchPINVOKE.switch_xml_toxml_buf(switch_xml.getCPtr(xml), buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen), SWIGTYPE_p_switch_size_t.getCPtr(offset), (int)prn_header); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void switch_xml_free(switch_xml xml) { + freeswitchPINVOKE.switch_xml_free(switch_xml.getCPtr(xml)); + } + + public static void switch_xml_free_in_thread(switch_xml xml, int stacksize) { + freeswitchPINVOKE.switch_xml_free_in_thread(switch_xml.getCPtr(xml), stacksize); + } + + public static string switch_xml_error(switch_xml xml) { + string ret = freeswitchPINVOKE.switch_xml_error(switch_xml.getCPtr(xml)); + return ret; + } + + public static switch_xml switch_xml_new(string name) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_new(name); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_add_child(switch_xml xml, string name, SWIGTYPE_p_switch_size_t off) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_add_child(switch_xml.getCPtr(xml), name, SWIGTYPE_p_switch_size_t.getCPtr(off)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_xml switch_xml_set_txt(switch_xml xml, string txt) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_set_txt(switch_xml.getCPtr(xml), txt); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_set_attr(switch_xml xml, string name, string value) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_set_attr(switch_xml.getCPtr(xml), name, value); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_set_flag(switch_xml xml, switch_xml_flag_t flag) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_set_flag(switch_xml.getCPtr(xml), (int)flag); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_cut(switch_xml xml) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_cut(switch_xml.getCPtr(xml)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_insert(switch_xml xml, switch_xml dest, SWIGTYPE_p_switch_size_t off) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_insert(switch_xml.getCPtr(xml), switch_xml.getCPtr(dest), SWIGTYPE_p_switch_size_t.getCPtr(off)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_xml_set_root(switch_xml new_main) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_set_root(switch_xml.getCPtr(new_main)); + return ret; + } + + public static switch_status_t switch_xml_set_open_root_function(SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml func, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_set_open_root_function(SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml.getCPtr(func), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_xml switch_xml_open_root(byte reload, ref string err) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_open_root(reload, ref err); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_status_t switch_xml_init(SWIGTYPE_p_apr_pool_t pool, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool), ref err); + return ret; + } + + public static switch_status_t switch_xml_reload(ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_reload(ref err); + return ret; + } + + public static switch_status_t switch_xml_destroy() { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_destroy(); + return ret; + } + + public static switch_xml switch_xml_root() { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_root(); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_status_t switch_xml_locate(string section, string tag_name, string key_name, string key_value, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml node, switch_event arg6, switch_bool_t clone) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate(section, tag_name, key_name, key_value, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg6), (int)clone); + return ret; + } + + public static switch_status_t switch_xml_locate_domain(string domain_name, switch_event arg1, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_domain(domain_name, switch_event.getCPtr(arg1), SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain)); + return ret; + } + + public static switch_status_t switch_xml_locate_group(string group_name, string domain_name, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml group, switch_event arg5) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_group(group_name, domain_name, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(group), switch_event.getCPtr(arg5)); + return ret; + } + + public static switch_status_t switch_xml_locate_user(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml user, SWIGTYPE_p_p_switch_xml ingroup, switch_event arg8) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), SWIGTYPE_p_p_switch_xml.getCPtr(ingroup), switch_event.getCPtr(arg8)); + return ret; + } + + public static switch_status_t switch_xml_locate_user_in_domain(string user_name, switch_xml domain, SWIGTYPE_p_p_switch_xml user, SWIGTYPE_p_p_switch_xml ingroup) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user_in_domain(user_name, switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), SWIGTYPE_p_p_switch_xml.getCPtr(ingroup)); + return ret; + } + + public static switch_status_t switch_xml_locate_user_merged(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml user, switch_event arg5) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user_merged(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(user), switch_event.getCPtr(arg5)); + return ret; + } + + public static uint switch_xml_clear_user_cache(string key, string user_name, string domain_name) { + uint ret = freeswitchPINVOKE.switch_xml_clear_user_cache(key, user_name, domain_name); + return ret; + } + + public static void switch_xml_merge_user(switch_xml user, switch_xml domain, switch_xml group) { + freeswitchPINVOKE.switch_xml_merge_user(switch_xml.getCPtr(user), switch_xml.getCPtr(domain), switch_xml.getCPtr(group)); + } + + public static switch_xml switch_xml_dup(switch_xml xml) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_dup(switch_xml.getCPtr(xml)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static switch_xml switch_xml_open_cfg(string file_path, SWIGTYPE_p_p_switch_xml node, switch_event arg2) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_open_cfg(file_path, SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg2)); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + + public static void switch_xml_set_binding_sections(SWIGTYPE_p_switch_xml_binding binding, uint sections) { + freeswitchPINVOKE.switch_xml_set_binding_sections(SWIGTYPE_p_switch_xml_binding.getCPtr(binding), sections); + } + + public static void switch_xml_set_binding_user_data(SWIGTYPE_p_switch_xml_binding binding, SWIGTYPE_p_void user_data) { + freeswitchPINVOKE.switch_xml_set_binding_user_data(SWIGTYPE_p_switch_xml_binding.getCPtr(binding), SWIGTYPE_p_void.getCPtr(user_data)); + } + + public static uint switch_xml_get_binding_sections(SWIGTYPE_p_switch_xml_binding binding) { + uint ret = freeswitchPINVOKE.switch_xml_get_binding_sections(SWIGTYPE_p_switch_xml_binding.getCPtr(binding)); + return ret; + } + + public static SWIGTYPE_p_void switch_xml_get_binding_user_data(SWIGTYPE_p_switch_xml_binding binding) { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_get_binding_user_data(SWIGTYPE_p_switch_xml_binding.getCPtr(binding)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static switch_status_t switch_xml_bind_search_function_ret(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml function, uint sections, SWIGTYPE_p_void user_data, SWIGTYPE_p_p_switch_xml_binding ret_binding) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_bind_search_function_ret(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml.getCPtr(function), sections, SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_p_switch_xml_binding.getCPtr(ret_binding)); + return ret; + } + + public static switch_status_t switch_xml_unbind_search_function(SWIGTYPE_p_p_switch_xml_binding binding) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_unbind_search_function(SWIGTYPE_p_p_switch_xml_binding.getCPtr(binding)); + return ret; + } + + public static switch_status_t switch_xml_unbind_search_function_ptr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml function) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_unbind_search_function_ptr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml.getCPtr(function)); + return ret; + } + + public static uint switch_xml_parse_section_string(string str) { + uint ret = freeswitchPINVOKE.switch_xml_parse_section_string(str); + return ret; + } + + public static int switch_xml_std_datetime_check(switch_xml xcond, SWIGTYPE_p_int offset, string tzname) { + int ret = freeswitchPINVOKE.switch_xml_std_datetime_check(switch_xml.getCPtr(xcond), SWIGTYPE_p_int.getCPtr(offset), tzname); + return ret; + } + + public static switch_status_t switch_xml_locate_language(SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml node, switch_event arg2, SWIGTYPE_p_p_switch_xml language, SWIGTYPE_p_p_switch_xml phrases, SWIGTYPE_p_p_switch_xml macros, string str_language) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_language(SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg2), SWIGTYPE_p_p_switch_xml.getCPtr(language), SWIGTYPE_p_p_switch_xml.getCPtr(phrases), SWIGTYPE_p_p_switch_xml.getCPtr(macros), str_language); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_outgoing_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t outgoing_channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t.getCPtr(outgoing_channel)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_receive_message(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_receive_message(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(receive_message)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_receive_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_receive_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(receive_event)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_state_change(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_state_change(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_change)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_state_run(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_state_run(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_run)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(read_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(write_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_video_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t video_read_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_video_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_read_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_video_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t video_write_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_video_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_write_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_kill_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_kill_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(kill_channel)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_send_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t send_dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_send_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(send_dtmf)); + return ret; + } + + public static switch_status_t switch_core_event_hook_add_recv_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t recv_dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_add_recv_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(recv_dtmf)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_outgoing_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t outgoing_channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t.getCPtr(outgoing_channel)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_receive_message(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_receive_message(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(receive_message)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_receive_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_receive_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(receive_event)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_state_change(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_state_change(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_change)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_state_run(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_state_run(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(state_run)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(read_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(write_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_video_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t video_read_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_video_read_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_read_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_video_write_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t video_write_frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_video_write_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(video_write_frame)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_kill_channel(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_kill_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(kill_channel)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_send_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t send_dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_send_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(send_dtmf)); + return ret; + } + + public static switch_status_t switch_core_event_hook_remove_recv_dtmf(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t recv_dtmf) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_event_hook_remove_recv_dtmf(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(recv_dtmf)); + return ret; + } + + public static uint switch_scheduler_add_task(SWIGTYPE_p_time_t task_runtime, SWIGTYPE_p_f_p_switch_scheduler_task__void func, string desc, string group, uint cmd_id, SWIGTYPE_p_void cmd_arg, uint flags) { + uint ret = freeswitchPINVOKE.switch_scheduler_add_task(SWIGTYPE_p_time_t.getCPtr(task_runtime), SWIGTYPE_p_f_p_switch_scheduler_task__void.getCPtr(func), desc, group, cmd_id, SWIGTYPE_p_void.getCPtr(cmd_arg), flags); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint switch_scheduler_del_task_id(uint task_id) { + uint ret = freeswitchPINVOKE.switch_scheduler_del_task_id(task_id); + return ret; + } + + public static uint switch_scheduler_del_task_group(string group) { + uint ret = freeswitchPINVOKE.switch_scheduler_del_task_group(group); + return ret; + } + + public static void switch_scheduler_task_thread_start() { + freeswitchPINVOKE.switch_scheduler_task_thread_start(); + } + + public static void switch_scheduler_task_thread_stop() { + freeswitchPINVOKE.switch_scheduler_task_thread_stop(); + } + + public static int switch_config_open_file(switch_config cfg, string file_path) { + int ret = freeswitchPINVOKE.switch_config_open_file(switch_config.getCPtr(cfg), file_path); + return ret; + } + + public static void switch_config_close_file(switch_config cfg) { + freeswitchPINVOKE.switch_config_close_file(switch_config.getCPtr(cfg)); + } + + public static int switch_config_next_pair(switch_config cfg, ref string var, ref string val) { + int ret = freeswitchPINVOKE.switch_config_next_pair(switch_config.getCPtr(cfg), ref var, ref val); + return ret; + } + + public static void setGlobalVariable(string var_name, string var_val) { + freeswitchPINVOKE.setGlobalVariable(var_name, var_val); + } + + public static string getGlobalVariable(string var_name) { + string ret = freeswitchPINVOKE.getGlobalVariable(var_name); + return ret; + } + + public static void consoleLog(string level_str, string msg) { + freeswitchPINVOKE.consoleLog(level_str, msg); + } + + public static void consoleLog2(string level_str, string file, string func, int line, string msg) { + freeswitchPINVOKE.consoleLog2(level_str, file, func, line, msg); + } + + public static void consoleCleanLog(string msg) { + freeswitchPINVOKE.consoleCleanLog(msg); + } + + public static bool running() { + bool ret = freeswitchPINVOKE.running(); + return ret; + } + + public static bool email(string to, string from, string headers, string body, string file, string convert_cmd, string convert_ext) { + bool ret = freeswitchPINVOKE.email(to, from, headers, body, file, convert_cmd, convert_ext); + return ret; + } + + public static void console_log(string level_str, string msg) { + freeswitchPINVOKE.console_log(level_str, msg); + } + + public static void console_log2(string level_str, string file, string func, int line, string msg) { + freeswitchPINVOKE.console_log2(level_str, file, func, line, msg); + } + + public static void console_clean_log(string msg) { + freeswitchPINVOKE.console_clean_log(msg); + } + + public static void msleep(uint ms) { + freeswitchPINVOKE.msleep(ms); + } + + public static void bridge(CoreSession session_a, CoreSession session_b) { + freeswitchPINVOKE.bridge(CoreSession.getCPtr(session_a), CoreSession.getCPtr(session_b)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static switch_status_t hanguphook(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.hanguphook(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + + public static switch_status_t dtmf_callback(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_void input, switch_input_type_t itype, SWIGTYPE_p_void buf, uint buflen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.dtmf_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_void.getCPtr(input), (int)itype, SWIGTYPE_p_void.getCPtr(buf), buflen); + return ret; + } + + public static readonly string FREESWITCH_PEN = freeswitchPINVOKE.FREESWITCH_PEN_get(); + public static readonly string FREESWITCH_OID_PREFIX = freeswitchPINVOKE.FREESWITCH_OID_PREFIX_get(); + public static readonly string FREESWITCH_ITAD = freeswitchPINVOKE.FREESWITCH_ITAD_get(); + public static readonly int __EXTENSIONS__ = freeswitchPINVOKE.__EXTENSIONS___get(); + public static readonly int __BSD_VISIBLE = freeswitchPINVOKE.__BSD_VISIBLE_get(); + public static readonly string SWITCH_ENT_ORIGINATE_DELIM = freeswitchPINVOKE.SWITCH_ENT_ORIGINATE_DELIM_get(); + public static readonly string SWITCH_BLANK_STRING = freeswitchPINVOKE.SWITCH_BLANK_STRING_get(); + public static readonly int SWITCH_TON_UNDEF = freeswitchPINVOKE.SWITCH_TON_UNDEF_get(); + public static readonly int SWITCH_NUMPLAN_UNDEF = freeswitchPINVOKE.SWITCH_NUMPLAN_UNDEF_get(); + public static readonly string SWITCH_SEQ_ESC = freeswitchPINVOKE.SWITCH_SEQ_ESC_get(); + public static readonly char SWITCH_SEQ_HOME_CHAR = freeswitchPINVOKE.SWITCH_SEQ_HOME_CHAR_get(); + public static readonly string SWITCH_SEQ_HOME_CHAR_STR = freeswitchPINVOKE.SWITCH_SEQ_HOME_CHAR_STR_get(); + public static readonly char SWITCH_SEQ_CLEARLINE_CHAR = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINE_CHAR_get(); + public static readonly string SWITCH_SEQ_CLEARLINE_CHAR_STR = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINE_CHAR_STR_get(); + public static readonly string SWITCH_SEQ_CLEARLINEEND_CHAR = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINEEND_CHAR_get(); + public static readonly char SWITCH_SEQ_CLEARSCR_CHAR0 = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_CHAR0_get(); + public static readonly char SWITCH_SEQ_CLEARSCR_CHAR1 = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_CHAR1_get(); + public static readonly string SWITCH_SEQ_CLEARSCR_CHAR = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_CHAR_get(); + public static readonly string SWITCH_SEQ_AND_COLOR = freeswitchPINVOKE.SWITCH_SEQ_AND_COLOR_get(); + public static readonly string SWITCH_SEQ_END_COLOR = freeswitchPINVOKE.SWITCH_SEQ_END_COLOR_get(); + public static readonly string SWITCH_SEQ_F_BLACK = freeswitchPINVOKE.SWITCH_SEQ_F_BLACK_get(); + public static readonly string SWITCH_SEQ_F_RED = freeswitchPINVOKE.SWITCH_SEQ_F_RED_get(); + public static readonly string SWITCH_SEQ_F_GREEN = freeswitchPINVOKE.SWITCH_SEQ_F_GREEN_get(); + public static readonly string SWITCH_SEQ_F_YELLOW = freeswitchPINVOKE.SWITCH_SEQ_F_YELLOW_get(); + public static readonly string SWITCH_SEQ_F_BLUE = freeswitchPINVOKE.SWITCH_SEQ_F_BLUE_get(); + public static readonly string SWITCH_SEQ_F_MAGEN = freeswitchPINVOKE.SWITCH_SEQ_F_MAGEN_get(); + public static readonly string SWITCH_SEQ_F_CYAN = freeswitchPINVOKE.SWITCH_SEQ_F_CYAN_get(); + public static readonly string SWITCH_SEQ_F_WHITE = freeswitchPINVOKE.SWITCH_SEQ_F_WHITE_get(); + public static readonly string SWITCH_SEQ_B_BLACK = freeswitchPINVOKE.SWITCH_SEQ_B_BLACK_get(); + public static readonly string SWITCH_SEQ_B_RED = freeswitchPINVOKE.SWITCH_SEQ_B_RED_get(); + public static readonly string SWITCH_SEQ_B_GREEN = freeswitchPINVOKE.SWITCH_SEQ_B_GREEN_get(); + public static readonly string SWITCH_SEQ_B_YELLOW = freeswitchPINVOKE.SWITCH_SEQ_B_YELLOW_get(); + public static readonly string SWITCH_SEQ_B_BLUE = freeswitchPINVOKE.SWITCH_SEQ_B_BLUE_get(); + public static readonly string SWITCH_SEQ_B_MAGEN = freeswitchPINVOKE.SWITCH_SEQ_B_MAGEN_get(); + public static readonly string SWITCH_SEQ_B_CYAN = freeswitchPINVOKE.SWITCH_SEQ_B_CYAN_get(); + public static readonly string SWITCH_SEQ_B_WHITE = freeswitchPINVOKE.SWITCH_SEQ_B_WHITE_get(); + public static readonly string SWITCH_SEQ_FBLACK = freeswitchPINVOKE.SWITCH_SEQ_FBLACK_get(); + public static readonly string SWITCH_SEQ_FRED = freeswitchPINVOKE.SWITCH_SEQ_FRED_get(); + public static readonly string SWITCH_SEQ_FGREEN = freeswitchPINVOKE.SWITCH_SEQ_FGREEN_get(); + public static readonly string SWITCH_SEQ_FYELLOW = freeswitchPINVOKE.SWITCH_SEQ_FYELLOW_get(); + public static readonly string SWITCH_SEQ_FBLUE = freeswitchPINVOKE.SWITCH_SEQ_FBLUE_get(); + public static readonly string SWITCH_SEQ_FMAGEN = freeswitchPINVOKE.SWITCH_SEQ_FMAGEN_get(); + public static readonly string SWITCH_SEQ_FCYAN = freeswitchPINVOKE.SWITCH_SEQ_FCYAN_get(); + public static readonly string SWITCH_SEQ_FWHITE = freeswitchPINVOKE.SWITCH_SEQ_FWHITE_get(); + public static readonly string SWITCH_SEQ_BBLACK = freeswitchPINVOKE.SWITCH_SEQ_BBLACK_get(); + public static readonly string SWITCH_SEQ_BRED = freeswitchPINVOKE.SWITCH_SEQ_BRED_get(); + public static readonly string SWITCH_SEQ_BGREEN = freeswitchPINVOKE.SWITCH_SEQ_BGREEN_get(); + public static readonly string SWITCH_SEQ_BYELLOW = freeswitchPINVOKE.SWITCH_SEQ_BYELLOW_get(); + public static readonly string SWITCH_SEQ_BBLUE = freeswitchPINVOKE.SWITCH_SEQ_BBLUE_get(); + public static readonly string SWITCH_SEQ_BMAGEN = freeswitchPINVOKE.SWITCH_SEQ_BMAGEN_get(); + public static readonly string SWITCH_SEQ_BCYAN = freeswitchPINVOKE.SWITCH_SEQ_BCYAN_get(); + public static readonly string SWITCH_SEQ_BWHITE = freeswitchPINVOKE.SWITCH_SEQ_BWHITE_get(); + public static readonly string SWITCH_SEQ_HOME = freeswitchPINVOKE.SWITCH_SEQ_HOME_get(); + public static readonly string SWITCH_SEQ_CLEARLINE = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINE_get(); + public static readonly string SWITCH_SEQ_CLEARLINEEND = freeswitchPINVOKE.SWITCH_SEQ_CLEARLINEEND_get(); + public static readonly string SWITCH_SEQ_CLEARSCR = freeswitchPINVOKE.SWITCH_SEQ_CLEARSCR_get(); + public static readonly string SWITCH_DEFAULT_CLID_NAME = freeswitchPINVOKE.SWITCH_DEFAULT_CLID_NAME_get(); + public static readonly string SWITCH_DEFAULT_CLID_NUMBER = freeswitchPINVOKE.SWITCH_DEFAULT_CLID_NUMBER_get(); + public static readonly int SWITCH_DEFAULT_DTMF_DURATION = freeswitchPINVOKE.SWITCH_DEFAULT_DTMF_DURATION_get(); + public static readonly int SWITCH_MIN_DTMF_DURATION = freeswitchPINVOKE.SWITCH_MIN_DTMF_DURATION_get(); + public static readonly int SWITCH_MAX_DTMF_DURATION = freeswitchPINVOKE.SWITCH_MAX_DTMF_DURATION_get(); + public static readonly string SWITCH_PATH_SEPARATOR = freeswitchPINVOKE.SWITCH_PATH_SEPARATOR_get(); + public static readonly string SWITCH_URL_SEPARATOR = freeswitchPINVOKE.SWITCH_URL_SEPARATOR_get(); + public static readonly string SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE = freeswitchPINVOKE.SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get(); + public static readonly string SWITCH_AUDIO_SPOOL_PATH_VARIABLE = freeswitchPINVOKE.SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get(); + public static readonly string SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get(); + public static readonly string SWITCH_READ_TERMINATOR_USED_VARIABLE = freeswitchPINVOKE.SWITCH_READ_TERMINATOR_USED_VARIABLE_get(); + public static readonly string SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE = freeswitchPINVOKE.SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get(); + public static readonly string SWITCH_CURRENT_APPLICATION_VARIABLE = freeswitchPINVOKE.SWITCH_CURRENT_APPLICATION_VARIABLE_get(); + public static readonly string SWITCH_CURRENT_APPLICATION_DATA_VARIABLE = freeswitchPINVOKE.SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get(); + public static readonly string SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE = freeswitchPINVOKE.SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get(); + public static readonly string SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE = freeswitchPINVOKE.SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get(); + public static readonly string SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE = freeswitchPINVOKE.SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get(); + public static readonly string SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_READ_RESULT_VARIABLE = freeswitchPINVOKE.SWITCH_READ_RESULT_VARIABLE_get(); + public static readonly string SWITCH_ATT_XFER_RESULT_VARIABLE = freeswitchPINVOKE.SWITCH_ATT_XFER_RESULT_VARIABLE_get(); + public static readonly string SWITCH_COPY_XML_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_COPY_XML_CDR_VARIABLE_get(); + public static readonly string SWITCH_COPY_JSON_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_COPY_JSON_CDR_VARIABLE_get(); + public static readonly string SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE = freeswitchPINVOKE.SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get(); + public static readonly string SWITCH_TRANSFER_HISTORY_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_HISTORY_VARIABLE_get(); + public static readonly string SWITCH_TRANSFER_SOURCE_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_SOURCE_VARIABLE_get(); + public static readonly string SWITCH_SENSITIVE_DTMF_VARIABLE = freeswitchPINVOKE.SWITCH_SENSITIVE_DTMF_VARIABLE_get(); + public static readonly string SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE = freeswitchPINVOKE.SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get(); + public static readonly string SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE = freeswitchPINVOKE.SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_RING_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_RING_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get(); + public static readonly string SWITCH_CALL_TIMEOUT_VARIABLE = freeswitchPINVOKE.SWITCH_CALL_TIMEOUT_VARIABLE_get(); + public static readonly string SWITCH_HOLDING_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_HOLDING_UUID_VARIABLE_get(); + public static readonly string SWITCH_SOFT_HOLDING_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_SOFT_HOLDING_UUID_VARIABLE_get(); + public static readonly string SWITCH_API_BRIDGE_END_VARIABLE = freeswitchPINVOKE.SWITCH_API_BRIDGE_END_VARIABLE_get(); + public static readonly string SWITCH_API_BRIDGE_START_VARIABLE = freeswitchPINVOKE.SWITCH_API_BRIDGE_START_VARIABLE_get(); + public static readonly string SWITCH_API_HANGUP_HOOK_VARIABLE = freeswitchPINVOKE.SWITCH_API_HANGUP_HOOK_VARIABLE_get(); + public static readonly string SWITCH_API_REPORTING_HOOK_VARIABLE = freeswitchPINVOKE.SWITCH_API_REPORTING_HOOK_VARIABLE_get(); + public static readonly string SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE = freeswitchPINVOKE.SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get(); + public static readonly string SWITCH_PROCESS_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_PROCESS_CDR_VARIABLE_get(); + public static readonly string SWITCH_SKIP_CDR_CAUSES_VARIABLE = freeswitchPINVOKE.SWITCH_SKIP_CDR_CAUSES_VARIABLE_get(); + public static readonly string SWITCH_FORCE_PROCESS_CDR_VARIABLE = freeswitchPINVOKE.SWITCH_FORCE_PROCESS_CDR_VARIABLE_get(); + public static readonly string SWITCH_BRIDGE_CHANNEL_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_CHANNEL_VARIABLE_get(); + public static readonly string SWITCH_CHANNEL_NAME_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_NAME_VARIABLE_get(); + public static readonly string SWITCH_BRIDGE_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_UUID_VARIABLE_get(); + public static readonly string SWITCH_CONTINUE_ON_FAILURE_VARIABLE = freeswitchPINVOKE.SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get(); + public static readonly string SWITCH_PLAYBACK_TERMINATORS_VARIABLE = freeswitchPINVOKE.SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get(); + public static readonly string SWITCH_PLAYBACK_TERMINATOR_USED = freeswitchPINVOKE.SWITCH_PLAYBACK_TERMINATOR_USED_get(); + public static readonly string SWITCH_CACHE_SPEECH_HANDLES_VARIABLE = freeswitchPINVOKE.SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get(); + public static readonly string SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME = freeswitchPINVOKE.SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get(); + public static readonly string SWITCH_BYPASS_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_BYPASS_MEDIA_VARIABLE_get(); + public static readonly string SWITCH_PROXY_MEDIA_VARIABLE = freeswitchPINVOKE.SWITCH_PROXY_MEDIA_VARIABLE_get(); + public static readonly string SWITCH_ZRTP_PASSTHRU_VARIABLE = freeswitchPINVOKE.SWITCH_ZRTP_PASSTHRU_VARIABLE_get(); + public static readonly string SWITCH_ENDPOINT_DISPOSITION_VARIABLE = freeswitchPINVOKE.SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get(); + public static readonly string SWITCH_HOLD_MUSIC_VARIABLE = freeswitchPINVOKE.SWITCH_HOLD_MUSIC_VARIABLE_get(); + public static readonly string SWITCH_TEMP_HOLD_MUSIC_VARIABLE = freeswitchPINVOKE.SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get(); + public static readonly string SWITCH_EXPORT_VARS_VARIABLE = freeswitchPINVOKE.SWITCH_EXPORT_VARS_VARIABLE_get(); + public static readonly string SWITCH_BRIDGE_EXPORT_VARS_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get(); + public static readonly string SWITCH_R_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_R_SDP_VARIABLE_get(); + public static readonly string SWITCH_L_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_L_SDP_VARIABLE_get(); + public static readonly string SWITCH_B_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_B_SDP_VARIABLE_get(); + public static readonly string SWITCH_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_LAST_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_LAST_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_SIGNAL_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_SIGNAL_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_SIGNAL_BOND_VARIABLE = freeswitchPINVOKE.SWITCH_SIGNAL_BOND_VARIABLE_get(); + public static readonly string SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get(); + public static readonly string SWITCH_ORIGINATOR_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_VARIABLE_get(); + public static readonly string SWITCH_ORIGINATOR_CODEC_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_CODEC_VARIABLE_get(); + public static readonly string SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get(); + public static readonly string SWITCH_LOCAL_MEDIA_IP_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_MEDIA_IP_VARIABLE_get(); + public static readonly string SWITCH_LOCAL_MEDIA_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get(); + public static readonly string SWITCH_ADVERTISED_MEDIA_IP_VARIABLE = freeswitchPINVOKE.SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get(); + public static readonly string SWITCH_REMOTE_MEDIA_IP_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_MEDIA_IP_VARIABLE_get(); + public static readonly string SWITCH_REMOTE_MEDIA_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get(); + public static readonly string SWITCH_REMOTE_VIDEO_IP_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_VIDEO_IP_VARIABLE_get(); + public static readonly string SWITCH_REMOTE_VIDEO_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get(); + public static readonly string SWITCH_LOCAL_VIDEO_IP_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_VIDEO_IP_VARIABLE_get(); + public static readonly string SWITCH_LOCAL_VIDEO_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get(); + public static readonly string SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_PARK_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE = freeswitchPINVOKE.SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get(); + public static readonly string SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE = freeswitchPINVOKE.SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get(); + public static readonly string SWITCH_MAX_FORWARDS_VARIABLE = freeswitchPINVOKE.SWITCH_MAX_FORWARDS_VARIABLE_get(); + public static readonly string SWITCH_DISABLE_APP_LOG_VARIABLE = freeswitchPINVOKE.SWITCH_DISABLE_APP_LOG_VARIABLE_get(); + public static readonly string SWITCH_SPEECH_KEY = freeswitchPINVOKE.SWITCH_SPEECH_KEY_get(); + public static readonly string SWITCH_UUID_BRIDGE = freeswitchPINVOKE.SWITCH_UUID_BRIDGE_get(); + public static readonly int SWITCH_BITS_PER_BYTE = freeswitchPINVOKE.SWITCH_BITS_PER_BYTE_get(); + public static readonly int SWITCH_DEFAULT_FILE_BUFFER_LEN = freeswitchPINVOKE.SWITCH_DEFAULT_FILE_BUFFER_LEN_get(); + public static readonly int SWITCH_DTMF_LOG_LEN = freeswitchPINVOKE.SWITCH_DTMF_LOG_LEN_get(); + public static readonly int SWITCH_MAX_TRANS = freeswitchPINVOKE.SWITCH_MAX_TRANS_get(); + public static readonly int SWITCH_CORE_SESSION_MAX_PRIVATES = freeswitchPINVOKE.SWITCH_CORE_SESSION_MAX_PRIVATES_get(); + public static readonly double JITTER_VARIANCE_THRESHOLD = freeswitchPINVOKE.JITTER_VARIANCE_THRESHOLD_get(); + public static readonly double IPDV_THRESHOLD = freeswitchPINVOKE.IPDV_THRESHOLD_get(); + public static readonly int LOST_BURST_ANALYZE = freeswitchPINVOKE.LOST_BURST_ANALYZE_get(); + public static readonly int LOST_BURST_CAPTURE = freeswitchPINVOKE.LOST_BURST_CAPTURE_get(); + public static readonly int SWITCH_MAX_STACKS = freeswitchPINVOKE.SWITCH_MAX_STACKS_get(); + public static readonly int SWITCH_THREAD_STACKSIZE = freeswitchPINVOKE.SWITCH_THREAD_STACKSIZE_get(); + public static readonly int SWITCH_SYSTEM_THREAD_STACKSIZE = freeswitchPINVOKE.SWITCH_SYSTEM_THREAD_STACKSIZE_get(); + public static readonly int SWITCH_MAX_INTERVAL = freeswitchPINVOKE.SWITCH_MAX_INTERVAL_get(); + public static readonly int SWITCH_INTERVAL_PAD = freeswitchPINVOKE.SWITCH_INTERVAL_PAD_get(); + public static readonly int SWITCH_MAX_SAMPLE_LEN = freeswitchPINVOKE.SWITCH_MAX_SAMPLE_LEN_get(); + public static readonly int SWITCH_BYTES_PER_SAMPLE = freeswitchPINVOKE.SWITCH_BYTES_PER_SAMPLE_get(); + public static readonly int SWITCH_RECOMMENDED_BUFFER_SIZE = freeswitchPINVOKE.SWITCH_RECOMMENDED_BUFFER_SIZE_get(); + public static readonly int SWITCH_MAX_CODECS = freeswitchPINVOKE.SWITCH_MAX_CODECS_get(); + public static readonly int SWITCH_MAX_STATE_HANDLERS = freeswitchPINVOKE.SWITCH_MAX_STATE_HANDLERS_get(); + public static readonly int SWITCH_CORE_QUEUE_LEN = freeswitchPINVOKE.SWITCH_CORE_QUEUE_LEN_get(); + public static readonly int SWITCH_MAX_MANAGEMENT_BUFFER_LEN = freeswitchPINVOKE.SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get(); + public static readonly int SWITCH_RTP_CNG_PAYLOAD = freeswitchPINVOKE.SWITCH_RTP_CNG_PAYLOAD_get(); + public static readonly int SWITCH_MEDIA_TYPE_TOTAL = freeswitchPINVOKE.SWITCH_MEDIA_TYPE_TOTAL_get(); + public static readonly int SWITCH_SOCK_INVALID = freeswitchPINVOKE.SWITCH_SOCK_INVALID_get(); + public static readonly int DMACHINE_MAX_DIGIT_LEN = freeswitchPINVOKE.DMACHINE_MAX_DIGIT_LEN_get(); + public static readonly int MAX_ARG_RECURSION = freeswitchPINVOKE.MAX_ARG_RECURSION_get(); + public static readonly int SWITCH_API_VERSION = freeswitchPINVOKE.SWITCH_API_VERSION_get(); + public static readonly int SWITCH_CORE_DB_OK = freeswitchPINVOKE.SWITCH_CORE_DB_OK_get(); + public static readonly int SWITCH_CORE_DB_ERROR = freeswitchPINVOKE.SWITCH_CORE_DB_ERROR_get(); + public static readonly int SWITCH_CORE_DB_INTERNAL = freeswitchPINVOKE.SWITCH_CORE_DB_INTERNAL_get(); + public static readonly int SWITCH_CORE_DB_PERM = freeswitchPINVOKE.SWITCH_CORE_DB_PERM_get(); + public static readonly int SWITCH_CORE_DB_ABORT = freeswitchPINVOKE.SWITCH_CORE_DB_ABORT_get(); + public static readonly int SWITCH_CORE_DB_BUSY = freeswitchPINVOKE.SWITCH_CORE_DB_BUSY_get(); + public static readonly int SWITCH_CORE_DB_LOCKED = freeswitchPINVOKE.SWITCH_CORE_DB_LOCKED_get(); + public static readonly int SWITCH_CORE_DB_NOMEM = freeswitchPINVOKE.SWITCH_CORE_DB_NOMEM_get(); + public static readonly int SWITCH_CORE_DB_READONLY = freeswitchPINVOKE.SWITCH_CORE_DB_READONLY_get(); + public static readonly int SWITCH_CORE_DB_INTERRUPT = freeswitchPINVOKE.SWITCH_CORE_DB_INTERRUPT_get(); + public static readonly int SWITCH_CORE_DB_IOERR = freeswitchPINVOKE.SWITCH_CORE_DB_IOERR_get(); + public static readonly int SWITCH_CORE_DB_CORRUPT = freeswitchPINVOKE.SWITCH_CORE_DB_CORRUPT_get(); + public static readonly int SWITCH_CORE_DB_NOTFOUND = freeswitchPINVOKE.SWITCH_CORE_DB_NOTFOUND_get(); + public static readonly int SWITCH_CORE_DB_FULL = freeswitchPINVOKE.SWITCH_CORE_DB_FULL_get(); + public static readonly int SWITCH_CORE_DB_CANTOPEN = freeswitchPINVOKE.SWITCH_CORE_DB_CANTOPEN_get(); + public static readonly int SWITCH_CORE_DB_PROTOCOL = freeswitchPINVOKE.SWITCH_CORE_DB_PROTOCOL_get(); + public static readonly int SWITCH_CORE_DB_EMPTY = freeswitchPINVOKE.SWITCH_CORE_DB_EMPTY_get(); + public static readonly int SWITCH_CORE_DB_SCHEMA = freeswitchPINVOKE.SWITCH_CORE_DB_SCHEMA_get(); + public static readonly int SWITCH_CORE_DB_TOOBIG = freeswitchPINVOKE.SWITCH_CORE_DB_TOOBIG_get(); + public static readonly int SWITCH_CORE_DB_CONSTRAINT = freeswitchPINVOKE.SWITCH_CORE_DB_CONSTRAINT_get(); + public static readonly int SWITCH_CORE_DB_MISMATCH = freeswitchPINVOKE.SWITCH_CORE_DB_MISMATCH_get(); + public static readonly int SWITCH_CORE_DB_MISUSE = freeswitchPINVOKE.SWITCH_CORE_DB_MISUSE_get(); + public static readonly int SWITCH_CORE_DB_NOLFS = freeswitchPINVOKE.SWITCH_CORE_DB_NOLFS_get(); + public static readonly int SWITCH_CORE_DB_AUTH = freeswitchPINVOKE.SWITCH_CORE_DB_AUTH_get(); + public static readonly int SWITCH_CORE_DB_FORMAT = freeswitchPINVOKE.SWITCH_CORE_DB_FORMAT_get(); + public static readonly int SWITCH_CORE_DB_RANGE = freeswitchPINVOKE.SWITCH_CORE_DB_RANGE_get(); + public static readonly int SWITCH_CORE_DB_NOTADB = freeswitchPINVOKE.SWITCH_CORE_DB_NOTADB_get(); + public static readonly int SWITCH_CORE_DB_ROW = freeswitchPINVOKE.SWITCH_CORE_DB_ROW_get(); + public static readonly int SWITCH_CORE_DB_DONE = freeswitchPINVOKE.SWITCH_CORE_DB_DONE_get(); + public static readonly int SWITCH_MAX_CORE_THREAD_SESSION_OBJS = freeswitchPINVOKE.SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get(); + public static readonly int SWITCH_MAX_STREAMS = freeswitchPINVOKE.SWITCH_MAX_STREAMS_get(); + public static readonly string DTLS_SRTP_FNAME = freeswitchPINVOKE.DTLS_SRTP_FNAME_get(); + public static readonly int MAX_FPLEN = freeswitchPINVOKE.MAX_FPLEN_get(); + public static readonly int MAX_FPSTRLEN = freeswitchPINVOKE.MAX_FPSTRLEN_get(); + public static readonly int MESSAGE_STRING_ARG_MAX = freeswitchPINVOKE.MESSAGE_STRING_ARG_MAX_get(); + public static readonly int CACHE_DB_LEN = freeswitchPINVOKE.CACHE_DB_LEN_get(); + public static readonly int SWITCH_CMD_CHUNK_LEN = freeswitchPINVOKE.SWITCH_CMD_CHUNK_LEN_get(); + public static readonly string SWITCH_URL_UNSAFE = freeswitchPINVOKE.SWITCH_URL_UNSAFE_get(); + public static readonly int SWITCH_SMAX = freeswitchPINVOKE.SWITCH_SMAX_get(); + public static readonly int SWITCH_SMIN = freeswitchPINVOKE.SWITCH_SMIN_get(); + public static readonly int NO_EVENT_CHANNEL_ID = freeswitchPINVOKE.NO_EVENT_CHANNEL_ID_get(); + public static readonly string SWITCH_EVENT_CHANNEL_GLOBAL = freeswitchPINVOKE.SWITCH_EVENT_CHANNEL_GLOBAL_get(); + public static readonly int SWITCH_RESAMPLE_QUALITY = freeswitchPINVOKE.SWITCH_RESAMPLE_QUALITY_get(); + public static readonly int SWITCH_RTP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_get(); + public static readonly int SWITCH_RTCP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTCP_MAX_BUF_LEN_get(); + public static readonly int SWITCH_RTP_MAX_BUF_LEN_WORDS = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_WORDS_get(); + public static readonly int SWITCH_RTP_MAX_CRYPTO_LEN = freeswitchPINVOKE.SWITCH_RTP_MAX_CRYPTO_LEN_get(); + public static readonly string SWITCH_RTP_CRYPTO_KEY_80 = freeswitchPINVOKE.SWITCH_RTP_CRYPTO_KEY_80_get(); + public static readonly int MAX_CAND = freeswitchPINVOKE.MAX_CAND_get(); + public static readonly int SWITCH_XML_BUFSIZE = freeswitchPINVOKE.SWITCH_XML_BUFSIZE_get(); +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +class freeswitchPINVOKE { + + protected class SWIGExceptionHelper { + + public delegate void ExceptionDelegate(string message); + public delegate void ExceptionArgumentDelegate(string message, string paramName); + + static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); + static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); + static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); + static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); + static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); + static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); + static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); + static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); + static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); + static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); + static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); + + static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); + static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); + static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); + + [DllImport("mod_managed", EntryPoint="SWIGRegisterExceptionCallbacks_freeswitch")] + public static extern void SWIGRegisterExceptionCallbacks_freeswitch( + ExceptionDelegate applicationDelegate, + ExceptionDelegate arithmeticDelegate, + ExceptionDelegate divideByZeroDelegate, + ExceptionDelegate indexOutOfRangeDelegate, + ExceptionDelegate invalidCastDelegate, + ExceptionDelegate invalidOperationDelegate, + ExceptionDelegate ioDelegate, + ExceptionDelegate nullReferenceDelegate, + ExceptionDelegate outOfMemoryDelegate, + ExceptionDelegate overflowDelegate, + ExceptionDelegate systemExceptionDelegate); + + [DllImport("mod_managed", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_freeswitch")] + public static extern void SWIGRegisterExceptionCallbacksArgument_freeswitch( + ExceptionArgumentDelegate argumentDelegate, + ExceptionArgumentDelegate argumentNullDelegate, + ExceptionArgumentDelegate argumentOutOfRangeDelegate); + + static void SetPendingApplicationException(string message) { + SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingArithmeticException(string message) { + SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingDivideByZeroException(string message) { + SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIndexOutOfRangeException(string message) { + SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidCastException(string message) { + SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidOperationException(string message) { + SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIOException(string message) { + SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingNullReferenceException(string message) { + SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOutOfMemoryException(string message) { + SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOverflowException(string message) { + SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingSystemException(string message) { + SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve())); + } + + static void SetPendingArgumentException(string message, string paramName) { + SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); + } + static void SetPendingArgumentNullException(string message, string paramName) { + Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new System.ArgumentNullException(paramName, message)); + } + static void SetPendingArgumentOutOfRangeException(string message, string paramName) { + Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message)); + } + + static SWIGExceptionHelper() { + SWIGRegisterExceptionCallbacks_freeswitch( + applicationDelegate, + arithmeticDelegate, + divideByZeroDelegate, + indexOutOfRangeDelegate, + invalidCastDelegate, + invalidOperationDelegate, + ioDelegate, + nullReferenceDelegate, + outOfMemoryDelegate, + overflowDelegate, + systemDelegate); + + SWIGRegisterExceptionCallbacksArgument_freeswitch( + argumentDelegate, + argumentNullDelegate, + argumentOutOfRangeDelegate); + } + } + + protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); + + public class SWIGPendingException { + [ThreadStatic] + private static Exception pendingException = null; + private static int numExceptionsPending = 0; + + public static bool Pending { + get { + bool pending = false; + if (numExceptionsPending > 0) + if (pendingException != null) + pending = true; + return pending; + } + } + + public static void Set(Exception e) { + if (pendingException != null) + throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); + pendingException = e; + lock(typeof(freeswitchPINVOKE)) { + numExceptionsPending++; + } + } + + public static Exception Retrieve() { + Exception e = null; + if (numExceptionsPending > 0) { + if (pendingException != null) { + e = pendingException; + pendingException = null; + lock(typeof(freeswitchPINVOKE)) { + numExceptionsPending--; + } + } + } + return e; + } + } + + + static freeswitchPINVOKE() { + } + + + + protected class SWIGStringHelper { + + public delegate string SWIGStringDelegate(string message); + static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); + + [DllImport("mod_managed", EntryPoint="SWIGRegisterStringCallback_freeswitch")] + public static extern void SWIGRegisterStringCallback_freeswitch(SWIGStringDelegate stringDelegate); + + static string CreateString(string cString) { + return cString; + } + + static SWIGStringHelper() { + SWIGRegisterStringCallback_freeswitch(stringDelegate); + } + } + + static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); + + + [DllImport("mod_managed", EntryPoint="CSharp_FREESWITCH_PEN_get")] + public static extern string FREESWITCH_PEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_FREESWITCH_OID_PREFIX_get")] + public static extern string FREESWITCH_OID_PREFIX_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_FREESWITCH_ITAD_get")] + public static extern string FREESWITCH_ITAD_get(); + + [DllImport("mod_managed", EntryPoint="CSharp___EXTENSIONS___get")] + public static extern int __EXTENSIONS___get(); + + [DllImport("mod_managed", EntryPoint="CSharp___BSD_VISIBLE_get")] + public static extern int __BSD_VISIBLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ENT_ORIGINATE_DELIM_get")] + public static extern string SWITCH_ENT_ORIGINATE_DELIM_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BLANK_STRING_get")] + public static extern string SWITCH_BLANK_STRING_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TON_UNDEF_get")] + public static extern int SWITCH_TON_UNDEF_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_NUMPLAN_UNDEF_get")] + public static extern int SWITCH_NUMPLAN_UNDEF_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_ESC_get")] + public static extern string SWITCH_SEQ_ESC_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_HOME_CHAR_get")] + public static extern char SWITCH_SEQ_HOME_CHAR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_HOME_CHAR_STR_get")] + public static extern string SWITCH_SEQ_HOME_CHAR_STR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINE_CHAR_get")] + public static extern char SWITCH_SEQ_CLEARLINE_CHAR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINE_CHAR_STR_get")] + public static extern string SWITCH_SEQ_CLEARLINE_CHAR_STR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINEEND_CHAR_get")] + public static extern string SWITCH_SEQ_CLEARLINEEND_CHAR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_CHAR0_get")] + public static extern char SWITCH_SEQ_CLEARSCR_CHAR0_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_CHAR1_get")] + public static extern char SWITCH_SEQ_CLEARSCR_CHAR1_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_CHAR_get")] + public static extern string SWITCH_SEQ_CLEARSCR_CHAR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_AND_COLOR_get")] + public static extern string SWITCH_SEQ_AND_COLOR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_END_COLOR_get")] + public static extern string SWITCH_SEQ_END_COLOR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_BLACK_get")] + public static extern string SWITCH_SEQ_F_BLACK_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_RED_get")] + public static extern string SWITCH_SEQ_F_RED_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_GREEN_get")] + public static extern string SWITCH_SEQ_F_GREEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_YELLOW_get")] + public static extern string SWITCH_SEQ_F_YELLOW_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_BLUE_get")] + public static extern string SWITCH_SEQ_F_BLUE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_MAGEN_get")] + public static extern string SWITCH_SEQ_F_MAGEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_CYAN_get")] + public static extern string SWITCH_SEQ_F_CYAN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_F_WHITE_get")] + public static extern string SWITCH_SEQ_F_WHITE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_BLACK_get")] + public static extern string SWITCH_SEQ_B_BLACK_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_RED_get")] + public static extern string SWITCH_SEQ_B_RED_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_GREEN_get")] + public static extern string SWITCH_SEQ_B_GREEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_YELLOW_get")] + public static extern string SWITCH_SEQ_B_YELLOW_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_BLUE_get")] + public static extern string SWITCH_SEQ_B_BLUE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_MAGEN_get")] + public static extern string SWITCH_SEQ_B_MAGEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_CYAN_get")] + public static extern string SWITCH_SEQ_B_CYAN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_B_WHITE_get")] + public static extern string SWITCH_SEQ_B_WHITE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FBLACK_get")] + public static extern string SWITCH_SEQ_FBLACK_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FRED_get")] + public static extern string SWITCH_SEQ_FRED_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FGREEN_get")] + public static extern string SWITCH_SEQ_FGREEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FYELLOW_get")] + public static extern string SWITCH_SEQ_FYELLOW_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FBLUE_get")] + public static extern string SWITCH_SEQ_FBLUE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FMAGEN_get")] + public static extern string SWITCH_SEQ_FMAGEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FCYAN_get")] + public static extern string SWITCH_SEQ_FCYAN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_FWHITE_get")] + public static extern string SWITCH_SEQ_FWHITE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BBLACK_get")] + public static extern string SWITCH_SEQ_BBLACK_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BRED_get")] + public static extern string SWITCH_SEQ_BRED_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BGREEN_get")] + public static extern string SWITCH_SEQ_BGREEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BYELLOW_get")] + public static extern string SWITCH_SEQ_BYELLOW_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BBLUE_get")] + public static extern string SWITCH_SEQ_BBLUE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BMAGEN_get")] + public static extern string SWITCH_SEQ_BMAGEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BCYAN_get")] + public static extern string SWITCH_SEQ_BCYAN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_BWHITE_get")] + public static extern string SWITCH_SEQ_BWHITE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_HOME_get")] + public static extern string SWITCH_SEQ_HOME_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINE_get")] + public static extern string SWITCH_SEQ_CLEARLINE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARLINEEND_get")] + public static extern string SWITCH_SEQ_CLEARLINEEND_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEQ_CLEARSCR_get")] + public static extern string SWITCH_SEQ_CLEARSCR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_CLID_NAME_get")] + public static extern string SWITCH_DEFAULT_CLID_NAME_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_CLID_NUMBER_get")] + public static extern string SWITCH_DEFAULT_CLID_NUMBER_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_DTMF_DURATION_get")] + public static extern int SWITCH_DEFAULT_DTMF_DURATION_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MIN_DTMF_DURATION_get")] + public static extern int SWITCH_MIN_DTMF_DURATION_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_DTMF_DURATION_get")] + public static extern int SWITCH_MAX_DTMF_DURATION_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PATH_SEPARATOR_get")] + public static extern string SWITCH_PATH_SEPARATOR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_URL_SEPARATOR_get")] + public static extern string SWITCH_URL_SEPARATOR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get")] + public static extern string SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get")] + public static extern string SWITCH_AUDIO_SPOOL_PATH_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get")] + public static extern string SWITCH_BRIDGE_HANGUP_CAUSE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_READ_TERMINATOR_USED_VARIABLE_get")] + public static extern string SWITCH_READ_TERMINATOR_USED_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get")] + public static extern string SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CURRENT_APPLICATION_VARIABLE_get")] + public static extern string SWITCH_CURRENT_APPLICATION_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get")] + public static extern string SWITCH_CURRENT_APPLICATION_DATA_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get")] + public static extern string SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get")] + public static extern string SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get")] + public static extern string SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_READ_RESULT_VARIABLE_get")] + public static extern string SWITCH_READ_RESULT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ATT_XFER_RESULT_VARIABLE_get")] + public static extern string SWITCH_ATT_XFER_RESULT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_COPY_XML_CDR_VARIABLE_get")] + public static extern string SWITCH_COPY_XML_CDR_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_COPY_JSON_CDR_VARIABLE_get")] + public static extern string SWITCH_COPY_JSON_CDR_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get")] + public static extern string SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_HISTORY_VARIABLE_get")] + public static extern string SWITCH_TRANSFER_HISTORY_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_SOURCE_VARIABLE_get")] + public static extern string SWITCH_TRANSFER_SOURCE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SENSITIVE_DTMF_VARIABLE_get")] + public static extern string SWITCH_SENSITIVE_DTMF_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get")] + public static extern string SWITCH_RECORD_POST_PROCESS_EXEC_APP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get")] + public static extern string SWITCH_RECORD_POST_PROCESS_EXEC_API_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_PRE_ANSWER_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_MEDIA_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_ORIGINATE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_PRE_ORIGINATE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_PRE_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_EXECUTE_ON_POST_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_ANSWER_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_RING_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_RING_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_ORIGINATE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_API_ON_PRE_ORIGINATE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get")] + public static extern string SWITCH_CALL_TIMEOUT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_HOLDING_UUID_VARIABLE_get")] + public static extern string SWITCH_HOLDING_UUID_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SOFT_HOLDING_UUID_VARIABLE_get")] + public static extern string SWITCH_SOFT_HOLDING_UUID_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_BRIDGE_END_VARIABLE_get")] + public static extern string SWITCH_API_BRIDGE_END_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_BRIDGE_START_VARIABLE_get")] + public static extern string SWITCH_API_BRIDGE_START_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_HANGUP_HOOK_VARIABLE_get")] + public static extern string SWITCH_API_HANGUP_HOOK_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_REPORTING_HOOK_VARIABLE_get")] + public static extern string SWITCH_API_REPORTING_HOOK_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get")] + public static extern string SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PROCESS_CDR_VARIABLE_get")] + public static extern string SWITCH_PROCESS_CDR_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SKIP_CDR_CAUSES_VARIABLE_get")] + public static extern string SWITCH_SKIP_CDR_CAUSES_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_FORCE_PROCESS_CDR_VARIABLE_get")] + public static extern string SWITCH_FORCE_PROCESS_CDR_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_CHANNEL_VARIABLE_get")] + public static extern string SWITCH_BRIDGE_CHANNEL_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CHANNEL_NAME_VARIABLE_get")] + public static extern string SWITCH_CHANNEL_NAME_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_UUID_VARIABLE_get")] + public static extern string SWITCH_BRIDGE_UUID_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get")] + public static extern string SWITCH_CONTINUE_ON_FAILURE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get")] + public static extern string SWITCH_PLAYBACK_TERMINATORS_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PLAYBACK_TERMINATOR_USED_get")] + public static extern string SWITCH_PLAYBACK_TERMINATOR_USED_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get")] + public static extern string SWITCH_CACHE_SPEECH_HANDLES_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get")] + public static extern string SWITCH_CACHE_SPEECH_HANDLES_OBJ_NAME_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BYPASS_MEDIA_VARIABLE_get")] + public static extern string SWITCH_BYPASS_MEDIA_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PROXY_MEDIA_VARIABLE_get")] + public static extern string SWITCH_PROXY_MEDIA_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ZRTP_PASSTHRU_VARIABLE_get")] + public static extern string SWITCH_ZRTP_PASSTHRU_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get")] + public static extern string SWITCH_ENDPOINT_DISPOSITION_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_HOLD_MUSIC_VARIABLE_get")] + public static extern string SWITCH_HOLD_MUSIC_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get")] + public static extern string SWITCH_TEMP_HOLD_MUSIC_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXPORT_VARS_VARIABLE_get")] + public static extern string SWITCH_EXPORT_VARS_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get")] + public static extern string SWITCH_BRIDGE_EXPORT_VARS_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_R_SDP_VARIABLE_get")] + public static extern string SWITCH_R_SDP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_L_SDP_VARIABLE_get")] + public static extern string SWITCH_L_SDP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_B_SDP_VARIABLE_get")] + public static extern string SWITCH_B_SDP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LAST_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_LAST_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SIGNAL_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_SIGNAL_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SIGNAL_BOND_VARIABLE_get")] + public static extern string SWITCH_SIGNAL_BOND_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get")] + public static extern string SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATOR_VARIABLE_get")] + public static extern string SWITCH_ORIGINATOR_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATOR_CODEC_VARIABLE_get")] + public static extern string SWITCH_ORIGINATOR_CODEC_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get")] + public static extern string SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_MEDIA_IP_VARIABLE_get")] + public static extern string SWITCH_LOCAL_MEDIA_IP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get")] + public static extern string SWITCH_LOCAL_MEDIA_PORT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get")] + public static extern string SWITCH_ADVERTISED_MEDIA_IP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_MEDIA_IP_VARIABLE_get")] + public static extern string SWITCH_REMOTE_MEDIA_IP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get")] + public static extern string SWITCH_REMOTE_MEDIA_PORT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_VIDEO_IP_VARIABLE_get")] + public static extern string SWITCH_REMOTE_VIDEO_IP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get")] + public static extern string SWITCH_REMOTE_VIDEO_PORT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_VIDEO_IP_VARIABLE_get")] + public static extern string SWITCH_LOCAL_VIDEO_IP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get")] + public static extern string SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get")] + public static extern string SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get")] + public static extern string SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_FORWARDS_VARIABLE_get")] + public static extern string SWITCH_MAX_FORWARDS_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DISABLE_APP_LOG_VARIABLE_get")] + public static extern string SWITCH_DISABLE_APP_LOG_VARIABLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SPEECH_KEY_get")] + public static extern string SWITCH_SPEECH_KEY_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_UUID_BRIDGE_get")] + public static extern string SWITCH_UUID_BRIDGE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BITS_PER_BYTE_get")] + public static extern int SWITCH_BITS_PER_BYTE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_FILE_BUFFER_LEN_get")] + public static extern int SWITCH_DEFAULT_FILE_BUFFER_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DTMF_LOG_LEN_get")] + public static extern int SWITCH_DTMF_LOG_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_TRANS_get")] + public static extern int SWITCH_MAX_TRANS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_SESSION_MAX_PRIVATES_get")] + public static extern int SWITCH_CORE_SESSION_MAX_PRIVATES_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_JITTER_VARIANCE_THRESHOLD_get")] + public static extern double JITTER_VARIANCE_THRESHOLD_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_IPDV_THRESHOLD_get")] + public static extern double IPDV_THRESHOLD_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_LOST_BURST_ANALYZE_get")] + public static extern int LOST_BURST_ANALYZE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_LOST_BURST_CAPTURE_get")] + public static extern int LOST_BURST_CAPTURE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_digit_set")] + public static extern void switch_dtmf_t_digit_set(HandleRef jarg1, char jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_digit_get")] + public static extern char switch_dtmf_t_digit_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_duration_set")] + public static extern void switch_dtmf_t_duration_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_duration_get")] + public static extern uint switch_dtmf_t_duration_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_flags_set")] + public static extern void switch_dtmf_t_flags_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_flags_get")] + public static extern int switch_dtmf_t_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_source_set")] + public static extern void switch_dtmf_t_source_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_source_get")] + public static extern int switch_dtmf_t_source_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_dtmf_t")] + public static extern IntPtr new_switch_dtmf_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_dtmf_t")] + public static extern void delete_switch_dtmf_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buf_set")] + public static extern void switch_bitpack_t_buf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buf_get")] + public static extern IntPtr switch_bitpack_t_buf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buflen_set")] + public static extern void switch_bitpack_t_buflen_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_buflen_get")] + public static extern uint switch_bitpack_t_buflen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_cur_set")] + public static extern void switch_bitpack_t_cur_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_cur_get")] + public static extern IntPtr switch_bitpack_t_cur_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bytes_set")] + public static extern void switch_bitpack_t_bytes_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bytes_get")] + public static extern uint switch_bitpack_t_bytes_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_tot_set")] + public static extern void switch_bitpack_t_bits_tot_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_tot_get")] + public static extern uint switch_bitpack_t_bits_tot_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_cur_set")] + public static extern void switch_bitpack_t_bits_cur_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_cur_get")] + public static extern byte switch_bitpack_t_bits_cur_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_rem_set")] + public static extern void switch_bitpack_t_bits_rem_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_bits_rem_get")] + public static extern byte switch_bitpack_t_bits_rem_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_frame_bits_set")] + public static extern void switch_bitpack_t_frame_bits_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_frame_bits_get")] + public static extern byte switch_bitpack_t_frame_bits_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_shiftby_set")] + public static extern void switch_bitpack_t_shiftby_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_shiftby_get")] + public static extern byte switch_bitpack_t_shiftby_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_this_byte_set")] + public static extern void switch_bitpack_t_this_byte_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_this_byte_get")] + public static extern byte switch_bitpack_t_this_byte_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_under_set")] + public static extern void switch_bitpack_t_under_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_under_get")] + public static extern byte switch_bitpack_t_under_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_over_set")] + public static extern void switch_bitpack_t_over_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_over_get")] + public static extern byte switch_bitpack_t_over_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_mode_set")] + public static extern void switch_bitpack_t_mode_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_bitpack_t_mode_get")] + public static extern int switch_bitpack_t_mode_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_bitpack_t")] + public static extern IntPtr new_switch_bitpack_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_bitpack_t")] + public static extern void delete_switch_bitpack_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_base_dir_set")] + public static extern void switch_directories_base_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_base_dir_get")] + public static extern string switch_directories_base_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_mod_dir_set")] + public static extern void switch_directories_mod_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_mod_dir_get")] + public static extern string switch_directories_mod_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_conf_dir_set")] + public static extern void switch_directories_conf_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_conf_dir_get")] + public static extern string switch_directories_conf_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_log_dir_set")] + public static extern void switch_directories_log_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_log_dir_get")] + public static extern string switch_directories_log_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_run_dir_set")] + public static extern void switch_directories_run_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_run_dir_get")] + public static extern string switch_directories_run_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_db_dir_set")] + public static extern void switch_directories_db_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_db_dir_get")] + public static extern string switch_directories_db_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_script_dir_set")] + public static extern void switch_directories_script_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_script_dir_get")] + public static extern string switch_directories_script_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_temp_dir_set")] + public static extern void switch_directories_temp_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_temp_dir_get")] + public static extern string switch_directories_temp_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_htdocs_dir_set")] + public static extern void switch_directories_htdocs_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_htdocs_dir_get")] + public static extern string switch_directories_htdocs_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_grammar_dir_set")] + public static extern void switch_directories_grammar_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_grammar_dir_get")] + public static extern string switch_directories_grammar_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_storage_dir_set")] + public static extern void switch_directories_storage_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_storage_dir_get")] + public static extern string switch_directories_storage_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_cache_dir_set")] + public static extern void switch_directories_cache_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_cache_dir_get")] + public static extern string switch_directories_cache_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_recordings_dir_set")] + public static extern void switch_directories_recordings_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_recordings_dir_get")] + public static extern string switch_directories_recordings_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_sounds_dir_set")] + public static extern void switch_directories_sounds_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_sounds_dir_get")] + public static extern string switch_directories_sounds_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_set")] + public static extern void switch_directories_lib_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_get")] + public static extern string switch_directories_lib_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_certs_dir_set")] + public static extern void switch_directories_certs_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_certs_dir_get")] + public static extern string switch_directories_certs_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directories")] + public static extern IntPtr new_switch_directories(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directories")] + public static extern void delete_switch_directories(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_dirs_set")] + public static extern void SWITCH_GLOBAL_dirs_set(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_dirs_get")] + public static extern IntPtr SWITCH_GLOBAL_dirs_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_filenames_conf_name_set")] + public static extern void switch_filenames_conf_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_filenames_conf_name_get")] + public static extern string switch_filenames_conf_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_filenames")] + public static extern IntPtr new_switch_filenames(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_filenames")] + public static extern void delete_switch_filenames(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_filenames_set")] + public static extern void SWITCH_GLOBAL_filenames_set(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_filenames_get")] + public static extern IntPtr SWITCH_GLOBAL_filenames_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STACKS_get")] + public static extern int SWITCH_MAX_STACKS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_THREAD_STACKSIZE_get")] + public static extern int SWITCH_THREAD_STACKSIZE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SYSTEM_THREAD_STACKSIZE_get")] + public static extern int SWITCH_SYSTEM_THREAD_STACKSIZE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_INTERVAL_get")] + public static extern int SWITCH_MAX_INTERVAL_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_INTERVAL_PAD_get")] + public static extern int SWITCH_INTERVAL_PAD_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_SAMPLE_LEN_get")] + public static extern int SWITCH_MAX_SAMPLE_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BYTES_PER_SAMPLE_get")] + public static extern int SWITCH_BYTES_PER_SAMPLE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RECOMMENDED_BUFFER_SIZE_get")] + public static extern int SWITCH_RECOMMENDED_BUFFER_SIZE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_CODECS_get")] + public static extern int SWITCH_MAX_CODECS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STATE_HANDLERS_get")] + public static extern int SWITCH_MAX_STATE_HANDLERS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_QUEUE_LEN_get")] + public static extern int SWITCH_CORE_QUEUE_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get")] + public static extern int SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_raw_bytes_set")] + public static extern void switch_rtp_numbers_t_raw_bytes_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_raw_bytes_get")] + public static extern IntPtr switch_rtp_numbers_t_raw_bytes_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_bytes_set")] + public static extern void switch_rtp_numbers_t_media_bytes_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_bytes_get")] + public static extern IntPtr switch_rtp_numbers_t_media_bytes_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_packet_count_set")] + public static extern void switch_rtp_numbers_t_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_period_packet_count_set")] + public static extern void switch_rtp_numbers_t_period_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_period_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_period_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_packet_count_set")] + public static extern void switch_rtp_numbers_t_media_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_media_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_media_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_skip_packet_count_set")] + public static extern void switch_rtp_numbers_t_skip_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_skip_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_skip_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jb_packet_count_set")] + public static extern void switch_rtp_numbers_t_jb_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jb_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_jb_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_dtmf_packet_count_set")] + public static extern void switch_rtp_numbers_t_dtmf_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_dtmf_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_dtmf_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_cng_packet_count_set")] + public static extern void switch_rtp_numbers_t_cng_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_cng_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_cng_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flush_packet_count_set")] + public static extern void switch_rtp_numbers_t_flush_packet_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flush_packet_count_get")] + public static extern IntPtr switch_rtp_numbers_t_flush_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_largest_jb_size_set")] + public static extern void switch_rtp_numbers_t_largest_jb_size_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_largest_jb_size_get")] + public static extern IntPtr switch_rtp_numbers_t_largest_jb_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_proc_time_set")] + public static extern void switch_rtp_numbers_t_last_proc_time_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_proc_time_get")] + public static extern long switch_rtp_numbers_t_last_proc_time_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_n_set")] + public static extern void switch_rtp_numbers_t_jitter_n_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_n_get")] + public static extern long switch_rtp_numbers_t_jitter_n_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_add_set")] + public static extern void switch_rtp_numbers_t_jitter_add_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_add_get")] + public static extern long switch_rtp_numbers_t_jitter_add_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_addsq_set")] + public static extern void switch_rtp_numbers_t_jitter_addsq_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_jitter_addsq_get")] + public static extern long switch_rtp_numbers_t_jitter_addsq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_variance_set")] + public static extern void switch_rtp_numbers_t_variance_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_variance_get")] + public static extern double switch_rtp_numbers_t_variance_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_min_variance_set")] + public static extern void switch_rtp_numbers_t_min_variance_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_min_variance_get")] + public static extern double switch_rtp_numbers_t_min_variance_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_max_variance_set")] + public static extern void switch_rtp_numbers_t_max_variance_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_max_variance_get")] + public static extern double switch_rtp_numbers_t_max_variance_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_std_deviation_set")] + public static extern void switch_rtp_numbers_t_std_deviation_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_std_deviation_get")] + public static extern double switch_rtp_numbers_t_std_deviation_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_lossrate_set")] + public static extern void switch_rtp_numbers_t_lossrate_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_lossrate_get")] + public static extern double switch_rtp_numbers_t_lossrate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_burstrate_set")] + public static extern void switch_rtp_numbers_t_burstrate_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_burstrate_get")] + public static extern double switch_rtp_numbers_t_burstrate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mean_interval_set")] + public static extern void switch_rtp_numbers_t_mean_interval_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mean_interval_get")] + public static extern double switch_rtp_numbers_t_mean_interval_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_loss_set")] + public static extern void switch_rtp_numbers_t_loss_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_loss_get")] + public static extern IntPtr switch_rtp_numbers_t_loss_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_loss_set")] + public static extern void switch_rtp_numbers_t_last_loss_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_loss_get")] + public static extern int switch_rtp_numbers_t_last_loss_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_recved_set")] + public static extern void switch_rtp_numbers_t_recved_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_recved_get")] + public static extern int switch_rtp_numbers_t_recved_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_processed_seq_set")] + public static extern void switch_rtp_numbers_t_last_processed_seq_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_processed_seq_get")] + public static extern int switch_rtp_numbers_t_last_processed_seq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flaws_set")] + public static extern void switch_rtp_numbers_t_flaws_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flaws_get")] + public static extern IntPtr switch_rtp_numbers_t_flaws_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_flaw_set")] + public static extern void switch_rtp_numbers_t_last_flaw_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_last_flaw_get")] + public static extern IntPtr switch_rtp_numbers_t_last_flaw_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_R_set")] + public static extern void switch_rtp_numbers_t_R_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_R_get")] + public static extern double switch_rtp_numbers_t_R_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mos_set")] + public static extern void switch_rtp_numbers_t_mos_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mos_get")] + public static extern double switch_rtp_numbers_t_mos_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_numbers_t")] + public static extern IntPtr new_switch_rtp_numbers_t(); + + [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_rtcp_numbers_t_packet_count_set")] + public static extern void switch_rtcp_numbers_t_packet_count_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_packet_count_get")] + public static extern uint switch_rtcp_numbers_t_packet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_octet_count_set")] + public static extern void switch_rtcp_numbers_t_octet_count_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_octet_count_get")] + public static extern uint switch_rtcp_numbers_t_octet_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_peer_ssrc_set")] + public static extern void switch_rtcp_numbers_t_peer_ssrc_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_peer_ssrc_get")] + public static extern uint switch_rtcp_numbers_t_peer_ssrc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_rpt_ts_set")] + public static extern void switch_rtcp_numbers_t_last_rpt_ts_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_rpt_ts_get")] + public static extern uint switch_rtcp_numbers_t_last_rpt_ts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_ssrc_set")] + public static extern void switch_rtcp_numbers_t_ssrc_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_ssrc_get")] + public static extern uint switch_rtcp_numbers_t_ssrc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_csrc_set")] + public static extern void switch_rtcp_numbers_t_csrc_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_csrc_get")] + public static extern uint switch_rtcp_numbers_t_csrc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_pkt_tsdiff_set")] + public static extern void switch_rtcp_numbers_t_last_pkt_tsdiff_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_pkt_tsdiff_get")] + public static extern uint switch_rtcp_numbers_t_last_pkt_tsdiff_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_inter_jitter_set")] + public static extern void switch_rtcp_numbers_t_inter_jitter_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_inter_jitter_get")] + public static extern double switch_rtcp_numbers_t_inter_jitter_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_rpt_ext_seq_set")] + public static extern void switch_rtcp_numbers_t_last_rpt_ext_seq_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_rpt_ext_seq_get")] + public static extern uint switch_rtcp_numbers_t_last_rpt_ext_seq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_rpt_cycle_set")] + public static extern void switch_rtcp_numbers_t_last_rpt_cycle_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_rpt_cycle_get")] + public static extern ushort switch_rtcp_numbers_t_last_rpt_cycle_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_period_pkt_count_set")] + public static extern void switch_rtcp_numbers_t_period_pkt_count_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_period_pkt_count_get")] + public static extern ushort switch_rtcp_numbers_t_period_pkt_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_pkt_count_set")] + public static extern void switch_rtcp_numbers_t_pkt_count_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_pkt_count_get")] + public static extern ushort switch_rtcp_numbers_t_pkt_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_rtcp_rtp_count_set")] + public static extern void switch_rtcp_numbers_t_rtcp_rtp_count_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_rtcp_rtp_count_get")] + public static extern uint switch_rtcp_numbers_t_rtcp_rtp_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_high_ext_seq_recv_set")] + public static extern void switch_rtcp_numbers_t_high_ext_seq_recv_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_high_ext_seq_recv_get")] + public static extern uint switch_rtcp_numbers_t_high_ext_seq_recv_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_cycle_set")] + public static extern void switch_rtcp_numbers_t_cycle_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_cycle_get")] + public static extern ushort switch_rtcp_numbers_t_cycle_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_bad_seq_set")] + public static extern void switch_rtcp_numbers_t_bad_seq_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_bad_seq_get")] + public static extern uint switch_rtcp_numbers_t_bad_seq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_base_seq_set")] + public static extern void switch_rtcp_numbers_t_base_seq_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_base_seq_get")] + public static extern ushort switch_rtcp_numbers_t_base_seq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_cum_lost_set")] + public static extern void switch_rtcp_numbers_t_cum_lost_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_cum_lost_get")] + public static extern uint switch_rtcp_numbers_t_cum_lost_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_recv_lsr_local_set")] + public static extern void switch_rtcp_numbers_t_last_recv_lsr_local_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_recv_lsr_local_get")] + public static extern uint switch_rtcp_numbers_t_last_recv_lsr_local_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_recv_lsr_peer_set")] + public static extern void switch_rtcp_numbers_t_last_recv_lsr_peer_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_last_recv_lsr_peer_get")] + public static extern uint switch_rtcp_numbers_t_last_recv_lsr_peer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_init_set")] + public static extern void switch_rtcp_numbers_t_init_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_numbers_t_init_get")] + public static extern uint switch_rtcp_numbers_t_init_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtcp_numbers_t")] + public static extern IntPtr new_switch_rtcp_numbers_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtcp_numbers_t")] + public static extern void delete_switch_rtcp_numbers_t(HandleRef jarg1); + + [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_inbound_get")] + public static extern IntPtr switch_rtp_stats_t_inbound_get(HandleRef jarg1); + + [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_outbound_get")] + public static extern IntPtr switch_rtp_stats_t_outbound_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_rtcp_set")] + public static extern void switch_rtp_stats_t_rtcp_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_rtcp_get")] + public static extern IntPtr switch_rtp_stats_t_rtcp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_read_count_set")] + public static extern void switch_rtp_stats_t_read_count_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_read_count_get")] + public static extern uint switch_rtp_stats_t_read_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_stats_t")] + public static extern IntPtr new_switch_rtp_stats_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_stats_t")] + public static extern void delete_switch_rtp_stats_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_CNG_PAYLOAD_get")] + public static extern int SWITCH_RTP_CNG_PAYLOAD_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_version_set")] + public static extern void switch_rtp_hdr_t_version_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_version_get")] + public static extern uint switch_rtp_hdr_t_version_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_p_set")] + public static extern void switch_rtp_hdr_t_p_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_p_get")] + public static extern uint switch_rtp_hdr_t_p_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_x_set")] + public static extern void switch_rtp_hdr_t_x_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_x_get")] + public static extern uint switch_rtp_hdr_t_x_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_cc_set")] + public static extern void switch_rtp_hdr_t_cc_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_cc_get")] + public static extern uint switch_rtp_hdr_t_cc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_m_set")] + public static extern void switch_rtp_hdr_t_m_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_m_get")] + public static extern uint switch_rtp_hdr_t_m_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_pt_set")] + public static extern void switch_rtp_hdr_t_pt_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_pt_get")] + public static extern uint switch_rtp_hdr_t_pt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_seq_set")] + public static extern void switch_rtp_hdr_t_seq_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_seq_get")] + public static extern uint switch_rtp_hdr_t_seq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ts_set")] + public static extern void switch_rtp_hdr_t_ts_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ts_get")] + public static extern uint switch_rtp_hdr_t_ts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ssrc_set")] + public static extern void switch_rtp_hdr_t_ssrc_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_t_ssrc_get")] + public static extern uint switch_rtp_hdr_t_ssrc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_hdr_t")] + public static extern IntPtr new_switch_rtp_hdr_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_t")] + public static extern void delete_switch_rtp_hdr_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_length_set")] + public static extern void switch_rtp_hdr_ext_t_length_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_length_get")] + public static extern uint switch_rtp_hdr_ext_t_length_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_profile_set")] + public static extern void switch_rtp_hdr_ext_t_profile_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_profile_get")] + public static extern uint switch_rtp_hdr_ext_t_profile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_hdr_ext_t")] + public static extern IntPtr new_switch_rtp_hdr_ext_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_ext_t")] + public static extern void delete_switch_rtp_hdr_ext_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_version_set")] + public static extern void switch_rtcp_hdr_t_version_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_version_get")] + public static extern uint switch_rtcp_hdr_t_version_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_p_set")] + public static extern void switch_rtcp_hdr_t_p_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_p_get")] + public static extern uint switch_rtcp_hdr_t_p_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_count_set")] + public static extern void switch_rtcp_hdr_t_count_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_count_get")] + public static extern uint switch_rtcp_hdr_t_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_type_set")] + public static extern void switch_rtcp_hdr_t_type_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_type_get")] + public static extern uint switch_rtcp_hdr_t_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_length_set")] + public static extern void switch_rtcp_hdr_t_length_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_length_get")] + public static extern uint switch_rtcp_hdr_t_length_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtcp_hdr_t")] + public static extern IntPtr new_switch_rtcp_hdr_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtcp_hdr_t")] + public static extern void delete_switch_rtcp_hdr_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_ts_set")] + public static extern void audio_buffer_header_t_ts_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_ts_get")] + public static extern uint audio_buffer_header_t_ts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_len_set")] + public static extern void audio_buffer_header_t_len_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_audio_buffer_header_t_len_get")] + public static extern uint audio_buffer_header_t_len_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_audio_buffer_header_t")] + public static extern IntPtr new_audio_buffer_header_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_audio_buffer_header_t")] + public static extern void delete_audio_buffer_header_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxVersion_set")] + public static extern void switch_t38_options_t_T38FaxVersion_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxVersion_get")] + public static extern ushort switch_t38_options_t_T38FaxVersion_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38MaxBitRate_set")] + public static extern void switch_t38_options_t_T38MaxBitRate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38MaxBitRate_get")] + public static extern uint switch_t38_options_t_T38MaxBitRate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxFillBitRemoval_set")] + public static extern void switch_t38_options_t_T38FaxFillBitRemoval_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxFillBitRemoval_get")] + public static extern int switch_t38_options_t_T38FaxFillBitRemoval_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingMMR_set")] + public static extern void switch_t38_options_t_T38FaxTranscodingMMR_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingMMR_get")] + public static extern int switch_t38_options_t_T38FaxTranscodingMMR_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_set")] + public static extern void switch_t38_options_t_T38FaxTranscodingJBIG_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxTranscodingJBIG_get")] + public static extern int switch_t38_options_t_T38FaxTranscodingJBIG_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxRateManagement_set")] + public static extern void switch_t38_options_t_T38FaxRateManagement_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxRateManagement_get")] + public static extern string switch_t38_options_t_T38FaxRateManagement_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxBuffer_set")] + public static extern void switch_t38_options_t_T38FaxMaxBuffer_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxBuffer_get")] + public static extern uint switch_t38_options_t_T38FaxMaxBuffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxDatagram_set")] + public static extern void switch_t38_options_t_T38FaxMaxDatagram_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxMaxDatagram_get")] + public static extern uint switch_t38_options_t_T38FaxMaxDatagram_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxUdpEC_set")] + public static extern void switch_t38_options_t_T38FaxUdpEC_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38FaxUdpEC_get")] + public static extern string switch_t38_options_t_T38FaxUdpEC_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38VendorInfo_set")] + public static extern void switch_t38_options_t_T38VendorInfo_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_T38VendorInfo_get")] + public static extern string switch_t38_options_t_T38VendorInfo_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_ip_set")] + public static extern void switch_t38_options_t_remote_ip_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_ip_get")] + public static extern string switch_t38_options_t_remote_ip_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_port_set")] + public static extern void switch_t38_options_t_remote_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_remote_port_get")] + public static extern ushort switch_t38_options_t_remote_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_ip_set")] + public static extern void switch_t38_options_t_local_ip_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_ip_get")] + public static extern string switch_t38_options_t_local_ip_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_port_set")] + public static extern void switch_t38_options_t_local_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_local_port_get")] + public static extern ushort switch_t38_options_t_local_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_sdp_o_line_set")] + public static extern void switch_t38_options_t_sdp_o_line_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_t38_options_t_sdp_o_line_get")] + public static extern string switch_t38_options_t_sdp_o_line_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_t38_options_t")] + public static extern IntPtr new_switch_t38_options_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_t38_options_t")] + public static extern void delete_switch_t38_options_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MEDIA_TYPE_TOTAL_get")] + public static extern int SWITCH_MEDIA_TYPE_TOTAL_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SOCK_INVALID_get")] + public static extern int SWITCH_SOCK_INVALID_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_val_set")] + public static extern void switch_console_callback_match_node_val_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_val_get")] + public static extern string switch_console_callback_match_node_val_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_next_set")] + public static extern void switch_console_callback_match_node_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_node_next_get")] + public static extern IntPtr switch_console_callback_match_node_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_console_callback_match_node")] + public static extern IntPtr new_switch_console_callback_match_node(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_console_callback_match_node")] + public static extern void delete_switch_console_callback_match_node(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_head_set")] + public static extern void switch_console_callback_match_head_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_head_get")] + public static extern IntPtr switch_console_callback_match_head_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_end_set")] + public static extern void switch_console_callback_match_end_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_end_get")] + public static extern IntPtr switch_console_callback_match_end_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_count_set")] + public static extern void switch_console_callback_match_count_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_count_get")] + public static extern int switch_console_callback_match_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_dynamic_set")] + public static extern void switch_console_callback_match_dynamic_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_dynamic_get")] + public static extern int switch_console_callback_match_dynamic_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_console_callback_match")] + public static extern IntPtr new_switch_console_callback_match(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_console_callback_match")] + public static extern void delete_switch_console_callback_match(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_DMACHINE_MAX_DIGIT_LEN_get")] + public static extern int DMACHINE_MAX_DIGIT_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_dmachine_set")] + public static extern void switch_ivr_dmachine_match_dmachine_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_dmachine_get")] + public static extern IntPtr switch_ivr_dmachine_match_dmachine_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_digits_set")] + public static extern void switch_ivr_dmachine_match_match_digits_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_digits_get")] + public static extern string switch_ivr_dmachine_match_match_digits_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_key_set")] + public static extern void switch_ivr_dmachine_match_match_key_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_match_key_get")] + public static extern int switch_ivr_dmachine_match_match_key_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_type_set")] + public static extern void switch_ivr_dmachine_match_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_type_get")] + public static extern int switch_ivr_dmachine_match_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_user_data_set")] + public static extern void switch_ivr_dmachine_match_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_match_user_data_get")] + public static extern IntPtr switch_ivr_dmachine_match_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_ivr_dmachine_match")] + public static extern IntPtr new_switch_ivr_dmachine_match(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_ivr_dmachine_match")] + public static extern void delete_switch_ivr_dmachine_match(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_MAX_ARG_RECURSION_get")] + public static extern int MAX_ARG_RECURSION_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_input_callback_set")] + public static extern void switch_input_args_t_input_callback_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_input_callback_get")] + public static extern IntPtr switch_input_args_t_input_callback_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buf_set")] + public static extern void switch_input_args_t_buf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buf_get")] + public static extern IntPtr switch_input_args_t_buf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buflen_set")] + public static extern void switch_input_args_t_buflen_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_buflen_get")] + public static extern uint switch_input_args_t_buflen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_read_frame_callback_set")] + public static extern void switch_input_args_t_read_frame_callback_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_read_frame_callback_get")] + public static extern IntPtr switch_input_args_t_read_frame_callback_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_user_data_set")] + public static extern void switch_input_args_t_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_user_data_get")] + public static extern IntPtr switch_input_args_t_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_dmachine_set")] + public static extern void switch_input_args_t_dmachine_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_dmachine_get")] + public static extern IntPtr switch_input_args_t_dmachine_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_loops_set")] + public static extern void switch_input_args_t_loops_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_loops_get")] + public static extern int switch_input_args_t_loops_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_input_args_t")] + public static extern IntPtr new_switch_input_args_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_input_args_t")] + public static extern void delete_switch_input_args_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_type_set")] + public static extern void switch_say_args_t_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_type_get")] + public static extern int switch_say_args_t_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_method_set")] + public static extern void switch_say_args_t_method_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_method_get")] + public static extern int switch_say_args_t_method_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_gender_set")] + public static extern void switch_say_args_t_gender_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_gender_get")] + public static extern int switch_say_args_t_gender_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_ext_set")] + public static extern void switch_say_args_t_ext_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_ext_get")] + public static extern string switch_say_args_t_ext_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_say_args_t")] + public static extern IntPtr new_switch_say_args_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_say_args_t")] + public static extern void delete_switch_say_args_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_VERSION_get")] + public static extern int SWITCH_API_VERSION_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_switch_api_version_set")] + public static extern void switch_loadable_module_function_table_t_switch_api_version_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_switch_api_version_get")] + public static extern int switch_loadable_module_function_table_t_switch_api_version_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_load_set")] + public static extern void switch_loadable_module_function_table_t_load_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_load_get")] + public static extern IntPtr switch_loadable_module_function_table_t_load_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_shutdown_set")] + public static extern void switch_loadable_module_function_table_t_shutdown_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_shutdown_get")] + public static extern IntPtr switch_loadable_module_function_table_t_shutdown_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_runtime_set")] + public static extern void switch_loadable_module_function_table_t_runtime_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_runtime_get")] + public static extern IntPtr switch_loadable_module_function_table_t_runtime_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_flags_set")] + public static extern void switch_loadable_module_function_table_t_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_function_table_t_flags_get")] + public static extern uint switch_loadable_module_function_table_t_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_loadable_module_function_table_t")] + public static extern IntPtr new_switch_loadable_module_function_table_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_loadable_module_function_table_t")] + public static extern void delete_switch_loadable_module_function_table_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_type_set")] + public static extern void payload_map_t_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_type_get")] + public static extern int payload_map_t_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_sdp_type_set")] + public static extern void payload_map_t_sdp_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_sdp_type_get")] + public static extern int payload_map_t_sdp_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_ptime_set")] + public static extern void payload_map_t_ptime_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_ptime_get")] + public static extern uint payload_map_t_ptime_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rate_set")] + public static extern void payload_map_t_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rate_get")] + public static extern uint payload_map_t_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_allocated_set")] + public static extern void payload_map_t_allocated_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_allocated_get")] + public static extern byte payload_map_t_allocated_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_negotiated_set")] + public static extern void payload_map_t_negotiated_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_negotiated_get")] + public static extern byte payload_map_t_negotiated_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_current_set")] + public static extern void payload_map_t_current_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_current_get")] + public static extern byte payload_map_t_current_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_hash_set")] + public static extern void payload_map_t_hash_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_hash_get")] + public static extern uint payload_map_t_hash_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_encoding_set")] + public static extern void payload_map_t_rm_encoding_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_encoding_get")] + public static extern string payload_map_t_rm_encoding_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_iananame_set")] + public static extern void payload_map_t_iananame_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_iananame_get")] + public static extern string payload_map_t_iananame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_pt_set")] + public static extern void payload_map_t_pt_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_pt_get")] + public static extern byte payload_map_t_pt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_rate_set")] + public static extern void payload_map_t_rm_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_rate_get")] + public static extern uint payload_map_t_rm_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_rm_rate_set")] + public static extern void payload_map_t_adv_rm_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_rm_rate_get")] + public static extern uint payload_map_t_adv_rm_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_codec_ms_set")] + public static extern void payload_map_t_codec_ms_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_codec_ms_get")] + public static extern uint payload_map_t_codec_ms_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_bitrate_set")] + public static extern void payload_map_t_bitrate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_bitrate_get")] + public static extern uint payload_map_t_bitrate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_fmtp_set")] + public static extern void payload_map_t_rm_fmtp_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_rm_fmtp_get")] + public static extern string payload_map_t_rm_fmtp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_agreed_pt_set")] + public static extern void payload_map_t_agreed_pt_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_agreed_pt_get")] + public static extern byte payload_map_t_agreed_pt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_recv_pt_set")] + public static extern void payload_map_t_recv_pt_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_recv_pt_get")] + public static extern byte payload_map_t_recv_pt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_fmtp_out_set")] + public static extern void payload_map_t_fmtp_out_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_fmtp_out_get")] + public static extern string payload_map_t_fmtp_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_ip_set")] + public static extern void payload_map_t_remote_sdp_ip_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_ip_get")] + public static extern string payload_map_t_remote_sdp_ip_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_port_set")] + public static extern void payload_map_t_remote_sdp_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_remote_sdp_port_get")] + public static extern ushort payload_map_t_remote_sdp_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_channels_set")] + public static extern void payload_map_t_channels_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_channels_get")] + public static extern int payload_map_t_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_channels_set")] + public static extern void payload_map_t_adv_channels_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_adv_channels_get")] + public static extern int payload_map_t_adv_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_next_set")] + public static extern void payload_map_t_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_next_get")] + public static extern IntPtr payload_map_t_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_payload_map_t")] + public static extern IntPtr new_payload_map_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_payload_map_t")] + public static extern void delete_payload_map_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_sock_set")] + public static extern void switch_waitlist_t_sock_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_sock_get")] + public static extern int switch_waitlist_t_sock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_events_set")] + public static extern void switch_waitlist_t_events_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_events_get")] + public static extern uint switch_waitlist_t_events_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_revents_set")] + public static extern void switch_waitlist_t_revents_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_waitlist_t_revents_get")] + public static extern uint switch_waitlist_t_revents_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_waitlist_t")] + public static extern IntPtr new_switch_waitlist_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_waitlist_t")] + public static extern void delete_switch_waitlist_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_close")] + public static extern int switch_core_db_close(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_open")] + public static extern int switch_core_db_open(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_column_text")] + public static extern IntPtr switch_core_db_column_text(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_column_name")] + public static extern string switch_core_db_column_name(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_column_count")] + public static extern int switch_core_db_column_count(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_errmsg")] + public static extern string switch_core_db_errmsg(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_exec")] + public static extern int switch_core_db_exec(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_finalize")] + public static extern int switch_core_db_finalize(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_prepare")] + public static extern int switch_core_db_prepare(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4, ref string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_step")] + public static extern int switch_core_db_step(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_reset")] + public static extern int switch_core_db_reset(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_int")] + public static extern int switch_core_db_bind_int(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_int64")] + public static extern int switch_core_db_bind_int64(HandleRef jarg1, int jarg2, long jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_text")] + public static extern int switch_core_db_bind_text(HandleRef jarg1, int jarg2, string jarg3, int jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_bind_double")] + public static extern int switch_core_db_bind_double(HandleRef jarg1, int jarg2, double jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_last_insert_rowid")] + public static extern long switch_core_db_last_insert_rowid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_get_table")] + public static extern int switch_core_db_get_table(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_free_table")] + public static extern void switch_core_db_free_table(ref string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_free")] + public static extern void switch_core_db_free(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_changes")] + public static extern int switch_core_db_changes(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_load_extension")] + public static extern int switch_core_db_load_extension(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_OK_get")] + public static extern int SWITCH_CORE_DB_OK_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_ERROR_get")] + public static extern int SWITCH_CORE_DB_ERROR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_INTERNAL_get")] + public static extern int SWITCH_CORE_DB_INTERNAL_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_PERM_get")] + public static extern int SWITCH_CORE_DB_PERM_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_ABORT_get")] + public static extern int SWITCH_CORE_DB_ABORT_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_BUSY_get")] + public static extern int SWITCH_CORE_DB_BUSY_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_LOCKED_get")] + public static extern int SWITCH_CORE_DB_LOCKED_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOMEM_get")] + public static extern int SWITCH_CORE_DB_NOMEM_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_READONLY_get")] + public static extern int SWITCH_CORE_DB_READONLY_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_INTERRUPT_get")] + public static extern int SWITCH_CORE_DB_INTERRUPT_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_IOERR_get")] + public static extern int SWITCH_CORE_DB_IOERR_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_CORRUPT_get")] + public static extern int SWITCH_CORE_DB_CORRUPT_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOTFOUND_get")] + public static extern int SWITCH_CORE_DB_NOTFOUND_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_FULL_get")] + public static extern int SWITCH_CORE_DB_FULL_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_CANTOPEN_get")] + public static extern int SWITCH_CORE_DB_CANTOPEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_PROTOCOL_get")] + public static extern int SWITCH_CORE_DB_PROTOCOL_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_EMPTY_get")] + public static extern int SWITCH_CORE_DB_EMPTY_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_SCHEMA_get")] + public static extern int SWITCH_CORE_DB_SCHEMA_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_TOOBIG_get")] + public static extern int SWITCH_CORE_DB_TOOBIG_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_CONSTRAINT_get")] + public static extern int SWITCH_CORE_DB_CONSTRAINT_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_MISMATCH_get")] + public static extern int SWITCH_CORE_DB_MISMATCH_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_MISUSE_get")] + public static extern int SWITCH_CORE_DB_MISUSE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOLFS_get")] + public static extern int SWITCH_CORE_DB_NOLFS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_AUTH_get")] + public static extern int SWITCH_CORE_DB_AUTH_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_FORMAT_get")] + public static extern int SWITCH_CORE_DB_FORMAT_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_RANGE_get")] + public static extern int SWITCH_CORE_DB_RANGE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_NOTADB_get")] + public static extern int SWITCH_CORE_DB_NOTADB_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_ROW_get")] + public static extern int SWITCH_CORE_DB_ROW_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_DONE_get")] + public static extern int SWITCH_CORE_DB_DONE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_concat")] + public static extern string switch_sql_concat(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_compile")] + public static extern IntPtr switch_regex_compile(string jarg1, int jarg2, ref string jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_copy_substring")] + public static extern int switch_regex_copy_substring(string jarg1, HandleRef jarg2, int jarg3, int jarg4, string jarg5, int jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_free")] + public static extern void switch_regex_free(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_perform")] + public static extern int switch_regex_perform(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_perform_substitution")] + public static extern void switch_perform_substitution(HandleRef jarg1, int jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_match")] + public static extern int switch_regex_match(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_match_partial")] + public static extern int switch_regex_match_partial(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_capture_regex")] + public static extern void switch_capture_regex(HandleRef jarg1, int jarg2, string jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_set_var_callback")] + public static extern void switch_regex_set_var_callback(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_set_event_header_callback")] + public static extern void switch_regex_set_event_header_callback(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get")] + public static extern int SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STREAMS_get")] + public static extern int SWITCH_MAX_STREAMS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_mms_set")] + public static extern void switch_core_time_duration_mms_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_mms_get")] + public static extern uint switch_core_time_duration_mms_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_ms_set")] + public static extern void switch_core_time_duration_ms_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_ms_get")] + public static extern uint switch_core_time_duration_ms_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_sec_set")] + public static extern void switch_core_time_duration_sec_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_sec_get")] + public static extern uint switch_core_time_duration_sec_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_min_set")] + public static extern void switch_core_time_duration_min_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_min_get")] + public static extern uint switch_core_time_duration_min_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_hr_set")] + public static extern void switch_core_time_duration_hr_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_hr_get")] + public static extern uint switch_core_time_duration_hr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_day_set")] + public static extern void switch_core_time_duration_day_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_day_get")] + public static extern uint switch_core_time_duration_day_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_yr_set")] + public static extern void switch_core_time_duration_yr_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_time_duration_yr_get")] + public static extern uint switch_core_time_duration_yr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_core_time_duration")] + public static extern IntPtr new_switch_core_time_duration(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_time_duration")] + public static extern void delete_switch_core_time_duration(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_app_set")] + public static extern void switch_app_log_app_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_app_get")] + public static extern string switch_app_log_app_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_arg_set")] + public static extern void switch_app_log_arg_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_arg_get")] + public static extern string switch_app_log_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_set")] + public static extern void switch_app_log_stamp_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_get")] + public static extern IntPtr switch_app_log_stamp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_next_set")] + public static extern void switch_app_log_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_next_get")] + public static extern IntPtr switch_app_log_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_app_log")] + public static extern IntPtr new_switch_app_log(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_app_log")] + public static extern void delete_switch_app_log(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_func_set")] + public static extern void switch_thread_data_t_func_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_func_get")] + public static extern IntPtr switch_thread_data_t_func_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_obj_set")] + public static extern void switch_thread_data_t_obj_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_obj_get")] + public static extern IntPtr switch_thread_data_t_obj_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_alloc_set")] + public static extern void switch_thread_data_t_alloc_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_alloc_get")] + public static extern int switch_thread_data_t_alloc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_pool_set")] + public static extern void switch_thread_data_t_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_pool_get")] + public static extern IntPtr switch_thread_data_t_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_thread_data_t")] + public static extern IntPtr new_switch_thread_data_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_thread_data_t")] + public static extern void delete_switch_thread_data_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_on_set")] + public static extern void switch_hold_record_t_on_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_on_get")] + public static extern IntPtr switch_hold_record_t_on_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_off_set")] + public static extern void switch_hold_record_t_off_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_off_get")] + public static extern IntPtr switch_hold_record_t_off_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_uuid_set")] + public static extern void switch_hold_record_t_uuid_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_uuid_get")] + public static extern string switch_hold_record_t_uuid_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_next_set")] + public static extern void switch_hold_record_t_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_hold_record_t_next_get")] + public static extern IntPtr switch_hold_record_t_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_hold_record_t")] + public static extern IntPtr new_switch_hold_record_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_hold_record_t")] + public static extern void delete_switch_hold_record_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_uuid_set")] + public static extern void switch_device_node_t_uuid_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_uuid_get")] + public static extern string switch_device_node_t_uuid_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_xml_cdr_set")] + public static extern void switch_device_node_t_xml_cdr_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_xml_cdr_get")] + public static extern IntPtr switch_device_node_t_xml_cdr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t__event_set")] + public static extern void switch_device_node_t__event_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t__event_get")] + public static extern IntPtr switch_device_node_t__event_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_callstate_set")] + public static extern void switch_device_node_t_callstate_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_callstate_get")] + public static extern int switch_device_node_t_callstate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hold_record_set")] + public static extern void switch_device_node_t_hold_record_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hold_record_get")] + public static extern IntPtr switch_device_node_t_hold_record_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hup_profile_set")] + public static extern void switch_device_node_t_hup_profile_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_hup_profile_get")] + public static extern IntPtr switch_device_node_t_hup_profile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_direction_set")] + public static extern void switch_device_node_t_direction_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_direction_get")] + public static extern int switch_device_node_t_direction_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_parent_set")] + public static extern void switch_device_node_t_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_parent_get")] + public static extern IntPtr switch_device_node_t_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_next_set")] + public static extern void switch_device_node_t_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_node_t_next_get")] + public static extern IntPtr switch_device_node_t_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_device_node_t")] + public static extern IntPtr new_switch_device_node_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_device_node_t")] + public static extern void delete_switch_device_node_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_set")] + public static extern void switch_device_stats_t_total_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_get")] + public static extern uint switch_device_stats_t_total_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_in_set")] + public static extern void switch_device_stats_t_total_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_in_get")] + public static extern uint switch_device_stats_t_total_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_out_set")] + public static extern void switch_device_stats_t_total_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_total_out_get")] + public static extern uint switch_device_stats_t_total_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_set")] + public static extern void switch_device_stats_t_offhook_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_get")] + public static extern uint switch_device_stats_t_offhook_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_in_set")] + public static extern void switch_device_stats_t_offhook_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_in_get")] + public static extern uint switch_device_stats_t_offhook_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_out_set")] + public static extern void switch_device_stats_t_offhook_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_offhook_out_get")] + public static extern uint switch_device_stats_t_offhook_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_set")] + public static extern void switch_device_stats_t_active_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_get")] + public static extern uint switch_device_stats_t_active_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_in_set")] + public static extern void switch_device_stats_t_active_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_in_get")] + public static extern uint switch_device_stats_t_active_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_out_set")] + public static extern void switch_device_stats_t_active_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_active_out_get")] + public static extern uint switch_device_stats_t_active_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_set")] + public static extern void switch_device_stats_t_held_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_get")] + public static extern uint switch_device_stats_t_held_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_in_set")] + public static extern void switch_device_stats_t_held_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_in_get")] + public static extern uint switch_device_stats_t_held_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_out_set")] + public static extern void switch_device_stats_t_held_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_held_out_get")] + public static extern uint switch_device_stats_t_held_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_set")] + public static extern void switch_device_stats_t_unheld_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_get")] + public static extern uint switch_device_stats_t_unheld_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_in_set")] + public static extern void switch_device_stats_t_unheld_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_in_get")] + public static extern uint switch_device_stats_t_unheld_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_out_set")] + public static extern void switch_device_stats_t_unheld_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_unheld_out_get")] + public static extern uint switch_device_stats_t_unheld_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_set")] + public static extern void switch_device_stats_t_hup_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_get")] + public static extern uint switch_device_stats_t_hup_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_in_set")] + public static extern void switch_device_stats_t_hup_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_in_get")] + public static extern uint switch_device_stats_t_hup_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_out_set")] + public static extern void switch_device_stats_t_hup_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_hup_out_get")] + public static extern uint switch_device_stats_t_hup_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_set")] + public static extern void switch_device_stats_t_ringing_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_get")] + public static extern uint switch_device_stats_t_ringing_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_in_set")] + public static extern void switch_device_stats_t_ringing_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_in_get")] + public static extern uint switch_device_stats_t_ringing_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_out_set")] + public static extern void switch_device_stats_t_ringing_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ringing_out_get")] + public static extern uint switch_device_stats_t_ringing_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_set")] + public static extern void switch_device_stats_t_early_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_get")] + public static extern uint switch_device_stats_t_early_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_in_set")] + public static extern void switch_device_stats_t_early_in_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_in_get")] + public static extern uint switch_device_stats_t_early_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_out_set")] + public static extern void switch_device_stats_t_early_out_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_early_out_get")] + public static extern uint switch_device_stats_t_early_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ring_wait_set")] + public static extern void switch_device_stats_t_ring_wait_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_stats_t_ring_wait_get")] + public static extern uint switch_device_stats_t_ring_wait_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_device_stats_t")] + public static extern IntPtr new_switch_device_stats_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_device_stats_t")] + public static extern void delete_switch_device_stats_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_device_id_set")] + public static extern void switch_device_record_t_device_id_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_device_id_get")] + public static extern string switch_device_record_t_device_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_set")] + public static extern void switch_device_record_t_uuid_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_get")] + public static extern string switch_device_record_t_uuid_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_refs_set")] + public static extern void switch_device_record_t_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_refs_get")] + public static extern int switch_device_record_t_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_stats_set")] + public static extern void switch_device_record_t_stats_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_stats_get")] + public static extern IntPtr switch_device_record_t_stats_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_stats_set")] + public static extern void switch_device_record_t_last_stats_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_stats_get")] + public static extern IntPtr switch_device_record_t_last_stats_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_state_set")] + public static extern void switch_device_record_t_state_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_state_get")] + public static extern int switch_device_record_t_state_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_state_set")] + public static extern void switch_device_record_t_last_state_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_state_get")] + public static extern int switch_device_record_t_last_state_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_start_set")] + public static extern void switch_device_record_t_active_start_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_start_get")] + public static extern IntPtr switch_device_record_t_active_start_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_stop_set")] + public static extern void switch_device_record_t_active_stop_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_active_stop_get")] + public static extern IntPtr switch_device_record_t_active_stop_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_call_time_set")] + public static extern void switch_device_record_t_last_call_time_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_last_call_time_get")] + public static extern IntPtr switch_device_record_t_last_call_time_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_start_set")] + public static extern void switch_device_record_t_ring_start_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_start_get")] + public static extern IntPtr switch_device_record_t_ring_start_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_stop_set")] + public static extern void switch_device_record_t_ring_stop_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_ring_stop_get")] + public static extern IntPtr switch_device_record_t_ring_stop_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_start_set")] + public static extern void switch_device_record_t_hold_start_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_start_get")] + public static extern IntPtr switch_device_record_t_hold_start_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_stop_set")] + public static extern void switch_device_record_t_hold_stop_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_hold_stop_get")] + public static extern IntPtr switch_device_record_t_hold_stop_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_call_start_set")] + public static extern void switch_device_record_t_call_start_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_call_start_get")] + public static extern IntPtr switch_device_record_t_call_start_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_list_set")] + public static extern void switch_device_record_t_uuid_list_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_list_get")] + public static extern IntPtr switch_device_record_t_uuid_list_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_tail_set")] + public static extern void switch_device_record_t_uuid_tail_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_uuid_tail_get")] + public static extern IntPtr switch_device_record_t_uuid_tail_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_mutex_set")] + public static extern void switch_device_record_t_mutex_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_mutex_get")] + public static extern IntPtr switch_device_record_t_mutex_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_pool_set")] + public static extern void switch_device_record_t_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_pool_get")] + public static extern IntPtr switch_device_record_t_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_user_data_set")] + public static extern void switch_device_record_t_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_device_record_t_user_data_get")] + public static extern IntPtr switch_device_record_t_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_device_record_t")] + public static extern IntPtr new_switch_device_record_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_device_record_t")] + public static extern void delete_switch_device_record_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_DTLS_SRTP_FNAME_get")] + public static extern string DTLS_SRTP_FNAME_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_MAX_FPLEN_get")] + public static extern int MAX_FPLEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_MAX_FPSTRLEN_get")] + public static extern int MAX_FPSTRLEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_len_set")] + public static extern void dtls_fingerprint_t_len_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_len_get")] + public static extern uint dtls_fingerprint_t_len_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_data_set")] + public static extern void dtls_fingerprint_t_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_data_get")] + public static extern IntPtr dtls_fingerprint_t_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_type_set")] + public static extern void dtls_fingerprint_t_type_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_type_get")] + public static extern string dtls_fingerprint_t_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_str_set")] + public static extern void dtls_fingerprint_t_str_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_dtls_fingerprint_t_str_get")] + public static extern string dtls_fingerprint_t_str_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_dtls_fingerprint_t")] + public static extern IntPtr new_dtls_fingerprint_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_dtls_fingerprint_t")] + public static extern void delete_dtls_fingerprint_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_MESSAGE_STRING_ARG_MAX_get")] + public static extern int MESSAGE_STRING_ARG_MAX_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_from_set")] + public static extern void switch_core_session_message_from_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_from_get")] + public static extern string switch_core_session_message_from_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_message_id_set")] + public static extern void switch_core_session_message_message_id_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_message_id_get")] + public static extern int switch_core_session_message_message_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_arg_set")] + public static extern void switch_core_session_message_numeric_arg_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_arg_get")] + public static extern int switch_core_session_message_numeric_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_set")] + public static extern void switch_core_session_message_string_arg_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_get")] + public static extern string switch_core_session_message_string_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_size_set")] + public static extern void switch_core_session_message_string_arg_size_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_arg_size_get")] + public static extern IntPtr switch_core_session_message_string_arg_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_set")] + public static extern void switch_core_session_message_pointer_arg_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_get")] + public static extern IntPtr switch_core_session_message_pointer_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_size_set")] + public static extern void switch_core_session_message_pointer_arg_size_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_arg_size_get")] + public static extern IntPtr switch_core_session_message_pointer_arg_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_reply_set")] + public static extern void switch_core_session_message_numeric_reply_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_numeric_reply_get")] + public static extern int switch_core_session_message_numeric_reply_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_set")] + public static extern void switch_core_session_message_string_reply_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_get")] + public static extern string switch_core_session_message_string_reply_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_size_set")] + public static extern void switch_core_session_message_string_reply_size_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_reply_size_get")] + public static extern IntPtr switch_core_session_message_string_reply_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_set")] + public static extern void switch_core_session_message_pointer_reply_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_get")] + public static extern IntPtr switch_core_session_message_pointer_reply_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_size_set")] + public static extern void switch_core_session_message_pointer_reply_size_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_pointer_reply_size_get")] + public static extern IntPtr switch_core_session_message_pointer_reply_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_flags_set")] + public static extern void switch_core_session_message_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_flags_get")] + public static extern uint switch_core_session_message_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__file_set")] + public static extern void switch_core_session_message__file_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__file_get")] + public static extern string switch_core_session_message__file_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__func_set")] + public static extern void switch_core_session_message__func_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__func_get")] + public static extern string switch_core_session_message__func_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__line_set")] + public static extern void switch_core_session_message__line_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message__line_get")] + public static extern int switch_core_session_message__line_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_array_arg_set")] + public static extern void switch_core_session_message_string_array_arg_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_string_array_arg_get")] + public static extern IntPtr switch_core_session_message_string_array_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_delivery_time_set")] + public static extern void switch_core_session_message_delivery_time_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_delivery_time_get")] + public static extern IntPtr switch_core_session_message_delivery_time_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_core_session_message")] + public static extern IntPtr new_switch_core_session_message(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_session_message")] + public static extern void delete_switch_core_session_message(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_running_set")] + public static extern void switch_core_thread_session_running_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_running_get")] + public static extern int switch_core_thread_session_running_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_mutex_set")] + public static extern void switch_core_thread_session_mutex_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_mutex_get")] + public static extern IntPtr switch_core_thread_session_mutex_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_objs_set")] + public static extern void switch_core_thread_session_objs_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_objs_get")] + public static extern IntPtr switch_core_thread_session_objs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_input_callback_set")] + public static extern void switch_core_thread_session_input_callback_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_input_callback_get")] + public static extern IntPtr switch_core_thread_session_input_callback_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_pool_set")] + public static extern void switch_core_thread_session_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_pool_get")] + public static extern IntPtr switch_core_thread_session_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_core_thread_session")] + public static extern IntPtr new_switch_core_thread_session(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_thread_session")] + public static extern void delete_switch_core_thread_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_screen_size")] + public static extern void switch_core_screen_size(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sched_heartbeat")] + public static extern void switch_core_session_sched_heartbeat(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unsched_heartbeat")] + public static extern void switch_core_session_unsched_heartbeat(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_enable_heartbeat")] + public static extern void switch_core_session_enable_heartbeat(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_disable_heartbeat")] + public static extern void switch_core_session_disable_heartbeat(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_pop")] + public static extern int switch_core_media_bug_pop(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_exec_all")] + public static extern int switch_core_media_bug_exec_all(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_count")] + public static extern uint switch_core_media_bug_count(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_add")] + public static extern int switch_core_media_bug_add(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6, uint jarg7, HandleRef jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_pause")] + public static extern void switch_core_media_bug_pause(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_resume")] + public static extern void switch_core_media_bug_resume(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_inuse")] + public static extern void switch_core_media_bug_inuse(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_user_data")] + public static extern IntPtr switch_core_media_bug_get_user_data(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_write_replace_frame")] + public static extern IntPtr switch_core_media_bug_get_write_replace_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_native_read_frame")] + public static extern IntPtr switch_core_media_bug_get_native_read_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_native_write_frame")] + public static extern IntPtr switch_core_media_bug_get_native_write_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_write_replace_frame")] + public static extern void switch_core_media_bug_set_write_replace_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_read_replace_frame")] + public static extern IntPtr switch_core_media_bug_get_read_replace_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_read_demux_frame")] + public static extern void switch_core_media_bug_set_read_demux_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_session")] + public static extern IntPtr switch_core_media_bug_get_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_test_flag")] + public static extern uint switch_core_media_bug_test_flag(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_flag")] + public static extern uint switch_core_media_bug_set_flag(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_clear_flag")] + public static extern uint switch_core_media_bug_clear_flag(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_read_replace_frame")] + public static extern void switch_core_media_bug_set_read_replace_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cpu_count")] + public static extern uint switch_core_cpu_count(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove")] + public static extern int switch_core_media_bug_remove(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_prune")] + public static extern uint switch_core_media_bug_prune(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove_callback")] + public static extern int switch_core_media_bug_remove_callback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_close")] + public static extern int switch_core_media_bug_close(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove_all_function")] + public static extern int switch_core_media_bug_remove_all_function(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_enumerate")] + public static extern int switch_core_media_bug_enumerate(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_transfer_recordings")] + public static extern int switch_core_media_bug_transfer_recordings(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_transfer_callback")] + public static extern int switch_core_media_bug_transfer_callback(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_read")] + public static extern int switch_core_media_bug_read(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_flush")] + public static extern void switch_core_media_bug_flush(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_flush_all")] + public static extern int switch_core_media_bug_flush_all(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_pre_buffer_framecount")] + public static extern int switch_core_media_bug_set_pre_buffer_framecount(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_new")] + public static extern int switch_core_port_allocator_new(string jarg1, ushort jarg2, ushort jarg3, uint jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_request_port")] + public static extern int switch_core_port_allocator_request_port(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_free_port")] + public static extern int switch_core_port_allocator_free_port(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_destroy")] + public static extern void switch_core_port_allocator_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_test_flag")] + public static extern int switch_core_test_flag(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_init")] + public static extern int switch_core_init(uint jarg1, int jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_init_and_modload")] + public static extern int switch_core_init_and_modload(uint jarg1, int jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_limit")] + public static extern uint switch_core_session_limit(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sessions_per_second")] + public static extern uint switch_core_sessions_per_second(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_destroy")] + public static extern int switch_core_destroy(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_read_lock")] + public static extern int switch_core_session_io_read_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_write_lock")] + public static extern int switch_core_session_io_write_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_rwunlock")] + public static extern int switch_core_session_io_rwunlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_lock")] + public static extern int switch_core_session_read_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_lock_hangup")] + public static extern int switch_core_session_read_lock_hangup(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_lock")] + public static extern void switch_core_session_write_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_rwunlock")] + public static extern void switch_core_session_rwunlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_add_state_handler")] + public static extern int switch_core_add_state_handler(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_remove_state_handler")] + public static extern void switch_core_remove_state_handler(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_state_handler")] + public static extern IntPtr switch_core_get_state_handler(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_pool_tag")] + public static extern void switch_core_memory_pool_tag(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_new_memory_pool")] + public static extern int switch_core_perform_new_memory_pool(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sync_clock")] + public static extern int switch_core_session_sync_clock(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_destroy_memory_pool")] + public static extern int switch_core_perform_destroy_memory_pool(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_pool_set_data")] + public static extern void switch_core_memory_pool_set_data(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_pool_get_data")] + public static extern IntPtr switch_core_memory_pool_get_data(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_run")] + public static extern void switch_core_session_run(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_running")] + public static extern uint switch_core_session_running(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_started")] + public static extern uint switch_core_session_started(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_permanent_alloc")] + public static extern IntPtr switch_core_perform_permanent_alloc(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_alloc")] + public static extern IntPtr switch_core_perform_alloc(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_session_alloc")] + public static extern IntPtr switch_core_perform_session_alloc(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_permanent_strdup")] + public static extern string switch_core_perform_permanent_strdup(string jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_session_strdup")] + public static extern string switch_core_perform_session_strdup(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_strdup")] + public static extern string switch_core_perform_strdup(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sprintf")] + public static extern string switch_core_session_sprintf(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sprintf")] + public static extern string switch_core_sprintf(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_pool")] + public static extern IntPtr switch_core_session_get_pool(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_xml")] + public static extern IntPtr switch_core_session_request_xml(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_uuid")] + public static extern IntPtr switch_core_session_request_uuid(HandleRef jarg1, int jarg2, uint jarg3, HandleRef jarg4, string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_uuid")] + public static extern int switch_core_session_set_uuid(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_destroy")] + public static extern void switch_core_session_perform_destroy(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_destroy_state")] + public static extern void switch_core_session_destroy_state(HandleRef jarg1); + + [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, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_count")] + public static extern uint switch_core_session_count(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_id")] + public static extern IntPtr switch_core_session_get_id(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_id")] + public static extern IntPtr switch_core_session_id(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_id_dec")] + public static extern IntPtr switch_core_session_id_dec(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_by_name")] + public static extern IntPtr switch_core_session_request_by_name(string jarg1, int jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_launch")] + public static extern int switch_core_session_thread_launch(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_pool_launch_thread")] + public static extern int switch_thread_pool_launch_thread(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_pool_launch")] + public static extern int switch_core_session_thread_pool_launch(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_channel")] + public static extern IntPtr switch_core_session_get_channel(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_mutex")] + public static extern IntPtr switch_core_session_get_mutex(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_wake_session_thread")] + public static extern int switch_core_session_wake_session_thread(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_signal_state_change")] + public static extern void switch_core_session_signal_state_change(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_uuid")] + public static extern string switch_core_session_get_uuid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_loglevel")] + public static extern int switch_core_session_set_loglevel(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_loglevel")] + public static extern int switch_core_session_get_loglevel(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_jb")] + public static extern IntPtr switch_core_session_get_jb(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_soft_lock")] + public static extern void switch_core_session_soft_lock(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_soft_unlock")] + public static extern void switch_core_session_soft_unlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_dmachine")] + public static extern void switch_core_session_set_dmachine(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_dmachine")] + public static extern IntPtr switch_core_session_get_dmachine(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_target")] + public static extern int switch_ivr_dmachine_get_target(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_target")] + public static extern void switch_ivr_dmachine_set_target(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_terminators")] + public static extern int switch_ivr_dmachine_set_terminators(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_codec_slin")] + public static extern int switch_core_session_set_codec_slin(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_uuid")] + public static extern string switch_core_get_uuid(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_locate")] + public static extern IntPtr switch_core_session_perform_locate(string jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_force_locate")] + public static extern IntPtr switch_core_session_perform_force_locate(string jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variable")] + public static extern string switch_core_get_variable(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variable_dup")] + public static extern string switch_core_get_variable_dup(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variable_pdup")] + public static extern string switch_core_get_variable_pdup(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_hostname")] + public static extern string switch_core_get_hostname(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_switchname")] + public static extern string switch_core_get_switchname(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_domain")] + public static extern string switch_core_get_domain(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_variable")] + public static extern void switch_core_set_variable(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_variables")] + public static extern int switch_core_get_variables(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_var_conditional")] + public static extern int switch_core_set_var_conditional(string jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_dump_variables")] + public static extern void switch_core_dump_variables(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hupall")] + public static extern void switch_core_session_hupall(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hupall_matching_var_ans")] + public static extern uint switch_core_session_hupall_matching_var_ans(string jarg1, string jarg2, int jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_findall_matching_var")] + public static extern IntPtr switch_core_session_findall_matching_var(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_findall")] + public static extern IntPtr switch_core_session_findall(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hupall_endpoint")] + public static extern void switch_core_session_hupall_endpoint(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_get_partner")] + public static extern int switch_core_session_perform_get_partner(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_message_send")] + public static extern int switch_core_session_message_send(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_message")] + public static extern int switch_core_session_queue_message(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_free_message")] + public static extern void switch_core_session_free_message(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_signal_data")] + public static extern int switch_core_session_queue_signal_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_signal_data")] + public static extern int switch_core_session_dequeue_signal_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_pass_indication")] + public static extern int switch_core_session_pass_indication(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_indication")] + public static extern int switch_core_session_queue_indication(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_message")] + public static extern int switch_core_session_dequeue_message(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_flush_message")] + public static extern int switch_core_session_flush_message(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_event_send")] + public static extern int switch_core_session_event_send(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_app_log")] + public static extern IntPtr switch_core_session_get_app_log(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_exec")] + public static extern int switch_core_session_exec(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_video_reset")] + public static extern void switch_core_session_video_reset(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_application_get_flags")] + public static extern int switch_core_session_execute_application_get_flags(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_application_async")] + public static extern int switch_core_session_execute_application_async(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_app_flags")] + public static extern int switch_core_session_get_app_flags(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_exten")] + public static extern int switch_core_session_execute_exten(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_receive_event")] + public static extern int switch_core_session_receive_event(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_private_class")] + public static extern IntPtr switch_core_session_get_private_class(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_private_class")] + public static extern int switch_core_session_set_private_class(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_add_stream")] + public static extern int switch_core_session_add_stream(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_stream")] + public static extern IntPtr switch_core_session_get_stream(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_stream_count")] + public static extern int switch_core_session_get_stream_count(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_launch_thread")] + public static extern void switch_core_session_launch_thread(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_session_end")] + public static extern void switch_core_thread_session_end(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_service_session_av")] + public static extern void switch_core_service_session_av(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_outgoing_channel")] + public static extern int switch_core_session_outgoing_channel(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6, uint jarg7, HandleRef jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_receive_message")] + public static extern int switch_core_session_perform_receive_message(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_event")] + public static extern int switch_core_session_queue_event(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_event_count")] + public static extern uint switch_core_session_event_count(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_messages_waiting")] + public static extern uint switch_core_session_messages_waiting(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_event")] + public static extern int switch_core_session_dequeue_event(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_queue_private_event")] + public static extern int switch_core_session_queue_private_event(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_private_event_count")] + public static extern uint switch_core_session_private_event_count(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_private_event")] + public static extern int switch_core_session_dequeue_private_event(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_flush_private_events")] + public static extern uint switch_core_session_flush_private_events(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_frame")] + public static extern int switch_core_session_read_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_video_frame")] + public static extern int switch_core_session_read_video_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_video_frame")] + public static extern int switch_core_session_write_video_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_read_impl")] + public static extern int switch_core_session_set_read_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_write_impl")] + public static extern int switch_core_session_set_write_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_read_impl")] + public static extern int switch_core_session_set_video_read_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_write_impl")] + public static extern int switch_core_session_set_video_write_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_reset")] + public static extern void switch_core_session_reset(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_frame")] + public static extern int switch_core_session_write_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_perform_kill_channel")] + public static extern int switch_core_session_perform_kill_channel(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_send_dtmf")] + public static extern int switch_core_session_send_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_send_dtmf_string")] + public static extern int switch_core_session_send_dtmf_string(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_recv_dtmf")] + public static extern int switch_core_session_recv_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_init_case")] + public static extern int switch_core_hash_init_case(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_destroy")] + public static extern int switch_core_hash_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_insert_destructor")] + public static extern int switch_core_hash_insert_destructor(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_insert_locked")] + public static extern int switch_core_hash_insert_locked(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_insert_wrlock")] + public static extern int switch_core_hash_insert_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete")] + public static extern int switch_core_hash_delete(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_locked")] + public static extern int switch_core_hash_delete_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_wrlock")] + public static extern int switch_core_hash_delete_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_multi")] + public static extern int switch_core_hash_delete_multi(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find")] + public static extern IntPtr switch_core_hash_find(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find_locked")] + public static extern IntPtr switch_core_hash_find_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find_rdlock")] + public static extern IntPtr switch_core_hash_find_rdlock(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_first_iter")] + public static extern IntPtr switch_core_hash_first_iter(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_empty")] + public static extern int switch_core_hash_empty(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_next")] + public static extern IntPtr switch_core_hash_next(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_this")] + public static extern void switch_core_hash_this(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_init")] + public static extern int switch_core_timer_init(HandleRef jarg1, string jarg2, int jarg3, int jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_calibrate_clock")] + public static extern void switch_time_calibrate_clock(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_next")] + public static extern int switch_core_timer_next(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_step")] + public static extern int switch_core_timer_step(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_sync")] + public static extern int switch_core_timer_sync(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_check")] + public static extern int switch_core_timer_check(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_destroy")] + public static extern int switch_core_timer_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_init_with_bitrate")] + public static extern int switch_core_codec_init_with_bitrate(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, int jarg5, int jarg6, uint jarg7, uint jarg8, HandleRef jarg9, HandleRef jarg10); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_copy")] + public static extern int switch_core_codec_copy(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_parse_fmtp")] + public static extern int switch_core_codec_parse_fmtp(string jarg1, string jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_reset")] + public static extern int switch_core_codec_reset(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_encode")] + public static extern int switch_core_codec_encode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_decode")] + public static extern int switch_core_codec_decode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_destroy")] + public static extern int switch_core_codec_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_read_codec")] + public static extern int switch_core_session_set_read_codec(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_real_read_codec")] + public static extern int switch_core_session_set_real_read_codec(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unset_read_codec")] + public static extern void switch_core_session_unset_read_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unset_write_codec")] + public static extern void switch_core_session_unset_write_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_lock_codec_write")] + public static extern void switch_core_session_lock_codec_write(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unlock_codec_write")] + public static extern void switch_core_session_unlock_codec_write(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_lock_codec_read")] + public static extern void switch_core_session_lock_codec_read(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unlock_codec_read")] + public static extern void switch_core_session_unlock_codec_read(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_read_impl")] + public static extern int switch_core_session_get_read_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_real_read_impl")] + public static extern int switch_core_session_get_real_read_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_write_impl")] + public static extern int switch_core_session_get_write_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_read_impl")] + public static extern int switch_core_session_get_video_read_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_write_impl")] + public static extern int switch_core_session_get_video_write_impl(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_read_codec")] + public static extern IntPtr switch_core_session_get_read_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_effective_read_codec")] + public static extern IntPtr switch_core_session_get_effective_read_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_write_codec")] + public static extern int switch_core_session_set_write_codec(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_write_codec")] + public static extern IntPtr switch_core_session_get_write_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_effective_write_codec")] + public static extern IntPtr switch_core_session_get_effective_write_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_read_codec")] + public static extern int switch_core_session_set_video_read_codec(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_read_codec")] + public static extern IntPtr switch_core_session_get_video_read_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_write_codec")] + public static extern int switch_core_session_set_video_write_codec(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_video_write_codec")] + public static extern IntPtr switch_core_session_get_video_write_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_open_file")] + public static extern IntPtr switch_core_db_open_file(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_persistant_execute")] + public static extern int switch_core_db_persistant_execute(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_persistant_execute_trans")] + public static extern int switch_core_db_persistant_execute_trans(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_test_reactive")] + public static extern void switch_core_db_test_reactive(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_perform_file_open")] + public static extern int switch_core_perform_file_open(string jarg1, string jarg2, int jarg3, HandleRef jarg4, string jarg5, uint jarg6, uint jarg7, uint jarg8, HandleRef jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_read")] + public static extern int switch_core_file_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_write")] + public static extern int switch_core_file_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_write_video")] + public static extern int switch_core_file_write_video(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_seek")] + public static extern int switch_core_file_seek(HandleRef jarg1, HandleRef jarg2, long jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_set_string")] + public static extern int switch_core_file_set_string(HandleRef jarg1, int jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_get_string")] + public static extern int switch_core_file_get_string(HandleRef jarg1, int jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_close")] + public static extern int switch_core_file_close(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_truncate")] + public static extern int switch_core_file_truncate(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_open")] + public static extern int switch_core_speech_open(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, uint jarg5, uint jarg6, HandleRef jarg7, HandleRef jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_feed_tts")] + public static extern int switch_core_speech_feed_tts(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_flush_tts")] + public static extern void switch_core_speech_flush_tts(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_text_param_tts")] + public static extern void switch_core_speech_text_param_tts(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_numeric_param_tts")] + public static extern void switch_core_speech_numeric_param_tts(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_float_param_tts")] + public static extern void switch_core_speech_float_param_tts(HandleRef jarg1, string jarg2, double jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_read_tts")] + public static extern int switch_core_speech_read_tts(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_close")] + public static extern int switch_core_speech_close(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_open")] + public static extern int switch_core_asr_open(HandleRef jarg1, string jarg2, string jarg3, int jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_close")] + public static extern int switch_core_asr_close(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_feed")] + public static extern int switch_core_asr_feed(HandleRef jarg1, HandleRef jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_feed_dtmf")] + public static extern int switch_core_asr_feed_dtmf(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_check_results")] + public static extern int switch_core_asr_check_results(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_get_results")] + public static extern int switch_core_asr_get_results(HandleRef jarg1, ref string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_get_result_headers")] + public static extern int switch_core_asr_get_result_headers(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_load_grammar")] + public static extern int switch_core_asr_load_grammar(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_unload_grammar")] + public static extern int switch_core_asr_unload_grammar(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_enable_grammar")] + public static extern int switch_core_asr_enable_grammar(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_disable_grammar")] + public static extern int switch_core_asr_disable_grammar(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_disable_all_grammars")] + public static extern int switch_core_asr_disable_all_grammars(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_pause")] + public static extern int switch_core_asr_pause(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_resume")] + public static extern int switch_core_asr_resume(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_start_input_timers")] + public static extern int switch_core_asr_start_input_timers(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_text_param")] + public static extern void switch_core_asr_text_param(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_numeric_param")] + public static extern void switch_core_asr_numeric_param(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_asr_float_param")] + public static extern void switch_core_asr_float_param(HandleRef jarg1, string jarg2, double jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_open")] + public static extern int switch_core_directory_open(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_query")] + public static extern int switch_core_directory_query(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_next")] + public static extern int switch_core_directory_next(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_next_pair")] + public static extern int switch_core_directory_next_pair(HandleRef jarg1, ref string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_directory_close")] + public static extern int switch_core_directory_close(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_data_channel")] + public static extern IntPtr switch_core_data_channel(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready")] + public static extern int switch_core_ready(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_running")] + public static extern int switch_core_running(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready_inbound")] + public static extern int switch_core_ready_inbound(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready_outbound")] + public static extern int switch_core_ready_outbound(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_flags")] + public static extern uint switch_core_flags(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_management_exec")] + public static extern int switch_core_management_exec(string jarg1, int jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_set_normal_priority")] + public static extern int set_normal_priority(); + + [DllImport("mod_managed", EntryPoint="CSharp_set_auto_priority")] + public static extern int set_auto_priority(); + + [DllImport("mod_managed", EntryPoint="CSharp_set_realtime_priority")] + public static extern int set_realtime_priority(); + + [DllImport("mod_managed", EntryPoint="CSharp_set_low_priority")] + public static extern int set_low_priority(); + + [DllImport("mod_managed", EntryPoint="CSharp_change_user_group")] + public static extern int change_user_group(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_runtime_loop")] + public static extern void switch_core_runtime_loop(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_console")] + public static extern int switch_core_set_console(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_measure_time")] + public static extern void switch_core_measure_time(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_uptime")] + public static extern IntPtr switch_core_uptime(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_ctl")] + public static extern int switch_core_session_ctl(int jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_console")] + public static extern IntPtr switch_core_get_console(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_globals")] + public static extern void switch_core_set_globals(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_compare")] + public static extern byte switch_core_session_compare(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_check_interface")] + public static extern byte switch_core_session_check_interface(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_index")] + public static extern IntPtr switch_core_mime_index(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_ext2type")] + public static extern string switch_core_mime_ext2type(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_add_type")] + public static extern int switch_core_mime_add_type(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_create_module_interface")] + public static extern IntPtr switch_loadable_module_create_module_interface(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_create_interface")] + public static extern IntPtr switch_loadable_module_create_interface(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_micro_time_now")] + public static extern IntPtr switch_micro_time_now(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mono_micro_time_now")] + public static extern IntPtr switch_mono_micro_time_now(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim")] + public static extern void switch_core_memory_reclaim(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim_events")] + public static extern void switch_core_memory_reclaim_events(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim_logger")] + public static extern void switch_core_memory_reclaim_logger(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_memory_reclaim_all")] + public static extern void switch_core_memory_reclaim_all(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_setrlimits")] + public static extern void switch_core_setrlimits(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_ref")] + public static extern IntPtr switch_time_ref(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_sync")] + public static extern void switch_time_sync(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_epoch_time_now")] + public static extern IntPtr switch_epoch_time_now(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_lookup_timezone")] + public static extern string switch_lookup_timezone(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strftime_tz")] + public static extern int switch_strftime_tz(string jarg1, string jarg2, string jarg3, uint jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_exp_tz_name")] + public static extern int switch_time_exp_tz_name(string jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_load_network_lists")] + public static extern void switch_load_network_lists(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_check_network_list_ip_token")] + public static extern int switch_check_network_list_ip_token(string jarg1, string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_monotonic")] + public static extern void switch_time_set_monotonic(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_timerfd")] + public static extern void switch_time_set_timerfd(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_nanosleep")] + public static extern void switch_time_set_nanosleep(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_matrix")] + public static extern void switch_time_set_matrix(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_cond_yield")] + public static extern void switch_time_set_cond_yield(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_time_set_use_system_time")] + public static extern void switch_time_set_use_system_time(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_min_dtmf_duration")] + public static extern uint switch_core_min_dtmf_duration(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_max_dtmf_duration")] + public static extern uint switch_core_max_dtmf_duration(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_min_idle_cpu")] + public static extern double switch_core_min_idle_cpu(double jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_idle_cpu")] + public static extern double switch_core_idle_cpu(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_default_dtmf_duration")] + public static extern uint switch_core_default_dtmf_duration(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_set_complete")] + public static extern int switch_console_set_complete(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_set_alias")] + public static extern int switch_console_set_alias(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_system")] + public static extern int switch_system(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_system")] + public static extern int switch_stream_system(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cond_yield")] + public static extern void switch_cond_yield(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cond_next")] + public static extern void switch_cond_next(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_chat_send_args")] + public static extern int switch_core_chat_send_args(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, int jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_chat_send")] + public static extern int switch_core_chat_send(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_chat_deliver")] + public static extern int switch_core_chat_deliver(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_preprocess_session")] + public static extern int switch_ivr_preprocess_session(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_pause")] + public static extern void switch_core_sqldb_pause(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_resume")] + public static extern void switch_core_sqldb_resume(); + + [DllImport("mod_managed", EntryPoint="CSharp_CACHE_DB_LEN_get")] + public static extern int CACHE_DB_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_core_db_dbh_set")] + public static extern void switch_cache_db_native_handle_t_core_db_dbh_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_core_db_dbh_get")] + public static extern IntPtr switch_cache_db_native_handle_t_core_db_dbh_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_odbc_dbh_set")] + public static extern void switch_cache_db_native_handle_t_odbc_dbh_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_odbc_dbh_get")] + public static extern IntPtr switch_cache_db_native_handle_t_odbc_dbh_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_pgsql_dbh_set")] + public static extern void switch_cache_db_native_handle_t_pgsql_dbh_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_native_handle_t_pgsql_dbh_get")] + public static extern IntPtr switch_cache_db_native_handle_t_pgsql_dbh_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_native_handle_t")] + public static extern IntPtr new_switch_cache_db_native_handle_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_native_handle_t")] + public static extern void delete_switch_cache_db_native_handle_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_core_db_options_t_db_path_set")] + public static extern void switch_cache_db_core_db_options_t_db_path_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_core_db_options_t_db_path_get")] + public static extern string switch_cache_db_core_db_options_t_db_path_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_core_db_options_t")] + public static extern IntPtr new_switch_cache_db_core_db_options_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_core_db_options_t")] + public static extern void delete_switch_cache_db_core_db_options_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_dsn_set")] + public static extern void switch_cache_db_odbc_options_t_dsn_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_dsn_get")] + public static extern string switch_cache_db_odbc_options_t_dsn_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_user_set")] + public static extern void switch_cache_db_odbc_options_t_user_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_user_get")] + public static extern string switch_cache_db_odbc_options_t_user_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_pass_set")] + public static extern void switch_cache_db_odbc_options_t_pass_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_odbc_options_t_pass_get")] + public static extern string switch_cache_db_odbc_options_t_pass_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_odbc_options_t")] + public static extern IntPtr new_switch_cache_db_odbc_options_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_odbc_options_t")] + public static extern void delete_switch_cache_db_odbc_options_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_pgsql_options_t_dsn_set")] + public static extern void switch_cache_db_pgsql_options_t_dsn_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_pgsql_options_t_dsn_get")] + public static extern string switch_cache_db_pgsql_options_t_dsn_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_pgsql_options_t")] + public static extern IntPtr new_switch_cache_db_pgsql_options_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_pgsql_options_t")] + public static extern void delete_switch_cache_db_pgsql_options_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_core_db_options_set")] + public static extern void switch_cache_db_connection_options_t_core_db_options_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_core_db_options_get")] + public static extern IntPtr switch_cache_db_connection_options_t_core_db_options_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_odbc_options_set")] + public static extern void switch_cache_db_connection_options_t_odbc_options_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_odbc_options_get")] + public static extern IntPtr switch_cache_db_connection_options_t_odbc_options_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_pgsql_options_set")] + public static extern void switch_cache_db_connection_options_t_pgsql_options_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_connection_options_t_pgsql_options_get")] + public static extern IntPtr switch_cache_db_connection_options_t_pgsql_options_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_connection_options_t")] + public static extern IntPtr new_switch_cache_db_connection_options_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_connection_options_t")] + public static extern void delete_switch_cache_db_connection_options_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_type_name")] + public static extern string switch_cache_db_type_name(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_get_type")] + public static extern int switch_cache_db_get_type(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_dismiss_db_handle")] + public static extern void switch_cache_db_dismiss_db_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_release_db_handle")] + public static extern void switch_cache_db_release_db_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp__switch_cache_db_get_db_handle")] + public static extern int _switch_cache_db_get_db_handle(HandleRef jarg1, int jarg2, HandleRef jarg3, string jarg4, string jarg5, int jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp__switch_cache_db_get_db_handle_dsn")] + public static extern int _switch_cache_db_get_db_handle_dsn(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_create_schema")] + public static extern int switch_cache_db_create_schema(HandleRef jarg1, string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql2str")] + public static extern string switch_cache_db_execute_sql2str(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, ref string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql")] + public static extern int switch_cache_db_execute_sql(HandleRef jarg1, string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_callback")] + public static extern int switch_cache_db_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_callback_err")] + public static extern int switch_cache_db_execute_sql_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_affected_rows")] + public static extern int switch_cache_db_affected_rows(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_load_extension")] + public static extern int switch_cache_db_load_extension(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_status")] + public static extern void switch_cache_db_status(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp__switch_core_db_handle")] + public static extern int _switch_core_db_handle(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_test_reactive")] + public static extern int switch_cache_db_test_reactive(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_persistant_execute")] + public static extern int switch_cache_db_persistant_execute(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_persistant_execute_trans_full")] + public static extern int switch_cache_db_persistant_execute_trans_full(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5, string jarg6, string jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_signal_handlers")] + public static extern void switch_core_set_signal_handlers(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_debug_level")] + public static extern uint switch_core_debug_level(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_flush_handles")] + public static extern void switch_cache_db_flush_handles(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_banner")] + public static extern string switch_core_banner(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_in_thread")] + public static extern int switch_core_session_in_thread(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_default_ptime")] + public static extern uint switch_default_ptime(string jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_default_rate")] + public static extern uint switch_default_rate(string jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_add_registration")] + public static extern int switch_core_add_registration(string jarg1, string jarg2, string jarg3, string jarg4, uint jarg5, string jarg6, string jarg7, string jarg8, string jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_del_registration")] + public static extern int switch_core_del_registration(string jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_expire_registration")] + public static extern int switch_core_expire_registration(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_get_variable")] + public static extern string switch_say_file_handle_get_variable(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_get_path")] + public static extern string switch_say_file_handle_get_path(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_detach_path")] + public static extern string switch_say_file_handle_detach_path(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_destroy")] + public static extern void switch_say_file_handle_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file_handle_create")] + public static extern int switch_say_file_handle_create(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_file")] + public static extern void switch_say_file(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_max_file_desc")] + public static extern int switch_max_file_desc(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_close_extra_files")] + public static extern void switch_close_extra_files(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_thread_set_cpu_affinity")] + public static extern int switch_core_thread_set_cpu_affinity(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_os_yield")] + public static extern void switch_os_yield(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_stacksizes")] + public static extern int switch_core_get_stacksizes(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_gen_encoded_silence")] + public static extern void switch_core_gen_encoded_silence(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_dbtype")] + public static extern int switch_core_dbtype(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sql_exec")] + public static extern void switch_core_sql_exec(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_recover")] + public static extern int switch_core_recovery_recover(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_untrack")] + public static extern void switch_core_recovery_untrack(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_track")] + public static extern void switch_core_recovery_track(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_flush")] + public static extern void switch_core_recovery_flush(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_pause")] + public static extern void switch_sql_queue_manager_pause(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_resume")] + public static extern void switch_sql_queue_manager_resume(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_size")] + public static extern int switch_sql_queue_manager_size(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_push_confirm")] + public static extern int switch_sql_queue_manager_push_confirm(HandleRef jarg1, string jarg2, uint jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_push")] + public static extern int switch_sql_queue_manager_push(HandleRef jarg1, string jarg2, uint jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_destroy")] + public static extern int switch_sql_queue_manager_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_init_name")] + public static extern int switch_sql_queue_manager_init_name(string jarg1, HandleRef jarg2, uint jarg3, string jarg4, uint jarg5, string jarg6, string jarg7, string jarg8, string jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_start")] + public static extern int switch_sql_queue_manager_start(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_stop")] + public static extern int switch_sql_queue_manager_stop(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_event_callback")] + public static extern int switch_cache_db_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_callback")] + public static extern void switch_sql_queue_manager_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_callback_err")] + public static extern void switch_sql_queue_manager_execute_sql_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_event_callback")] + public static extern void switch_sql_queue_manager_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_event_callback_err")] + public static extern void switch_sql_queue_manager_execute_sql_event_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_fork")] + public static extern IntPtr switch_fork(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_gen_certs")] + public static extern int switch_core_gen_certs(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cert_gen_fingerprint")] + public static extern int switch_core_cert_gen_fingerprint(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cert_expand_fingerprint")] + public static extern int switch_core_cert_expand_fingerprint(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_cert_verify")] + public static extern int switch_core_cert_verify(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_refresh_video")] + public static extern int switch_core_session_refresh_video(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_system_fork")] + public static extern int switch_stream_system_fork(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ice_direction")] + public static extern int switch_ice_direction(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_debug_pool")] + public static extern void switch_core_session_debug_pool(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_major")] + public static extern string switch_version_major(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_minor")] + public static extern string switch_version_minor(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_micro")] + public static extern string switch_version_micro(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision")] + public static extern string switch_version_revision(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision_human")] + public static extern string switch_version_revision_human(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_full")] + public static extern string switch_version_full(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_full_human")] + public static extern string switch_version_full_human(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_module_name_set")] + public static extern void switch_loadable_module_interface_module_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_module_name_get")] + public static extern string switch_loadable_module_interface_module_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_endpoint_interface_set")] + public static extern void switch_loadable_module_interface_endpoint_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_endpoint_interface_get")] + public static extern IntPtr switch_loadable_module_interface_endpoint_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_timer_interface_set")] + public static extern void switch_loadable_module_interface_timer_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_timer_interface_get")] + public static extern IntPtr switch_loadable_module_interface_timer_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_dialplan_interface_set")] + public static extern void switch_loadable_module_interface_dialplan_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_dialplan_interface_get")] + public static extern IntPtr switch_loadable_module_interface_dialplan_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_codec_interface_set")] + public static extern void switch_loadable_module_interface_codec_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_codec_interface_get")] + public static extern IntPtr switch_loadable_module_interface_codec_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_application_interface_set")] + public static extern void switch_loadable_module_interface_application_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_application_interface_get")] + public static extern IntPtr switch_loadable_module_interface_application_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_application_interface_set")] + public static extern void switch_loadable_module_interface_chat_application_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_application_interface_get")] + public static extern IntPtr switch_loadable_module_interface_chat_application_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_api_interface_set")] + public static extern void switch_loadable_module_interface_api_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_api_interface_get")] + public static extern IntPtr switch_loadable_module_interface_api_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_json_api_interface_set")] + public static extern void switch_loadable_module_interface_json_api_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_json_api_interface_get")] + public static extern IntPtr switch_loadable_module_interface_json_api_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_file_interface_set")] + public static extern void switch_loadable_module_interface_file_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_file_interface_get")] + public static extern IntPtr switch_loadable_module_interface_file_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_speech_interface_set")] + public static extern void switch_loadable_module_interface_speech_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_speech_interface_get")] + public static extern IntPtr switch_loadable_module_interface_speech_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_directory_interface_set")] + public static extern void switch_loadable_module_interface_directory_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_directory_interface_get")] + public static extern IntPtr switch_loadable_module_interface_directory_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_interface_set")] + public static extern void switch_loadable_module_interface_chat_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_chat_interface_get")] + public static extern IntPtr switch_loadable_module_interface_chat_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_say_interface_set")] + public static extern void switch_loadable_module_interface_say_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_say_interface_get")] + public static extern IntPtr switch_loadable_module_interface_say_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_asr_interface_set")] + public static extern void switch_loadable_module_interface_asr_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_asr_interface_get")] + public static extern IntPtr switch_loadable_module_interface_asr_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_management_interface_set")] + public static extern void switch_loadable_module_interface_management_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_management_interface_get")] + public static extern IntPtr switch_loadable_module_interface_management_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_limit_interface_set")] + public static extern void switch_loadable_module_interface_limit_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_limit_interface_get")] + public static extern IntPtr switch_loadable_module_interface_limit_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_rwlock_set")] + public static extern void switch_loadable_module_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_rwlock_get")] + public static extern IntPtr switch_loadable_module_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_refs_set")] + public static extern void switch_loadable_module_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_refs_get")] + public static extern int switch_loadable_module_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_pool_set")] + public static extern void switch_loadable_module_interface_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_pool_get")] + public static extern IntPtr switch_loadable_module_interface_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_loadable_module_interface")] + public static extern IntPtr new_switch_loadable_module_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_loadable_module_interface")] + public static extern void delete_switch_loadable_module_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_init")] + public static extern int switch_loadable_module_init(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_shutdown")] + public static extern void switch_loadable_module_shutdown(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_endpoint_interface")] + public static extern IntPtr switch_loadable_module_get_endpoint_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codec_interface")] + public static extern IntPtr switch_loadable_module_get_codec_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_codec_buf")] + public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_dialplan_interface")] + public static extern IntPtr switch_loadable_module_get_dialplan_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_enumerate_available")] + public static extern int switch_loadable_module_enumerate_available(string jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_enumerate_loaded")] + public static extern int switch_loadable_module_enumerate_loaded(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_build_dynamic")] + public static extern int switch_loadable_module_build_dynamic(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_timer_interface")] + public static extern IntPtr switch_loadable_module_get_timer_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_application_interface")] + public static extern IntPtr switch_loadable_module_get_application_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_chat_application_interface")] + public static extern IntPtr switch_loadable_module_get_chat_application_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_execute_chat_app")] + public static extern int switch_core_execute_chat_app(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_api_interface")] + public static extern IntPtr switch_loadable_module_get_api_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_json_api_interface")] + public static extern IntPtr switch_loadable_module_get_json_api_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_file_interface")] + public static extern IntPtr switch_loadable_module_get_file_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_speech_interface")] + public static extern IntPtr switch_loadable_module_get_speech_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_asr_interface")] + public static extern IntPtr switch_loadable_module_get_asr_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_directory_interface")] + public static extern IntPtr switch_loadable_module_get_directory_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_chat_interface")] + public static extern IntPtr switch_loadable_module_get_chat_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_say_interface")] + public static extern IntPtr switch_loadable_module_get_say_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_management_interface")] + public static extern IntPtr switch_loadable_module_get_management_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_limit_interface")] + public static extern IntPtr switch_loadable_module_get_limit_interface(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codecs")] + public static extern int switch_loadable_module_get_codecs(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codecs_sorted")] + public static extern int switch_loadable_module_get_codecs_sorted(HandleRef jarg1, int jarg2, ref string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_execute")] + public static extern int switch_api_execute(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_execute")] + public static extern int switch_json_api_execute(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_load_module")] + public static extern int switch_loadable_module_load_module(string jarg1, string jarg2, int jarg3, ref string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_exists")] + public static extern int switch_loadable_module_exists(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_unload_module")] + public static extern int switch_loadable_module_unload_module(string jarg1, string jarg2, int jarg3, ref string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_next_id")] + public static extern uint switch_core_codec_next_id(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_check_interval")] + public static extern int switch_check_interval(uint jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_add_implementation")] + public static extern void switch_core_codec_add_implementation(HandleRef jarg1, HandleRef jarg2, int jarg3, byte jarg4, string jarg5, string jarg6, uint jarg7, uint jarg8, int jarg9, int jarg10, uint jarg11, uint jarg12, uint jarg13, byte jarg14, int jarg15, HandleRef jarg16, HandleRef jarg17, HandleRef jarg18, HandleRef jarg19); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_ready")] + public static extern int switch_core_codec_ready(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_secondary_recover_callback")] + public static extern IntPtr switch_core_get_secondary_recover_callback(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_register_secondary_recover_callback")] + public static extern int switch_core_register_secondary_recover_callback(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_unregister_secondary_recover_callback")] + public static extern void switch_core_unregister_secondary_recover_callback(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CMD_CHUNK_LEN_get")] + public static extern int SWITCH_CMD_CHUNK_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_loop")] + public static extern void switch_console_loop(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_stream_raw_write")] + public static extern int switch_console_stream_raw_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_write_file_contents")] + public static extern int switch_stream_write_file_contents(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_init")] + public static extern int switch_console_init(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_shutdown")] + public static extern int switch_console_shutdown(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_add_complete_func")] + public static extern int switch_console_add_complete_func(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_del_complete_func")] + public static extern int switch_console_del_complete_func(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_run_complete_func")] + public static extern int switch_console_run_complete_func(string jarg1, string jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_push_match_unique")] + public static extern void switch_console_push_match_unique(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_push_match")] + public static extern void switch_console_push_match(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_free_matches")] + public static extern void switch_console_free_matches(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_complete")] + public static extern byte switch_console_complete(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_sort_matches")] + public static extern void switch_console_sort_matches(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_save_history")] + public static extern void switch_console_save_history(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_expand_alias")] + public static extern string switch_console_expand_alias(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_console_execute")] + public static extern int switch_console_execute(string jarg1, int jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_URL_UNSAFE_get")] + public static extern string SWITCH_URL_UNSAFE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_toupper")] + public static extern uint switch_toupper(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_tolower")] + public static extern uint switch_tolower(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_toupper_max")] + public static extern void switch_toupper_max(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_tolower_max")] + public static extern void switch_tolower_max(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_old_switch_toupper")] + public static extern int old_switch_toupper(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_old_switch_tolower")] + public static extern int old_switch_tolower(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isalnum")] + public static extern int switch_isalnum(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isalpha")] + public static extern int switch_isalpha(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_iscntrl")] + public static extern int switch_iscntrl(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isdigit")] + public static extern int switch_isdigit(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isgraph")] + public static extern int switch_isgraph(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_islower")] + public static extern int switch_islower(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isprint")] + public static extern int switch_isprint(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ispunct")] + public static extern int switch_ispunct(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isspace")] + public static extern int switch_isspace(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isupper")] + public static extern int switch_isupper(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_isxdigit")] + public static extern int switch_isxdigit(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v4_set")] + public static extern void ip_t_v4_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v4_get")] + public static extern uint ip_t_v4_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v6_set")] + public static extern void ip_t_v6_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ip_t_v6_get")] + public static extern IntPtr ip_t_v6_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_ip_t")] + public static extern IntPtr new_ip_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_ip_t")] + public static extern void delete_ip_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_testv6_subnet")] + public static extern int switch_testv6_subnet(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_print_host")] + public static extern string switch_print_host(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SMAX_get")] + public static extern int SWITCH_SMAX_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SMIN_get")] + public static extern int SWITCH_SMIN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp__zstr")] + public static extern int _zstr(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_is_moh")] + public static extern int switch_is_moh(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strchr_strict")] + public static extern string switch_strchr_strict(string jarg1, char jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_string_has_escaped_data")] + public static extern int switch_string_has_escaped_data(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_b64_encode")] + public static extern int switch_b64_encode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_b64_decode")] + public static extern IntPtr switch_b64_decode(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_amp_encode")] + public static extern string switch_amp_encode(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_is_digit_string")] + public static extern int switch_is_digit_string(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_itodtmf")] + public static extern char switch_itodtmf(char jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmftoi")] + public static extern int switch_dtmftoi(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_known_bitrate")] + public static extern uint switch_known_bitrate(byte jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_fd_read_line")] + public static extern IntPtr switch_fd_read_line(int jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_fd_read_dline")] + public static extern IntPtr switch_fd_read_dline(int jarg1, ref string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_fp_read_dline")] + public static extern IntPtr switch_fp_read_dline(HandleRef jarg1, ref string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_alloc")] + public static extern int switch_frame_alloc(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_dup")] + public static extern int switch_frame_dup(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_free")] + public static extern int switch_frame_free(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_is_number")] + public static extern int switch_is_number(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_is_leading_number")] + public static extern int switch_is_leading_number(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_find_parameter")] + public static extern string switch_find_parameter(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_true")] + public static extern int switch_true(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_true_byte")] + public static extern byte switch_true_byte(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_false")] + public static extern int switch_false(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_resolve_host")] + public static extern int switch_resolve_host(string jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_find_local_ip")] + public static extern int switch_find_local_ip(string jarg1, int jarg2, HandleRef jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_find_interface_ip")] + public static extern int switch_find_interface_ip(string jarg1, int jarg2, HandleRef jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_get_addr")] + public static extern string get_addr(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_get_addr6")] + public static extern string get_addr6(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_get_addr_int")] + public static extern int get_addr_int(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cmp_addr")] + public static extern int switch_cmp_addr(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_get_port")] + public static extern ushort get_port(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_build_uri")] + public static extern int switch_build_uri(string jarg1, HandleRef jarg2, string jarg3, string jarg4, HandleRef jarg5, int jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_errno_is_break")] + public static extern int switch_errno_is_break(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_priority_name")] + public static extern string switch_priority_name(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rfc2833_to_char")] + public static extern char switch_rfc2833_to_char(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_char_to_rfc2833")] + public static extern byte switch_char_to_rfc2833(char jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sanitize_number")] + public static extern string switch_sanitize_number(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_string_var_check")] + public static extern int switch_string_var_check(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_string_var_check_const")] + public static extern int switch_string_var_check_const(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_var_clean_string")] + public static extern string switch_var_clean_string(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_clean_string")] + public static extern string switch_clean_string(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_clean_name_string")] + public static extern string switch_clean_name_string(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_safe_atoi")] + public static extern int switch_safe_atoi(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_safe_strdup")] + public static extern string switch_safe_strdup(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_lc_strdup")] + public static extern string switch_lc_strdup(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_uc_strdup")] + public static extern string switch_uc_strdup(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strstr")] + public static extern int switch_strstr(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_str_time")] + public static extern IntPtr switch_str_time(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_string")] + public static extern uint switch_separate_string(string jarg1, char jarg2, ref string jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_string_string")] + public static extern uint switch_separate_string_string(string jarg1, string jarg2, ref string jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_spaces")] + public static extern string switch_strip_spaces(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_whitespace")] + public static extern string switch_strip_whitespace(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_commas")] + public static extern string switch_strip_commas(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_nonnumerics")] + public static extern string switch_strip_nonnumerics(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_paren_args")] + public static extern string switch_separate_paren_args(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stristr")] + public static extern string switch_stristr(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_is_lan_addr")] + public static extern int switch_is_lan_addr(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_replace_char")] + public static extern string switch_replace_char(string jarg1, char jarg2, char jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ast2regex")] + public static extern int switch_ast2regex(string jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_escape_char")] + public static extern string switch_escape_char(HandleRef jarg1, string jarg2, string jarg3, char jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_escape_string")] + public static extern string switch_escape_string(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_escape_string_pool")] + public static extern string switch_escape_string_pool(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_socket_waitfor")] + public static extern int switch_socket_waitfor(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cut_path")] + public static extern string switch_cut_path(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_string_replace")] + public static extern string switch_string_replace(string jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_string_match")] + public static extern int switch_string_match(string jarg1, uint jarg2, string jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strcasecmp_any")] + public static extern int switch_strcasecmp_any(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_util_quote_shell_arg")] + public static extern string switch_util_quote_shell_arg(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_util_quote_shell_arg_pool")] + public static extern string switch_util_quote_shell_arg_pool(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_needs_url_encode")] + public static extern int switch_needs_url_encode(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_url_encode")] + public static extern string switch_url_encode(string jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_url_decode")] + public static extern string switch_url_decode(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_simple_email")] + public static extern int switch_simple_email(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_find_end_paren")] + public static extern string switch_find_end_paren(string jarg1, char jarg2, char jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_separate_file_params")] + public static extern void switch_separate_file_params(string jarg1, ref string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_is_file_path")] + public static extern int switch_is_file_path(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_cidr")] + public static extern int switch_parse_cidr(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_create")] + public static extern int switch_network_list_create(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_add_cidr_token")] + public static extern int switch_network_list_add_cidr_token(HandleRef jarg1, string jarg2, int jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_add_host_mask")] + public static extern int switch_network_list_add_host_mask(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_validate_ip_token")] + public static extern int switch_network_list_validate_ip_token(HandleRef jarg1, uint jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_validate_ip6_token")] + public static extern int switch_network_list_validate_ip6_token(HandleRef jarg1, HandleRef jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dow_int2str")] + public static extern string switch_dow_int2str(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dow_str2int")] + public static extern int switch_dow_str2int(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dow_cmp")] + public static extern int switch_dow_cmp(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_number_cmp")] + public static extern int switch_number_cmp(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_tod_cmp")] + public static extern int switch_tod_cmp(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_fulldate_cmp")] + public static extern int switch_fulldate_cmp(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_split_date")] + public static extern void switch_split_date(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_split_time")] + public static extern void switch_split_time(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_split_user_domain")] + public static extern int switch_split_user_domain(string jarg1, ref string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_uuid_str")] + public static extern string switch_uuid_str(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_format_number")] + public static extern string switch_format_number(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_atoui")] + public static extern uint switch_atoui(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_atoul")] + public static extern uint switch_atoul(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_strerror_r")] + public static extern string switch_strerror_r(int jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_wait_sock")] + public static extern int switch_wait_sock(int jarg1, uint jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_wait_socklist")] + public static extern int switch_wait_socklist(HandleRef jarg1, uint jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_method_set")] + public static extern void switch_http_request_t_method_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_method_get")] + public static extern string switch_http_request_t_method_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_uri_set")] + public static extern void switch_http_request_t_uri_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_uri_get")] + public static extern string switch_http_request_t_uri_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_qs_set")] + public static extern void switch_http_request_t_qs_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_qs_get")] + public static extern string switch_http_request_t_qs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_host_set")] + public static extern void switch_http_request_t_host_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_host_get")] + public static extern string switch_http_request_t_host_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_port_set")] + public static extern void switch_http_request_t_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_port_get")] + public static extern ushort switch_http_request_t_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_from_set")] + public static extern void switch_http_request_t_from_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_from_get")] + public static extern string switch_http_request_t_from_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_agent_set")] + public static extern void switch_http_request_t_user_agent_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_agent_get")] + public static extern string switch_http_request_t_user_agent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_referer_set")] + public static extern void switch_http_request_t_referer_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_referer_get")] + public static extern string switch_http_request_t_referer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_set")] + public static extern void switch_http_request_t_user_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_get")] + public static extern string switch_http_request_t_user_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_keepalive_set")] + public static extern void switch_http_request_t_keepalive_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_keepalive_get")] + public static extern int switch_http_request_t_keepalive_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_type_set")] + public static extern void switch_http_request_t_content_type_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_type_get")] + public static extern string switch_http_request_t_content_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_length_set")] + public static extern void switch_http_request_t_content_length_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_length_get")] + public static extern IntPtr switch_http_request_t_content_length_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_header_set")] + public static extern void switch_http_request_t_bytes_header_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_header_get")] + public static extern IntPtr switch_http_request_t_bytes_header_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_read_set")] + public static extern void switch_http_request_t_bytes_read_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_read_get")] + public static extern IntPtr switch_http_request_t_bytes_read_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_buffered_set")] + public static extern void switch_http_request_t_bytes_buffered_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_buffered_get")] + public static extern IntPtr switch_http_request_t_bytes_buffered_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_headers_set")] + public static extern void switch_http_request_t_headers_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_headers_get")] + public static extern IntPtr switch_http_request_t_headers_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_data_set")] + public static extern void switch_http_request_t_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_user_data_get")] + public static extern IntPtr switch_http_request_t_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__buffer_set")] + public static extern void switch_http_request_t__buffer_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__buffer_get")] + public static extern string switch_http_request_t__buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__destroy_headers_set")] + public static extern void switch_http_request_t__destroy_headers_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__destroy_headers_get")] + public static extern int switch_http_request_t__destroy_headers_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_http_request_t")] + public static extern IntPtr new_switch_http_request_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_http_request_t")] + public static extern void delete_switch_http_request_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_parse_header")] + public static extern int switch_http_parse_header(string jarg1, uint jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_free_request")] + public static extern void switch_http_free_request(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_dump_request")] + public static extern void switch_http_dump_request(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_parse_qs")] + public static extern void switch_http_parse_qs(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_set")] + public static extern void profile_node_t_var_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_get")] + public static extern string profile_node_t_var_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_set")] + public static extern void profile_node_t_val_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_get")] + public static extern string profile_node_t_val_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_set")] + public static extern void profile_node_t_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_get")] + public static extern IntPtr profile_node_t_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_profile_node_t")] + public static extern IntPtr new_profile_node_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_profile_node_t")] + public static extern void delete_profile_node_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_set")] + public static extern void switch_caller_profile_username_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_get")] + public static extern string switch_caller_profile_username_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_dialplan_set")] + public static extern void switch_caller_profile_dialplan_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_dialplan_get")] + public static extern string switch_caller_profile_dialplan_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_name_set")] + public static extern void switch_caller_profile_caller_id_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_name_get")] + public static extern string switch_caller_profile_caller_id_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_number_set")] + public static extern void switch_caller_profile_caller_id_number_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_id_number_get")] + public static extern string switch_caller_profile_caller_id_number_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_name_set")] + public static extern void switch_caller_profile_orig_caller_id_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_name_get")] + public static extern string switch_caller_profile_orig_caller_id_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_number_set")] + public static extern void switch_caller_profile_orig_caller_id_number_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_orig_caller_id_number_get")] + public static extern string switch_caller_profile_orig_caller_id_number_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_name_set")] + public static extern void switch_caller_profile_callee_id_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_name_get")] + public static extern string switch_caller_profile_callee_id_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_number_set")] + public static extern void switch_caller_profile_callee_id_number_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_callee_id_number_get")] + public static extern string switch_caller_profile_callee_id_number_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_ton_set")] + public static extern void switch_caller_profile_caller_ton_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_ton_get")] + public static extern byte switch_caller_profile_caller_ton_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_numplan_set")] + public static extern void switch_caller_profile_caller_numplan_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_numplan_get")] + public static extern byte switch_caller_profile_caller_numplan_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_network_addr_set")] + public static extern void switch_caller_profile_network_addr_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_network_addr_get")] + public static extern string switch_caller_profile_network_addr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_set")] + public static extern void switch_caller_profile_ani_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_get")] + public static extern string switch_caller_profile_ani_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_ton_set")] + public static extern void switch_caller_profile_ani_ton_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_ton_get")] + public static extern byte switch_caller_profile_ani_ton_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_numplan_set")] + public static extern void switch_caller_profile_ani_numplan_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_ani_numplan_get")] + public static extern byte switch_caller_profile_ani_numplan_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_aniii_set")] + public static extern void switch_caller_profile_aniii_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_aniii_get")] + public static extern string switch_caller_profile_aniii_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_set")] + public static extern void switch_caller_profile_rdnis_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_get")] + public static extern string switch_caller_profile_rdnis_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_ton_set")] + public static extern void switch_caller_profile_rdnis_ton_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_ton_get")] + public static extern byte switch_caller_profile_rdnis_ton_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_numplan_set")] + public static extern void switch_caller_profile_rdnis_numplan_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_rdnis_numplan_get")] + public static extern byte switch_caller_profile_rdnis_numplan_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_set")] + public static extern void switch_caller_profile_destination_number_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_get")] + public static extern string switch_caller_profile_destination_number_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_ton_set")] + public static extern void switch_caller_profile_destination_number_ton_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_ton_get")] + public static extern byte switch_caller_profile_destination_number_ton_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_numplan_set")] + public static extern void switch_caller_profile_destination_number_numplan_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_destination_number_numplan_get")] + public static extern byte switch_caller_profile_destination_number_numplan_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_source_set")] + public static extern void switch_caller_profile_source_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_source_get")] + public static extern string switch_caller_profile_source_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_chan_name_set")] + public static extern void switch_caller_profile_chan_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_chan_name_get")] + public static extern string switch_caller_profile_chan_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_set")] + public static extern void switch_caller_profile_uuid_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_get")] + public static extern string switch_caller_profile_uuid_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_context_set")] + public static extern void switch_caller_profile_context_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_context_get")] + public static extern string switch_caller_profile_context_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_profile_index_set")] + public static extern void switch_caller_profile_profile_index_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_profile_index_get")] + public static extern string switch_caller_profile_profile_index_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_flags_set")] + public static extern void switch_caller_profile_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_flags_get")] + public static extern uint switch_caller_profile_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originator_caller_profile_set")] + public static extern void switch_caller_profile_originator_caller_profile_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originator_caller_profile_get")] + public static extern IntPtr switch_caller_profile_originator_caller_profile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originatee_caller_profile_set")] + public static extern void switch_caller_profile_originatee_caller_profile_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_originatee_caller_profile_get")] + public static extern IntPtr switch_caller_profile_originatee_caller_profile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_origination_caller_profile_set")] + public static extern void switch_caller_profile_origination_caller_profile_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_origination_caller_profile_get")] + public static extern IntPtr switch_caller_profile_origination_caller_profile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_hunt_caller_profile_set")] + public static extern void switch_caller_profile_hunt_caller_profile_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_hunt_caller_profile_get")] + public static extern IntPtr switch_caller_profile_hunt_caller_profile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_times_set")] + public static extern void switch_caller_profile_times_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_times_get")] + public static extern IntPtr switch_caller_profile_times_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_old_times_set")] + public static extern void switch_caller_profile_old_times_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_old_times_get")] + public static extern IntPtr switch_caller_profile_old_times_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_extension_set")] + public static extern void switch_caller_profile_caller_extension_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_caller_extension_get")] + public static extern IntPtr switch_caller_profile_caller_extension_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_pool_set")] + public static extern void switch_caller_profile_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_pool_get")] + public static extern IntPtr switch_caller_profile_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_next_set")] + public static extern void switch_caller_profile_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_next_get")] + public static extern IntPtr switch_caller_profile_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_set")] + public static extern void switch_caller_profile_direction_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_get")] + public static extern int switch_caller_profile_direction_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_logical_direction_set")] + public static extern void switch_caller_profile_logical_direction_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_logical_direction_get")] + public static extern int switch_caller_profile_logical_direction_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_set")] + public static extern void switch_caller_profile_soft_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_get")] + public static extern IntPtr switch_caller_profile_soft_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_str_set")] + public static extern void switch_caller_profile_uuid_str_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_uuid_str_get")] + public static extern string switch_caller_profile_uuid_str_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_clone_of_set")] + public static extern void switch_caller_profile_clone_of_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_clone_of_get")] + public static extern string switch_caller_profile_clone_of_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_transfer_source_set")] + public static extern void switch_caller_profile_transfer_source_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_transfer_source_get")] + public static extern string switch_caller_profile_transfer_source_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_profile")] + public static extern IntPtr new_switch_caller_profile(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_caller_profile")] + public static extern void delete_switch_caller_profile(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_name_set")] + public static extern void switch_caller_application_application_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_name_get")] + public static extern string switch_caller_application_application_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_data_set")] + public static extern void switch_caller_application_application_data_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_data_get")] + public static extern string switch_caller_application_application_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_function_set")] + public static extern void switch_caller_application_application_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_application_function_get")] + public static extern IntPtr switch_caller_application_application_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_next_set")] + public static extern void switch_caller_application_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_application_next_get")] + public static extern IntPtr switch_caller_application_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_application")] + public static extern IntPtr new_switch_caller_application(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_caller_application")] + public static extern void delete_switch_caller_application(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_name_set")] + public static extern void switch_caller_extension_extension_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_name_get")] + public static extern string switch_caller_extension_extension_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_number_set")] + public static extern void switch_caller_extension_extension_number_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_extension_number_get")] + public static extern string switch_caller_extension_extension_number_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_current_application_set")] + public static extern void switch_caller_extension_current_application_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_current_application_get")] + public static extern IntPtr switch_caller_extension_current_application_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_last_application_set")] + public static extern void switch_caller_extension_last_application_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_last_application_get")] + public static extern IntPtr switch_caller_extension_last_application_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_applications_set")] + public static extern void switch_caller_extension_applications_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_applications_get")] + public static extern IntPtr switch_caller_extension_applications_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_children_set")] + public static extern void switch_caller_extension_children_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_children_get")] + public static extern IntPtr switch_caller_extension_children_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_next_set")] + public static extern void switch_caller_extension_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_next_get")] + public static extern IntPtr switch_caller_extension_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_extension")] + public static extern IntPtr new_switch_caller_extension(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_caller_extension")] + public static extern void delete_switch_caller_extension(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_new")] + public static extern IntPtr switch_caller_extension_new(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_clone")] + public static extern int switch_caller_extension_clone(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_add_application")] + public static extern void switch_caller_extension_add_application(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_extension_add_application_printf")] + public static extern void switch_caller_extension_add_application_printf(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_get_field_by_name")] + public static extern string switch_caller_get_field_by_name(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_new")] + public static extern IntPtr switch_caller_profile_new(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, string jarg11, string jarg12); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_clone")] + public static extern IntPtr switch_caller_profile_clone(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_dup")] + public static extern IntPtr switch_caller_profile_dup(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_event_set_data")] + public static extern void switch_caller_profile_event_set_data(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_codec_set")] + public static extern void switch_frame_codec_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_codec_get")] + public static extern IntPtr switch_frame_codec_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_source_set")] + public static extern void switch_frame_source_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_source_get")] + public static extern string switch_frame_source_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packet_set")] + public static extern void switch_frame_packet_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packet_get")] + public static extern IntPtr switch_frame_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packetlen_set")] + public static extern void switch_frame_packetlen_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_packetlen_get")] + public static extern uint switch_frame_packetlen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_extra_data_set")] + public static extern void switch_frame_extra_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_extra_data_get")] + public static extern IntPtr switch_frame_extra_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_data_set")] + public static extern void switch_frame_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_data_get")] + public static extern IntPtr switch_frame_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_datalen_set")] + public static extern void switch_frame_datalen_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_datalen_get")] + public static extern uint switch_frame_datalen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buflen_set")] + public static extern void switch_frame_buflen_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buflen_get")] + public static extern uint switch_frame_buflen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_samples_set")] + public static extern void switch_frame_samples_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_samples_get")] + public static extern uint switch_frame_samples_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_rate_set")] + public static extern void switch_frame_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_rate_get")] + public static extern uint switch_frame_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_channels_set")] + public static extern void switch_frame_channels_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_channels_get")] + public static extern uint switch_frame_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_payload_set")] + public static extern void switch_frame_payload_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_payload_get")] + public static extern byte switch_frame_payload_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_timestamp_set")] + public static extern void switch_frame_timestamp_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_timestamp_get")] + public static extern IntPtr switch_frame_timestamp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_seq_set")] + public static extern void switch_frame_seq_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_seq_get")] + public static extern ushort switch_frame_seq_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_ssrc_set")] + public static extern void switch_frame_ssrc_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_ssrc_get")] + public static extern uint switch_frame_ssrc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_m_set")] + public static extern void switch_frame_m_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_m_get")] + public static extern int switch_frame_m_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_flags_set")] + public static extern void switch_frame_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_flags_get")] + public static extern uint switch_frame_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_user_data_set")] + public static extern void switch_frame_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_user_data_get")] + public static extern IntPtr switch_frame_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_pmap_set")] + public static extern void switch_frame_pmap_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_pmap_get")] + public static extern IntPtr switch_frame_pmap_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_frame")] + public static extern IntPtr new_switch_frame(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_frame")] + public static extern void delete_switch_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_init_set")] + public static extern void switch_state_handler_table_on_init_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_init_get")] + public static extern IntPtr switch_state_handler_table_on_init_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_routing_set")] + public static extern void switch_state_handler_table_on_routing_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_routing_get")] + public static extern IntPtr switch_state_handler_table_on_routing_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_execute_set")] + public static extern void switch_state_handler_table_on_execute_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_execute_get")] + public static extern IntPtr switch_state_handler_table_on_execute_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hangup_set")] + public static extern void switch_state_handler_table_on_hangup_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hangup_get")] + public static extern IntPtr switch_state_handler_table_on_hangup_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_exchange_media_set")] + public static extern void switch_state_handler_table_on_exchange_media_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_exchange_media_get")] + public static extern IntPtr switch_state_handler_table_on_exchange_media_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_soft_execute_set")] + public static extern void switch_state_handler_table_on_soft_execute_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_soft_execute_get")] + public static extern IntPtr switch_state_handler_table_on_soft_execute_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_consume_media_set")] + public static extern void switch_state_handler_table_on_consume_media_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_consume_media_get")] + public static extern IntPtr switch_state_handler_table_on_consume_media_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hibernate_set")] + public static extern void switch_state_handler_table_on_hibernate_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_hibernate_get")] + public static extern IntPtr switch_state_handler_table_on_hibernate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reset_set")] + public static extern void switch_state_handler_table_on_reset_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reset_get")] + public static extern IntPtr switch_state_handler_table_on_reset_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_park_set")] + public static extern void switch_state_handler_table_on_park_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_park_get")] + public static extern IntPtr switch_state_handler_table_on_park_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reporting_set")] + public static extern void switch_state_handler_table_on_reporting_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reporting_get")] + public static extern IntPtr switch_state_handler_table_on_reporting_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_destroy_set")] + public static extern void switch_state_handler_table_on_destroy_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_destroy_get")] + public static extern IntPtr switch_state_handler_table_on_destroy_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_flags_set")] + public static extern void switch_state_handler_table_flags_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_flags_get")] + public static extern int switch_state_handler_table_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_padding_set")] + public static extern void switch_state_handler_table_padding_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_padding_get")] + public static extern IntPtr switch_state_handler_table_padding_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_state_handler_table")] + public static extern IntPtr new_switch_state_handler_table(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_state_handler_table")] + public static extern void delete_switch_state_handler_table(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_read_function_set")] + public static extern void switch_stream_handle_read_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_read_function_get")] + public static extern IntPtr switch_stream_handle_read_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_write_function_set")] + public static extern void switch_stream_handle_write_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_write_function_get")] + public static extern IntPtr switch_stream_handle_write_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_raw_write_function_set")] + public static extern void switch_stream_handle_raw_write_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_raw_write_function_get")] + public static extern IntPtr switch_stream_handle_raw_write_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_set")] + public static extern void switch_stream_handle_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_get")] + public static extern IntPtr switch_stream_handle_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_end_set")] + public static extern void switch_stream_handle_end_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_end_get")] + public static extern IntPtr switch_stream_handle_end_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_size_set")] + public static extern void switch_stream_handle_data_size_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_size_get")] + public static extern IntPtr switch_stream_handle_data_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_len_set")] + public static extern void switch_stream_handle_data_len_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_data_len_get")] + public static extern IntPtr switch_stream_handle_data_len_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_len_set")] + public static extern void switch_stream_handle_alloc_len_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_len_get")] + public static extern IntPtr switch_stream_handle_alloc_len_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_chunk_set")] + public static extern void switch_stream_handle_alloc_chunk_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_alloc_chunk_get")] + public static extern IntPtr switch_stream_handle_alloc_chunk_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_param_event_set")] + public static extern void switch_stream_handle_param_event_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_handle_param_event_get")] + public static extern IntPtr switch_stream_handle_param_event_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_stream_handle")] + public static extern IntPtr new_switch_stream_handle(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_stream_handle")] + public static extern void delete_switch_stream_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_outgoing_channel_set")] + public static extern void switch_io_routines_outgoing_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_outgoing_channel_get")] + public static extern IntPtr switch_io_routines_outgoing_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_frame_set")] + public static extern void switch_io_routines_read_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_frame_get")] + public static extern IntPtr switch_io_routines_read_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_frame_set")] + public static extern void switch_io_routines_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_frame_get")] + public static extern IntPtr switch_io_routines_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_kill_channel_set")] + public static extern void switch_io_routines_kill_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_kill_channel_get")] + public static extern IntPtr switch_io_routines_kill_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_send_dtmf_set")] + public static extern void switch_io_routines_send_dtmf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_send_dtmf_get")] + public static extern IntPtr switch_io_routines_send_dtmf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_message_set")] + public static extern void switch_io_routines_receive_message_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_message_get")] + public static extern IntPtr switch_io_routines_receive_message_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_event_set")] + public static extern void switch_io_routines_receive_event_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_receive_event_get")] + public static extern IntPtr switch_io_routines_receive_event_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_change_set")] + public static extern void switch_io_routines_state_change_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_change_get")] + public static extern IntPtr switch_io_routines_state_change_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_video_frame_set")] + public static extern void switch_io_routines_read_video_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_read_video_frame_get")] + public static extern IntPtr switch_io_routines_read_video_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_video_frame_set")] + public static extern void switch_io_routines_write_video_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_write_video_frame_get")] + public static extern IntPtr switch_io_routines_write_video_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_run_set")] + public static extern void switch_io_routines_state_run_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_state_run_get")] + public static extern IntPtr switch_io_routines_state_run_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_get_jb_set")] + public static extern void switch_io_routines_get_jb_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_get_jb_get")] + public static extern IntPtr switch_io_routines_get_jb_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_padding_set")] + public static extern void switch_io_routines_padding_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_routines_padding_get")] + public static extern IntPtr switch_io_routines_padding_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_routines")] + public static extern IntPtr new_switch_io_routines(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_routines")] + public static extern void delete_switch_io_routines(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_interface_name_set")] + public static extern void switch_endpoint_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_interface_name_get")] + public static extern string switch_endpoint_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_io_routines_set")] + public static extern void switch_endpoint_interface_io_routines_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_io_routines_get")] + public static extern IntPtr switch_endpoint_interface_io_routines_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_state_handler_set")] + public static extern void switch_endpoint_interface_state_handler_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_state_handler_get")] + public static extern IntPtr switch_endpoint_interface_state_handler_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_private_info_set")] + public static extern void switch_endpoint_interface_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_private_info_get")] + public static extern IntPtr switch_endpoint_interface_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_rwlock_set")] + public static extern void switch_endpoint_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_rwlock_get")] + public static extern IntPtr switch_endpoint_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_refs_set")] + public static extern void switch_endpoint_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_refs_get")] + public static extern int switch_endpoint_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_reflock_set")] + public static extern void switch_endpoint_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_reflock_get")] + public static extern IntPtr switch_endpoint_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_parent_set")] + public static extern void switch_endpoint_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_parent_get")] + public static extern IntPtr switch_endpoint_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_next_set")] + public static extern void switch_endpoint_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_next_get")] + public static extern IntPtr switch_endpoint_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_recover_callback_set")] + public static extern void switch_endpoint_interface_recover_callback_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_endpoint_interface_recover_callback_get")] + public static extern IntPtr switch_endpoint_interface_recover_callback_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_endpoint_interface")] + public static extern IntPtr new_switch_endpoint_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_endpoint_interface")] + public static extern void delete_switch_endpoint_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interval_set")] + public static extern void switch_timer_interval_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interval_get")] + public static extern int switch_timer_interval_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_flags_set")] + public static extern void switch_timer_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_flags_get")] + public static extern uint switch_timer_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samples_set")] + public static extern void switch_timer_samples_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samples_get")] + public static extern uint switch_timer_samples_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samplecount_set")] + public static extern void switch_timer_samplecount_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samplecount_get")] + public static extern uint switch_timer_samplecount_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_timer_interface_set")] + public static extern void switch_timer_timer_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_timer_interface_get")] + public static extern IntPtr switch_timer_timer_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_memory_pool_set")] + public static extern void switch_timer_memory_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_memory_pool_get")] + public static extern IntPtr switch_timer_memory_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_private_info_set")] + public static extern void switch_timer_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_private_info_get")] + public static extern IntPtr switch_timer_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_diff_set")] + public static extern void switch_timer_diff_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_diff_get")] + public static extern IntPtr switch_timer_diff_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_start_set")] + public static extern void switch_timer_start_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_start_get")] + public static extern IntPtr switch_timer_start_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_tick_set")] + public static extern void switch_timer_tick_set(HandleRef jarg1, ulong jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_tick_get")] + public static extern ulong switch_timer_tick_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_timer")] + public static extern IntPtr new_switch_timer(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_timer")] + public static extern void delete_switch_timer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_interface_name_set")] + public static extern void switch_timer_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_interface_name_get")] + public static extern string switch_timer_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_init_set")] + public static extern void switch_timer_interface_timer_init_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_init_get")] + public static extern IntPtr switch_timer_interface_timer_init_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_next_set")] + public static extern void switch_timer_interface_timer_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_next_get")] + public static extern IntPtr switch_timer_interface_timer_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_step_set")] + public static extern void switch_timer_interface_timer_step_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_step_get")] + public static extern IntPtr switch_timer_interface_timer_step_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_sync_set")] + public static extern void switch_timer_interface_timer_sync_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_sync_get")] + public static extern IntPtr switch_timer_interface_timer_sync_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_check_set")] + public static extern void switch_timer_interface_timer_check_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_check_get")] + public static extern IntPtr switch_timer_interface_timer_check_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_destroy_set")] + public static extern void switch_timer_interface_timer_destroy_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_timer_destroy_get")] + public static extern IntPtr switch_timer_interface_timer_destroy_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_rwlock_set")] + public static extern void switch_timer_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_rwlock_get")] + public static extern IntPtr switch_timer_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_refs_set")] + public static extern void switch_timer_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_refs_get")] + public static extern int switch_timer_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_reflock_set")] + public static extern void switch_timer_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_reflock_get")] + public static extern IntPtr switch_timer_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_parent_set")] + public static extern void switch_timer_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_parent_get")] + public static extern IntPtr switch_timer_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_next_set")] + public static extern void switch_timer_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_interface_next_get")] + public static extern IntPtr switch_timer_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_timer_interface")] + public static extern IntPtr new_switch_timer_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_timer_interface")] + public static extern void delete_switch_timer_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_interface_name_set")] + public static extern void switch_dialplan_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_interface_name_get")] + public static extern string switch_dialplan_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_hunt_function_set")] + public static extern void switch_dialplan_interface_hunt_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_hunt_function_get")] + public static extern IntPtr switch_dialplan_interface_hunt_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_rwlock_set")] + public static extern void switch_dialplan_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_rwlock_get")] + public static extern IntPtr switch_dialplan_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_refs_set")] + public static extern void switch_dialplan_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_refs_get")] + public static extern int switch_dialplan_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_reflock_set")] + public static extern void switch_dialplan_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_reflock_get")] + public static extern IntPtr switch_dialplan_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_parent_set")] + public static extern void switch_dialplan_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_parent_get")] + public static extern IntPtr switch_dialplan_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_next_set")] + public static extern void switch_dialplan_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_dialplan_interface_next_get")] + public static extern IntPtr switch_dialplan_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_dialplan_interface")] + public static extern IntPtr new_switch_dialplan_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_dialplan_interface")] + public static extern void delete_switch_dialplan_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_interface_name_set")] + public static extern void switch_file_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_interface_name_get")] + public static extern string switch_file_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_open_set")] + public static extern void switch_file_interface_file_open_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_open_get")] + public static extern IntPtr switch_file_interface_file_open_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_close_set")] + public static extern void switch_file_interface_file_close_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_close_get")] + public static extern IntPtr switch_file_interface_file_close_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_truncate_set")] + public static extern void switch_file_interface_file_truncate_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_truncate_get")] + public static extern IntPtr switch_file_interface_file_truncate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_set")] + public static extern void switch_file_interface_file_read_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_get")] + public static extern IntPtr switch_file_interface_file_read_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_set")] + public static extern void switch_file_interface_file_write_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_get")] + public static extern IntPtr switch_file_interface_file_write_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_video_set")] + public static extern void switch_file_interface_file_read_video_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_read_video_get")] + public static extern IntPtr switch_file_interface_file_read_video_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_video_set")] + public static extern void switch_file_interface_file_write_video_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_write_video_get")] + public static extern IntPtr switch_file_interface_file_write_video_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_seek_set")] + public static extern void switch_file_interface_file_seek_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_seek_get")] + public static extern IntPtr switch_file_interface_file_seek_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_set_string_set")] + public static extern void switch_file_interface_file_set_string_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_set_string_get")] + public static extern IntPtr switch_file_interface_file_set_string_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_get_string_set")] + public static extern void switch_file_interface_file_get_string_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_get_string_get")] + public static extern IntPtr switch_file_interface_file_get_string_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_extens_set")] + public static extern void switch_file_interface_extens_set(HandleRef jarg1, ref string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_extens_get")] + public static extern string switch_file_interface_extens_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_rwlock_set")] + public static extern void switch_file_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_rwlock_get")] + public static extern IntPtr switch_file_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_refs_set")] + public static extern void switch_file_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_refs_get")] + public static extern int switch_file_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_reflock_set")] + public static extern void switch_file_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_reflock_get")] + public static extern IntPtr switch_file_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_parent_set")] + public static extern void switch_file_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_parent_get")] + public static extern IntPtr switch_file_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_next_set")] + public static extern void switch_file_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_next_get")] + public static extern IntPtr switch_file_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_file_interface")] + public static extern IntPtr new_switch_file_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_file_interface")] + public static extern void delete_switch_file_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_interface_set")] + public static extern void switch_file_handle_file_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_interface_get")] + public static extern IntPtr switch_file_handle_file_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_flags_set")] + public static extern void switch_file_handle_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_flags_get")] + public static extern uint switch_file_handle_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_fd_set")] + public static extern void switch_file_handle_fd_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_fd_get")] + public static extern IntPtr switch_file_handle_fd_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_set")] + public static extern void switch_file_handle_samples_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_get")] + public static extern uint switch_file_handle_samples_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samplerate_set")] + public static extern void switch_file_handle_samplerate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samplerate_get")] + public static extern uint switch_file_handle_samplerate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_native_rate_set")] + public static extern void switch_file_handle_native_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_native_rate_get")] + public static extern uint switch_file_handle_native_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_channels_set")] + public static extern void switch_file_handle_channels_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_channels_get")] + public static extern uint switch_file_handle_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_real_channels_set")] + public static extern void switch_file_handle_real_channels_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_real_channels_get")] + public static extern uint switch_file_handle_real_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_format_set")] + public static extern void switch_file_handle_format_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_format_get")] + public static extern uint switch_file_handle_format_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sections_set")] + public static extern void switch_file_handle_sections_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sections_get")] + public static extern uint switch_file_handle_sections_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_seekable_set")] + public static extern void switch_file_handle_seekable_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_seekable_get")] + public static extern int switch_file_handle_seekable_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sample_count_set")] + public static extern void switch_file_handle_sample_count_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sample_count_get")] + public static extern IntPtr switch_file_handle_sample_count_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_speed_set")] + public static extern void switch_file_handle_speed_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_speed_get")] + public static extern int switch_file_handle_speed_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_memory_pool_set")] + public static extern void switch_file_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_memory_pool_get")] + public static extern IntPtr switch_file_handle_memory_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prebuf_set")] + public static extern void switch_file_handle_prebuf_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prebuf_get")] + public static extern uint switch_file_handle_prebuf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_interval_set")] + public static extern void switch_file_handle_interval_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_interval_get")] + public static extern uint switch_file_handle_interval_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_private_info_set")] + public static extern void switch_file_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_private_info_get")] + public static extern IntPtr switch_file_handle_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_handler_set")] + public static extern void switch_file_handle_handler_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_handler_get")] + public static extern string switch_file_handle_handler_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pos_set")] + public static extern void switch_file_handle_pos_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pos_get")] + public static extern long switch_file_handle_pos_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_audio_buffer_set")] + public static extern void switch_file_handle_audio_buffer_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_audio_buffer_get")] + public static extern IntPtr switch_file_handle_audio_buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sp_audio_buffer_set")] + public static extern void switch_file_handle_sp_audio_buffer_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_sp_audio_buffer_get")] + public static extern IntPtr switch_file_handle_sp_audio_buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_thresh_set")] + public static extern void switch_file_handle_thresh_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_thresh_get")] + public static extern uint switch_file_handle_thresh_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_silence_hits_set")] + public static extern void switch_file_handle_silence_hits_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_silence_hits_get")] + public static extern uint switch_file_handle_silence_hits_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_offset_pos_set")] + public static extern void switch_file_handle_offset_pos_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_offset_pos_get")] + public static extern uint switch_file_handle_offset_pos_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_in_set")] + public static extern void switch_file_handle_samples_in_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_in_get")] + public static extern IntPtr switch_file_handle_samples_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_out_set")] + public static extern void switch_file_handle_samples_out_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_samples_out_get")] + public static extern IntPtr switch_file_handle_samples_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_vol_set")] + public static extern void switch_file_handle_vol_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_vol_get")] + public static extern int switch_file_handle_vol_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_resampler_set")] + public static extern void switch_file_handle_resampler_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_resampler_get")] + public static extern IntPtr switch_file_handle_resampler_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_buffer_set")] + public static extern void switch_file_handle_buffer_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_buffer_get")] + public static extern IntPtr switch_file_handle_buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuf_set")] + public static extern void switch_file_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuf_get")] + public static extern IntPtr switch_file_handle_dbuf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuflen_set")] + public static extern void switch_file_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_dbuflen_get")] + public static extern IntPtr switch_file_handle_dbuflen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_set")] + public static extern void switch_file_handle_pre_buffer_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_get")] + public static extern IntPtr switch_file_handle_pre_buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_data_set")] + public static extern void switch_file_handle_pre_buffer_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_data_get")] + public static extern IntPtr switch_file_handle_pre_buffer_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_datalen_set")] + public static extern void switch_file_handle_pre_buffer_datalen_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_pre_buffer_datalen_get")] + public static extern IntPtr switch_file_handle_pre_buffer_datalen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_set")] + public static extern void switch_file_handle_file_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_get")] + public static extern string switch_file_handle_file_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_func_set")] + public static extern void switch_file_handle_func_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_func_get")] + public static extern string switch_file_handle_func_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_line_set")] + public static extern void switch_file_handle_line_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_line_get")] + public static extern int switch_file_handle_line_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_path_set")] + public static extern void switch_file_handle_file_path_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_path_get")] + public static extern string switch_file_handle_file_path_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_spool_path_set")] + public static extern void switch_file_handle_spool_path_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_spool_path_get")] + public static extern string switch_file_handle_spool_path_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prefix_set")] + public static extern void switch_file_handle_prefix_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_prefix_get")] + public static extern string switch_file_handle_prefix_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_max_samples_set")] + public static extern void switch_file_handle_max_samples_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_max_samples_get")] + public static extern int switch_file_handle_max_samples_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle__params_set")] + public static extern void switch_file_handle__params_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle__params_get")] + public static extern IntPtr switch_file_handle__params_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_channels_set")] + public static extern void switch_file_handle_cur_channels_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_channels_get")] + public static extern uint switch_file_handle_cur_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_samplerate_set")] + public static extern void switch_file_handle_cur_samplerate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_samplerate_get")] + public static extern uint switch_file_handle_cur_samplerate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_file_handle")] + public static extern IntPtr new_switch_file_handle(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_file_handle")] + public static extern void delete_switch_file_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_interface_name_set")] + public static extern void switch_asr_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_interface_name_get")] + public static extern string switch_asr_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_open_set")] + public static extern void switch_asr_interface_asr_open_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_open_get")] + public static extern IntPtr switch_asr_interface_asr_open_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_load_grammar_set")] + public static extern void switch_asr_interface_asr_load_grammar_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_load_grammar_get")] + public static extern IntPtr switch_asr_interface_asr_load_grammar_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_unload_grammar_set")] + public static extern void switch_asr_interface_asr_unload_grammar_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_unload_grammar_get")] + public static extern IntPtr switch_asr_interface_asr_unload_grammar_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_close_set")] + public static extern void switch_asr_interface_asr_close_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_close_get")] + public static extern IntPtr switch_asr_interface_asr_close_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_set")] + public static extern void switch_asr_interface_asr_feed_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_get")] + public static extern IntPtr switch_asr_interface_asr_feed_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_resume_set")] + public static extern void switch_asr_interface_asr_resume_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_resume_get")] + public static extern IntPtr switch_asr_interface_asr_resume_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_pause_set")] + public static extern void switch_asr_interface_asr_pause_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_pause_get")] + public static extern IntPtr switch_asr_interface_asr_pause_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_check_results_set")] + public static extern void switch_asr_interface_asr_check_results_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_check_results_get")] + public static extern IntPtr switch_asr_interface_asr_check_results_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_results_set")] + public static extern void switch_asr_interface_asr_get_results_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_results_get")] + public static extern IntPtr switch_asr_interface_asr_get_results_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_result_headers_set")] + public static extern void switch_asr_interface_asr_get_result_headers_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_get_result_headers_get")] + public static extern IntPtr switch_asr_interface_asr_get_result_headers_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_start_input_timers_set")] + public static extern void switch_asr_interface_asr_start_input_timers_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_start_input_timers_get")] + public static extern IntPtr switch_asr_interface_asr_start_input_timers_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_text_param_set")] + public static extern void switch_asr_interface_asr_text_param_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_text_param_get")] + public static extern IntPtr switch_asr_interface_asr_text_param_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_numeric_param_set")] + public static extern void switch_asr_interface_asr_numeric_param_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_numeric_param_get")] + public static extern IntPtr switch_asr_interface_asr_numeric_param_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_float_param_set")] + public static extern void switch_asr_interface_asr_float_param_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_float_param_get")] + public static extern IntPtr switch_asr_interface_asr_float_param_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_rwlock_set")] + public static extern void switch_asr_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_rwlock_get")] + public static extern IntPtr switch_asr_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_refs_set")] + public static extern void switch_asr_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_refs_get")] + public static extern int switch_asr_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_reflock_set")] + public static extern void switch_asr_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_reflock_get")] + public static extern IntPtr switch_asr_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_parent_set")] + public static extern void switch_asr_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_parent_get")] + public static extern IntPtr switch_asr_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_next_set")] + public static extern void switch_asr_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_next_get")] + public static extern IntPtr switch_asr_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_enable_grammar_set")] + public static extern void switch_asr_interface_asr_enable_grammar_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_enable_grammar_get")] + public static extern IntPtr switch_asr_interface_asr_enable_grammar_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_grammar_set")] + public static extern void switch_asr_interface_asr_disable_grammar_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_grammar_get")] + public static extern IntPtr switch_asr_interface_asr_disable_grammar_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_all_grammars_set")] + public static extern void switch_asr_interface_asr_disable_all_grammars_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_disable_all_grammars_get")] + public static extern IntPtr switch_asr_interface_asr_disable_all_grammars_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_dtmf_set")] + public static extern void switch_asr_interface_asr_feed_dtmf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_interface_asr_feed_dtmf_get")] + public static extern IntPtr switch_asr_interface_asr_feed_dtmf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_asr_interface")] + public static extern IntPtr new_switch_asr_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_asr_interface")] + public static extern void delete_switch_asr_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_asr_interface_set")] + public static extern void switch_asr_handle_asr_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_asr_interface_get")] + public static extern IntPtr switch_asr_handle_asr_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_flags_set")] + public static extern void switch_asr_handle_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_flags_get")] + public static extern uint switch_asr_handle_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_name_set")] + public static extern void switch_asr_handle_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_name_get")] + public static extern string switch_asr_handle_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_codec_set")] + public static extern void switch_asr_handle_codec_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_codec_get")] + public static extern string switch_asr_handle_codec_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_rate_set")] + public static extern void switch_asr_handle_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_rate_get")] + public static extern uint switch_asr_handle_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_grammar_set")] + public static extern void switch_asr_handle_grammar_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_grammar_get")] + public static extern string switch_asr_handle_grammar_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_param_set")] + public static extern void switch_asr_handle_param_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_param_get")] + public static extern string switch_asr_handle_param_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_memory_pool_set")] + public static extern void switch_asr_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_memory_pool_get")] + public static extern IntPtr switch_asr_handle_memory_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_buffer_set")] + public static extern void switch_asr_handle_buffer_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_buffer_get")] + public static extern IntPtr switch_asr_handle_buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuf_set")] + public static extern void switch_asr_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuf_get")] + public static extern IntPtr switch_asr_handle_dbuf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuflen_set")] + public static extern void switch_asr_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_dbuflen_get")] + public static extern IntPtr switch_asr_handle_dbuflen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_resampler_set")] + public static extern void switch_asr_handle_resampler_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_resampler_get")] + public static extern IntPtr switch_asr_handle_resampler_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_samplerate_set")] + public static extern void switch_asr_handle_samplerate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_samplerate_get")] + public static extern uint switch_asr_handle_samplerate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_native_rate_set")] + public static extern void switch_asr_handle_native_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_native_rate_get")] + public static extern uint switch_asr_handle_native_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_private_info_set")] + public static extern void switch_asr_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_asr_handle_private_info_get")] + public static extern IntPtr switch_asr_handle_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_asr_handle")] + public static extern IntPtr new_switch_asr_handle(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_asr_handle")] + public static extern void delete_switch_asr_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_interface_name_set")] + public static extern void switch_speech_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_interface_name_get")] + public static extern string switch_speech_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_open_set")] + public static extern void switch_speech_interface_speech_open_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_open_get")] + public static extern IntPtr switch_speech_interface_speech_open_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_close_set")] + public static extern void switch_speech_interface_speech_close_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_close_get")] + public static extern IntPtr switch_speech_interface_speech_close_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_feed_tts_set")] + public static extern void switch_speech_interface_speech_feed_tts_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_feed_tts_get")] + public static extern IntPtr switch_speech_interface_speech_feed_tts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_read_tts_set")] + public static extern void switch_speech_interface_speech_read_tts_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_read_tts_get")] + public static extern IntPtr switch_speech_interface_speech_read_tts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_flush_tts_set")] + public static extern void switch_speech_interface_speech_flush_tts_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_flush_tts_get")] + public static extern IntPtr switch_speech_interface_speech_flush_tts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_text_param_tts_set")] + public static extern void switch_speech_interface_speech_text_param_tts_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_text_param_tts_get")] + public static extern IntPtr switch_speech_interface_speech_text_param_tts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_numeric_param_tts_set")] + public static extern void switch_speech_interface_speech_numeric_param_tts_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_numeric_param_tts_get")] + public static extern IntPtr switch_speech_interface_speech_numeric_param_tts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_float_param_tts_set")] + public static extern void switch_speech_interface_speech_float_param_tts_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_speech_float_param_tts_get")] + public static extern IntPtr switch_speech_interface_speech_float_param_tts_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_rwlock_set")] + public static extern void switch_speech_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_rwlock_get")] + public static extern IntPtr switch_speech_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_refs_set")] + public static extern void switch_speech_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_refs_get")] + public static extern int switch_speech_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_reflock_set")] + public static extern void switch_speech_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_reflock_get")] + public static extern IntPtr switch_speech_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_parent_set")] + public static extern void switch_speech_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_parent_get")] + public static extern IntPtr switch_speech_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_next_set")] + public static extern void switch_speech_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_interface_next_get")] + public static extern IntPtr switch_speech_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_speech_interface")] + public static extern IntPtr new_switch_speech_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_speech_interface")] + public static extern void delete_switch_speech_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speech_interface_set")] + public static extern void switch_speech_handle_speech_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speech_interface_get")] + public static extern IntPtr switch_speech_handle_speech_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_flags_set")] + public static extern void switch_speech_handle_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_flags_get")] + public static extern uint switch_speech_handle_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_name_set")] + public static extern void switch_speech_handle_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_name_get")] + public static extern string switch_speech_handle_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_rate_set")] + public static extern void switch_speech_handle_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_rate_get")] + public static extern uint switch_speech_handle_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speed_set")] + public static extern void switch_speech_handle_speed_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_speed_get")] + public static extern uint switch_speech_handle_speed_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samples_set")] + public static extern void switch_speech_handle_samples_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samples_get")] + public static extern uint switch_speech_handle_samples_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_channels_set")] + public static extern void switch_speech_handle_channels_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_channels_get")] + public static extern uint switch_speech_handle_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_real_channels_set")] + public static extern void switch_speech_handle_real_channels_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_real_channels_get")] + public static extern uint switch_speech_handle_real_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_voice_set")] + public static extern void switch_speech_handle_voice_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_voice_get")] + public static extern string switch_speech_handle_voice_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_engine_set")] + public static extern void switch_speech_handle_engine_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_engine_get")] + public static extern string switch_speech_handle_engine_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_param_set")] + public static extern void switch_speech_handle_param_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_param_get")] + public static extern string switch_speech_handle_param_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_memory_pool_set")] + public static extern void switch_speech_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_memory_pool_get")] + public static extern IntPtr switch_speech_handle_memory_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_resampler_set")] + public static extern void switch_speech_handle_resampler_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_resampler_get")] + public static extern IntPtr switch_speech_handle_resampler_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_buffer_set")] + public static extern void switch_speech_handle_buffer_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_buffer_get")] + public static extern IntPtr switch_speech_handle_buffer_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuf_set")] + public static extern void switch_speech_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuf_get")] + public static extern IntPtr switch_speech_handle_dbuf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuflen_set")] + public static extern void switch_speech_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuflen_get")] + public static extern IntPtr switch_speech_handle_dbuflen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samplerate_set")] + public static extern void switch_speech_handle_samplerate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samplerate_get")] + public static extern uint switch_speech_handle_samplerate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_native_rate_set")] + public static extern void switch_speech_handle_native_rate_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_native_rate_get")] + public static extern uint switch_speech_handle_native_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_private_info_set")] + public static extern void switch_speech_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_private_info_get")] + public static extern IntPtr switch_speech_handle_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_speech_handle")] + public static extern IntPtr new_switch_speech_handle(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_speech_handle")] + public static extern void delete_switch_speech_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_interface_name_set")] + public static extern void switch_say_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_interface_name_get")] + public static extern string switch_say_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_function_set")] + public static extern void switch_say_interface_say_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_function_get")] + public static extern IntPtr switch_say_interface_say_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_string_function_set")] + public static extern void switch_say_interface_say_string_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_say_string_function_get")] + public static extern IntPtr switch_say_interface_say_string_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_rwlock_set")] + public static extern void switch_say_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_rwlock_get")] + public static extern IntPtr switch_say_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_refs_set")] + public static extern void switch_say_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_refs_get")] + public static extern int switch_say_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_reflock_set")] + public static extern void switch_say_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_reflock_get")] + public static extern IntPtr switch_say_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_parent_set")] + public static extern void switch_say_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_parent_get")] + public static extern IntPtr switch_say_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_next_set")] + public static extern void switch_say_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_say_interface_next_get")] + public static extern IntPtr switch_say_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_say_interface")] + public static extern IntPtr new_switch_say_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_say_interface")] + public static extern void delete_switch_say_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_interface_name_set")] + public static extern void switch_chat_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_interface_name_get")] + public static extern string switch_chat_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_chat_send_set")] + public static extern void switch_chat_interface_chat_send_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_chat_send_get")] + public static extern IntPtr switch_chat_interface_chat_send_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_rwlock_set")] + public static extern void switch_chat_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_rwlock_get")] + public static extern IntPtr switch_chat_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_refs_set")] + public static extern void switch_chat_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_refs_get")] + public static extern int switch_chat_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_reflock_set")] + public static extern void switch_chat_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_reflock_get")] + public static extern IntPtr switch_chat_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_parent_set")] + public static extern void switch_chat_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_parent_get")] + public static extern IntPtr switch_chat_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_next_set")] + public static extern void switch_chat_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_interface_next_get")] + public static extern IntPtr switch_chat_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_chat_interface")] + public static extern IntPtr new_switch_chat_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_chat_interface")] + public static extern void delete_switch_chat_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_relative_oid_set")] + public static extern void switch_management_interface_relative_oid_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_relative_oid_get")] + public static extern string switch_management_interface_relative_oid_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_management_function_set")] + public static extern void switch_management_interface_management_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_management_function_get")] + public static extern IntPtr switch_management_interface_management_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_rwlock_set")] + public static extern void switch_management_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_rwlock_get")] + public static extern IntPtr switch_management_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_refs_set")] + public static extern void switch_management_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_refs_get")] + public static extern int switch_management_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_reflock_set")] + public static extern void switch_management_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_reflock_get")] + public static extern IntPtr switch_management_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_parent_set")] + public static extern void switch_management_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_parent_get")] + public static extern IntPtr switch_management_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_next_set")] + public static extern void switch_management_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_management_interface_next_get")] + public static extern IntPtr switch_management_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_management_interface")] + public static extern IntPtr new_switch_management_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_management_interface")] + public static extern void delete_switch_management_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interface_name_set")] + public static extern void switch_limit_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interface_name_get")] + public static extern string switch_limit_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_incr_set")] + public static extern void switch_limit_interface_incr_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_incr_get")] + public static extern IntPtr switch_limit_interface_incr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_release_set")] + public static extern void switch_limit_interface_release_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_release_get")] + public static extern IntPtr switch_limit_interface_release_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_usage_set")] + public static extern void switch_limit_interface_usage_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_usage_get")] + public static extern IntPtr switch_limit_interface_usage_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reset_set")] + public static extern void switch_limit_interface_reset_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reset_get")] + public static extern IntPtr switch_limit_interface_reset_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_status_set")] + public static extern void switch_limit_interface_status_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_status_get")] + public static extern IntPtr switch_limit_interface_status_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interval_reset_set")] + public static extern void switch_limit_interface_interval_reset_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interval_reset_get")] + public static extern IntPtr switch_limit_interface_interval_reset_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_rwlock_set")] + public static extern void switch_limit_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_rwlock_get")] + public static extern IntPtr switch_limit_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_refs_set")] + public static extern void switch_limit_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_refs_get")] + public static extern int switch_limit_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reflock_set")] + public static extern void switch_limit_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reflock_get")] + public static extern IntPtr switch_limit_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_parent_set")] + public static extern void switch_limit_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_parent_get")] + public static extern IntPtr switch_limit_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_next_set")] + public static extern void switch_limit_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_next_get")] + public static extern IntPtr switch_limit_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_limit_interface")] + public static extern IntPtr new_switch_limit_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_limit_interface")] + public static extern void delete_switch_limit_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_interface_name_set")] + public static extern void switch_directory_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_interface_name_get")] + public static extern string switch_directory_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_open_set")] + public static extern void switch_directory_interface_directory_open_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_open_get")] + public static extern IntPtr switch_directory_interface_directory_open_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_close_set")] + public static extern void switch_directory_interface_directory_close_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_close_get")] + public static extern IntPtr switch_directory_interface_directory_close_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_query_set")] + public static extern void switch_directory_interface_directory_query_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_query_get")] + public static extern IntPtr switch_directory_interface_directory_query_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_set")] + public static extern void switch_directory_interface_directory_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_get")] + public static extern IntPtr switch_directory_interface_directory_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_pair_set")] + public static extern void switch_directory_interface_directory_next_pair_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_directory_next_pair_get")] + public static extern IntPtr switch_directory_interface_directory_next_pair_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_rwlock_set")] + public static extern void switch_directory_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_rwlock_get")] + public static extern IntPtr switch_directory_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_refs_set")] + public static extern void switch_directory_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_refs_get")] + public static extern int switch_directory_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_reflock_set")] + public static extern void switch_directory_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_reflock_get")] + public static extern IntPtr switch_directory_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_parent_set")] + public static extern void switch_directory_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_parent_get")] + public static extern IntPtr switch_directory_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_next_set")] + public static extern void switch_directory_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_next_get")] + public static extern IntPtr switch_directory_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directory_interface")] + public static extern IntPtr new_switch_directory_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directory_interface")] + public static extern void delete_switch_directory_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_directory_interface_set")] + public static extern void switch_directory_handle_directory_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_directory_interface_get")] + public static extern IntPtr switch_directory_handle_directory_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_flags_set")] + public static extern void switch_directory_handle_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_flags_get")] + public static extern uint switch_directory_handle_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_memory_pool_set")] + public static extern void switch_directory_handle_memory_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_memory_pool_get")] + public static extern IntPtr switch_directory_handle_memory_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_private_info_set")] + public static extern void switch_directory_handle_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_handle_private_info_get")] + public static extern IntPtr switch_directory_handle_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directory_handle")] + public static extern IntPtr new_switch_directory_handle(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directory_handle")] + public static extern void delete_switch_directory_handle(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_unused_set")] + public static extern void switch_codec_settings_unused_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_unused_get")] + public static extern int switch_codec_settings_unused_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_settings")] + public static extern IntPtr new_switch_codec_settings(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_settings")] + public static extern void delete_switch_codec_settings(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_actual_samples_per_second_set")] + public static extern void switch_codec_fmtp_actual_samples_per_second_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_actual_samples_per_second_get")] + public static extern uint switch_codec_fmtp_actual_samples_per_second_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_bits_per_second_set")] + public static extern void switch_codec_fmtp_bits_per_second_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_bits_per_second_get")] + public static extern int switch_codec_fmtp_bits_per_second_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_microseconds_per_packet_set")] + public static extern void switch_codec_fmtp_microseconds_per_packet_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_microseconds_per_packet_get")] + public static extern int switch_codec_fmtp_microseconds_per_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_stereo_set")] + public static extern void switch_codec_fmtp_stereo_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_stereo_get")] + public static extern int switch_codec_fmtp_stereo_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_private_info_set")] + public static extern void switch_codec_fmtp_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_private_info_get")] + public static extern IntPtr switch_codec_fmtp_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_fmtp")] + public static extern IntPtr new_switch_codec_fmtp(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_fmtp")] + public static extern void delete_switch_codec_fmtp(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_codec_interface_set")] + public static extern void switch_codec_codec_interface_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_codec_interface_get")] + public static extern IntPtr switch_codec_codec_interface_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_set")] + public static extern void switch_codec_implementation_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_get")] + public static extern IntPtr switch_codec_implementation_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_in_set")] + public static extern void switch_codec_fmtp_in_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_in_get")] + public static extern string switch_codec_fmtp_in_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_out_set")] + public static extern void switch_codec_fmtp_out_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_fmtp_out_get")] + public static extern string switch_codec_fmtp_out_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_flags_set")] + public static extern void switch_codec_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_flags_get")] + public static extern uint switch_codec_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_memory_pool_set")] + public static extern void switch_codec_memory_pool_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_memory_pool_get")] + public static extern IntPtr switch_codec_memory_pool_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_private_info_set")] + public static extern void switch_codec_private_info_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_private_info_get")] + public static extern IntPtr switch_codec_private_info_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_agreed_pt_set")] + public static extern void switch_codec_agreed_pt_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_agreed_pt_get")] + public static extern byte switch_codec_agreed_pt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_mutex_set")] + public static extern void switch_codec_mutex_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_mutex_get")] + public static extern IntPtr switch_codec_mutex_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_next_set")] + public static extern void switch_codec_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_next_get")] + public static extern IntPtr switch_codec_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_session_set")] + public static extern void switch_codec_session_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_session_get")] + public static extern IntPtr switch_codec_session_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_cur_frame_set")] + public static extern void switch_codec_cur_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_cur_frame_get")] + public static extern IntPtr switch_codec_cur_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec")] + public static extern IntPtr new_switch_codec(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec")] + public static extern void delete_switch_codec(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_type_set")] + public static extern void switch_codec_implementation_codec_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_type_get")] + public static extern int switch_codec_implementation_codec_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_ianacode_set")] + public static extern void switch_codec_implementation_ianacode_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_ianacode_get")] + public static extern byte switch_codec_implementation_ianacode_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_iananame_set")] + public static extern void switch_codec_implementation_iananame_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_iananame_get")] + public static extern string switch_codec_implementation_iananame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_fmtp_set")] + public static extern void switch_codec_implementation_fmtp_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_fmtp_get")] + public static extern string switch_codec_implementation_fmtp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_second_set")] + public static extern void switch_codec_implementation_samples_per_second_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_second_get")] + public static extern uint switch_codec_implementation_samples_per_second_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_actual_samples_per_second_set")] + public static extern void switch_codec_implementation_actual_samples_per_second_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_actual_samples_per_second_get")] + public static extern uint switch_codec_implementation_actual_samples_per_second_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_bits_per_second_set")] + public static extern void switch_codec_implementation_bits_per_second_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_bits_per_second_get")] + public static extern int switch_codec_implementation_bits_per_second_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_microseconds_per_packet_set")] + public static extern void switch_codec_implementation_microseconds_per_packet_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_microseconds_per_packet_get")] + public static extern int switch_codec_implementation_microseconds_per_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_packet_set")] + public static extern void switch_codec_implementation_samples_per_packet_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_samples_per_packet_get")] + public static extern uint switch_codec_implementation_samples_per_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decoded_bytes_per_packet_set")] + public static extern void switch_codec_implementation_decoded_bytes_per_packet_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decoded_bytes_per_packet_get")] + public static extern uint switch_codec_implementation_decoded_bytes_per_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encoded_bytes_per_packet_set")] + public static extern void switch_codec_implementation_encoded_bytes_per_packet_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encoded_bytes_per_packet_get")] + public static extern uint switch_codec_implementation_encoded_bytes_per_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_number_of_channels_set")] + public static extern void switch_codec_implementation_number_of_channels_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_number_of_channels_get")] + public static extern byte switch_codec_implementation_number_of_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_frames_per_packet_set")] + public static extern void switch_codec_implementation_codec_frames_per_packet_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_frames_per_packet_get")] + public static extern int switch_codec_implementation_codec_frames_per_packet_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_init_set")] + public static extern void switch_codec_implementation_init_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_init_get")] + public static extern IntPtr switch_codec_implementation_init_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encode_set")] + public static extern void switch_codec_implementation_encode_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encode_get")] + public static extern IntPtr switch_codec_implementation_encode_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_set")] + public static extern void switch_codec_implementation_decode_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_get")] + public static extern IntPtr switch_codec_implementation_decode_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_destroy_set")] + public static extern void switch_codec_implementation_destroy_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_destroy_get")] + public static extern IntPtr switch_codec_implementation_destroy_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_id_set")] + public static extern void switch_codec_implementation_codec_id_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_id_get")] + public static extern uint switch_codec_implementation_codec_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_impl_id_set")] + public static extern void switch_codec_implementation_impl_id_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_impl_id_get")] + public static extern uint switch_codec_implementation_impl_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_next_set")] + public static extern void switch_codec_implementation_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_next_get")] + public static extern IntPtr switch_codec_implementation_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_implementation")] + public static extern IntPtr new_switch_codec_implementation(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_implementation")] + public static extern void delete_switch_codec_implementation(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_interface_name_set")] + public static extern void switch_codec_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_interface_name_get")] + public static extern string switch_codec_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_implementations_set")] + public static extern void switch_codec_interface_implementations_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_implementations_get")] + public static extern IntPtr switch_codec_interface_implementations_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parse_fmtp_set")] + public static extern void switch_codec_interface_parse_fmtp_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parse_fmtp_get")] + public static extern IntPtr switch_codec_interface_parse_fmtp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_codec_id_set")] + public static extern void switch_codec_interface_codec_id_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_codec_id_get")] + public static extern uint switch_codec_interface_codec_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_rwlock_set")] + public static extern void switch_codec_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_rwlock_get")] + public static extern IntPtr switch_codec_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_refs_set")] + public static extern void switch_codec_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_refs_get")] + public static extern int switch_codec_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_reflock_set")] + public static extern void switch_codec_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_reflock_get")] + public static extern IntPtr switch_codec_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parent_set")] + public static extern void switch_codec_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parent_get")] + public static extern IntPtr switch_codec_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_next_set")] + public static extern void switch_codec_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_next_get")] + public static extern IntPtr switch_codec_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_interface")] + public static extern IntPtr new_switch_codec_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_interface")] + public static extern void delete_switch_codec_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_interface_name_set")] + public static extern void switch_application_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_interface_name_get")] + public static extern string switch_application_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_application_function_set")] + public static extern void switch_application_interface_application_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_application_function_get")] + public static extern IntPtr switch_application_interface_application_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_long_desc_set")] + public static extern void switch_application_interface_long_desc_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_long_desc_get")] + public static extern string switch_application_interface_long_desc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_short_desc_set")] + public static extern void switch_application_interface_short_desc_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_short_desc_get")] + public static extern string switch_application_interface_short_desc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_syntax_set")] + public static extern void switch_application_interface_syntax_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_syntax_get")] + public static extern string switch_application_interface_syntax_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_flags_set")] + public static extern void switch_application_interface_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_flags_get")] + public static extern uint switch_application_interface_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_rwlock_set")] + public static extern void switch_application_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_rwlock_get")] + public static extern IntPtr switch_application_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_refs_set")] + public static extern void switch_application_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_refs_get")] + public static extern int switch_application_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_reflock_set")] + public static extern void switch_application_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_reflock_get")] + public static extern IntPtr switch_application_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_parent_set")] + public static extern void switch_application_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_parent_get")] + public static extern IntPtr switch_application_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_next_set")] + public static extern void switch_application_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_application_interface_next_get")] + public static extern IntPtr switch_application_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_application_interface")] + public static extern IntPtr new_switch_application_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_application_interface")] + public static extern void delete_switch_application_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_interface_name_set")] + public static extern void switch_chat_application_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_interface_name_get")] + public static extern string switch_chat_application_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_chat_application_function_set")] + public static extern void switch_chat_application_interface_chat_application_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_chat_application_function_get")] + public static extern IntPtr switch_chat_application_interface_chat_application_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_long_desc_set")] + public static extern void switch_chat_application_interface_long_desc_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_long_desc_get")] + public static extern string switch_chat_application_interface_long_desc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_short_desc_set")] + public static extern void switch_chat_application_interface_short_desc_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_short_desc_get")] + public static extern string switch_chat_application_interface_short_desc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_syntax_set")] + public static extern void switch_chat_application_interface_syntax_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_syntax_get")] + public static extern string switch_chat_application_interface_syntax_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_flags_set")] + public static extern void switch_chat_application_interface_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_flags_get")] + public static extern uint switch_chat_application_interface_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_rwlock_set")] + public static extern void switch_chat_application_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_rwlock_get")] + public static extern IntPtr switch_chat_application_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_refs_set")] + public static extern void switch_chat_application_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_refs_get")] + public static extern int switch_chat_application_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_reflock_set")] + public static extern void switch_chat_application_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_reflock_get")] + public static extern IntPtr switch_chat_application_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_parent_set")] + public static extern void switch_chat_application_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_parent_get")] + public static extern IntPtr switch_chat_application_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_next_set")] + public static extern void switch_chat_application_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_chat_application_interface_next_get")] + public static extern IntPtr switch_chat_application_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_chat_application_interface")] + public static extern IntPtr new_switch_chat_application_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_chat_application_interface")] + public static extern void delete_switch_chat_application_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_interface_name_set")] + public static extern void switch_api_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_interface_name_get")] + public static extern string switch_api_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_desc_set")] + public static extern void switch_api_interface_desc_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_desc_get")] + public static extern string switch_api_interface_desc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_function_set")] + public static extern void switch_api_interface_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_function_get")] + public static extern IntPtr switch_api_interface_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_syntax_set")] + public static extern void switch_api_interface_syntax_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_syntax_get")] + public static extern string switch_api_interface_syntax_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_rwlock_set")] + public static extern void switch_api_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_rwlock_get")] + public static extern IntPtr switch_api_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_refs_set")] + public static extern void switch_api_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_refs_get")] + public static extern int switch_api_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_reflock_set")] + public static extern void switch_api_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_reflock_get")] + public static extern IntPtr switch_api_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_parent_set")] + public static extern void switch_api_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_parent_get")] + public static extern IntPtr switch_api_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_next_set")] + public static extern void switch_api_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_api_interface_next_get")] + public static extern IntPtr switch_api_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_api_interface")] + public static extern IntPtr new_switch_api_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_api_interface")] + public static extern void delete_switch_api_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_interface_name_set")] + public static extern void switch_json_api_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_interface_name_get")] + public static extern string switch_json_api_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_desc_set")] + public static extern void switch_json_api_interface_desc_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_desc_get")] + public static extern string switch_json_api_interface_desc_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_function_set")] + public static extern void switch_json_api_interface_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_function_get")] + public static extern IntPtr switch_json_api_interface_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_syntax_set")] + public static extern void switch_json_api_interface_syntax_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_syntax_get")] + public static extern string switch_json_api_interface_syntax_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_rwlock_set")] + public static extern void switch_json_api_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_rwlock_get")] + public static extern IntPtr switch_json_api_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_refs_set")] + public static extern void switch_json_api_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_refs_get")] + public static extern int switch_json_api_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_reflock_set")] + public static extern void switch_json_api_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_reflock_get")] + public static extern IntPtr switch_json_api_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_parent_set")] + public static extern void switch_json_api_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_parent_get")] + public static extern IntPtr switch_json_api_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_next_set")] + public static extern void switch_json_api_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_api_interface_next_get")] + public static extern IntPtr switch_json_api_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_json_api_interface")] + public static extern IntPtr new_switch_json_api_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_json_api_interface")] + public static extern void delete_switch_json_api_interface(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_session_set")] + public static extern void switch_slin_data_session_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_session_get")] + public static extern IntPtr switch_slin_data_session_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_write_frame_set")] + public static extern void switch_slin_data_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_write_frame_get")] + public static extern IntPtr switch_slin_data_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_codec_set")] + public static extern void switch_slin_data_codec_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_codec_get")] + public static extern IntPtr switch_slin_data_codec_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_frame_data_set")] + public static extern void switch_slin_data_frame_data_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_slin_data_frame_data_get")] + public static extern string switch_slin_data_frame_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_slin_data")] + public static extern IntPtr new_switch_slin_data(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_slin_data")] + public static extern void delete_switch_slin_data(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_profile_created_set")] + public static extern void switch_channel_timetable_profile_created_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_profile_created_get")] + public static extern IntPtr switch_channel_timetable_profile_created_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_created_set")] + public static extern void switch_channel_timetable_created_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_created_get")] + public static extern IntPtr switch_channel_timetable_created_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_answered_set")] + public static extern void switch_channel_timetable_answered_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_answered_get")] + public static extern IntPtr switch_channel_timetable_answered_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_set")] + public static extern void switch_channel_timetable_progress_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_get")] + public static extern IntPtr switch_channel_timetable_progress_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_media_set")] + public static extern void switch_channel_timetable_progress_media_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_progress_media_get")] + public static extern IntPtr switch_channel_timetable_progress_media_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hungup_set")] + public static extern void switch_channel_timetable_hungup_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hungup_get")] + public static extern IntPtr switch_channel_timetable_hungup_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_transferred_set")] + public static extern void switch_channel_timetable_transferred_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_transferred_get")] + public static extern IntPtr switch_channel_timetable_transferred_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_resurrected_set")] + public static extern void switch_channel_timetable_resurrected_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_resurrected_get")] + public static extern IntPtr switch_channel_timetable_resurrected_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_bridged_set")] + public static extern void switch_channel_timetable_bridged_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_bridged_get")] + public static extern IntPtr switch_channel_timetable_bridged_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_last_hold_set")] + public static extern void switch_channel_timetable_last_hold_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_last_hold_get")] + public static extern IntPtr switch_channel_timetable_last_hold_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hold_accum_set")] + public static extern void switch_channel_timetable_hold_accum_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_hold_accum_get")] + public static extern IntPtr switch_channel_timetable_hold_accum_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_next_set")] + public static extern void switch_channel_timetable_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_next_get")] + public static extern IntPtr switch_channel_timetable_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_channel_timetable")] + public static extern IntPtr new_switch_channel_timetable(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_channel_timetable")] + public static extern void delete_switch_channel_timetable(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_state")] + public static extern int switch_channel_get_state(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_running_state")] + public static extern int switch_channel_get_running_state(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_check_signal")] + public static extern int switch_channel_check_signal(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_ready")] + public static extern int switch_channel_test_ready(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_state")] + public static extern void switch_channel_wait_for_state(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_state_timeout")] + public static extern void switch_channel_wait_for_state_timeout(HandleRef jarg1, int jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_flag")] + public static extern int switch_channel_wait_for_flag(HandleRef jarg1, int jarg2, int jarg3, uint jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_set_state")] + public static extern int switch_channel_perform_set_state(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_set_running_state")] + public static extern int switch_channel_perform_set_running_state(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_str2cause")] + public static extern int switch_channel_str2cause(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cause")] + public static extern int switch_channel_get_cause(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_cause_q850")] + public static extern int switch_channel_cause_q850(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cause_q850")] + public static extern int switch_channel_get_cause_q850(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cause_ptr")] + public static extern IntPtr switch_channel_get_cause_ptr(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_cause2str")] + public static extern string switch_channel_cause2str(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_timetable")] + public static extern IntPtr switch_channel_get_timetable(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_alloc")] + public static extern int switch_channel_alloc(HandleRef jarg1, int jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_init")] + public static extern int switch_channel_init(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_presence_data_vals")] + public static extern void switch_channel_set_presence_data_vals(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_presence")] + public static extern void switch_channel_perform_presence(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, int jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_uninit")] + public static extern void switch_channel_uninit(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_caller_profile")] + public static extern void switch_channel_set_caller_profile(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_step_caller_profile")] + public static extern void switch_channel_step_caller_profile(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_caller_profile")] + public static extern IntPtr switch_channel_get_caller_profile(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_originator_caller_profile")] + public static extern void switch_channel_set_originator_caller_profile(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_hunt_caller_profile")] + public static extern void switch_channel_set_hunt_caller_profile(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_originator_caller_profile")] + public static extern IntPtr switch_channel_get_originator_caller_profile(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_originatee_caller_profile")] + public static extern void switch_channel_set_originatee_caller_profile(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_originatee_caller_profile")] + public static extern IntPtr switch_channel_get_originatee_caller_profile(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_origination_caller_profile")] + public static extern void switch_channel_set_origination_caller_profile(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_origination_caller_profile")] + public static extern IntPtr switch_channel_get_origination_caller_profile(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_uuid")] + public static extern string switch_channel_get_uuid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_profile_var")] + public static extern int switch_channel_set_profile_var(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_var_check")] + public static extern int switch_channel_set_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_add_variable_var_check")] + public static extern int switch_channel_add_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_printf")] + public static extern int switch_channel_set_variable_printf(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_name_printf")] + public static extern int switch_channel_set_variable_name_printf(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_partner_var_check")] + public static extern int switch_channel_set_variable_partner_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_partner")] + public static extern string switch_channel_get_variable_partner(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_music")] + public static extern string switch_channel_get_hold_music(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_music_partner")] + public static extern string switch_channel_get_hold_music_partner(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_del_variable_prefix")] + public static extern uint switch_channel_del_variable_prefix(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_transfer_variable_prefix")] + public static extern int switch_channel_transfer_variable_prefix(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_export_variable_var_check")] + public static extern int switch_channel_export_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_process_export")] + public static extern void switch_channel_process_export(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_export_variable_printf")] + public static extern int switch_channel_export_variable_printf(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_scope_variables")] + public static extern void switch_channel_set_scope_variables(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_scope_variables")] + public static extern int switch_channel_get_scope_variables(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_dup")] + public static extern string switch_channel_get_variable_dup(HandleRef jarg1, string jarg2, int jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variables")] + public static extern int switch_channel_get_variables(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_pass_callee_id")] + public static extern int switch_channel_pass_callee_id(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_variable_first")] + public static extern IntPtr switch_channel_variable_first(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_variable_last")] + public static extern void switch_channel_variable_last(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_restart")] + public static extern void switch_channel_restart(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_caller_extension_masquerade")] + public static extern int switch_channel_caller_extension_masquerade(HandleRef jarg1, HandleRef jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_caller_extension")] + public static extern void switch_channel_set_caller_extension(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_invert_cid")] + public static extern void switch_channel_invert_cid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_flip_cid")] + public static extern void switch_channel_flip_cid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_sort_cid")] + public static extern void switch_channel_sort_cid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_caller_extension")] + public static extern IntPtr switch_channel_get_caller_extension(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_flag")] + public static extern uint switch_channel_test_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_value")] + public static extern void switch_channel_set_flag_value(HandleRef jarg1, int jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_recursive")] + public static extern void switch_channel_set_flag_recursive(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_cap_value")] + public static extern void switch_channel_set_cap_value(HandleRef jarg1, int jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_cap")] + public static extern void switch_channel_clear_cap(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_cap")] + public static extern uint switch_channel_test_cap(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_cap_partner")] + public static extern uint switch_channel_test_cap_partner(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_partner")] + public static extern int switch_channel_set_flag_partner(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_flag_partner")] + public static extern int switch_channel_clear_flag_partner(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_flag_partner")] + public static extern uint switch_channel_test_flag_partner(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_state_flag")] + public static extern void switch_channel_set_state_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_state_flag")] + public static extern void switch_channel_clear_state_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_flag")] + public static extern void switch_channel_clear_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_flag_recursive")] + public static extern void switch_channel_clear_flag_recursive(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_answer")] + public static extern int switch_channel_perform_answer(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_mark_answered")] + public static extern int switch_channel_perform_mark_answered(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_check_zrtp")] + public static extern void switch_channel_check_zrtp(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_ring_ready_value")] + public static extern int switch_channel_perform_ring_ready_value(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_pre_answer")] + public static extern int switch_channel_perform_pre_answer(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_mark_pre_answered")] + public static extern int switch_channel_perform_mark_pre_answered(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_mark_ring_ready_value")] + public static extern int switch_channel_perform_mark_ring_ready_value(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_add_state_handler")] + public static extern int switch_channel_add_state_handler(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_state_handler")] + public static extern void switch_channel_clear_state_handler(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_state_handler")] + public static extern IntPtr switch_channel_get_state_handler(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_private")] + public static extern int switch_channel_set_private(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_private")] + public static extern IntPtr switch_channel_get_private(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_private_partner")] + public static extern IntPtr switch_channel_get_private_partner(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_name")] + public static extern int switch_channel_set_name(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_name")] + public static extern string switch_channel_get_name(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_hangup")] + public static extern int switch_channel_perform_hangup(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_has_dtmf")] + public static extern IntPtr switch_channel_has_dtmf(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dtmf_lock")] + public static extern int switch_channel_dtmf_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_try_dtmf_lock")] + public static extern int switch_channel_try_dtmf_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dtmf_unlock")] + public static extern int switch_channel_dtmf_unlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_queue_dtmf")] + public static extern int switch_channel_queue_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_queue_dtmf_string")] + public static extern int switch_channel_queue_dtmf_string(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dequeue_dtmf")] + public static extern int switch_channel_dequeue_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_flush_dtmf")] + public static extern void switch_channel_flush_dtmf(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dequeue_dtmf_string")] + public static extern IntPtr switch_channel_dequeue_dtmf_string(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_name")] + public static extern string switch_channel_state_name(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_name_state")] + public static extern int switch_channel_name_state(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_event_set_data")] + public static extern void switch_channel_event_set_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_event_set_basic_data")] + public static extern void switch_channel_event_set_basic_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_event_set_extended_data")] + public static extern void switch_channel_event_set_extended_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_expand_variables_check")] + public static extern string switch_channel_expand_variables_check(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_build_param_string")] + public static extern string switch_channel_build_param_string(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_timestamps")] + public static extern int switch_channel_set_timestamps(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_audio_sync")] + public static extern void switch_channel_perform_audio_sync(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_private_flag")] + public static extern void switch_channel_set_private_flag(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_private_flag")] + public static extern void switch_channel_clear_private_flag(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_private_flag")] + public static extern int switch_channel_test_private_flag(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_app_flag_key")] + public static extern void switch_channel_set_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_app_flag_key")] + public static extern void switch_channel_clear_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_app_flag_key")] + public static extern int switch_channel_test_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_bridge_time")] + public static extern void switch_channel_set_bridge_time(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_hangup_time")] + public static extern void switch_channel_set_hangup_time(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_direction")] + public static extern int switch_channel_direction(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_logical_direction")] + public static extern int switch_channel_logical_direction(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_direction")] + public static extern void switch_channel_set_direction(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_session")] + public static extern IntPtr switch_channel_get_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_flag_string")] + public static extern string switch_channel_get_flag_string(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cap_string")] + public static extern string switch_channel_get_cap_string(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_change_pending")] + public static extern int switch_channel_state_change_pending(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_set_callstate")] + public static extern void switch_channel_perform_set_callstate(HandleRef jarg1, int jarg2, string jarg3, string jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_callstate")] + public static extern int switch_channel_get_callstate(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_callstate2str")] + public static extern string switch_channel_callstate2str(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_str2callstate")] + public static extern int switch_channel_str2callstate(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_mark_hold")] + public static extern void switch_channel_mark_hold(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_execute_on")] + public static extern int switch_channel_execute_on(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_api_on")] + public static extern int switch_channel_api_on(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_process_device_hangup")] + public static extern void switch_channel_process_device_hangup(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_queued_extension")] + public static extern IntPtr switch_channel_get_queued_extension(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_transfer_to_extension")] + public static extern void switch_channel_transfer_to_extension(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_partner_uuid")] + public static extern string switch_channel_get_partner_uuid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_record")] + public static extern IntPtr switch_channel_get_hold_record(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_lock")] + public static extern void switch_channel_state_thread_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_unlock")] + public static extern void switch_channel_state_thread_unlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_trylock")] + public static extern int switch_channel_state_thread_trylock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_handle_cause")] + public static extern void switch_channel_handle_cause(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_global_init")] + public static extern void switch_channel_global_init(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_global_uninit")] + public static extern void switch_channel_global_uninit(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_device_id")] + public static extern string switch_channel_set_device_id(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_device_record")] + public static extern void switch_channel_clear_device_record(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_device_record")] + public static extern IntPtr switch_channel_get_device_record(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_release_device_record")] + public static extern void switch_channel_release_device_record(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_bind_device_state_handler")] + public static extern int switch_channel_bind_device_state_handler(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_unbind_device_state_handler")] + public static extern int switch_channel_unbind_device_state_handler(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_device_state2str")] + public static extern string switch_channel_device_state2str(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_pass_sdp")] + public static extern int switch_channel_pass_sdp(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")] + public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create_dynamic")] + public static extern int switch_buffer_create_dynamic(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_add_mutex")] + public static extern void switch_buffer_add_mutex(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_lock")] + public static extern void switch_buffer_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_trylock")] + public static extern int switch_buffer_trylock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_unlock")] + public static extern void switch_buffer_unlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_len")] + public static extern IntPtr switch_buffer_len(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_freespace")] + public static extern IntPtr switch_buffer_freespace(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_inuse")] + public static extern IntPtr switch_buffer_inuse(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_read")] + public static extern IntPtr switch_buffer_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_peek")] + public static extern IntPtr switch_buffer_peek(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_peek_zerocopy")] + public static extern IntPtr switch_buffer_peek_zerocopy(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_read_loop")] + public static extern IntPtr switch_buffer_read_loop(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_set_loops")] + public static extern void switch_buffer_set_loops(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_write")] + public static extern IntPtr switch_buffer_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_toss")] + public static extern IntPtr switch_buffer_toss(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_zero")] + public static extern void switch_buffer_zero(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_slide_write")] + public static extern IntPtr switch_buffer_slide_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_destroy")] + public static extern void switch_buffer_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_zwrite")] + public static extern IntPtr switch_buffer_zwrite(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_name_set")] + public static extern void switch_event_header_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_name_get")] + public static extern string switch_event_header_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_value_set")] + public static extern void switch_event_header_value_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_value_get")] + public static extern string switch_event_header_value_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_array_set")] + public static extern void switch_event_header_array_set(HandleRef jarg1, ref string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_array_get")] + public static extern string switch_event_header_array_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_idx_set")] + public static extern void switch_event_header_idx_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_idx_get")] + public static extern int switch_event_header_idx_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_hash_set")] + public static extern void switch_event_header_hash_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_hash_get")] + public static extern uint switch_event_header_hash_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_next_set")] + public static extern void switch_event_header_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_next_get")] + public static extern IntPtr switch_event_header_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_event_header")] + public static extern IntPtr new_switch_event_header(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_event_header")] + public static extern void delete_switch_event_header(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_id_set")] + public static extern void switch_event_event_id_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_id_get")] + public static extern int switch_event_event_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_priority_set")] + public static extern void switch_event_priority_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_priority_get")] + public static extern int switch_event_priority_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_owner_set")] + public static extern void switch_event_owner_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_owner_get")] + public static extern string switch_event_owner_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_subclass_name_set")] + public static extern void switch_event_subclass_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_subclass_name_get")] + public static extern string switch_event_subclass_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_headers_set")] + public static extern void switch_event_headers_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_headers_get")] + public static extern IntPtr switch_event_headers_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_last_header_set")] + public static extern void switch_event_last_header_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_last_header_get")] + public static extern IntPtr switch_event_last_header_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_body_set")] + public static extern void switch_event_body_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_body_get")] + public static extern string switch_event_body_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_user_data_set")] + public static extern void switch_event_bind_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_user_data_get")] + public static extern IntPtr switch_event_bind_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_user_data_set")] + public static extern void switch_event_event_user_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_event_user_data_get")] + public static extern IntPtr switch_event_event_user_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_key_set")] + public static extern void switch_event_key_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_key_get")] + public static extern uint switch_event_key_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_next_set")] + public static extern void switch_event_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_next_get")] + public static extern IntPtr switch_event_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_flags_set")] + public static extern void switch_event_flags_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_flags_get")] + public static extern int switch_event_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_event")] + public static extern IntPtr new_switch_event(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_event")] + public static extern void delete_switch_event(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_event_id_set")] + public static extern void switch_serial_event_t_event_id_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_event_id_get")] + public static extern int switch_serial_event_t_event_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_priority_set")] + public static extern void switch_serial_event_t_priority_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_priority_get")] + public static extern int switch_serial_event_t_priority_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_flags_set")] + public static extern void switch_serial_event_t_flags_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_flags_get")] + public static extern int switch_serial_event_t_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_owner_set")] + public static extern void switch_serial_event_t_owner_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_owner_get")] + public static extern string switch_serial_event_t_owner_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_subclass_name_set")] + public static extern void switch_serial_event_t_subclass_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_subclass_name_get")] + public static extern string switch_serial_event_t_subclass_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_body_set")] + public static extern void switch_serial_event_t_body_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_t_body_get")] + public static extern string switch_serial_event_t_body_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_serial_event_t")] + public static extern IntPtr new_switch_serial_event_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_serial_event_t")] + public static extern void delete_switch_serial_event_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_name_set")] + public static extern void switch_serial_event_header_t_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_name_get")] + public static extern string switch_serial_event_header_t_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_value_set")] + public static extern void switch_serial_event_header_t_value_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_serial_event_header_t_value_get")] + public static extern string switch_serial_event_header_t_value_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_serial_event_header_t")] + public static extern IntPtr new_switch_serial_event_header_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_serial_event_header_t")] + public static extern void delete_switch_serial_event_header_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_init")] + public static extern int switch_event_init(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_shutdown")] + public static extern int switch_event_shutdown(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_subclass_detailed")] + public static extern int switch_event_create_subclass_detailed(string jarg1, string jarg2, int jarg3, HandleRef jarg4, int jarg5, string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_priority")] + public static extern int switch_event_set_priority(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header_ptr")] + public static extern IntPtr switch_event_get_header_ptr(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header_idx")] + public static extern string switch_event_get_header_idx(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_rename_header")] + public static extern int switch_event_rename_header(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_body")] + public static extern string switch_event_get_body(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_subclass_name")] + public static extern int switch_event_set_subclass_name(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_add_header_string")] + public static extern int switch_event_add_header_string(HandleRef jarg1, int jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_del_header_val")] + public static extern int switch_event_del_header_val(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_add_array")] + public static extern int switch_event_add_array(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_destroy")] + public static extern void switch_event_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_dup")] + public static extern int switch_event_dup(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_merge")] + public static extern void switch_event_merge(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_dup_reply")] + public static extern int switch_event_dup_reply(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_fire_detailed")] + public static extern int switch_event_fire_detailed(string jarg1, string jarg2, int jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_prep_for_delivery_detailed")] + public static extern void switch_event_prep_for_delivery_detailed(string jarg1, string jarg2, int jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind")] + public static extern int switch_event_bind(string jarg1, int jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_removable")] + public static extern int switch_event_bind_removable(string jarg1, int jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_unbind")] + public static extern int switch_event_unbind(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_unbind_callback")] + public static extern int switch_event_unbind_callback(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_name")] + public static extern string switch_event_name(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_name_event")] + public static extern int switch_name_event(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_reserve_subclass_detailed")] + public static extern int switch_event_reserve_subclass_detailed(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_free_subclass_detailed")] + public static extern int switch_event_free_subclass_detailed(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_binary_deserialize")] + public static extern int switch_event_binary_deserialize(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_binary_serialize")] + public static extern int switch_event_binary_serialize(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_serialize")] + public static extern int switch_event_serialize(HandleRef jarg1, ref string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_serialize_json")] + public static extern int switch_event_serialize_json(HandleRef jarg1, ref string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_serialize_json_obj")] + public static extern int switch_event_serialize_json_obj(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_json")] + public static extern int switch_event_create_json(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_brackets")] + public static extern int switch_event_create_brackets(string jarg1, char jarg2, char jarg3, char jarg4, HandleRef jarg5, ref string jarg6, int jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_array_pair")] + public static extern int switch_event_create_array_pair(HandleRef jarg1, ref string jarg2, ref string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_running")] + public static extern int switch_event_running(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_body")] + public static extern int switch_event_set_body(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_expand_headers_check")] + public static extern string switch_event_expand_headers_check(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_pres_in_detailed")] + public static extern int switch_event_create_pres_in_detailed(string jarg1, string jarg2, int jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, int jarg11, string jarg12, string jarg13, string jarg14, string jarg15); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_create_plain")] + public static extern int switch_event_create_plain(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_deliver")] + public static extern void switch_event_deliver(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_build_param_string")] + public static extern string switch_event_build_param_string(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_check_permission_list")] + public static extern int switch_event_check_permission_list(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_add_presence_data_cols")] + public static extern void switch_event_add_presence_data_cols(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_json_add_presence_data_cols")] + public static extern void switch_json_add_presence_data_cols(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_launch_dispatch_threads")] + public static extern void switch_event_launch_dispatch_threads(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_broadcast")] + public static extern uint switch_event_channel_broadcast(string jarg1, HandleRef jarg2, string jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_unbind")] + public static extern uint switch_event_channel_unbind(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_bind")] + public static extern int switch_event_channel_bind(string jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_NO_EVENT_CHANNEL_ID_get")] + public static extern int NO_EVENT_CHANNEL_ID_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EVENT_CHANNEL_GLOBAL_get")] + public static extern string SWITCH_EVENT_CHANNEL_GLOBAL_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_clear")] + public static extern int switch_live_array_clear(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_bootstrap")] + public static extern int switch_live_array_bootstrap(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_destroy")] + public static extern int switch_live_array_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_create")] + public static extern int switch_live_array_create(string jarg1, string jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_get")] + public static extern IntPtr switch_live_array_get(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_get_idx")] + public static extern IntPtr switch_live_array_get_idx(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_del")] + public static extern int switch_live_array_del(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_add")] + public static extern int switch_live_array_add(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_visible")] + public static extern int switch_live_array_visible(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_isnew")] + public static extern int switch_live_array_isnew(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_lock")] + public static extern void switch_live_array_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_unlock")] + public static extern void switch_live_array_unlock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_set_user_data")] + public static extern void switch_live_array_set_user_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_set_command_handler")] + public static extern void switch_live_array_set_command_handler(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_parse_json")] + public static extern void switch_live_array_parse_json(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_add_alias")] + public static extern int switch_live_array_add_alias(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_live_array_clear_alias")] + public static extern int switch_live_array_clear_alias(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_permission_verify")] + public static extern int switch_event_channel_permission_verify(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_permission_modify")] + public static extern void switch_event_channel_permission_modify(string jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_permission_clear")] + public static extern void switch_event_channel_permission_clear(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RESAMPLE_QUALITY_get")] + public static extern int SWITCH_RESAMPLE_QUALITY_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_resampler_set")] + public static extern void switch_audio_resampler_t_resampler_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_resampler_get")] + public static extern IntPtr switch_audio_resampler_t_resampler_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_from_rate_set")] + public static extern void switch_audio_resampler_t_from_rate_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_from_rate_get")] + public static extern int switch_audio_resampler_t_from_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_rate_set")] + public static extern void switch_audio_resampler_t_to_rate_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_rate_get")] + public static extern int switch_audio_resampler_t_to_rate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_factor_set")] + public static extern void switch_audio_resampler_t_factor_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_factor_get")] + public static extern double switch_audio_resampler_t_factor_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_rfactor_set")] + public static extern void switch_audio_resampler_t_rfactor_set(HandleRef jarg1, double jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_rfactor_get")] + public static extern double switch_audio_resampler_t_rfactor_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_set")] + public static extern void switch_audio_resampler_t_to_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_get")] + public static extern IntPtr switch_audio_resampler_t_to_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_len_set")] + public static extern void switch_audio_resampler_t_to_len_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_len_get")] + public static extern uint switch_audio_resampler_t_to_len_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_size_set")] + public static extern void switch_audio_resampler_t_to_size_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_to_size_get")] + public static extern uint switch_audio_resampler_t_to_size_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_channels_set")] + public static extern void switch_audio_resampler_t_channels_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_resampler_t_channels_get")] + public static extern int switch_audio_resampler_t_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_audio_resampler_t")] + public static extern IntPtr new_switch_audio_resampler_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_audio_resampler_t")] + public static extern void delete_switch_audio_resampler_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_resample_perform_create")] + public static extern int switch_resample_perform_create(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, int jarg5, uint jarg6, string jarg7, string jarg8, int jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_resample_destroy")] + public static extern void switch_resample_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_resample_process")] + public static extern uint switch_resample_process(HandleRef jarg1, HandleRef jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_float_to_short")] + public static extern IntPtr switch_float_to_short(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_char_to_float")] + public static extern int switch_char_to_float(string jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_float_to_char")] + public static extern int switch_float_to_char(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_short_to_float")] + public static extern int switch_short_to_float(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_swap_linear")] + public static extern void switch_swap_linear(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_generate_sln_silence")] + public static extern void switch_generate_sln_silence(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_change_sln_volume")] + public static extern void switch_change_sln_volume(HandleRef jarg1, uint jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_change_sln_volume_granular")] + public static extern void switch_change_sln_volume_granular(HandleRef jarg1, uint jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_merge_sln")] + public static extern uint switch_merge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unmerge_sln")] + public static extern uint switch_unmerge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mux_channels")] + public static extern void switch_mux_channels(HandleRef jarg1, HandleRef jarg2, uint jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_session_set")] + public static extern void switch_unicast_conninfo_session_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_session_get")] + public static extern IntPtr switch_unicast_conninfo_session_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_read_codec_set")] + public static extern void switch_unicast_conninfo_read_codec_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_read_codec_get")] + public static extern IntPtr switch_unicast_conninfo_read_codec_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_set")] + public static extern void switch_unicast_conninfo_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_get")] + public static extern IntPtr switch_unicast_conninfo_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_data_set")] + public static extern void switch_unicast_conninfo_write_frame_data_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_write_frame_data_get")] + public static extern IntPtr switch_unicast_conninfo_write_frame_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_socket_set")] + public static extern void switch_unicast_conninfo_socket_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_socket_get")] + public static extern IntPtr switch_unicast_conninfo_socket_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_ip_set")] + public static extern void switch_unicast_conninfo_local_ip_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_ip_get")] + public static extern string switch_unicast_conninfo_local_ip_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_port_set")] + public static extern void switch_unicast_conninfo_local_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_port_get")] + public static extern ushort switch_unicast_conninfo_local_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_ip_set")] + public static extern void switch_unicast_conninfo_remote_ip_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_ip_get")] + public static extern string switch_unicast_conninfo_remote_ip_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_port_set")] + public static extern void switch_unicast_conninfo_remote_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_port_get")] + public static extern ushort switch_unicast_conninfo_remote_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_addr_set")] + public static extern void switch_unicast_conninfo_local_addr_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_local_addr_get")] + public static extern IntPtr switch_unicast_conninfo_local_addr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_addr_set")] + public static extern void switch_unicast_conninfo_remote_addr_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_remote_addr_get")] + public static extern IntPtr switch_unicast_conninfo_remote_addr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flag_mutex_set")] + public static extern void switch_unicast_conninfo_flag_mutex_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flag_mutex_get")] + public static extern IntPtr switch_unicast_conninfo_flag_mutex_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flags_set")] + public static extern void switch_unicast_conninfo_flags_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_flags_get")] + public static extern int switch_unicast_conninfo_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_type_set")] + public static extern void switch_unicast_conninfo_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_type_get")] + public static extern int switch_unicast_conninfo_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_transport_set")] + public static extern void switch_unicast_conninfo_transport_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_transport_get")] + public static extern int switch_unicast_conninfo_transport_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_stream_id_set")] + public static extern void switch_unicast_conninfo_stream_id_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_stream_id_get")] + public static extern int switch_unicast_conninfo_stream_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_unicast_conninfo")] + public static extern IntPtr new_switch_unicast_conninfo(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_unicast_conninfo")] + public static extern void delete_switch_unicast_conninfo(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_deactivate_unicast")] + public static extern int switch_ivr_deactivate_unicast(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_activate_unicast")] + public static extern int switch_ivr_activate_unicast(HandleRef jarg1, string jarg2, ushort jarg3, string jarg4, ushort jarg5, string jarg6, string jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_generate_json_cdr")] + public static extern int switch_ivr_generate_json_cdr(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_generate_xml_cdr")] + public static extern int switch_ivr_generate_xml_cdr(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_xml_profile_data")] + public static extern int switch_ivr_set_xml_profile_data(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_xml_chan_vars")] + public static extern int switch_ivr_set_xml_chan_vars(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_event")] + public static extern int switch_ivr_parse_event(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_events")] + public static extern int switch_ivr_parse_all_events(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_next_event")] + public static extern int switch_ivr_parse_next_event(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_messages")] + public static extern int switch_ivr_parse_all_messages(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_signal_data")] + public static extern int switch_ivr_parse_all_signal_data(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_process_indications")] + public static extern int switch_ivr_process_indications(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_sleep")] + public static extern int switch_ivr_sleep(HandleRef jarg1, uint jarg2, int jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_park")] + public static extern int switch_ivr_park(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_collect_digits_callback")] + public static extern int switch_ivr_collect_digits_callback(HandleRef jarg1, HandleRef jarg2, uint jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_collect_digits_count")] + public static extern int switch_ivr_collect_digits_count(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, string jarg5, string jarg6, uint jarg7, uint jarg8, uint jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_play_and_detect_speech")] + public static extern int switch_ivr_play_and_detect_speech(HandleRef jarg1, string jarg2, string jarg3, string jarg4, ref string jarg5, uint jarg6, HandleRef jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_init")] + public static extern int switch_ivr_detect_speech_init(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech")] + public static extern int switch_ivr_detect_speech(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_detect_speech")] + public static extern int switch_ivr_stop_detect_speech(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_pause_detect_speech")] + public static extern int switch_ivr_pause_detect_speech(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_resume_detect_speech")] + public static extern int switch_ivr_resume_detect_speech(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_load_grammar")] + public static extern int switch_ivr_detect_speech_load_grammar(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_unload_grammar")] + public static extern int switch_ivr_detect_speech_unload_grammar(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_enable_grammar")] + public static extern int switch_ivr_detect_speech_enable_grammar(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_disable_grammar")] + public static extern int switch_ivr_detect_speech_disable_grammar(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_disable_all_grammars")] + public static extern int switch_ivr_detect_speech_disable_all_grammars(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_param_detect_speech")] + public static extern int switch_ivr_set_param_detect_speech(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_detect_speech_start_input_timers")] + public static extern int switch_ivr_detect_speech_start_input_timers(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_record_session")] + public static extern int switch_ivr_record_session(HandleRef jarg1, string jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_transfer_recordings")] + public static extern int switch_ivr_transfer_recordings(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_pop_eavesdropper")] + public static extern int switch_ivr_eavesdrop_pop_eavesdropper(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_exec_all")] + public static extern int switch_ivr_eavesdrop_exec_all(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_update_display")] + public static extern int switch_ivr_eavesdrop_update_display(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_eavesdrop_session")] + public static extern int switch_ivr_eavesdrop_session(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_displace_session")] + public static extern int switch_ivr_displace_session(HandleRef jarg1, string jarg2, uint jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_displace_session")] + public static extern int switch_ivr_stop_displace_session(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_record_session")] + public static extern int switch_ivr_stop_record_session(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_audio")] + public static extern int switch_ivr_session_audio(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_session_audio")] + public static extern int switch_ivr_stop_session_audio(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_inband_dtmf_session")] + public static extern int switch_ivr_inband_dtmf_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_inband_dtmf_session")] + public static extern int switch_ivr_stop_inband_dtmf_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_inband_dtmf_generate_session")] + public static extern int switch_ivr_inband_dtmf_generate_session(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_inband_dtmf_generate_session")] + public static extern int switch_ivr_stop_inband_dtmf_generate_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_echo")] + public static extern int switch_ivr_session_echo(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_tone_detect_session")] + public static extern int switch_ivr_stop_tone_detect_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_tone_detect_session")] + public static extern int switch_ivr_tone_detect_session(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, int jarg6, string jarg7, string jarg8, HandleRef jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_play_file")] + public static extern int switch_ivr_play_file(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_wait_for_silence")] + public static extern int switch_ivr_wait_for_silence(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_gentones")] + public static extern int switch_ivr_gentones(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_record_file")] + public static extern int switch_ivr_record_file(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4, uint jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_play_and_get_digits")] + public static extern int switch_play_and_get_digits(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, uint jarg11, string jarg12, uint jarg13, string jarg14); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_speak_text_handle")] + public static extern int switch_ivr_speak_text_handle(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_clear_speech_cache")] + public static extern void switch_ivr_clear_speech_cache(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_speak_text")] + public static extern int switch_ivr_speak_text(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_originate")] + public static extern int switch_ivr_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11, HandleRef jarg12); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_enterprise_originate")] + public static extern int switch_ivr_enterprise_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11, HandleRef jarg12); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_bridge_display")] + public static extern void switch_ivr_bridge_display(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_multi_threaded_bridge")] + public static extern int switch_ivr_multi_threaded_bridge(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_signal_bridge")] + public static extern int switch_ivr_signal_bridge(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_transfer")] + public static extern int switch_ivr_session_transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_schedule_transfer")] + public static extern uint switch_ivr_schedule_transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_schedule_hangup")] + public static extern uint switch_ivr_schedule_hangup(HandleRef jarg1, string jarg2, int jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_uuid_bridge")] + public static extern int switch_ivr_uuid_bridge(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_media")] + public static extern int switch_ivr_media(string jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_nomedia")] + public static extern int switch_ivr_nomedia(string jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_hold_uuid")] + public static extern int switch_ivr_hold_uuid(string jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_hold_toggle_uuid")] + public static extern int switch_ivr_hold_toggle_uuid(string jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unhold_uuid")] + public static extern int switch_ivr_unhold_uuid(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_hold")] + public static extern int switch_ivr_hold(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unhold")] + public static extern int switch_ivr_unhold(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_schedule_broadcast")] + public static extern uint switch_ivr_schedule_broadcast(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_broadcast")] + public static extern int switch_ivr_broadcast(string jarg1, string jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_broadcast_in_thread")] + public static extern void switch_ivr_broadcast_in_thread(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_transfer_variable")] + public static extern int switch_ivr_transfer_variable(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_new")] + public static extern int switch_ivr_digit_stream_parser_new(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_destroy")] + public static extern int switch_ivr_digit_stream_parser_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_new")] + public static extern int switch_ivr_digit_stream_new(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_destroy")] + public static extern int switch_ivr_digit_stream_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_set_event")] + public static extern int switch_ivr_digit_stream_parser_set_event(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_del_event")] + public static extern int switch_ivr_digit_stream_parser_del_event(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_feed")] + public static extern IntPtr switch_ivr_digit_stream_parser_feed(HandleRef jarg1, HandleRef jarg2, char jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_reset")] + public static extern int switch_ivr_digit_stream_reset(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_digit_stream_parser_set_terminator")] + public static extern int switch_ivr_digit_stream_parser_set_terminator(HandleRef jarg1, char jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_init")] + public static extern int switch_ivr_menu_init(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, string jarg11, string jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17, int jarg18, HandleRef jarg19); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_bind_action")] + public static extern int switch_ivr_menu_bind_action(HandleRef jarg1, int jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_bind_function")] + public static extern int switch_ivr_menu_bind_function(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_execute")] + public static extern int switch_ivr_menu_execute(HandleRef jarg1, HandleRef jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_free")] + public static extern int switch_ivr_menu_stack_free(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_xml_build")] + public static extern int switch_ivr_menu_stack_xml_build(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_str2action")] + public static extern int switch_ivr_menu_str2action(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_xml_add_custom")] + public static extern int switch_ivr_menu_stack_xml_add_custom(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_menu_stack_xml_init")] + public static extern int switch_ivr_menu_stack_xml_init(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_phrase_macro_event")] + public static extern int switch_ivr_phrase_macro_event(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_delay_echo")] + public static extern void switch_ivr_delay_echo(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_find_bridged_uuid")] + public static extern int switch_ivr_find_bridged_uuid(string jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_intercept_session")] + public static extern void switch_ivr_intercept_session(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_park_session")] + public static extern void switch_ivr_park_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_wait_for_answer")] + public static extern int switch_ivr_wait_for_answer(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_read")] + public static extern int switch_ivr_read(HandleRef jarg1, uint jarg2, uint jarg3, string jarg4, string jarg5, string jarg6, HandleRef jarg7, uint jarg8, string jarg9, uint jarg10); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_block_dtmf_session")] + public static extern int switch_ivr_block_dtmf_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unblock_dtmf_session")] + public static extern int switch_ivr_unblock_dtmf_session(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_bind_dtmf_meta_session")] + public static extern int switch_ivr_bind_dtmf_meta_session(HandleRef jarg1, uint jarg2, uint jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_unbind_dtmf_meta_session")] + public static extern int switch_ivr_unbind_dtmf_meta_session(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_soft_hold")] + public static extern int switch_ivr_soft_hold(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say")] + public static extern int switch_ivr_say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, HandleRef jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say_string")] + public static extern int switch_ivr_say_string(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, ref string jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_method_by_name")] + public static extern int switch_ivr_get_say_method_by_name(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_gender_by_name")] + public static extern int switch_ivr_get_say_gender_by_name(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_type_by_name")] + public static extern int switch_ivr_get_say_type_by_name(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say_spell")] + public static extern int switch_ivr_say_spell(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say_ip")] + public static extern int switch_ivr_say_ip(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user")] + public static extern int switch_ivr_set_user(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user_xml")] + public static extern int switch_ivr_set_user_xml(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_sound_test")] + public static extern int switch_ivr_sound_test(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_process_import")] + public static extern void switch_process_import(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_uuid_exists")] + public static extern int switch_ivr_uuid_exists(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_uuid_force_exists")] + public static extern int switch_ivr_uuid_force_exists(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_is_parsing")] + public static extern int switch_ivr_dmachine_is_parsing(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_last_ping")] + public static extern int switch_ivr_dmachine_last_ping(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_name")] + public static extern string switch_ivr_dmachine_get_name(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_match_callback")] + public static extern void switch_ivr_dmachine_set_match_callback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_nonmatch_callback")] + public static extern void switch_ivr_dmachine_set_nonmatch_callback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_create")] + public static extern int switch_ivr_dmachine_create(HandleRef jarg1, string jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_destroy")] + public static extern void switch_ivr_dmachine_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_bind")] + public static extern int switch_ivr_dmachine_bind(HandleRef jarg1, string jarg2, string jarg3, int jarg4, HandleRef jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_feed")] + public static extern int switch_ivr_dmachine_feed(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_clear")] + public static extern int switch_ivr_dmachine_clear(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_ping")] + public static extern int switch_ivr_dmachine_ping(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_match")] + public static extern IntPtr switch_ivr_dmachine_get_match(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_failed_digits")] + public static extern string switch_ivr_dmachine_get_failed_digits(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_digit_timeout_ms")] + public static extern void switch_ivr_dmachine_set_digit_timeout_ms(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_input_timeout_ms")] + public static extern void switch_ivr_dmachine_set_input_timeout_ms(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_clear_realm")] + public static extern int switch_ivr_dmachine_clear_realm(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_realm")] + public static extern int switch_ivr_dmachine_set_realm(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_file_handle")] + public static extern int switch_ivr_get_file_handle(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_release_file_handle")] + public static extern int switch_ivr_release_file_handle(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_process_fh")] + public static extern int switch_ivr_process_fh(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_insert_file")] + public static extern int switch_ivr_insert_file(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_create_message_reply")] + public static extern int switch_ivr_create_message_reply(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_check_presence_mapping")] + public static extern string switch_ivr_check_presence_mapping(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_kill_uuid")] + public static extern int switch_ivr_kill_uuid(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_blind_transfer_ack")] + public static extern int switch_ivr_blind_transfer_ack(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_record_session_mask")] + public static extern int switch_ivr_record_session_mask(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_BUF_LEN_get")] + public static extern int SWITCH_RTP_MAX_BUF_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTCP_MAX_BUF_LEN_get")] + public static extern int SWITCH_RTCP_MAX_BUF_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_BUF_LEN_WORDS_get")] + public static extern int SWITCH_RTP_MAX_BUF_LEN_WORDS_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_CRYPTO_LEN_get")] + public static extern int SWITCH_RTP_MAX_CRYPTO_LEN_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_CRYPTO_KEY_80_get")] + public static extern string SWITCH_RTP_CRYPTO_KEY_80_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_name_set")] + public static extern void switch_srtp_crypto_suite_t_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_name_get")] + public static extern string switch_srtp_crypto_suite_t_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_type_set")] + public static extern void switch_srtp_crypto_suite_t_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_type_get")] + public static extern int switch_srtp_crypto_suite_t_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_keylen_set")] + public static extern void switch_srtp_crypto_suite_t_keylen_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_keylen_get")] + public static extern int switch_srtp_crypto_suite_t_keylen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_srtp_crypto_suite_t")] + public static extern IntPtr new_switch_srtp_crypto_suite_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_srtp_crypto_suite_t")] + public static extern void delete_switch_srtp_crypto_suite_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_index_set")] + public static extern void switch_rtp_crypto_key_index_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_index_get")] + public static extern uint switch_rtp_crypto_key_index_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_type_set")] + public static extern void switch_rtp_crypto_key_type_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_type_get")] + public static extern int switch_rtp_crypto_key_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_key_set")] + public static extern void switch_rtp_crypto_key_key_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_key_get")] + public static extern IntPtr switch_rtp_crypto_key_key_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_keylen_set")] + public static extern void switch_rtp_crypto_key_keylen_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_keylen_get")] + public static extern IntPtr switch_rtp_crypto_key_keylen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_next_set")] + public static extern void switch_rtp_crypto_key_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_crypto_key_next_get")] + public static extern IntPtr switch_rtp_crypto_key_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_crypto_key")] + public static extern IntPtr new_switch_rtp_crypto_key(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_crypto_key")] + public static extern void delete_switch_rtp_crypto_key(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_foundation_set")] + public static extern void icand_t_foundation_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_foundation_get")] + public static extern string icand_t_foundation_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_component_id_set")] + public static extern void icand_t_component_id_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_component_id_get")] + public static extern int icand_t_component_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_transport_set")] + public static extern void icand_t_transport_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_transport_get")] + public static extern string icand_t_transport_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_priority_set")] + public static extern void icand_t_priority_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_priority_get")] + public static extern uint icand_t_priority_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_addr_set")] + public static extern void icand_t_con_addr_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_addr_get")] + public static extern string icand_t_con_addr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_port_set")] + public static extern void icand_t_con_port_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_con_port_get")] + public static extern ushort icand_t_con_port_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_cand_type_set")] + public static extern void icand_t_cand_type_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_cand_type_get")] + public static extern string icand_t_cand_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_raddr_set")] + public static extern void icand_t_raddr_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_raddr_get")] + public static extern string icand_t_raddr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_rport_set")] + public static extern void icand_t_rport_set(HandleRef jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_rport_get")] + public static extern ushort icand_t_rport_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_generation_set")] + public static extern void icand_t_generation_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_generation_get")] + public static extern string icand_t_generation_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_ready_set")] + public static extern void icand_t_ready_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_icand_t_ready_get")] + public static extern byte icand_t_ready_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_icand_t")] + public static extern IntPtr new_icand_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_icand_t")] + public static extern void delete_icand_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_MAX_CAND_get")] + public static extern int MAX_CAND_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cands_set")] + public static extern void ice_t_cands_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cands_get")] + public static extern IntPtr ice_t_cands_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cand_idx_set")] + public static extern void ice_t_cand_idx_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_cand_idx_get")] + public static extern int ice_t_cand_idx_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_chosen_set")] + public static extern void ice_t_chosen_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_chosen_get")] + public static extern IntPtr ice_t_chosen_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_ufrag_set")] + public static extern void ice_t_ufrag_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_ufrag_get")] + public static extern string ice_t_ufrag_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_pwd_set")] + public static extern void ice_t_pwd_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_pwd_get")] + public static extern string ice_t_pwd_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_options_set")] + public static extern void ice_t_options_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_ice_t_options_get")] + public static extern string ice_t_options_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_ice_t")] + public static extern IntPtr new_ice_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_ice_t")] + public static extern void delete_ice_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_add_crypto_key")] + public static extern int switch_rtp_add_crypto_key(HandleRef jarg1, int jarg2, uint jarg3, int jarg4, HandleRef jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_random")] + public static extern void switch_rtp_get_random(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_init")] + public static extern void switch_rtp_init(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_shutdown")] + public static extern void switch_rtp_shutdown(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_start_port")] + public static extern ushort switch_rtp_set_start_port(ushort jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_ssrc")] + public static extern int switch_rtp_set_ssrc(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_remote_ssrc")] + public static extern int switch_rtp_set_remote_ssrc(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_end_port")] + public static extern ushort switch_rtp_set_end_port(ushort jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_request_port")] + public static extern ushort switch_rtp_request_port(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_release_port")] + public static extern void switch_rtp_release_port(string jarg1, ushort jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_interval")] + public static extern int switch_rtp_set_interval(HandleRef jarg1, uint jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_change_interval")] + public static extern int switch_rtp_change_interval(HandleRef jarg1, uint jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_create")] + public static extern int switch_rtp_create(HandleRef jarg1, byte jarg2, uint jarg3, uint jarg4, HandleRef jarg5, string jarg6, ref string jarg7, HandleRef jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_new")] + public static extern IntPtr switch_rtp_new(string jarg1, ushort jarg2, string jarg3, ushort jarg4, byte jarg5, uint jarg6, uint jarg7, HandleRef jarg8, string jarg9, ref string jarg10, HandleRef jarg11); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_remote_address")] + public static extern int switch_rtp_set_remote_address(HandleRef jarg1, string jarg2, ushort jarg3, ushort jarg4, int jarg5, ref string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_remote_host")] + public static extern string switch_rtp_get_remote_host(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_remote_port")] + public static extern ushort switch_rtp_get_remote_port(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset_media_timer")] + public static extern void switch_rtp_reset_media_timer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_max_missed_packets")] + public static extern void switch_rtp_set_max_missed_packets(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_udptl_mode")] + public static extern int switch_rtp_udptl_mode(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset")] + public static extern void switch_rtp_reset(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_local_address")] + public static extern int switch_rtp_set_local_address(HandleRef jarg1, string jarg2, ushort jarg3, ref string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_kill_socket")] + public static extern void switch_rtp_kill_socket(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_break")] + public static extern void switch_rtp_break(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_flush")] + public static extern void switch_rtp_flush(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_ready")] + public static extern byte switch_rtp_ready(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_destroy")] + public static extern void switch_rtp_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_ice")] + public static extern int switch_rtp_activate_ice(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, int jarg6, int jarg7, HandleRef jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_rtcp")] + public static extern int switch_rtp_activate_rtcp(HandleRef jarg1, int jarg2, ushort jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_jitter_buffer")] + public static extern int switch_rtp_activate_jitter_buffer(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, uint jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_debug_jitter_buffer")] + public static extern int switch_rtp_debug_jitter_buffer(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_deactivate_jitter_buffer")] + public static extern int switch_rtp_deactivate_jitter_buffer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_pause_jitter_buffer")] + public static extern int switch_rtp_pause_jitter_buffer(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_jitter_buffer")] + public static extern IntPtr switch_rtp_get_jitter_buffer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_flag")] + public static extern void switch_rtp_set_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_flags")] + public static extern void switch_rtp_set_flags(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_clear_flags")] + public static extern void switch_rtp_clear_flags(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_test_flag")] + public static extern uint switch_rtp_test_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_clear_flag")] + public static extern void switch_rtp_clear_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_rtp_socket")] + public static extern IntPtr switch_rtp_get_rtp_socket(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_ping")] + public static extern void switch_rtp_ping(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_default_samples_per_interval")] + public static extern uint switch_rtp_get_default_samples_per_interval(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_default_payload")] + public static extern void switch_rtp_set_default_payload(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_default_payload")] + public static extern uint switch_rtp_get_default_payload(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_invalid_handler")] + public static extern void switch_rtp_set_invalid_handler(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_read")] + public static extern int switch_rtp_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_queue_rfc2833")] + public static extern int switch_rtp_queue_rfc2833(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_queue_rfc2833_in")] + public static extern int switch_rtp_queue_rfc2833_in(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_has_dtmf")] + public static extern IntPtr switch_rtp_has_dtmf(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_dequeue_dtmf")] + public static extern IntPtr switch_rtp_dequeue_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_zerocopy_read")] + public static extern int switch_rtp_zerocopy_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_zerocopy_read_frame")] + public static extern int switch_rtp_zerocopy_read_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_zerocopy_read_frame")] + public static extern int switch_rtcp_zerocopy_read_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_rtp_flush_read_buffer")] + public static extern void rtp_flush_read_buffer(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_enable_vad")] + public static extern int switch_rtp_enable_vad(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_disable_vad")] + public static extern int switch_rtp_disable_vad(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_write_frame")] + public static extern int switch_rtp_write_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_write_manual")] + public static extern int switch_rtp_write_manual(HandleRef jarg1, HandleRef jarg2, uint jarg3, byte jarg4, byte jarg5, uint jarg6, HandleRef jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_ssrc")] + public static extern uint switch_rtp_get_ssrc(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_private")] + public static extern void switch_rtp_set_private(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_telephony_event")] + public static extern void switch_rtp_set_telephony_event(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_telephony_recv_event")] + public static extern void switch_rtp_set_telephony_recv_event(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_cng_pt")] + public static extern void switch_rtp_set_cng_pt(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_private")] + public static extern IntPtr switch_rtp_get_private(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_payload_map")] + public static extern int switch_rtp_set_payload_map(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_intentional_bugs")] + public static extern void switch_rtp_intentional_bugs(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_stats")] + public static extern IntPtr switch_rtp_get_stats(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_check_auto_adj")] + public static extern byte switch_rtp_check_auto_adj(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_interdigit_delay")] + public static extern void switch_rtp_set_interdigit_delay(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_add_dtls")] + public static extern int switch_rtp_add_dtls(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_del_dtls")] + public static extern int switch_rtp_del_dtls(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_has_dtls")] + public static extern int switch_rtp_has_dtls(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_video_refresh")] + public static extern void switch_rtp_video_refresh(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_data_set")] + public static extern void switch_log_node_t_data_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_data_get")] + public static extern string switch_log_node_t_data_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_file_set")] + public static extern void switch_log_node_t_file_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_file_get")] + public static extern string switch_log_node_t_file_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_line_set")] + public static extern void switch_log_node_t_line_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_line_get")] + public static extern uint switch_log_node_t_line_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_func_set")] + public static extern void switch_log_node_t_func_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_func_get")] + public static extern string switch_log_node_t_func_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_level_set")] + public static extern void switch_log_node_t_level_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_level_get")] + public static extern int switch_log_node_t_level_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_timestamp_set")] + public static extern void switch_log_node_t_timestamp_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_timestamp_get")] + public static extern IntPtr switch_log_node_t_timestamp_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_content_set")] + public static extern void switch_log_node_t_content_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_content_get")] + public static extern string switch_log_node_t_content_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_userdata_set")] + public static extern void switch_log_node_t_userdata_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_userdata_get")] + public static extern string switch_log_node_t_userdata_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_channel_set")] + public static extern void switch_log_node_t_channel_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_channel_get")] + public static extern int switch_log_node_t_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_slevel_set")] + public static extern void switch_log_node_t_slevel_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_slevel_get")] + public static extern int switch_log_node_t_slevel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_log_node_t")] + public static extern IntPtr new_switch_log_node_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_log_node_t")] + public static extern void delete_switch_log_node_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_init")] + public static extern int switch_log_init(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_shutdown")] + public static extern int switch_log_shutdown(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_bind_logger")] + public static extern int switch_log_bind_logger(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_unbind_logger")] + public static extern int switch_log_unbind_logger(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_level2str")] + public static extern string switch_log_level2str(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_str2level")] + public static extern int switch_log_str2level(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_str2mask")] + public static extern uint switch_log_str2mask(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_dup")] + public static extern IntPtr switch_log_node_dup(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_free")] + public static extern void switch_log_node_free(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_XML_BUFSIZE_get")] + public static extern int SWITCH_XML_BUFSIZE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_name_set")] + public static extern void switch_xml_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_name_get")] + public static extern string switch_xml_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr_set")] + public static extern void switch_xml_attr_set(HandleRef jarg1, ref string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr_get")] + public static extern string switch_xml_attr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_txt_set")] + public static extern void switch_xml_txt_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_txt_get")] + public static extern string switch_xml_txt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free_path_set")] + public static extern void switch_xml_free_path_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free_path_get")] + public static extern string switch_xml_free_path_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_off_set")] + public static extern void switch_xml_off_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_off_get")] + public static extern IntPtr switch_xml_off_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_next_set")] + public static extern void switch_xml_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_next_get")] + public static extern IntPtr switch_xml_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_sibling_set")] + public static extern void switch_xml_sibling_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_sibling_get")] + public static extern IntPtr switch_xml_sibling_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_ordered_set")] + public static extern void switch_xml_ordered_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_ordered_get")] + public static extern IntPtr switch_xml_ordered_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_child_set")] + public static extern void switch_xml_child_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_child_get")] + public static extern IntPtr switch_xml_child_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parent_set")] + public static extern void switch_xml_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parent_get")] + public static extern IntPtr switch_xml_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_flags_set")] + public static extern void switch_xml_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_flags_get")] + public static extern uint switch_xml_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_is_switch_xml_root_t_set")] + public static extern void switch_xml_is_switch_xml_root_t_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_is_switch_xml_root_t_get")] + public static extern int switch_xml_is_switch_xml_root_t_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_refs_set")] + public static extern void switch_xml_refs_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_refs_get")] + public static extern uint switch_xml_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_xml")] + public static extern IntPtr new_switch_xml(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_xml")] + public static extern void delete_switch_xml(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_str_dynamic")] + public static extern IntPtr switch_xml_parse_str_dynamic(string jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_str")] + public static extern IntPtr switch_xml_parse_str(string jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_fd")] + public static extern IntPtr switch_xml_parse_fd(int jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_file")] + public static extern IntPtr switch_xml_parse_file(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_file_simple")] + public static extern IntPtr switch_xml_parse_file_simple(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_fp")] + public static extern IntPtr switch_xml_parse_fp(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_child")] + public static extern IntPtr switch_xml_child(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_find_child")] + public static extern IntPtr switch_xml_find_child(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_find_child_multi")] + public static extern IntPtr switch_xml_find_child_multi(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr")] + public static extern string switch_xml_attr(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr_soft")] + public static extern string switch_xml_attr_soft(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_get")] + public static extern IntPtr switch_xml_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_toxml")] + public static extern string switch_xml_toxml(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_toxml_nolock")] + public static extern string switch_xml_toxml_nolock(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_tohtml")] + public static extern string switch_xml_tohtml(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_toxml_buf")] + public static extern string switch_xml_toxml_buf(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free")] + public static extern void switch_xml_free(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_free_in_thread")] + public static extern void switch_xml_free_in_thread(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_error")] + public static extern string switch_xml_error(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_new")] + public static extern IntPtr switch_xml_new(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_add_child")] + public static extern IntPtr switch_xml_add_child(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_txt")] + public static extern IntPtr switch_xml_set_txt(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_attr")] + public static extern IntPtr switch_xml_set_attr(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_flag")] + public static extern IntPtr switch_xml_set_flag(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_cut")] + public static extern IntPtr switch_xml_cut(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_insert")] + public static extern IntPtr switch_xml_insert(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_root")] + public static extern int switch_xml_set_root(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_open_root_function")] + public static extern int switch_xml_set_open_root_function(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_open_root")] + public static extern IntPtr switch_xml_open_root(byte jarg1, ref string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_init")] + public static extern int switch_xml_init(HandleRef jarg1, ref string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_reload")] + public static extern int switch_xml_reload(ref string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_destroy")] + public static extern int switch_xml_destroy(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_root")] + public static extern IntPtr switch_xml_root(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate")] + public static extern int switch_xml_locate(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6, HandleRef jarg7, int jarg8); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_domain")] + public static extern int switch_xml_locate_domain(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_group")] + public static extern int switch_xml_locate_group(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user")] + public static extern int switch_xml_locate_user(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user_in_domain")] + public static extern int switch_xml_locate_user_in_domain(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user_merged")] + public static extern int switch_xml_locate_user_merged(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_clear_user_cache")] + public static extern uint switch_xml_clear_user_cache(string jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_merge_user")] + public static extern void switch_xml_merge_user(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_dup")] + public static extern IntPtr switch_xml_dup(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_open_cfg")] + public static extern IntPtr switch_xml_open_cfg(string jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_binding_sections")] + public static extern void switch_xml_set_binding_sections(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_set_binding_user_data")] + public static extern void switch_xml_set_binding_user_data(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_get_binding_sections")] + public static extern uint switch_xml_get_binding_sections(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_get_binding_user_data")] + public static extern IntPtr switch_xml_get_binding_user_data(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_bind_search_function_ret")] + public static extern int switch_xml_bind_search_function_ret(HandleRef jarg1, uint jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_unbind_search_function")] + public static extern int switch_xml_unbind_search_function(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_unbind_search_function_ptr")] + public static extern int switch_xml_unbind_search_function_ptr(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_parse_section_string")] + public static extern uint switch_xml_parse_section_string(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_std_datetime_check")] + public static extern int switch_xml_std_datetime_check(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_language")] + public static extern int switch_xml_locate_language(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6, string jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_set")] + public static extern void switch_io_event_hook_outgoing_channel_outgoing_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_outgoing_channel_get")] + public static extern IntPtr switch_io_event_hook_outgoing_channel_outgoing_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_next_set")] + public static extern void switch_io_event_hook_outgoing_channel_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_outgoing_channel_next_get")] + public static extern IntPtr switch_io_event_hook_outgoing_channel_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_outgoing_channel")] + public static extern IntPtr new_switch_io_event_hook_outgoing_channel(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_outgoing_channel")] + public static extern void delete_switch_io_event_hook_outgoing_channel(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_receive_message_set")] + public static extern void switch_io_event_hook_receive_message_receive_message_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_receive_message_get")] + public static extern IntPtr switch_io_event_hook_receive_message_receive_message_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_next_set")] + public static extern void switch_io_event_hook_receive_message_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_message_next_get")] + public static extern IntPtr switch_io_event_hook_receive_message_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_receive_message")] + public static extern IntPtr new_switch_io_event_hook_receive_message(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_receive_message")] + public static extern void delete_switch_io_event_hook_receive_message(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_receive_event_set")] + public static extern void switch_io_event_hook_receive_event_receive_event_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_receive_event_get")] + public static extern IntPtr switch_io_event_hook_receive_event_receive_event_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_next_set")] + public static extern void switch_io_event_hook_receive_event_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_receive_event_next_get")] + public static extern IntPtr switch_io_event_hook_receive_event_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_receive_event")] + public static extern IntPtr new_switch_io_event_hook_receive_event(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_receive_event")] + public static extern void delete_switch_io_event_hook_receive_event(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_read_frame_set")] + public static extern void switch_io_event_hook_read_frame_read_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_read_frame_get")] + public static extern IntPtr switch_io_event_hook_read_frame_read_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_next_set")] + public static extern void switch_io_event_hook_read_frame_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_read_frame_next_get")] + public static extern IntPtr switch_io_event_hook_read_frame_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_read_frame")] + public static extern IntPtr new_switch_io_event_hook_read_frame(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_read_frame")] + public static extern void delete_switch_io_event_hook_read_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_video_read_frame_set")] + public static extern void switch_io_event_hook_video_read_frame_video_read_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_video_read_frame_get")] + public static extern IntPtr switch_io_event_hook_video_read_frame_video_read_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_next_set")] + public static extern void switch_io_event_hook_video_read_frame_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_read_frame_next_get")] + public static extern IntPtr switch_io_event_hook_video_read_frame_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_video_read_frame")] + public static extern IntPtr new_switch_io_event_hook_video_read_frame(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_video_read_frame")] + public static extern void delete_switch_io_event_hook_video_read_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_write_frame_set")] + public static extern void switch_io_event_hook_write_frame_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_write_frame_get")] + public static extern IntPtr switch_io_event_hook_write_frame_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_next_set")] + public static extern void switch_io_event_hook_write_frame_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_write_frame_next_get")] + public static extern IntPtr switch_io_event_hook_write_frame_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_write_frame")] + public static extern IntPtr new_switch_io_event_hook_write_frame(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_write_frame")] + public static extern void delete_switch_io_event_hook_write_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_video_write_frame_set")] + public static extern void switch_io_event_hook_video_write_frame_video_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_video_write_frame_get")] + public static extern IntPtr switch_io_event_hook_video_write_frame_video_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_next_set")] + public static extern void switch_io_event_hook_video_write_frame_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_video_write_frame_next_get")] + public static extern IntPtr switch_io_event_hook_video_write_frame_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_video_write_frame")] + public static extern IntPtr new_switch_io_event_hook_video_write_frame(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_video_write_frame")] + public static extern void delete_switch_io_event_hook_video_write_frame(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_kill_channel_set")] + public static extern void switch_io_event_hook_kill_channel_kill_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_kill_channel_get")] + public static extern IntPtr switch_io_event_hook_kill_channel_kill_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_next_set")] + public static extern void switch_io_event_hook_kill_channel_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_kill_channel_next_get")] + public static extern IntPtr switch_io_event_hook_kill_channel_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_kill_channel")] + public static extern IntPtr new_switch_io_event_hook_kill_channel(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_kill_channel")] + public static extern void delete_switch_io_event_hook_kill_channel(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_send_dtmf_set")] + public static extern void switch_io_event_hook_send_dtmf_send_dtmf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_send_dtmf_get")] + public static extern IntPtr switch_io_event_hook_send_dtmf_send_dtmf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_next_set")] + public static extern void switch_io_event_hook_send_dtmf_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_send_dtmf_next_get")] + public static extern IntPtr switch_io_event_hook_send_dtmf_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_send_dtmf")] + public static extern IntPtr new_switch_io_event_hook_send_dtmf(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_send_dtmf")] + public static extern void delete_switch_io_event_hook_send_dtmf(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_set")] + public static extern void switch_io_event_hook_recv_dtmf_recv_dtmf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_recv_dtmf_get")] + public static extern IntPtr switch_io_event_hook_recv_dtmf_recv_dtmf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_next_set")] + public static extern void switch_io_event_hook_recv_dtmf_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_recv_dtmf_next_get")] + public static extern IntPtr switch_io_event_hook_recv_dtmf_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_recv_dtmf")] + public static extern IntPtr new_switch_io_event_hook_recv_dtmf(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_recv_dtmf")] + public static extern void delete_switch_io_event_hook_recv_dtmf(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_state_change_set")] + public static extern void switch_io_event_hook_state_change_state_change_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_state_change_get")] + public static extern IntPtr switch_io_event_hook_state_change_state_change_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_next_set")] + public static extern void switch_io_event_hook_state_change_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_change_next_get")] + public static extern IntPtr switch_io_event_hook_state_change_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_state_change")] + public static extern IntPtr new_switch_io_event_hook_state_change(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_state_change")] + public static extern void delete_switch_io_event_hook_state_change(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_state_run_set")] + public static extern void switch_io_event_hook_state_run_state_run_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_state_run_get")] + public static extern IntPtr switch_io_event_hook_state_run_state_run_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_next_set")] + public static extern void switch_io_event_hook_state_run_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hook_state_run_next_get")] + public static extern IntPtr switch_io_event_hook_state_run_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hook_state_run")] + public static extern IntPtr new_switch_io_event_hook_state_run(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hook_state_run")] + public static extern void delete_switch_io_event_hook_state_run(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_outgoing_channel_set")] + public static extern void switch_io_event_hooks_outgoing_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_outgoing_channel_get")] + public static extern IntPtr switch_io_event_hooks_outgoing_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_message_set")] + public static extern void switch_io_event_hooks_receive_message_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_message_get")] + public static extern IntPtr switch_io_event_hooks_receive_message_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_event_set")] + public static extern void switch_io_event_hooks_receive_event_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_receive_event_get")] + public static extern IntPtr switch_io_event_hooks_receive_event_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_read_frame_set")] + public static extern void switch_io_event_hooks_read_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_read_frame_get")] + public static extern IntPtr switch_io_event_hooks_read_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_read_frame_set")] + public static extern void switch_io_event_hooks_video_read_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_read_frame_get")] + public static extern IntPtr switch_io_event_hooks_video_read_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_write_frame_set")] + public static extern void switch_io_event_hooks_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_write_frame_get")] + public static extern IntPtr switch_io_event_hooks_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_write_frame_set")] + public static extern void switch_io_event_hooks_video_write_frame_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_video_write_frame_get")] + public static extern IntPtr switch_io_event_hooks_video_write_frame_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_kill_channel_set")] + public static extern void switch_io_event_hooks_kill_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_kill_channel_get")] + public static extern IntPtr switch_io_event_hooks_kill_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_send_dtmf_set")] + public static extern void switch_io_event_hooks_send_dtmf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_send_dtmf_get")] + public static extern IntPtr switch_io_event_hooks_send_dtmf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_recv_dtmf_set")] + public static extern void switch_io_event_hooks_recv_dtmf_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_recv_dtmf_get")] + public static extern IntPtr switch_io_event_hooks_recv_dtmf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_change_set")] + public static extern void switch_io_event_hooks_state_change_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_change_get")] + public static extern IntPtr switch_io_event_hooks_state_change_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_run_set")] + public static extern void switch_io_event_hooks_state_run_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_io_event_hooks_state_run_get")] + public static extern IntPtr switch_io_event_hooks_state_run_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_io_event_hooks")] + public static extern IntPtr new_switch_io_event_hooks(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_io_event_hooks")] + public static extern void delete_switch_io_event_hooks(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_outgoing_channel")] + public static extern int switch_core_event_hook_add_outgoing_channel(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_receive_message")] + public static extern int switch_core_event_hook_add_receive_message(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_receive_event")] + public static extern int switch_core_event_hook_add_receive_event(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_state_change")] + public static extern int switch_core_event_hook_add_state_change(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_state_run")] + public static extern int switch_core_event_hook_add_state_run(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_read_frame")] + public static extern int switch_core_event_hook_add_read_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_write_frame")] + public static extern int switch_core_event_hook_add_write_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_video_read_frame")] + public static extern int switch_core_event_hook_add_video_read_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_video_write_frame")] + public static extern int switch_core_event_hook_add_video_write_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_kill_channel")] + public static extern int switch_core_event_hook_add_kill_channel(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_send_dtmf")] + public static extern int switch_core_event_hook_add_send_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_add_recv_dtmf")] + public static extern int switch_core_event_hook_add_recv_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_outgoing_channel")] + public static extern int switch_core_event_hook_remove_outgoing_channel(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_receive_message")] + public static extern int switch_core_event_hook_remove_receive_message(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_receive_event")] + public static extern int switch_core_event_hook_remove_receive_event(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_state_change")] + public static extern int switch_core_event_hook_remove_state_change(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_state_run")] + public static extern int switch_core_event_hook_remove_state_run(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_read_frame")] + public static extern int switch_core_event_hook_remove_read_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_write_frame")] + public static extern int switch_core_event_hook_remove_write_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_video_read_frame")] + public static extern int switch_core_event_hook_remove_video_read_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_video_write_frame")] + public static extern int switch_core_event_hook_remove_video_write_frame(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_kill_channel")] + public static extern int switch_core_event_hook_remove_kill_channel(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_send_dtmf")] + public static extern int switch_core_event_hook_remove_send_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_event_hook_remove_recv_dtmf")] + public static extern int switch_core_event_hook_remove_recv_dtmf(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_created_set")] + public static extern void switch_scheduler_task_created_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_created_get")] + public static extern long switch_scheduler_task_created_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_runtime_set")] + public static extern void switch_scheduler_task_runtime_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_runtime_get")] + public static extern long switch_scheduler_task_runtime_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_id_set")] + public static extern void switch_scheduler_task_cmd_id_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_id_get")] + public static extern uint switch_scheduler_task_cmd_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_repeat_set")] + public static extern void switch_scheduler_task_repeat_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_repeat_get")] + public static extern uint switch_scheduler_task_repeat_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_group_set")] + public static extern void switch_scheduler_task_group_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_group_get")] + public static extern string switch_scheduler_task_group_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_arg_set")] + public static extern void switch_scheduler_task_cmd_arg_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_cmd_arg_get")] + public static extern IntPtr switch_scheduler_task_cmd_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_task_id_set")] + public static extern void switch_scheduler_task_task_id_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_task_id_get")] + public static extern uint switch_scheduler_task_task_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_hash_set")] + public static extern void switch_scheduler_task_hash_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_hash_get")] + public static extern uint switch_scheduler_task_hash_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_scheduler_task")] + public static extern IntPtr new_switch_scheduler_task(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_scheduler_task")] + public static extern void delete_switch_scheduler_task(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_add_task")] + public static extern uint switch_scheduler_add_task(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, uint jarg5, HandleRef jarg6, uint jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_del_task_id")] + public static extern uint switch_scheduler_del_task_id(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_del_task_group")] + public static extern uint switch_scheduler_del_task_group(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_thread_start")] + public static extern void switch_scheduler_task_thread_start(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_scheduler_task_thread_stop")] + public static extern void switch_scheduler_task_thread_stop(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_file_set")] + public static extern void switch_config_file_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_file_get")] + public static extern IntPtr switch_config_file_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_path_set")] + public static extern void switch_config_path_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_path_get")] + public static extern string switch_config_path_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_category_set")] + public static extern void switch_config_category_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_category_get")] + public static extern string switch_config_category_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_section_set")] + public static extern void switch_config_section_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_section_get")] + public static extern string switch_config_section_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_buf_set")] + public static extern void switch_config_buf_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_buf_get")] + public static extern string switch_config_buf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lineno_set")] + public static extern void switch_config_lineno_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lineno_get")] + public static extern int switch_config_lineno_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_catno_set")] + public static extern void switch_config_catno_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_catno_get")] + public static extern int switch_config_catno_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_sectno_set")] + public static extern void switch_config_sectno_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_sectno_get")] + public static extern int switch_config_sectno_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lockto_set")] + public static extern void switch_config_lockto_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_lockto_get")] + public static extern int switch_config_lockto_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_config")] + public static extern IntPtr new_switch_config(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_config")] + public static extern void delete_switch_config(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_open_file")] + public static extern int switch_config_open_file(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_close_file")] + public static extern void switch_config_close_file(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_config_next_pair")] + public static extern int switch_config_next_pair(HandleRef jarg1, ref string jarg2, ref string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_setGlobalVariable")] + public static extern void setGlobalVariable(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_getGlobalVariable")] + public static extern string getGlobalVariable(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_consoleLog")] + public static extern void consoleLog(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_consoleLog2")] + public static extern void consoleLog2(string jarg1, string jarg2, string jarg3, int jarg4, string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_consoleCleanLog")] + public static extern void consoleCleanLog(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_running")] + public static extern bool running(); + + [DllImport("mod_managed", EntryPoint="CSharp_email")] + public static extern bool email(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_new_IvrMenu")] + public static extern IntPtr new_IvrMenu(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, string jarg11, int jarg12, int jarg13, int jarg14, int jarg15, int jarg16, int jarg17); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_IvrMenu")] + public static extern void delete_IvrMenu(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_IvrMenu_bindAction")] + public static extern void IvrMenu_bindAction(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_IvrMenu_Execute")] + public static extern void IvrMenu_Execute(HandleRef jarg1, HandleRef jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_new_Api")] + public static extern IntPtr new_Api(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_Api")] + public static extern void delete_Api(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Api_Execute")] + public static extern string Api_Execute(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_Api_ExecuteString")] + public static extern string Api_ExecuteString(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Api_getTime")] + public static extern string Api_getTime(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_function_set")] + public static extern void input_callback_state_t_function_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_function_get")] + public static extern IntPtr input_callback_state_t_function_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_threadState_set")] + public static extern void input_callback_state_t_threadState_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_threadState_get")] + public static extern IntPtr input_callback_state_t_threadState_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_extra_set")] + public static extern void input_callback_state_t_extra_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_extra_get")] + public static extern IntPtr input_callback_state_t_extra_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_funcargs_set")] + public static extern void input_callback_state_t_funcargs_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_funcargs_get")] + public static extern string input_callback_state_t_funcargs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_input_callback_state_t")] + public static extern IntPtr new_input_callback_state_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_input_callback_state_t")] + public static extern void delete_input_callback_state_t(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_DTMF_digit_set")] + public static extern void DTMF_digit_set(HandleRef jarg1, char jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_DTMF_digit_get")] + public static extern char DTMF_digit_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_DTMF_duration_set")] + public static extern void DTMF_duration_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_DTMF_duration_get")] + public static extern uint DTMF_duration_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_DTMF")] + public static extern IntPtr new_DTMF(char jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_DTMF")] + public static extern void delete_DTMF(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_Stream__SWIG_0")] + public static extern IntPtr new_Stream__SWIG_0(); + + [DllImport("mod_managed", EntryPoint="CSharp_new_Stream__SWIG_1")] + public static extern IntPtr new_Stream__SWIG_1(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_Stream")] + public static extern void delete_Stream(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Stream_read")] + public static extern string Stream_read(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Stream_Write")] + public static extern void Stream_Write(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Stream_raw_write")] + public static extern void Stream_raw_write(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_Stream_get_data")] + public static extern string Stream_get_data(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_InternalEvent_set")] + public static extern void Event_InternalEvent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_InternalEvent_get")] + public static extern IntPtr Event_InternalEvent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_serialized_string_set")] + public static extern void Event_serialized_string_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_serialized_string_get")] + public static extern string Event_serialized_string_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_mine_set")] + public static extern void Event_mine_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_mine_get")] + public static extern int Event_mine_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_Event__SWIG_0")] + public static extern IntPtr new_Event__SWIG_0(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_new_Event__SWIG_1")] + public static extern IntPtr new_Event__SWIG_1(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_Event")] + public static extern void delete_Event(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_chat_execute")] + public static extern int Event_chat_execute(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_chat_send")] + public static extern int Event_chat_send(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_Serialize")] + public static extern string Event_Serialize(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_SetPriority")] + public static extern bool Event_SetPriority(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_GetHeader")] + public static extern string Event_GetHeader(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_GetBody")] + public static extern string Event_GetBody(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_GetEventType")] + public static extern string Event_GetEventType(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_AddBody")] + public static extern bool Event_AddBody(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_AddHeader")] + public static extern bool Event_AddHeader(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_DeleteHeader")] + public static extern bool Event_DeleteHeader(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_Event_Fire")] + public static extern bool Event_Fire(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_events_set")] + public static extern void EventConsumer_events_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_events_get")] + public static extern IntPtr EventConsumer_events_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_event_id_set")] + public static extern void EventConsumer_e_event_id_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_event_id_get")] + public static extern int EventConsumer_e_event_id_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_callback_set")] + public static extern void EventConsumer_e_callback_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_callback_get")] + public static extern string EventConsumer_e_callback_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_subclass_name_set")] + public static extern void EventConsumer_e_subclass_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_subclass_name_get")] + public static extern string EventConsumer_e_subclass_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_cb_arg_set")] + public static extern void EventConsumer_e_cb_arg_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_cb_arg_get")] + public static extern string EventConsumer_e_cb_arg_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_enodes_set")] + public static extern void EventConsumer_enodes_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_enodes_get")] + public static extern IntPtr EventConsumer_enodes_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_node_index_set")] + public static extern void EventConsumer_node_index_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_node_index_get")] + public static extern uint EventConsumer_node_index_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_EventConsumer")] + public static extern IntPtr new_EventConsumer(string jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_EventConsumer")] + public static extern void delete_EventConsumer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_bind")] + public static extern int EventConsumer_bind(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_pop")] + public static extern IntPtr EventConsumer_pop(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_cleanup")] + public static extern void EventConsumer_cleanup(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_CoreSession")] + public static extern void delete_CoreSession(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_InternalSession_set")] + public static extern void CoreSession_InternalSession_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_InternalSession_get")] + public static extern IntPtr CoreSession_InternalSession_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_channel_set")] + public static extern void CoreSession_channel_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_channel_get")] + public static extern IntPtr CoreSession_channel_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flags_set")] + public static extern void CoreSession_flags_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flags_get")] + public static extern uint CoreSession_flags_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_allocated_set")] + public static extern void CoreSession_allocated_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_allocated_get")] + public static extern int CoreSession_allocated_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cb_state_set")] + public static extern void CoreSession_cb_state_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cb_state_get")] + public static extern IntPtr CoreSession_cb_state_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_HookState_set")] + public static extern void CoreSession_HookState_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_HookState_get")] + public static extern int CoreSession_HookState_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cause_set")] + public static extern void CoreSession_cause_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_cause_get")] + public static extern int CoreSession_cause_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_uuid_set")] + public static extern void CoreSession_uuid_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_uuid_get")] + public static extern string CoreSession_uuid_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_tts_name_set")] + public static extern void CoreSession_tts_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_tts_name_get")] + public static extern string CoreSession_tts_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_voice_name_set")] + public static extern void CoreSession_voice_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_voice_name_get")] + public static extern string CoreSession_voice_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_insertFile")] + public static extern int CoreSession_insertFile(HandleRef jarg1, string jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Answer")] + public static extern int CoreSession_Answer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_preAnswer")] + public static extern int CoreSession_preAnswer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Hangup")] + public static extern void CoreSession_Hangup(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_hangupState")] + public static extern void CoreSession_hangupState(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetVariable")] + public static extern void CoreSession_SetVariable(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetPrivate")] + public static extern void CoreSession_SetPrivate(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetPrivate")] + public static extern IntPtr CoreSession_GetPrivate(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetVariable")] + public static extern string CoreSession_GetVariable(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Say")] + public static extern void CoreSession_Say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SayPhrase")] + public static extern void CoreSession_SayPhrase(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_hangupCause")] + public static extern string CoreSession_hangupCause(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_getState")] + public static extern string CoreSession_getState(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_RecordFile")] + public static extern int CoreSession_RecordFile(HandleRef jarg1, string jarg2, int jarg3, int jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_originate")] + 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); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Speak")] + public static extern int CoreSession_Speak(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetTtsParameters")] + public static extern void CoreSession_SetTtsParameters(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_set_tts_params")] + public static extern void CoreSession_set_tts_params(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_CollectDigits__SWIG_0")] + public static extern int CoreSession_CollectDigits__SWIG_0(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_CollectDigits__SWIG_1")] + public static extern int CoreSession_CollectDigits__SWIG_1(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetDigits__SWIG_0")] + public static extern string CoreSession_GetDigits__SWIG_0(HandleRef jarg1, int jarg2, string jarg3, int jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetDigits__SWIG_1")] + public static extern string CoreSession_GetDigits__SWIG_1(HandleRef jarg1, int jarg2, string jarg3, int jarg4, int jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Transfer")] + public static extern int CoreSession_Transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_read")] + public static extern string CoreSession_read(HandleRef jarg1, int jarg2, int jarg3, string jarg4, int jarg5, string jarg6, int jarg7); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_PlayAndGetDigits")] + public static extern string CoreSession_PlayAndGetDigits(HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, string jarg6, string jarg7, string jarg8, string jarg9, string jarg10, int jarg11, string jarg12); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_StreamFile")] + public static extern int CoreSession_StreamFile(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_sleep")] + public static extern int CoreSession_sleep(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flushEvents")] + public static extern int CoreSession_flushEvents(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_flushDigits")] + public static extern int CoreSession_flushDigits(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SetAutoHangup")] + public static extern int CoreSession_SetAutoHangup(HandleRef jarg1, bool jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Ready")] + public static extern bool CoreSession_Ready(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_bridged")] + public static extern bool CoreSession_bridged(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_answered")] + public static extern bool CoreSession_answered(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_mediaReady")] + public static extern bool CoreSession_mediaReady(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_waitForAnswer")] + public static extern void CoreSession_waitForAnswer(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Execute")] + public static extern void CoreSession_Execute(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_sendEvent")] + public static extern void CoreSession_sendEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_setEventData")] + public static extern void CoreSession_setEventData(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_getXMLCDR")] + public static extern string CoreSession_getXMLCDR(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_begin_allow_threads")] + public static extern bool CoreSession_begin_allow_threads(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_end_allow_threads")] + public static extern bool CoreSession_end_allow_threads(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetUuid")] + public static extern string CoreSession_GetUuid(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_get_cb_args")] + public static extern IntPtr CoreSession_get_cb_args(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_check_hangup_hook")] + public static extern void CoreSession_check_hangup_hook(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_consoleLog")] + public static extern void CoreSession_consoleLog(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_consoleLog2")] + public static extern void CoreSession_consoleLog2(HandleRef jarg1, string jarg2, string jarg3, string jarg4, int jarg5, string jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_console_log")] + public static extern void console_log(string jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_console_log2")] + public static extern void console_log2(string jarg1, string jarg2, string jarg3, int jarg4, string jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_console_clean_log")] + public static extern void console_clean_log(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_msleep")] + public static extern void msleep(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_bridge")] + public static extern void bridge(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_hanguphook")] + public static extern int hanguphook(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_dtmf_callback")] + public static extern int dtmf_callback(HandleRef jarg1, HandleRef jarg2, int jarg3, HandleRef jarg4, uint jarg5); + + [DllImport("mod_managed", EntryPoint="CSharp_new_ManagedSession__SWIG_0")] + public static extern IntPtr new_ManagedSession__SWIG_0(); + + [DllImport("mod_managed", EntryPoint="CSharp_new_ManagedSession__SWIG_1")] + public static extern IntPtr new_ManagedSession__SWIG_1(string jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_ManagedSession__SWIG_2")] + public static extern IntPtr new_ManagedSession__SWIG_2(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_ManagedSession")] + public static extern void delete_ManagedSession(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_ManagedSession_SWIGUpcast")] + public static extern IntPtr ManagedSession_SWIGUpcast(IntPtr jarg1); +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class icand_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal icand_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(icand_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~icand_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_icand_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string foundation { + set { + freeswitchPINVOKE.icand_t_foundation_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.icand_t_foundation_get(swigCPtr); + return ret; + } + } + + public int component_id { + set { + freeswitchPINVOKE.icand_t_component_id_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.icand_t_component_id_get(swigCPtr); + return ret; + } + } + + public string transport { + set { + freeswitchPINVOKE.icand_t_transport_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.icand_t_transport_get(swigCPtr); + return ret; + } + } + + public uint priority { + set { + freeswitchPINVOKE.icand_t_priority_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.icand_t_priority_get(swigCPtr); + return ret; + } + } + + public string con_addr { + set { + freeswitchPINVOKE.icand_t_con_addr_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.icand_t_con_addr_get(swigCPtr); + return ret; + } + } + + public ushort con_port { + set { + freeswitchPINVOKE.icand_t_con_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.icand_t_con_port_get(swigCPtr); + return ret; + } + } + + public string cand_type { + set { + freeswitchPINVOKE.icand_t_cand_type_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.icand_t_cand_type_get(swigCPtr); + return ret; + } + } + + public string raddr { + set { + freeswitchPINVOKE.icand_t_raddr_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.icand_t_raddr_get(swigCPtr); + return ret; + } + } + + public ushort rport { + set { + freeswitchPINVOKE.icand_t_rport_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.icand_t_rport_get(swigCPtr); + return ret; + } + } + + public string generation { + set { + freeswitchPINVOKE.icand_t_generation_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.icand_t_generation_get(swigCPtr); + return ret; + } + } + + public byte ready { + set { + freeswitchPINVOKE.icand_t_ready_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.icand_t_ready_get(swigCPtr); + return ret; + } + } + + public icand_t() : this(freeswitchPINVOKE.new_icand_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum ice_proto_t { + IPR_RTP, + IPR_RTCP +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class ice_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ice_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ice_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ice_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_ice_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_a_2__icand_s cands { + set { + freeswitchPINVOKE.ice_t_cands_set(swigCPtr, SWIGTYPE_p_a_2__icand_s.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.ice_t_cands_get(swigCPtr); + SWIGTYPE_p_a_2__icand_s ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_a_2__icand_s(cPtr, false); + return ret; + } + } + + public int cand_idx { + set { + freeswitchPINVOKE.ice_t_cand_idx_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.ice_t_cand_idx_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_int chosen { + set { + freeswitchPINVOKE.ice_t_chosen_set(swigCPtr, SWIGTYPE_p_int.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.ice_t_chosen_get(swigCPtr); + SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + } + + public string ufrag { + set { + freeswitchPINVOKE.ice_t_ufrag_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.ice_t_ufrag_get(swigCPtr); + return ret; + } + } + + public string pwd { + set { + freeswitchPINVOKE.ice_t_pwd_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.ice_t_pwd_get(swigCPtr); + return ret; + } + } + + public string options { + set { + freeswitchPINVOKE.ice_t_options_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.ice_t_options_get(swigCPtr); + return ret; + } + } + + public ice_t() : this(freeswitchPINVOKE.new_ice_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class input_callback_state_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal input_callback_state_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(input_callback_state_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~input_callback_state_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_input_callback_state_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_void function { + set { + freeswitchPINVOKE.input_callback_state_t_function_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.input_callback_state_t_function_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void threadState { + set { + freeswitchPINVOKE.input_callback_state_t_threadState_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.input_callback_state_t_threadState_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void extra { + set { + freeswitchPINVOKE.input_callback_state_t_extra_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.input_callback_state_t_extra_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public string funcargs { + set { + freeswitchPINVOKE.input_callback_state_t_funcargs_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.input_callback_state_t_funcargs_get(swigCPtr); + return ret; + } + } + + public input_callback_state_t() : this(freeswitchPINVOKE.new_input_callback_state_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class ip_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ip_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ip_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ip_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_ip_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint v4 { + set { + freeswitchPINVOKE.ip_t_v4_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.ip_t_v4_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_in6_addr v6 { + set { + freeswitchPINVOKE.ip_t_v6_set(swigCPtr, SWIGTYPE_p_in6_addr.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_in6_addr ret = new SWIGTYPE_p_in6_addr(freeswitchPINVOKE.ip_t_v6_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public ip_t() : this(freeswitchPINVOKE.new_ip_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class IvrMenu : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal IvrMenu(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(IvrMenu obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~IvrMenu() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_IvrMenu(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public IvrMenu(IvrMenu main, string name, string greeting_sound, string short_greeting_sound, string invalid_sound, string exit_sound, string transfer_sound, string confirm_macro, string confirm_key, string tts_engine, string tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts) : this(freeswitchPINVOKE.new_IvrMenu(IvrMenu.getCPtr(main), name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts), true) { + } + + public void bindAction(string action, string arg, string bind) { + freeswitchPINVOKE.IvrMenu_bindAction(swigCPtr, action, arg, bind); + } + + public void Execute(CoreSession session, string name) { + freeswitchPINVOKE.IvrMenu_Execute(swigCPtr, CoreSession.getCPtr(session), name); + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public partial class ManagedSession : CoreSession { + private HandleRef swigCPtr; + + internal ManagedSession(IntPtr cPtr, bool cMemoryOwn) : base(freeswitchPINVOKE.ManagedSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ManagedSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ManagedSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_ManagedSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public ManagedSession() : this(freeswitchPINVOKE.new_ManagedSession__SWIG_0(), true) { + } + + public ManagedSession(string uuid) : this(freeswitchPINVOKE.new_ManagedSession__SWIG_1(uuid), true) { + } + + public ManagedSession(SWIGTYPE_p_switch_core_session session) : this(freeswitchPINVOKE.new_ManagedSession__SWIG_2(SWIGTYPE_p_switch_core_session.getCPtr(session)), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class payload_map_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal payload_map_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(payload_map_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~payload_map_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_payload_map_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_media_type_t type { + set { + freeswitchPINVOKE.payload_map_t_type_set(swigCPtr, (int)value); + } + get { + switch_media_type_t ret = (switch_media_type_t)freeswitchPINVOKE.payload_map_t_type_get(swigCPtr); + return ret; + } + } + + public switch_sdp_type_t sdp_type { + set { + freeswitchPINVOKE.payload_map_t_sdp_type_set(swigCPtr, (int)value); + } + get { + switch_sdp_type_t ret = (switch_sdp_type_t)freeswitchPINVOKE.payload_map_t_sdp_type_get(swigCPtr); + return ret; + } + } + + public uint ptime { + set { + freeswitchPINVOKE.payload_map_t_ptime_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_ptime_get(swigCPtr); + return ret; + } + } + + public uint rate { + set { + freeswitchPINVOKE.payload_map_t_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_rate_get(swigCPtr); + return ret; + } + } + + public byte allocated { + set { + freeswitchPINVOKE.payload_map_t_allocated_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.payload_map_t_allocated_get(swigCPtr); + return ret; + } + } + + public byte negotiated { + set { + freeswitchPINVOKE.payload_map_t_negotiated_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.payload_map_t_negotiated_get(swigCPtr); + return ret; + } + } + + public byte current { + set { + freeswitchPINVOKE.payload_map_t_current_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.payload_map_t_current_get(swigCPtr); + return ret; + } + } + + public uint hash { + set { + freeswitchPINVOKE.payload_map_t_hash_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_hash_get(swigCPtr); + return ret; + } + } + + public string rm_encoding { + set { + freeswitchPINVOKE.payload_map_t_rm_encoding_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.payload_map_t_rm_encoding_get(swigCPtr); + return ret; + } + } + + public string iananame { + set { + freeswitchPINVOKE.payload_map_t_iananame_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.payload_map_t_iananame_get(swigCPtr); + return ret; + } + } + + public byte pt { + set { + freeswitchPINVOKE.payload_map_t_pt_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.payload_map_t_pt_get(swigCPtr); + return ret; + } + } + + public uint rm_rate { + set { + freeswitchPINVOKE.payload_map_t_rm_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_rm_rate_get(swigCPtr); + return ret; + } + } + + public uint adv_rm_rate { + set { + freeswitchPINVOKE.payload_map_t_adv_rm_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_adv_rm_rate_get(swigCPtr); + return ret; + } + } + + public uint codec_ms { + set { + freeswitchPINVOKE.payload_map_t_codec_ms_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_codec_ms_get(swigCPtr); + return ret; + } + } + + public uint bitrate { + set { + freeswitchPINVOKE.payload_map_t_bitrate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.payload_map_t_bitrate_get(swigCPtr); + return ret; + } + } + + public string rm_fmtp { + set { + freeswitchPINVOKE.payload_map_t_rm_fmtp_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.payload_map_t_rm_fmtp_get(swigCPtr); + return ret; + } + } + + public byte agreed_pt { + set { + freeswitchPINVOKE.payload_map_t_agreed_pt_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.payload_map_t_agreed_pt_get(swigCPtr); + return ret; + } + } + + public byte recv_pt { + set { + freeswitchPINVOKE.payload_map_t_recv_pt_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.payload_map_t_recv_pt_get(swigCPtr); + return ret; + } + } + + public string fmtp_out { + set { + freeswitchPINVOKE.payload_map_t_fmtp_out_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.payload_map_t_fmtp_out_get(swigCPtr); + return ret; + } + } + + public string remote_sdp_ip { + set { + freeswitchPINVOKE.payload_map_t_remote_sdp_ip_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.payload_map_t_remote_sdp_ip_get(swigCPtr); + return ret; + } + } + + public ushort remote_sdp_port { + set { + freeswitchPINVOKE.payload_map_t_remote_sdp_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.payload_map_t_remote_sdp_port_get(swigCPtr); + return ret; + } + } + + public int channels { + set { + freeswitchPINVOKE.payload_map_t_channels_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.payload_map_t_channels_get(swigCPtr); + return ret; + } + } + + public int adv_channels { + set { + freeswitchPINVOKE.payload_map_t_adv_channels_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.payload_map_t_adv_channels_get(swigCPtr); + return ret; + } + } + + public payload_map_t next { + set { + freeswitchPINVOKE.payload_map_t_next_set(swigCPtr, payload_map_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.payload_map_t_next_get(swigCPtr); + payload_map_t ret = (cPtr == IntPtr.Zero) ? null : new payload_map_t(cPtr, false); + return ret; + } + } + + public payload_map_t() : this(freeswitchPINVOKE.new_payload_map_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class profile_node_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal profile_node_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(profile_node_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~profile_node_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_profile_node_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string var { + set { + freeswitchPINVOKE.profile_node_t_var_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.profile_node_t_var_get(swigCPtr); + return ret; + } + } + + public string val { + set { + freeswitchPINVOKE.profile_node_t_val_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.profile_node_t_val_get(swigCPtr); + return ret; + } + } + + public profile_node_t next { + set { + freeswitchPINVOKE.profile_node_t_next_set(swigCPtr, profile_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.profile_node_t_next_get(swigCPtr); + profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false); + return ret; + } + } + + public profile_node_t() : this(freeswitchPINVOKE.new_profile_node_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum session_flag_t { + S_HUP = (1 << 0), + S_FREE = (1 << 1), + S_RDLOCK = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public partial class Stream : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Stream(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(Stream obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~Stream() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_Stream(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public Stream() : this(freeswitchPINVOKE.new_Stream__SWIG_0(), true) { + } + + public Stream(switch_stream_handle arg0) : this(freeswitchPINVOKE.new_Stream__SWIG_1(switch_stream_handle.getCPtr(arg0)), true) { + } + + public string read(SWIGTYPE_p_int len) { + string ret = freeswitchPINVOKE.Stream_read(swigCPtr, SWIGTYPE_p_int.getCPtr(len)); + return ret; + } + + public void Write(string data) { + freeswitchPINVOKE.Stream_Write(swigCPtr, data); + } + + public void raw_write(string data, int len) { + freeswitchPINVOKE.Stream_raw_write(swigCPtr, data, len); + } + + public string get_data() { + string ret = freeswitchPINVOKE.Stream_get_data(swigCPtr); + return ret; + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_a_2__icand_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_a_2__icand_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_2__icand_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_a_2__icand_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_apr_pool_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_apr_pool_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_apr_pool_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_apr_pool_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_cJSON { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_cJSON(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_cJSON() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_cJSON obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_FILE { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_FILE(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_FILE() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_FILE obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_float { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_float(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_float() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_float obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_cJSON_p_q_const__char_unsigned_long__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_p_switch_console_callback_match__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_q_const__char_p_switch_event_t_p_void__p_switch_xml obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__switch_log_node_t_enum_switch_log_level_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_codec__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_codec__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_codec__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_enum_switch_channel_callstate_t_p_switch_device_record_s__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session__int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session__int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session__int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session__int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_p_void__p_void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_void__p_void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_void__p_void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_void__p_void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_event__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_event__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_event__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_event__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_event__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_event__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_file_handle__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_ivr_dmachine_match__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_ivr_menu_p_char_p_char_size_t_p_void__switch_ivr_action_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_live_array_s_p_q_const__char_p_q_const__char_p_cJSON_p_void__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_media_bug_p_void__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_media_bug_p_void__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_media_bug_p_void__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_media_bug_p_void__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_scheduler_task__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_scheduler_task__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_scheduler_task__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_scheduler_task__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_speech_handle__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_speech_handle__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_speech_handle__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_thread_t_p_void__p_void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_switch_timer__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_timer__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_timer__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_timer__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_void_p_q_const__char__int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_void_p_q_const__char__int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_void_p_q_const__char__int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void_p_q_const__char__int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_void_p_switch_event__int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_void_p_switch_event__int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_void_p_switch_event__int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void_p_switch_event__int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_p_void__void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_void__void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_void__void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_void__void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_uint8_t_p_p_q_const__char_p_void__p_switch_xml obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_void__p_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_void__p_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_void__p_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_void__p_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_f_void__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_void__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_void__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_void__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_in6_addr { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_in6_addr(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_in6_addr() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_in6_addr obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_apr_pool_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_apr_pool_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_apr_pool_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_apr_pool_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_cJSON { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_cJSON(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_cJSON() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_cJSON obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_pid_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_pid_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_pid_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_pid_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_payload_map_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_payload_map_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_payload_map_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_payload_map_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_p_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_p_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_p_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_p_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_real_pcre { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_real_pcre(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_real_pcre() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_real_pcre obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_sqlite3 { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_sqlite3(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_sqlite3() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_sqlite3 obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_sqlite3_stmt { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_sqlite3_stmt(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_sqlite3_stmt() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_sqlite3_stmt obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_audio_resampler_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_audio_resampler_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_audio_resampler_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_audio_resampler_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_buffer { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_buffer(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_buffer() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_buffer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_cache_db_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_cache_db_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_cache_db_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_cache_db_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_caller_extension { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_caller_extension(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_caller_extension() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_caller_extension obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_channel { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_channel(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_channel() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_channel obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_codec_implementation { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_codec_implementation(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_codec_implementation() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_codec_implementation obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_console_callback_match { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_console_callback_match(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_console_callback_match() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_console_callback_match obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_core_port_allocator { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_core_port_allocator(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_core_port_allocator() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_core_port_allocator obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_core_session { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_core_session(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_core_session() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_core_session obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_core_session_message { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_core_session_message(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_core_session_message() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_core_session_message obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_device_record_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_device_record_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_device_record_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_device_record_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_event { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_event(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_event() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_event obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_event_node { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_event_node(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_event_node() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_event_node obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_file_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_file_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_file_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_file_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_frame { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_frame(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_frame() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_hashtable { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_hashtable(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_hashtable() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_hashtable obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_hashtable_iterator { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_hashtable_iterator(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_hashtable_iterator() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_hashtable_iterator obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_ivr_digit_stream { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_ivr_digit_stream(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_ivr_digit_stream() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_digit_stream obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_ivr_digit_stream_parser { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_ivr_digit_stream_parser(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_ivr_digit_stream_parser() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_digit_stream_parser obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_ivr_dmachine { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_ivr_dmachine(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_ivr_dmachine() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_dmachine obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_ivr_dmachine_match { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_ivr_dmachine_match(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_ivr_dmachine_match() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_dmachine_match obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_ivr_menu { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_ivr_menu(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_ivr_menu() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_menu obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_ivr_menu_xml_ctx { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_ivr_menu_xml_ctx(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_ivr_menu_xml_ctx() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_ivr_menu_xml_ctx obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_live_array_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_live_array_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_live_array_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_live_array_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_log_node_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_log_node_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_log_node_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_log_node_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_media_bug { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_media_bug(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_media_bug() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_media_bug obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_network_list { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_network_list(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_network_list() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_network_list obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_rtp { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_rtp(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_rtp() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_rtp obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_say_file_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_say_file_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_say_file_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_say_file_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_sql_queue_manager { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_sql_queue_manager(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_sql_queue_manager() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_sql_queue_manager obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_thread_data_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_thread_data_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_thread_data_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_thread_data_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_xml_binding { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_xml_binding(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_xml_binding() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_xml_binding obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_switch_xml { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_xml(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_xml() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_xml obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_p_void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_real_pcre { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_real_pcre(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_real_pcre() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_real_pcre obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_short { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_short(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_short() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_short obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_sockaddr { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_sockaddr(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_sockaddr() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_sockaddr obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_sockaddr_in6 { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_sockaddr_in6(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_sockaddr_in6() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_sockaddr_in6 obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_socklen_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_socklen_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_socklen_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_socklen_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_sqlite3 { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_sqlite3(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_sqlite3() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_sqlite3 obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_sqlite3_stmt { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_sqlite3_stmt(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_sqlite3_stmt() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_sqlite3_stmt obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_stfu_instance_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_stfu_instance_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_stfu_instance_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_stfu_instance_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_buffer { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_buffer(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_buffer() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_buffer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_cache_db_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_cache_db_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_cache_db_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_cache_db_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_call_cause_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_call_cause_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_call_cause_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_call_cause_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_channel { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_channel(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_channel() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_channel obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_core_port_allocator { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_core_port_allocator(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_core_port_allocator() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_core_port_allocator obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_core_session { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_core_session(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_core_session() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_core_session obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_event_types_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_event_types_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_event_types_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_event_types_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_file_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_file_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_file_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_file_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_hashtable { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_hashtable(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_hashtable() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_hashtable obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_hashtable_iterator { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_hashtable_iterator(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_hashtable_iterator() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_hashtable_iterator obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_interval_time_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_interval_time_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_interval_time_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_interval_time_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ivr_action_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ivr_action_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ivr_action_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_action_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ivr_digit_stream { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ivr_digit_stream(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ivr_digit_stream() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_digit_stream obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ivr_digit_stream_parser { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ivr_digit_stream_parser(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ivr_digit_stream_parser() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_digit_stream_parser obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ivr_dmachine { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ivr_dmachine(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ivr_dmachine() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_dmachine obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ivr_menu { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ivr_menu(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ivr_menu() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_menu obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ivr_menu_xml_ctx { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ivr_menu_xml_ctx(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ivr_menu_xml_ctx() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ivr_menu_xml_ctx obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_live_array_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_live_array_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_live_array_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_live_array_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_media_bug { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_media_bug(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_media_bug() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_media_bug obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_mutex_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_mutex_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_mutex_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_mutex_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_network_list { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_network_list(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_network_list() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_network_list obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_odbc_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_odbc_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_odbc_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_odbc_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_pgsql_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_pgsql_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_pgsql_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_pgsql_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_pollfd_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_pollfd_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_pollfd_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_pollfd_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_queue_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_queue_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_queue_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_queue_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_rtcp_frame { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_rtcp_frame(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_rtcp_frame() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_rtcp_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_rtp { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_rtp(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_rtp() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_rtp obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_rtp_flag_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_rtp_flag_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_rtp_flag_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_rtp_flag_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_say_file_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_say_file_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_say_file_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_say_file_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_size_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_size_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_size_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_size_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_sockaddr_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_sockaddr_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_sockaddr_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_sockaddr_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_socket_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_socket_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_socket_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_socket_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_sql_queue_manager { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_sql_queue_manager(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_sql_queue_manager() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_sql_queue_manager obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_ssize_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_ssize_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_ssize_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_ssize_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_thread_rwlock_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_thread_rwlock_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_thread_rwlock_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_thread_rwlock_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_thread_start_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_thread_start_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_thread_start_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_thread_start_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_time_exp_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_time_exp_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_time_exp_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_time_exp_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_time_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_time_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_time_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_time_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_switch_xml_binding { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_xml_binding(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_xml_binding() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_xml_binding obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_time_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_time_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_time_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_time_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_unsigned_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_unsigned_int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_unsigned_long { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_long(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_long() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_long obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_unsigned_short { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_short(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_short() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class SWIGTYPE_p_void { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_void() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_void obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_abc_type_t { + SWITCH_ABC_TYPE_INIT, + SWITCH_ABC_TYPE_READ, + SWITCH_ABC_TYPE_WRITE, + SWITCH_ABC_TYPE_WRITE_REPLACE, + SWITCH_ABC_TYPE_READ_REPLACE, + SWITCH_ABC_TYPE_READ_PING, + SWITCH_ABC_TYPE_TAP_NATIVE_READ, + SWITCH_ABC_TYPE_TAP_NATIVE_WRITE, + SWITCH_ABC_TYPE_CLOSE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_api_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_api_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_api_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_api_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_api_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_api_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_api_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public string desc { + set { + freeswitchPINVOKE.switch_api_interface_desc_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_api_interface_desc_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t function { + set { + freeswitchPINVOKE.switch_api_interface_function_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_function_get(swigCPtr); + SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public string syntax { + set { + freeswitchPINVOKE.switch_api_interface_syntax_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_api_interface_syntax_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_api_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_api_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_api_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_api_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_api_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_api_interface next { + set { + freeswitchPINVOKE.switch_api_interface_next_set(swigCPtr, switch_api_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_api_interface_next_get(swigCPtr); + switch_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_api_interface(cPtr, false); + return ret; + } + } + + public switch_api_interface() : this(freeswitchPINVOKE.new_switch_api_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_application_flag_enum_t { + SAF_NONE = 0, + SAF_SUPPORT_NOMEDIA = (1 << 0), + SAF_ROUTING_EXEC = (1 << 1), + SAF_MEDIA_TAP = (1 << 2), + SAF_ZOMBIE_EXEC = (1 << 3), + SAF_NO_LOOPBACK = (1 << 4) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_application_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_application_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_application_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_application_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_application_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_application_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_application_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void application_function { + set { + freeswitchPINVOKE.switch_application_interface_application_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_application_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void(cPtr, false); + return ret; + } + } + + public string long_desc { + set { + freeswitchPINVOKE.switch_application_interface_long_desc_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_application_interface_long_desc_get(swigCPtr); + return ret; + } + } + + public string short_desc { + set { + freeswitchPINVOKE.switch_application_interface_short_desc_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_application_interface_short_desc_get(swigCPtr); + return ret; + } + } + + public string syntax { + set { + freeswitchPINVOKE.switch_application_interface_syntax_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_application_interface_syntax_get(swigCPtr); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_application_interface_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_application_interface_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_application_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_application_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_application_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_application_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_application_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_application_interface next { + set { + freeswitchPINVOKE.switch_application_interface_next_set(swigCPtr, switch_application_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_application_interface_next_get(swigCPtr); + switch_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_application_interface(cPtr, false); + return ret; + } + } + + public switch_application_interface() : this(freeswitchPINVOKE.new_switch_application_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_app_log : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_app_log(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_app_log obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_app_log() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_app_log(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string app { + set { + freeswitchPINVOKE.switch_app_log_app_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_app_log_app_get(swigCPtr); + return ret; + } + } + + public string arg { + set { + freeswitchPINVOKE.switch_app_log_arg_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_app_log_arg_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t stamp { + set { + freeswitchPINVOKE.switch_app_log_stamp_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_app_log_stamp_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_app_log next { + set { + freeswitchPINVOKE.switch_app_log_next_set(swigCPtr, switch_app_log.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_app_log_next_get(swigCPtr); + switch_app_log ret = (cPtr == IntPtr.Zero) ? null : new switch_app_log(cPtr, false); + return ret; + } + } + + public switch_app_log() : this(freeswitchPINVOKE.new_switch_app_log(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_asr_flag_enum_t { + SWITCH_ASR_FLAG_NONE = 0, + SWITCH_ASR_FLAG_DATA = (1 << 0), + SWITCH_ASR_FLAG_FREE_POOL = (1 << 1), + SWITCH_ASR_FLAG_CLOSED = (1 << 2), + SWITCH_ASR_FLAG_FIRE_EVENTS = (1 << 3), + SWITCH_ASR_FLAG_AUTO_RESUME = (1 << 4) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_asr_handle : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_asr_handle(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_asr_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_asr_handle() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_asr_handle(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_asr_interface asr_interface { + set { + freeswitchPINVOKE.switch_asr_handle_asr_interface_set(swigCPtr, switch_asr_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_asr_interface_get(swigCPtr); + switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_asr_handle_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_asr_handle_flags_get(swigCPtr); + return ret; + } + } + + public string name { + set { + freeswitchPINVOKE.switch_asr_handle_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_asr_handle_name_get(swigCPtr); + return ret; + } + } + + public string codec { + set { + freeswitchPINVOKE.switch_asr_handle_codec_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_asr_handle_codec_get(swigCPtr); + return ret; + } + } + + public uint rate { + set { + freeswitchPINVOKE.switch_asr_handle_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_asr_handle_rate_get(swigCPtr); + return ret; + } + } + + public string grammar { + set { + freeswitchPINVOKE.switch_asr_handle_grammar_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_asr_handle_grammar_get(swigCPtr); + return ret; + } + } + + public string param { + set { + freeswitchPINVOKE.switch_asr_handle_param_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_asr_handle_param_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t memory_pool { + set { + freeswitchPINVOKE.switch_asr_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_memory_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_buffer buffer { + set { + freeswitchPINVOKE.switch_asr_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_buffer_get(swigCPtr); + SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char dbuf { + set { + freeswitchPINVOKE.switch_asr_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_dbuf_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t dbuflen { + set { + freeswitchPINVOKE.switch_asr_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_asr_handle_dbuflen_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_audio_resampler_t resampler { + set { + freeswitchPINVOKE.switch_asr_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_resampler_get(swigCPtr); + switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false); + return ret; + } + } + + public uint samplerate { + set { + freeswitchPINVOKE.switch_asr_handle_samplerate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_asr_handle_samplerate_get(swigCPtr); + return ret; + } + } + + public uint native_rate { + set { + freeswitchPINVOKE.switch_asr_handle_native_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_asr_handle_native_rate_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_asr_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_handle_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public switch_asr_handle() : this(freeswitchPINVOKE.new_switch_asr_handle(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_asr_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_asr_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_asr_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_asr_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_asr_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_asr_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_asr_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t asr_open { + set { + freeswitchPINVOKE.switch_asr_interface_asr_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_open_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_int_p_q_const__char_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t asr_load_grammar { + set { + freeswitchPINVOKE.switch_asr_interface_asr_load_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_load_grammar_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t asr_unload_grammar { + set { + freeswitchPINVOKE.switch_asr_interface_asr_unload_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_unload_grammar_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t asr_close { + set { + freeswitchPINVOKE.switch_asr_interface_asr_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_close_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t asr_feed { + set { + freeswitchPINVOKE.switch_asr_interface_asr_feed_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_feed_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_void_unsigned_int_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_resume { + set { + freeswitchPINVOKE.switch_asr_interface_asr_resume_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_resume_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_pause { + set { + freeswitchPINVOKE.switch_asr_interface_asr_pause_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_pause_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t asr_check_results { + set { + freeswitchPINVOKE.switch_asr_interface_asr_check_results_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_check_results_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t asr_get_results { + set { + freeswitchPINVOKE.switch_asr_interface_asr_get_results_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_get_results_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_p_char_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t asr_get_result_headers { + set { + freeswitchPINVOKE.switch_asr_interface_asr_get_result_headers_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_get_result_headers_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_p_switch_event_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_start_input_timers { + set { + freeswitchPINVOKE.switch_asr_interface_asr_start_input_timers_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_start_input_timers_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void asr_text_param { + set { + freeswitchPINVOKE.switch_asr_interface_asr_text_param_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_text_param_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_char_p_q_const__char__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void asr_numeric_param { + set { + freeswitchPINVOKE.switch_asr_interface_asr_numeric_param_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_numeric_param_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_char_int__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void asr_float_param { + set { + freeswitchPINVOKE.switch_asr_interface_asr_float_param_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_float_param_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_char_double__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_asr_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_asr_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_asr_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_asr_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_asr_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_asr_interface next { + set { + freeswitchPINVOKE.switch_asr_interface_next_set(swigCPtr, switch_asr_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_next_get(swigCPtr); + switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t asr_enable_grammar { + set { + freeswitchPINVOKE.switch_asr_interface_asr_enable_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_enable_grammar_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t asr_disable_grammar { + set { + freeswitchPINVOKE.switch_asr_interface_asr_disable_grammar_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_disable_grammar_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t asr_disable_all_grammars { + set { + freeswitchPINVOKE.switch_asr_interface_asr_disable_all_grammars_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_disable_all_grammars_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t asr_feed_dtmf { + set { + freeswitchPINVOKE.switch_asr_interface_asr_feed_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_asr_interface_asr_feed_dtmf_get(swigCPtr); + SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_asr_handle_p_q_const__switch_dtmf_t_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_asr_interface() : this(freeswitchPINVOKE.new_switch_asr_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_audio_col_t { + SWITCH_AUDIO_COL_STR_TITLE = 0x01, + SWITCH_AUDIO_COL_STR_COPYRIGHT = 0x02, + SWITCH_AUDIO_COL_STR_SOFTWARE = 0x03, + SWITCH_AUDIO_COL_STR_ARTIST = 0x04, + SWITCH_AUDIO_COL_STR_COMMENT = 0x05, + SWITCH_AUDIO_COL_STR_DATE = 0x06 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_audio_resampler_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_audio_resampler_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_audio_resampler_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_audio_resampler_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_audio_resampler_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_void resampler { + set { + freeswitchPINVOKE.switch_audio_resampler_t_resampler_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_audio_resampler_t_resampler_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public int from_rate { + set { + freeswitchPINVOKE.switch_audio_resampler_t_from_rate_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_audio_resampler_t_from_rate_get(swigCPtr); + return ret; + } + } + + public int to_rate { + set { + freeswitchPINVOKE.switch_audio_resampler_t_to_rate_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_audio_resampler_t_to_rate_get(swigCPtr); + return ret; + } + } + + public double factor { + set { + freeswitchPINVOKE.switch_audio_resampler_t_factor_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_audio_resampler_t_factor_get(swigCPtr); + return ret; + } + } + + public double rfactor { + set { + freeswitchPINVOKE.switch_audio_resampler_t_rfactor_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_audio_resampler_t_rfactor_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_short to { + set { + freeswitchPINVOKE.switch_audio_resampler_t_to_set(swigCPtr, SWIGTYPE_p_short.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_audio_resampler_t_to_get(swigCPtr); + SWIGTYPE_p_short ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_short(cPtr, false); + return ret; + } + } + + public uint to_len { + set { + freeswitchPINVOKE.switch_audio_resampler_t_to_len_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_audio_resampler_t_to_len_get(swigCPtr); + return ret; + } + } + + public uint to_size { + set { + freeswitchPINVOKE.switch_audio_resampler_t_to_size_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_audio_resampler_t_to_size_get(swigCPtr); + return ret; + } + } + + public int channels { + set { + freeswitchPINVOKE.switch_audio_resampler_t_channels_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_audio_resampler_t_channels_get(swigCPtr); + return ret; + } + } + + public switch_audio_resampler_t() : this(freeswitchPINVOKE.new_switch_audio_resampler_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_bind_flag_enum_t { + SBF_DIAL_ALEG = (1 << 0), + SBF_EXEC_ALEG = (1 << 1), + SBF_DIAL_BLEG = (1 << 2), + SBF_EXEC_BLEG = (1 << 3), + SBF_EXEC_OPPOSITE = (1 << 4), + SBF_EXEC_SAME = (1 << 5), + SBF_ONCE = (1 << 6), + SBF_EXEC_INLINE = (1 << 7) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_bitpack_mode_t { + SWITCH_BITPACK_MODE_RFC3551, + SWITCH_BITPACK_MODE_AAL2 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_bitpack_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_bitpack_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_bitpack_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_bitpack_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_bitpack_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_unsigned_char buf { + set { + freeswitchPINVOKE.switch_bitpack_t_buf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_bitpack_t_buf_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public uint buflen { + set { + freeswitchPINVOKE.switch_bitpack_t_buflen_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_bitpack_t_buflen_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char cur { + set { + freeswitchPINVOKE.switch_bitpack_t_cur_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_bitpack_t_cur_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public uint bytes { + set { + freeswitchPINVOKE.switch_bitpack_t_bytes_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_bitpack_t_bytes_get(swigCPtr); + return ret; + } + } + + public uint bits_tot { + set { + freeswitchPINVOKE.switch_bitpack_t_bits_tot_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_bitpack_t_bits_tot_get(swigCPtr); + return ret; + } + } + + public byte bits_cur { + set { + freeswitchPINVOKE.switch_bitpack_t_bits_cur_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_bits_cur_get(swigCPtr); + return ret; + } + } + + public byte bits_rem { + set { + freeswitchPINVOKE.switch_bitpack_t_bits_rem_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_bits_rem_get(swigCPtr); + return ret; + } + } + + public byte frame_bits { + set { + freeswitchPINVOKE.switch_bitpack_t_frame_bits_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_frame_bits_get(swigCPtr); + return ret; + } + } + + public byte shiftby { + set { + freeswitchPINVOKE.switch_bitpack_t_shiftby_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_shiftby_get(swigCPtr); + return ret; + } + } + + public byte this_byte { + set { + freeswitchPINVOKE.switch_bitpack_t_this_byte_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_this_byte_get(swigCPtr); + return ret; + } + } + + public byte under { + set { + freeswitchPINVOKE.switch_bitpack_t_under_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_under_get(swigCPtr); + return ret; + } + } + + public byte over { + set { + freeswitchPINVOKE.switch_bitpack_t_over_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_bitpack_t_over_get(swigCPtr); + return ret; + } + } + + public switch_bitpack_mode_t mode { + set { + freeswitchPINVOKE.switch_bitpack_t_mode_set(swigCPtr, (int)value); + } + get { + switch_bitpack_mode_t ret = (switch_bitpack_mode_t)freeswitchPINVOKE.switch_bitpack_t_mode_get(swigCPtr); + return ret; + } + } + + public switch_bitpack_t() : this(freeswitchPINVOKE.new_switch_bitpack_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_bool_t { + SWITCH_FALSE = 0, + SWITCH_TRUE = 1 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_cache_db_connection_options_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_cache_db_connection_options_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_cache_db_connection_options_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_cache_db_connection_options_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_cache_db_connection_options_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_cache_db_core_db_options_t core_db_options { + set { + freeswitchPINVOKE.switch_cache_db_connection_options_t_core_db_options_set(swigCPtr, switch_cache_db_core_db_options_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_connection_options_t_core_db_options_get(swigCPtr); + switch_cache_db_core_db_options_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_core_db_options_t(cPtr, false); + return ret; + } + } + + public switch_cache_db_odbc_options_t odbc_options { + set { + freeswitchPINVOKE.switch_cache_db_connection_options_t_odbc_options_set(swigCPtr, switch_cache_db_odbc_options_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_connection_options_t_odbc_options_get(swigCPtr); + switch_cache_db_odbc_options_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_odbc_options_t(cPtr, false); + return ret; + } + } + + public switch_cache_db_pgsql_options_t pgsql_options { + set { + freeswitchPINVOKE.switch_cache_db_connection_options_t_pgsql_options_set(swigCPtr, switch_cache_db_pgsql_options_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_connection_options_t_pgsql_options_get(swigCPtr); + switch_cache_db_pgsql_options_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_pgsql_options_t(cPtr, false); + return ret; + } + } + + public switch_cache_db_connection_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_connection_options_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_cache_db_core_db_options_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_cache_db_core_db_options_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_cache_db_core_db_options_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_cache_db_core_db_options_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_cache_db_core_db_options_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string db_path { + set { + freeswitchPINVOKE.switch_cache_db_core_db_options_t_db_path_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_cache_db_core_db_options_t_db_path_get(swigCPtr); + return ret; + } + } + + public switch_cache_db_core_db_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_core_db_options_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_cache_db_handle_type_t { + SCDB_TYPE_CORE_DB, + SCDB_TYPE_ODBC, + SCDB_TYPE_PGSQL +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_cache_db_native_handle_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_cache_db_native_handle_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_cache_db_native_handle_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_cache_db_native_handle_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_cache_db_native_handle_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_sqlite3 core_db_dbh { + set { + freeswitchPINVOKE.switch_cache_db_native_handle_t_core_db_dbh_set(swigCPtr, SWIGTYPE_p_sqlite3.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_native_handle_t_core_db_dbh_get(swigCPtr); + SWIGTYPE_p_sqlite3 ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_sqlite3(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_odbc_handle odbc_dbh { + set { + freeswitchPINVOKE.switch_cache_db_native_handle_t_odbc_dbh_set(swigCPtr, SWIGTYPE_p_switch_odbc_handle.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_native_handle_t_odbc_dbh_get(swigCPtr); + SWIGTYPE_p_switch_odbc_handle ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_odbc_handle(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_pgsql_handle pgsql_dbh { + set { + freeswitchPINVOKE.switch_cache_db_native_handle_t_pgsql_dbh_set(swigCPtr, SWIGTYPE_p_switch_pgsql_handle.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_native_handle_t_pgsql_dbh_get(swigCPtr); + SWIGTYPE_p_switch_pgsql_handle ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_pgsql_handle(cPtr, false); + return ret; + } + } + + public switch_cache_db_native_handle_t() : this(freeswitchPINVOKE.new_switch_cache_db_native_handle_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_cache_db_odbc_options_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_cache_db_odbc_options_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_cache_db_odbc_options_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_cache_db_odbc_options_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_cache_db_odbc_options_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string dsn { + set { + freeswitchPINVOKE.switch_cache_db_odbc_options_t_dsn_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_cache_db_odbc_options_t_dsn_get(swigCPtr); + return ret; + } + } + + public string user { + set { + freeswitchPINVOKE.switch_cache_db_odbc_options_t_user_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_cache_db_odbc_options_t_user_get(swigCPtr); + return ret; + } + } + + public string pass { + set { + freeswitchPINVOKE.switch_cache_db_odbc_options_t_pass_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_cache_db_odbc_options_t_pass_get(swigCPtr); + return ret; + } + } + + public switch_cache_db_odbc_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_odbc_options_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_cache_db_pgsql_options_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_cache_db_pgsql_options_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_cache_db_pgsql_options_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_cache_db_pgsql_options_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_cache_db_pgsql_options_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string dsn { + set { + freeswitchPINVOKE.switch_cache_db_pgsql_options_t_dsn_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_cache_db_pgsql_options_t_dsn_get(swigCPtr); + return ret; + } + } + + public switch_cache_db_pgsql_options_t() : this(freeswitchPINVOKE.new_switch_cache_db_pgsql_options_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_call_cause_t { + SWITCH_CAUSE_NONE = 0, + SWITCH_CAUSE_UNALLOCATED_NUMBER = 1, + SWITCH_CAUSE_NO_ROUTE_TRANSIT_NET = 2, + SWITCH_CAUSE_NO_ROUTE_DESTINATION = 3, + SWITCH_CAUSE_CHANNEL_UNACCEPTABLE = 6, + SWITCH_CAUSE_CALL_AWARDED_DELIVERED = 7, + SWITCH_CAUSE_NORMAL_CLEARING = 16, + SWITCH_CAUSE_USER_BUSY = 17, + SWITCH_CAUSE_NO_USER_RESPONSE = 18, + SWITCH_CAUSE_NO_ANSWER = 19, + SWITCH_CAUSE_SUBSCRIBER_ABSENT = 20, + SWITCH_CAUSE_CALL_REJECTED = 21, + SWITCH_CAUSE_NUMBER_CHANGED = 22, + SWITCH_CAUSE_REDIRECTION_TO_NEW_DESTINATION = 23, + SWITCH_CAUSE_EXCHANGE_ROUTING_ERROR = 25, + SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER = 27, + SWITCH_CAUSE_INVALID_NUMBER_FORMAT = 28, + SWITCH_CAUSE_FACILITY_REJECTED = 29, + SWITCH_CAUSE_RESPONSE_TO_STATUS_ENQUIRY = 30, + SWITCH_CAUSE_NORMAL_UNSPECIFIED = 31, + SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION = 34, + SWITCH_CAUSE_NETWORK_OUT_OF_ORDER = 38, + SWITCH_CAUSE_NORMAL_TEMPORARY_FAILURE = 41, + SWITCH_CAUSE_SWITCH_CONGESTION = 42, + SWITCH_CAUSE_ACCESS_INFO_DISCARDED = 43, + SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL = 44, + SWITCH_CAUSE_PRE_EMPTED = 45, + SWITCH_CAUSE_FACILITY_NOT_SUBSCRIBED = 50, + SWITCH_CAUSE_OUTGOING_CALL_BARRED = 52, + SWITCH_CAUSE_INCOMING_CALL_BARRED = 54, + SWITCH_CAUSE_BEARERCAPABILITY_NOTAUTH = 57, + SWITCH_CAUSE_BEARERCAPABILITY_NOTAVAIL = 58, + SWITCH_CAUSE_SERVICE_UNAVAILABLE = 63, + SWITCH_CAUSE_BEARERCAPABILITY_NOTIMPL = 65, + SWITCH_CAUSE_CHAN_NOT_IMPLEMENTED = 66, + SWITCH_CAUSE_FACILITY_NOT_IMPLEMENTED = 69, + SWITCH_CAUSE_SERVICE_NOT_IMPLEMENTED = 79, + SWITCH_CAUSE_INVALID_CALL_REFERENCE = 81, + SWITCH_CAUSE_INCOMPATIBLE_DESTINATION = 88, + SWITCH_CAUSE_INVALID_MSG_UNSPECIFIED = 95, + SWITCH_CAUSE_MANDATORY_IE_MISSING = 96, + SWITCH_CAUSE_MESSAGE_TYPE_NONEXIST = 97, + SWITCH_CAUSE_WRONG_MESSAGE = 98, + SWITCH_CAUSE_IE_NONEXIST = 99, + SWITCH_CAUSE_INVALID_IE_CONTENTS = 100, + SWITCH_CAUSE_WRONG_CALL_STATE = 101, + SWITCH_CAUSE_RECOVERY_ON_TIMER_EXPIRE = 102, + SWITCH_CAUSE_MANDATORY_IE_LENGTH_ERROR = 103, + SWITCH_CAUSE_PROTOCOL_ERROR = 111, + SWITCH_CAUSE_INTERWORKING = 127, + SWITCH_CAUSE_SUCCESS = 142, + SWITCH_CAUSE_ORIGINATOR_CANCEL = 487, + SWITCH_CAUSE_CRASH = 500, + SWITCH_CAUSE_SYSTEM_SHUTDOWN = 501, + SWITCH_CAUSE_LOSE_RACE = 502, + SWITCH_CAUSE_MANAGER_REQUEST = 503, + SWITCH_CAUSE_BLIND_TRANSFER = 600, + SWITCH_CAUSE_ATTENDED_TRANSFER = 601, + SWITCH_CAUSE_ALLOTTED_TIMEOUT = 602, + SWITCH_CAUSE_USER_CHALLENGE = 603, + SWITCH_CAUSE_MEDIA_TIMEOUT = 604, + SWITCH_CAUSE_PICKED_OFF = 605, + SWITCH_CAUSE_USER_NOT_REGISTERED = 606, + SWITCH_CAUSE_PROGRESS_TIMEOUT = 607, + SWITCH_CAUSE_INVALID_GATEWAY = 608, + SWITCH_CAUSE_GATEWAY_DOWN = 609, + SWITCH_CAUSE_INVALID_URL = 610, + SWITCH_CAUSE_INVALID_PROFILE = 611, + SWITCH_CAUSE_NO_PICKUP = 612, + SWITCH_CAUSE_SRTP_READ_ERROR = 613 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_call_direction_t { + SWITCH_CALL_DIRECTION_INBOUND, + SWITCH_CALL_DIRECTION_OUTBOUND +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_caller_application : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_caller_application(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_caller_application obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_caller_application() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_caller_application(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string application_name { + set { + freeswitchPINVOKE.switch_caller_application_application_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_application_application_name_get(swigCPtr); + return ret; + } + } + + public string application_data { + set { + freeswitchPINVOKE.switch_caller_application_application_data_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_application_application_data_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void application_function { + set { + freeswitchPINVOKE.switch_caller_application_application_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_application_application_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void(cPtr, false); + return ret; + } + } + + public switch_caller_application next { + set { + freeswitchPINVOKE.switch_caller_application_next_set(swigCPtr, switch_caller_application.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_application_next_get(swigCPtr); + switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); + return ret; + } + } + + public switch_caller_application() : this(freeswitchPINVOKE.new_switch_caller_application(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_caller_extension : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_caller_extension(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_caller_extension obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_caller_extension() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_caller_extension(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string extension_name { + set { + freeswitchPINVOKE.switch_caller_extension_extension_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_extension_extension_name_get(swigCPtr); + return ret; + } + } + + public string extension_number { + set { + freeswitchPINVOKE.switch_caller_extension_extension_number_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_extension_extension_number_get(swigCPtr); + return ret; + } + } + + public switch_caller_application current_application { + set { + freeswitchPINVOKE.switch_caller_extension_current_application_set(swigCPtr, switch_caller_application.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_current_application_get(swigCPtr); + switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); + return ret; + } + } + + public switch_caller_application last_application { + set { + freeswitchPINVOKE.switch_caller_extension_last_application_set(swigCPtr, switch_caller_application.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_last_application_get(swigCPtr); + switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); + return ret; + } + } + + public switch_caller_application applications { + set { + freeswitchPINVOKE.switch_caller_extension_applications_set(swigCPtr, switch_caller_application.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_applications_get(swigCPtr); + switch_caller_application ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_application(cPtr, false); + return ret; + } + } + + public switch_caller_profile children { + set { + freeswitchPINVOKE.switch_caller_extension_children_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_children_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_caller_extension next { + set { + freeswitchPINVOKE.switch_caller_extension_next_set(swigCPtr, switch_caller_extension.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_next_get(swigCPtr); + switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); + return ret; + } + } + + public switch_caller_extension() : this(freeswitchPINVOKE.new_switch_caller_extension(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_caller_profile : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_caller_profile(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_caller_profile obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_caller_profile() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_caller_profile(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string username { + set { + freeswitchPINVOKE.switch_caller_profile_username_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_username_get(swigCPtr); + return ret; + } + } + + public string dialplan { + set { + freeswitchPINVOKE.switch_caller_profile_dialplan_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_dialplan_get(swigCPtr); + return ret; + } + } + + public string caller_id_name { + set { + freeswitchPINVOKE.switch_caller_profile_caller_id_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_caller_id_name_get(swigCPtr); + return ret; + } + } + + public string caller_id_number { + set { + freeswitchPINVOKE.switch_caller_profile_caller_id_number_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_caller_id_number_get(swigCPtr); + return ret; + } + } + + public string orig_caller_id_name { + set { + freeswitchPINVOKE.switch_caller_profile_orig_caller_id_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_orig_caller_id_name_get(swigCPtr); + return ret; + } + } + + public string orig_caller_id_number { + set { + freeswitchPINVOKE.switch_caller_profile_orig_caller_id_number_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_orig_caller_id_number_get(swigCPtr); + return ret; + } + } + + public string callee_id_name { + set { + freeswitchPINVOKE.switch_caller_profile_callee_id_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_callee_id_name_get(swigCPtr); + return ret; + } + } + + public string callee_id_number { + set { + freeswitchPINVOKE.switch_caller_profile_callee_id_number_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_callee_id_number_get(swigCPtr); + return ret; + } + } + + public byte caller_ton { + set { + freeswitchPINVOKE.switch_caller_profile_caller_ton_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_caller_ton_get(swigCPtr); + return ret; + } + } + + public byte caller_numplan { + set { + freeswitchPINVOKE.switch_caller_profile_caller_numplan_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_caller_numplan_get(swigCPtr); + return ret; + } + } + + public string network_addr { + set { + freeswitchPINVOKE.switch_caller_profile_network_addr_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_network_addr_get(swigCPtr); + return ret; + } + } + + public string ani { + set { + freeswitchPINVOKE.switch_caller_profile_ani_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_ani_get(swigCPtr); + return ret; + } + } + + public byte ani_ton { + set { + freeswitchPINVOKE.switch_caller_profile_ani_ton_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_ani_ton_get(swigCPtr); + return ret; + } + } + + public byte ani_numplan { + set { + freeswitchPINVOKE.switch_caller_profile_ani_numplan_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_ani_numplan_get(swigCPtr); + return ret; + } + } + + public string aniii { + set { + freeswitchPINVOKE.switch_caller_profile_aniii_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_aniii_get(swigCPtr); + return ret; + } + } + + public string rdnis { + set { + freeswitchPINVOKE.switch_caller_profile_rdnis_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_rdnis_get(swigCPtr); + return ret; + } + } + + public byte rdnis_ton { + set { + freeswitchPINVOKE.switch_caller_profile_rdnis_ton_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_rdnis_ton_get(swigCPtr); + return ret; + } + } + + public byte rdnis_numplan { + set { + freeswitchPINVOKE.switch_caller_profile_rdnis_numplan_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_rdnis_numplan_get(swigCPtr); + return ret; + } + } + + public string destination_number { + set { + freeswitchPINVOKE.switch_caller_profile_destination_number_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_destination_number_get(swigCPtr); + return ret; + } + } + + public byte destination_number_ton { + set { + freeswitchPINVOKE.switch_caller_profile_destination_number_ton_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_destination_number_ton_get(swigCPtr); + return ret; + } + } + + public byte destination_number_numplan { + set { + freeswitchPINVOKE.switch_caller_profile_destination_number_numplan_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_caller_profile_destination_number_numplan_get(swigCPtr); + return ret; + } + } + + public string source { + set { + freeswitchPINVOKE.switch_caller_profile_source_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_source_get(swigCPtr); + return ret; + } + } + + public string chan_name { + set { + freeswitchPINVOKE.switch_caller_profile_chan_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_chan_name_get(swigCPtr); + return ret; + } + } + + public string uuid { + set { + freeswitchPINVOKE.switch_caller_profile_uuid_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_uuid_get(swigCPtr); + return ret; + } + } + + public string context { + set { + freeswitchPINVOKE.switch_caller_profile_context_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_context_get(swigCPtr); + return ret; + } + } + + public string profile_index { + set { + freeswitchPINVOKE.switch_caller_profile_profile_index_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_profile_index_get(swigCPtr); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_caller_profile_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_caller_profile_flags_get(swigCPtr); + return ret; + } + } + + public switch_caller_profile originator_caller_profile { + set { + freeswitchPINVOKE.switch_caller_profile_originator_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_originator_caller_profile_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_caller_profile originatee_caller_profile { + set { + freeswitchPINVOKE.switch_caller_profile_originatee_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_originatee_caller_profile_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_caller_profile origination_caller_profile { + set { + freeswitchPINVOKE.switch_caller_profile_origination_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_origination_caller_profile_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_caller_profile hunt_caller_profile { + set { + freeswitchPINVOKE.switch_caller_profile_hunt_caller_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_hunt_caller_profile_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_channel_timetable times { + set { + freeswitchPINVOKE.switch_caller_profile_times_set(swigCPtr, switch_channel_timetable.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_times_get(swigCPtr); + switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); + return ret; + } + } + + public switch_channel_timetable old_times { + set { + freeswitchPINVOKE.switch_caller_profile_old_times_set(swigCPtr, switch_channel_timetable.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_old_times_get(swigCPtr); + switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); + return ret; + } + } + + public switch_caller_extension caller_extension { + set { + freeswitchPINVOKE.switch_caller_profile_caller_extension_set(swigCPtr, switch_caller_extension.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_caller_extension_get(swigCPtr); + switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t pool { + set { + freeswitchPINVOKE.switch_caller_profile_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public switch_caller_profile next { + set { + freeswitchPINVOKE.switch_caller_profile_next_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_next_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_call_direction_t direction { + set { + freeswitchPINVOKE.switch_caller_profile_direction_set(swigCPtr, (int)value); + } + get { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_caller_profile_direction_get(swigCPtr); + return ret; + } + } + + public switch_call_direction_t logical_direction { + set { + freeswitchPINVOKE.switch_caller_profile_logical_direction_set(swigCPtr, (int)value); + } + get { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_caller_profile_logical_direction_get(swigCPtr); + return ret; + } + } + + public profile_node_t soft { + set { + freeswitchPINVOKE.switch_caller_profile_soft_set(swigCPtr, profile_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_soft_get(swigCPtr); + profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false); + return ret; + } + } + + public string uuid_str { + set { + freeswitchPINVOKE.switch_caller_profile_uuid_str_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_uuid_str_get(swigCPtr); + return ret; + } + } + + public string clone_of { + set { + freeswitchPINVOKE.switch_caller_profile_clone_of_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_clone_of_get(swigCPtr); + return ret; + } + } + + public string transfer_source { + set { + freeswitchPINVOKE.switch_caller_profile_transfer_source_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_caller_profile_transfer_source_get(swigCPtr); + return ret; + } + } + + public switch_caller_profile() : this(freeswitchPINVOKE.new_switch_caller_profile(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_caller_profile_flag_enum_t { + SWITCH_CPF_NONE = 0, + SWITCH_CPF_SCREEN = (1 << 0), + SWITCH_CPF_HIDE_NAME = (1 << 1), + SWITCH_CPF_HIDE_NUMBER = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_channel_app_flag_t { + CF_APP_TAGGED = (1 << 0), + CF_APP_T38 = (1 << 1), + CF_APP_T38_REQ = (1 << 2), + CF_APP_T38_FAIL = (1 << 3), + CF_APP_T38_NEGOTIATED = (1 << 4) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_channel_callstate_t { + CCS_DOWN, + CCS_DIALING, + CCS_RINGING, + CCS_EARLY, + CCS_ACTIVE, + CCS_HELD, + CCS_RING_WAIT, + CCS_HANGUP, + CCS_UNHELD +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_channel_cap_t { + CC_MEDIA_ACK = 1, + CC_BYPASS_MEDIA, + CC_PROXY_MEDIA, + CC_JITTERBUFFER, + CC_FS_RTP, + CC_QUEUEABLE_DTMF_DELAY, + CC_FLAG_MAX +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_channel_flag_t { + CF_ANSWERED = 1, + CF_OUTBOUND, + CF_EARLY_MEDIA, + CF_BRIDGE_ORIGINATOR, + CF_UUID_BRIDGE_ORIGINATOR, + CF_TRANSFER, + CF_ACCEPT_CNG, + CF_REDIRECT, + CF_BRIDGED, + CF_HOLD, + CF_SERVICE, + CF_TAGGED, + CF_WINNER, + CF_CONTROLLED, + CF_PROXY_MODE, + CF_PROXY_OFF, + CF_SUSPEND, + CF_EVENT_PARSE, + CF_GEN_RINGBACK, + CF_RING_READY, + CF_BREAK, + CF_BROADCAST, + CF_UNICAST, + CF_VIDEO, + CF_EVENT_LOCK, + CF_EVENT_LOCK_PRI, + CF_RESET, + CF_ORIGINATING, + CF_STOP_BROADCAST, + CF_PROXY_MEDIA, + CF_INNER_BRIDGE, + CF_REQ_MEDIA, + CF_VERBOSE_EVENTS, + CF_PAUSE_BUGS, + CF_DIVERT_EVENTS, + CF_BLOCK_STATE, + CF_FS_RTP, + CF_REPORTING, + CF_PARK, + CF_TIMESTAMP_SET, + CF_ORIGINATOR, + CF_XFER_ZOMBIE, + CF_MEDIA_ACK, + CF_THREAD_SLEEPING, + CF_DISABLE_RINGBACK, + CF_NOT_READY, + CF_SIGNAL_BRIDGE_TTL, + CF_MEDIA_BRIDGE_TTL, + CF_BYPASS_MEDIA_AFTER_BRIDGE, + CF_LEG_HOLDING, + CF_BROADCAST_DROP_MEDIA, + CF_EARLY_HANGUP, + CF_MEDIA_SET, + CF_CONSUME_ON_ORIGINATE, + CF_PASSTHRU_PTIME_MISMATCH, + CF_BRIDGE_NOWRITE, + CF_RECOVERED, + CF_JITTERBUFFER, + CF_JITTERBUFFER_PLC, + CF_DIALPLAN, + CF_BLEG, + CF_BLOCK_BROADCAST_UNTIL_MEDIA, + CF_CNG_PLC, + CF_ATTENDED_TRANSFER, + CF_LAZY_ATTENDED_TRANSFER, + CF_SIGNAL_DATA, + CF_SIMPLIFY, + CF_ZOMBIE_EXEC, + CF_INTERCEPT, + CF_INTERCEPTED, + CF_VIDEO_REFRESH_REQ, + CF_SERVICE_AUDIO, + CF_SERVICE_VIDEO, + CF_ZRTP_PASSTHRU_REQ, + CF_ZRTP_PASSTHRU, + CF_ZRTP_HASH, + CF_CHANNEL_SWAP, + CF_DEVICE_LEG, + CF_FINAL_DEVICE_LEG, + CF_PICKUP, + CF_CONFIRM_BLIND_TRANSFER, + CF_NO_PRESENCE, + CF_CONFERENCE, + CF_CONFERENCE_ADV, + CF_RECOVERING, + CF_RECOVERING_BRIDGE, + CF_TRACKED, + CF_TRACKABLE, + CF_NO_CDR, + CF_EARLY_OK, + CF_MEDIA_TRANS, + CF_HOLD_ON_BRIDGE, + CF_SECURE, + CF_LIBERAL_DTMF, + CF_SLA_BARGE, + CF_SLA_BARGING, + CF_PROTO_HOLD, + CF_HOLD_LOCK, + CF_VIDEO_POSSIBLE, + CF_NOTIMER_DURING_BRIDGE, + CF_PASS_RFC2833, + CF_T38_PASSTHRU, + CF_DROP_DTMF, + CF_REINVITE, + CF_AUTOFLUSH_DURING_BRIDGE, + CF_RTP_NOTIMER_DURING_BRIDGE, + CF_WEBRTC, + CF_WEBRTC_MOZ, + CF_ICE, + CF_DTLS, + CF_VERBOSE_SDP, + CF_DTLS_OK, + CF_3PCC, + CF_VIDEO_PASSIVE, + CF_NOVIDEO, + CF_VIDEO_ECHO, + CF_SLA_INTERCEPT, + CF_VIDEO_BREAK, + CF_AUDIO_PAUSE, + CF_VIDEO_PAUSE, + CF_BYPASS_MEDIA_AFTER_HOLD, + CF_HANGUP_HELD, + CF_CONFERENCE_RESET_MEDIA, + CF_FLAG_MAX +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_channel_state_t { + CS_NEW, + CS_INIT, + CS_ROUTING, + CS_SOFT_EXECUTE, + CS_EXECUTE, + CS_EXCHANGE_MEDIA, + CS_PARK, + CS_CONSUME_MEDIA, + CS_HIBERNATE, + CS_RESET, + CS_HANGUP, + CS_REPORTING, + CS_DESTROY, + CS_NONE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_channel_timetable : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_channel_timetable(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_channel_timetable obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_channel_timetable() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_channel_timetable(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_time_t profile_created { + set { + freeswitchPINVOKE.switch_channel_timetable_profile_created_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_profile_created_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t created { + set { + freeswitchPINVOKE.switch_channel_timetable_created_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_created_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t answered { + set { + freeswitchPINVOKE.switch_channel_timetable_answered_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_answered_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t progress { + set { + freeswitchPINVOKE.switch_channel_timetable_progress_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_progress_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t progress_media { + set { + freeswitchPINVOKE.switch_channel_timetable_progress_media_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_progress_media_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t hungup { + set { + freeswitchPINVOKE.switch_channel_timetable_hungup_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_hungup_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t transferred { + set { + freeswitchPINVOKE.switch_channel_timetable_transferred_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_transferred_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t resurrected { + set { + freeswitchPINVOKE.switch_channel_timetable_resurrected_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_resurrected_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t bridged { + set { + freeswitchPINVOKE.switch_channel_timetable_bridged_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_bridged_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t last_hold { + set { + freeswitchPINVOKE.switch_channel_timetable_last_hold_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_last_hold_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t hold_accum { + set { + freeswitchPINVOKE.switch_channel_timetable_hold_accum_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_hold_accum_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_channel_timetable next { + set { + freeswitchPINVOKE.switch_channel_timetable_next_set(swigCPtr, switch_channel_timetable.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_channel_timetable_next_get(swigCPtr); + switch_channel_timetable ret = (cPtr == IntPtr.Zero) ? null : new switch_channel_timetable(cPtr, false); + return ret; + } + } + + public switch_channel_timetable() : this(freeswitchPINVOKE.new_switch_channel_timetable(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_chat_application_flag_enum_t { + SCAF_NONE = 0 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_chat_application_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_chat_application_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_chat_application_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_chat_application_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_chat_application_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_chat_application_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_chat_application_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t chat_application_function { + set { + freeswitchPINVOKE.switch_chat_application_interface_chat_application_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_chat_application_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_event_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public string long_desc { + set { + freeswitchPINVOKE.switch_chat_application_interface_long_desc_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_chat_application_interface_long_desc_get(swigCPtr); + return ret; + } + } + + public string short_desc { + set { + freeswitchPINVOKE.switch_chat_application_interface_short_desc_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_chat_application_interface_short_desc_get(swigCPtr); + return ret; + } + } + + public string syntax { + set { + freeswitchPINVOKE.switch_chat_application_interface_syntax_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_chat_application_interface_syntax_get(swigCPtr); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_chat_application_interface_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_chat_application_interface_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_chat_application_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_chat_application_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_chat_application_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_chat_application_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_chat_application_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_chat_application_interface next { + set { + freeswitchPINVOKE.switch_chat_application_interface_next_set(swigCPtr, switch_chat_application_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_application_interface_next_get(swigCPtr); + switch_chat_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_application_interface(cPtr, false); + return ret; + } + } + + public switch_chat_application_interface() : this(freeswitchPINVOKE.new_switch_chat_application_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_chat_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_chat_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_chat_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_chat_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_chat_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_chat_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_chat_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_event__switch_status_t chat_send { + set { + freeswitchPINVOKE.switch_chat_interface_chat_send_set(swigCPtr, SWIGTYPE_p_f_p_switch_event__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_chat_send_get(swigCPtr); + SWIGTYPE_p_f_p_switch_event__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_event__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_chat_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_chat_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_chat_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_chat_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_chat_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_chat_interface next { + set { + freeswitchPINVOKE.switch_chat_interface_next_set(swigCPtr, switch_chat_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_chat_interface_next_get(swigCPtr); + switch_chat_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_interface(cPtr, false); + return ret; + } + } + + public switch_chat_interface() : this(freeswitchPINVOKE.new_switch_chat_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_codec : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_codec(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_codec obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_codec() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_codec(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_codec_interface codec_interface { + set { + freeswitchPINVOKE.switch_codec_codec_interface_set(swigCPtr, switch_codec_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_codec_interface_get(swigCPtr); + switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); + return ret; + } + } + + public switch_codec_implementation implementation { + set { + freeswitchPINVOKE.switch_codec_implementation_set(swigCPtr, switch_codec_implementation.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_get(swigCPtr); + switch_codec_implementation ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_implementation(cPtr, false); + return ret; + } + } + + public string fmtp_in { + set { + freeswitchPINVOKE.switch_codec_fmtp_in_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_fmtp_in_get(swigCPtr); + return ret; + } + } + + public string fmtp_out { + set { + freeswitchPINVOKE.switch_codec_fmtp_out_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_fmtp_out_get(swigCPtr); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_codec_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t memory_pool { + set { + freeswitchPINVOKE.switch_codec_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_memory_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_codec_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public byte agreed_pt { + set { + freeswitchPINVOKE.switch_codec_agreed_pt_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_codec_agreed_pt_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t mutex { + set { + freeswitchPINVOKE.switch_codec_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_mutex_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_codec next { + set { + freeswitchPINVOKE.switch_codec_next_set(swigCPtr, switch_codec.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_next_get(swigCPtr); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_core_session session { + set { + freeswitchPINVOKE.switch_codec_session_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_session_get(swigCPtr); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + } + + public switch_frame cur_frame { + set { + freeswitchPINVOKE.switch_codec_cur_frame_set(swigCPtr, switch_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_cur_frame_get(swigCPtr); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + } + + public switch_codec() : this(freeswitchPINVOKE.new_switch_codec(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_codec_flag_enum_t { + SWITCH_CODEC_FLAG_ENCODE = (1 << 0), + SWITCH_CODEC_FLAG_DECODE = (1 << 1), + SWITCH_CODEC_FLAG_SILENCE_START = (1 << 2), + SWITCH_CODEC_FLAG_SILENCE_STOP = (1 << 3), + SWITCH_CODEC_FLAG_SILENCE = (1 << 4), + SWITCH_CODEC_FLAG_FREE_POOL = (1 << 5), + SWITCH_CODEC_FLAG_AAL2 = (1 << 6), + SWITCH_CODEC_FLAG_PASSTHROUGH = (1 << 7), + SWITCH_CODEC_FLAG_READY = (1 << 8) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_codec_fmtp : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_codec_fmtp(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_codec_fmtp obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_codec_fmtp() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_codec_fmtp(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint actual_samples_per_second { + set { + freeswitchPINVOKE.switch_codec_fmtp_actual_samples_per_second_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_fmtp_actual_samples_per_second_get(swigCPtr); + return ret; + } + } + + public int bits_per_second { + set { + freeswitchPINVOKE.switch_codec_fmtp_bits_per_second_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_fmtp_bits_per_second_get(swigCPtr); + return ret; + } + } + + public int microseconds_per_packet { + set { + freeswitchPINVOKE.switch_codec_fmtp_microseconds_per_packet_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_fmtp_microseconds_per_packet_get(swigCPtr); + return ret; + } + } + + public int stereo { + set { + freeswitchPINVOKE.switch_codec_fmtp_stereo_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_fmtp_stereo_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_codec_fmtp_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_fmtp_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public switch_codec_fmtp() : this(freeswitchPINVOKE.new_switch_codec_fmtp(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_codec_implementation : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_codec_implementation(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_codec_implementation obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_codec_implementation() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_codec_implementation(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_codec_type_t codec_type { + set { + freeswitchPINVOKE.switch_codec_implementation_codec_type_set(swigCPtr, (int)value); + } + get { + switch_codec_type_t ret = (switch_codec_type_t)freeswitchPINVOKE.switch_codec_implementation_codec_type_get(swigCPtr); + return ret; + } + } + + public byte ianacode { + set { + freeswitchPINVOKE.switch_codec_implementation_ianacode_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_codec_implementation_ianacode_get(swigCPtr); + return ret; + } + } + + public string iananame { + set { + freeswitchPINVOKE.switch_codec_implementation_iananame_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_implementation_iananame_get(swigCPtr); + return ret; + } + } + + public string fmtp { + set { + freeswitchPINVOKE.switch_codec_implementation_fmtp_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_implementation_fmtp_get(swigCPtr); + return ret; + } + } + + public uint samples_per_second { + set { + freeswitchPINVOKE.switch_codec_implementation_samples_per_second_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_samples_per_second_get(swigCPtr); + return ret; + } + } + + public uint actual_samples_per_second { + set { + freeswitchPINVOKE.switch_codec_implementation_actual_samples_per_second_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_actual_samples_per_second_get(swigCPtr); + return ret; + } + } + + public int bits_per_second { + set { + freeswitchPINVOKE.switch_codec_implementation_bits_per_second_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_implementation_bits_per_second_get(swigCPtr); + return ret; + } + } + + public int microseconds_per_packet { + set { + freeswitchPINVOKE.switch_codec_implementation_microseconds_per_packet_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_implementation_microseconds_per_packet_get(swigCPtr); + return ret; + } + } + + public uint samples_per_packet { + set { + freeswitchPINVOKE.switch_codec_implementation_samples_per_packet_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_samples_per_packet_get(swigCPtr); + return ret; + } + } + + public uint decoded_bytes_per_packet { + set { + freeswitchPINVOKE.switch_codec_implementation_decoded_bytes_per_packet_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_decoded_bytes_per_packet_get(swigCPtr); + return ret; + } + } + + public uint encoded_bytes_per_packet { + set { + freeswitchPINVOKE.switch_codec_implementation_encoded_bytes_per_packet_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_encoded_bytes_per_packet_get(swigCPtr); + return ret; + } + } + + public byte number_of_channels { + set { + freeswitchPINVOKE.switch_codec_implementation_number_of_channels_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_codec_implementation_number_of_channels_get(swigCPtr); + return ret; + } + } + + public int codec_frames_per_packet { + set { + freeswitchPINVOKE.switch_codec_implementation_codec_frames_per_packet_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_implementation_codec_frames_per_packet_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t init { + set { + freeswitchPINVOKE.switch_codec_implementation_init_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_init_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t encode { + set { + freeswitchPINVOKE.switch_codec_implementation_encode_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_encode_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t decode { + set { + freeswitchPINVOKE.switch_codec_implementation_decode_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_decode_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_codec__switch_status_t destroy { + set { + freeswitchPINVOKE.switch_codec_implementation_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_destroy_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec__switch_status_t(cPtr, false); + return ret; + } + } + + public uint codec_id { + set { + freeswitchPINVOKE.switch_codec_implementation_codec_id_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_codec_id_get(swigCPtr); + return ret; + } + } + + public uint impl_id { + set { + freeswitchPINVOKE.switch_codec_implementation_impl_id_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_implementation_impl_id_get(swigCPtr); + return ret; + } + } + + public switch_codec_implementation next { + set { + freeswitchPINVOKE.switch_codec_implementation_next_set(swigCPtr, switch_codec_implementation.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_next_get(swigCPtr); + switch_codec_implementation ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_implementation(cPtr, false); + return ret; + } + } + + public switch_codec_implementation() : this(freeswitchPINVOKE.new_switch_codec_implementation(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_codec_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_codec_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_codec_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_codec_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_codec_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_codec_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public switch_codec_implementation implementations { + set { + freeswitchPINVOKE.switch_codec_interface_implementations_set(swigCPtr, switch_codec_implementation.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_implementations_get(swigCPtr); + switch_codec_implementation ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_implementation(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t parse_fmtp { + set { + freeswitchPINVOKE.switch_codec_interface_parse_fmtp_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_parse_fmtp_get(swigCPtr); + SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_switch_codec_fmtp__switch_status_t(cPtr, false); + return ret; + } + } + + public uint codec_id { + set { + freeswitchPINVOKE.switch_codec_interface_codec_id_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_codec_interface_codec_id_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_codec_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_codec_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_codec_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_codec_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_codec_interface next { + set { + freeswitchPINVOKE.switch_codec_interface_next_set(swigCPtr, switch_codec_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_interface_next_get(swigCPtr); + switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); + return ret; + } + } + + public switch_codec_interface() : this(freeswitchPINVOKE.new_switch_codec_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_codec_settings : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_codec_settings(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_codec_settings obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_codec_settings() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_codec_settings(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int unused { + set { + freeswitchPINVOKE.switch_codec_settings_unused_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_codec_settings_unused_get(swigCPtr); + return ret; + } + } + + public switch_codec_settings() : this(freeswitchPINVOKE.new_switch_codec_settings(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_codec_type_t { + SWITCH_CODEC_TYPE_AUDIO, + SWITCH_CODEC_TYPE_VIDEO, + SWITCH_CODEC_TYPE_T38, + SWITCH_CODEC_TYPE_APP +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_config : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_config(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_config obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_config() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_config(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_FILE file { + set { + freeswitchPINVOKE.switch_config_file_set(swigCPtr, SWIGTYPE_p_FILE.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_config_file_get(swigCPtr); + SWIGTYPE_p_FILE ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_FILE(cPtr, false); + return ret; + } + } + + public string path { + set { + freeswitchPINVOKE.switch_config_path_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_config_path_get(swigCPtr); + return ret; + } + } + + public string category { + set { + freeswitchPINVOKE.switch_config_category_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_config_category_get(swigCPtr); + return ret; + } + } + + public string section { + set { + freeswitchPINVOKE.switch_config_section_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_config_section_get(swigCPtr); + return ret; + } + } + + public string buf { + set { + freeswitchPINVOKE.switch_config_buf_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_config_buf_get(swigCPtr); + return ret; + } + } + + public int lineno { + set { + freeswitchPINVOKE.switch_config_lineno_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_config_lineno_get(swigCPtr); + return ret; + } + } + + public int catno { + set { + freeswitchPINVOKE.switch_config_catno_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_config_catno_get(swigCPtr); + return ret; + } + } + + public int sectno { + set { + freeswitchPINVOKE.switch_config_sectno_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_config_sectno_get(swigCPtr); + return ret; + } + } + + public int lockto { + set { + freeswitchPINVOKE.switch_config_lockto_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_config_lockto_get(swigCPtr); + return ret; + } + } + + public switch_config() : this(freeswitchPINVOKE.new_switch_config(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_console_callback_match : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_console_callback_match(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_console_callback_match obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_console_callback_match() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_console_callback_match(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_console_callback_match_node head { + set { + freeswitchPINVOKE.switch_console_callback_match_head_set(swigCPtr, switch_console_callback_match_node.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_console_callback_match_head_get(swigCPtr); + switch_console_callback_match_node ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match_node(cPtr, false); + return ret; + } + } + + public switch_console_callback_match_node end { + set { + freeswitchPINVOKE.switch_console_callback_match_end_set(swigCPtr, switch_console_callback_match_node.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_console_callback_match_end_get(swigCPtr); + switch_console_callback_match_node ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match_node(cPtr, false); + return ret; + } + } + + public int count { + set { + freeswitchPINVOKE.switch_console_callback_match_count_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_console_callback_match_count_get(swigCPtr); + return ret; + } + } + + public int dynamic { + set { + freeswitchPINVOKE.switch_console_callback_match_dynamic_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_console_callback_match_dynamic_get(swigCPtr); + return ret; + } + } + + public switch_console_callback_match() : this(freeswitchPINVOKE.new_switch_console_callback_match(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_console_callback_match_node : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_console_callback_match_node(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_console_callback_match_node obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_console_callback_match_node() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_console_callback_match_node(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string val { + set { + freeswitchPINVOKE.switch_console_callback_match_node_val_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_console_callback_match_node_val_get(swigCPtr); + return ret; + } + } + + public switch_console_callback_match_node next { + set { + freeswitchPINVOKE.switch_console_callback_match_node_next_set(swigCPtr, switch_console_callback_match_node.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_console_callback_match_node_next_get(swigCPtr); + switch_console_callback_match_node ret = (cPtr == IntPtr.Zero) ? null : new switch_console_callback_match_node(cPtr, false); + return ret; + } + } + + public switch_console_callback_match_node() : this(freeswitchPINVOKE.new_switch_console_callback_match_node(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_core_flag_enum_t { + SCF_NONE = 0, + SCF_USE_SQL = (1 << 0), + SCF_NO_NEW_OUTBOUND_SESSIONS = (1 << 1), + SCF_NO_NEW_INBOUND_SESSIONS = (1 << 2), + SCF_NO_NEW_SESSIONS = (SCF_NO_NEW_OUTBOUND_SESSIONS|SCF_NO_NEW_INBOUND_SESSIONS), + SCF_SHUTTING_DOWN = (1 << 3), + SCF_VG = (1 << 4), + SCF_RESTART = (1 << 5), + SCF_SHUTDOWN_REQUESTED = (1 << 6), + SCF_USE_AUTO_NAT = (1 << 7), + SCF_EARLY_HANGUP = (1 << 8), + SCF_CALIBRATE_CLOCK = (1 << 9), + SCF_USE_HEAVY_TIMING = (1 << 10), + SCF_USE_CLOCK_RT = (1 << 11), + SCF_VERBOSE_EVENTS = (1 << 12), + SCF_USE_WIN32_MONOTONIC = (1 << 13), + SCF_AUTO_SCHEMAS = (1 << 14), + SCF_MINIMAL = (1 << 15), + SCF_USE_NAT_MAPPING = (1 << 16), + SCF_CLEAR_SQL = (1 << 17), + SCF_THREADED_SYSTEM_EXEC = (1 << 18), + SCF_SYNC_CLOCK_REQUESTED = (1 << 19), + SCF_CORE_NON_SQLITE_DB_REQ = (1 << 20), + SCF_DEBUG_SQL = (1 << 21), + SCF_API_EXPANSION = (1 << 22), + SCF_SESSION_THREAD_POOL = (1 << 23), + SCF_DIALPLAN_TIMESTAMPS = (1 << 24) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_core_media_ice_type_t { + ICE_GOOGLE_JINGLE = (1 << 0), + ICE_VANILLA = (1 << 1), + ICE_CONTROLLED = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_core_session_message : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_core_session_message(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_core_session_message obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_core_session_message() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_core_session_message(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string from { + set { + freeswitchPINVOKE.switch_core_session_message_from_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_core_session_message_from_get(swigCPtr); + return ret; + } + } + + public switch_core_session_message_types_t message_id { + set { + freeswitchPINVOKE.switch_core_session_message_message_id_set(swigCPtr, (int)value); + } + get { + switch_core_session_message_types_t ret = (switch_core_session_message_types_t)freeswitchPINVOKE.switch_core_session_message_message_id_get(swigCPtr); + return ret; + } + } + + public int numeric_arg { + set { + freeswitchPINVOKE.switch_core_session_message_numeric_arg_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_core_session_message_numeric_arg_get(swigCPtr); + return ret; + } + } + + public string string_arg { + set { + freeswitchPINVOKE.switch_core_session_message_string_arg_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_core_session_message_string_arg_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t string_arg_size { + set { + freeswitchPINVOKE.switch_core_session_message_string_arg_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_string_arg_size_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_void pointer_arg { + set { + freeswitchPINVOKE.switch_core_session_message_pointer_arg_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_message_pointer_arg_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t pointer_arg_size { + set { + freeswitchPINVOKE.switch_core_session_message_pointer_arg_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_pointer_arg_size_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public int numeric_reply { + set { + freeswitchPINVOKE.switch_core_session_message_numeric_reply_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_core_session_message_numeric_reply_get(swigCPtr); + return ret; + } + } + + public string string_reply { + set { + freeswitchPINVOKE.switch_core_session_message_string_reply_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_core_session_message_string_reply_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t string_reply_size { + set { + freeswitchPINVOKE.switch_core_session_message_string_reply_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_string_reply_size_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_void pointer_reply { + set { + freeswitchPINVOKE.switch_core_session_message_pointer_reply_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_message_pointer_reply_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t pointer_reply_size { + set { + freeswitchPINVOKE.switch_core_session_message_pointer_reply_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_core_session_message_pointer_reply_size_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_core_session_message_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_session_message_flags_get(swigCPtr); + return ret; + } + } + + public string _file { + set { + freeswitchPINVOKE.switch_core_session_message__file_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_core_session_message__file_get(swigCPtr); + return ret; + } + } + + public string _func { + set { + freeswitchPINVOKE.switch_core_session_message__func_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_core_session_message__func_get(swigCPtr); + return ret; + } + } + + public int _line { + set { + freeswitchPINVOKE.switch_core_session_message__line_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_core_session_message__line_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_p_char string_array_arg { + set { + freeswitchPINVOKE.switch_core_session_message_string_array_arg_set(swigCPtr, SWIGTYPE_p_p_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_message_string_array_arg_get(swigCPtr); + SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_time_t delivery_time { + set { + freeswitchPINVOKE.switch_core_session_message_delivery_time_set(swigCPtr, SWIGTYPE_p_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_time_t ret = new SWIGTYPE_p_time_t(freeswitchPINVOKE.switch_core_session_message_delivery_time_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_core_session_message() : this(freeswitchPINVOKE.new_switch_core_session_message(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_core_session_message_flag_enum_t { + SCSMF_DYNAMIC = (1 << 0), + SCSMF_FREE_STRING_REPLY = (1 << 1), + SCSMF_FREE_POINTER_REPLY = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_core_session_message_types_t { + SWITCH_MESSAGE_REDIRECT_AUDIO, + SWITCH_MESSAGE_TRANSMIT_TEXT, + SWITCH_MESSAGE_INDICATE_ANSWER, + SWITCH_MESSAGE_INDICATE_PROGRESS, + SWITCH_MESSAGE_INDICATE_BRIDGE, + SWITCH_MESSAGE_INDICATE_UNBRIDGE, + SWITCH_MESSAGE_INDICATE_TRANSFER, + SWITCH_MESSAGE_INDICATE_RINGING, + SWITCH_MESSAGE_INDICATE_MEDIA, + SWITCH_MESSAGE_INDICATE_NOMEDIA, + SWITCH_MESSAGE_INDICATE_HOLD, + SWITCH_MESSAGE_INDICATE_UNHOLD, + SWITCH_MESSAGE_INDICATE_REDIRECT, + SWITCH_MESSAGE_INDICATE_RESPOND, + SWITCH_MESSAGE_INDICATE_BROADCAST, + SWITCH_MESSAGE_INDICATE_MEDIA_REDIRECT, + SWITCH_MESSAGE_INDICATE_DEFLECT, + SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ, + SWITCH_MESSAGE_INDICATE_DISPLAY, + SWITCH_MESSAGE_INDICATE_TRANSCODING_NECESSARY, + SWITCH_MESSAGE_INDICATE_AUDIO_SYNC, + SWITCH_MESSAGE_INDICATE_REQUEST_IMAGE_MEDIA, + SWITCH_MESSAGE_INDICATE_UUID_CHANGE, + SWITCH_MESSAGE_INDICATE_SIMPLIFY, + SWITCH_MESSAGE_INDICATE_DEBUG_MEDIA, + SWITCH_MESSAGE_INDICATE_PROXY_MEDIA, + SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC, + SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC_COMPLETE, + SWITCH_MESSAGE_INDICATE_PHONE_EVENT, + SWITCH_MESSAGE_INDICATE_T38_DESCRIPTION, + SWITCH_MESSAGE_INDICATE_UDPTL_MODE, + SWITCH_MESSAGE_INDICATE_CLEAR_PROGRESS, + SWITCH_MESSAGE_INDICATE_JITTER_BUFFER, + SWITCH_MESSAGE_INDICATE_RECOVERY_REFRESH, + SWITCH_MESSAGE_INDICATE_SIGNAL_DATA, + SWITCH_MESSAGE_INDICATE_MESSAGE, + SWITCH_MESSAGE_INDICATE_INFO, + SWITCH_MESSAGE_INDICATE_AUDIO_DATA, + SWITCH_MESSAGE_INDICATE_BLIND_TRANSFER_RESPONSE, + SWITCH_MESSAGE_INDICATE_STUN_ERROR, + SWITCH_MESSAGE_INDICATE_MEDIA_RENEG, + SWITCH_MESSAGE_INDICATE_KEEPALIVE, + SWITCH_MESSAGE_INDICATE_HARD_MUTE, + SWITCH_MESSAGE_REFER_EVENT, + SWITCH_MESSAGE_ANSWER_EVENT, + SWITCH_MESSAGE_PROGRESS_EVENT, + SWITCH_MESSAGE_RING_EVENT, + SWITCH_MESSAGE_RESAMPLE_EVENT, + SWITCH_MESSAGE_HEARTBEAT_EVENT, + SWITCH_MESSAGE_INVALID +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_core_thread_session : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_core_thread_session(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_core_thread_session obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_core_thread_session() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_core_thread_session(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int running { + set { + freeswitchPINVOKE.switch_core_thread_session_running_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_core_thread_session_running_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t mutex { + set { + freeswitchPINVOKE.switch_core_thread_session_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_mutex_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_p_void objs { + set { + freeswitchPINVOKE.switch_core_thread_session_objs_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_objs_get(swigCPtr); + SWIGTYPE_p_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t input_callback { + set { + freeswitchPINVOKE.switch_core_thread_session_input_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_input_callback_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t pool { + set { + freeswitchPINVOKE.switch_core_thread_session_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_core_thread_session_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public switch_core_thread_session() : this(freeswitchPINVOKE.new_switch_core_thread_session(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_core_time_duration : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_core_time_duration(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_core_time_duration obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_core_time_duration() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_core_time_duration(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint mms { + set { + freeswitchPINVOKE.switch_core_time_duration_mms_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_mms_get(swigCPtr); + return ret; + } + } + + public uint ms { + set { + freeswitchPINVOKE.switch_core_time_duration_ms_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_ms_get(swigCPtr); + return ret; + } + } + + public uint sec { + set { + freeswitchPINVOKE.switch_core_time_duration_sec_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_sec_get(swigCPtr); + return ret; + } + } + + public uint min { + set { + freeswitchPINVOKE.switch_core_time_duration_min_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_min_get(swigCPtr); + return ret; + } + } + + public uint hr { + set { + freeswitchPINVOKE.switch_core_time_duration_hr_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_hr_get(swigCPtr); + return ret; + } + } + + public uint day { + set { + freeswitchPINVOKE.switch_core_time_duration_day_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_day_get(swigCPtr); + return ret; + } + } + + public uint yr { + set { + freeswitchPINVOKE.switch_core_time_duration_yr_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_core_time_duration_yr_get(swigCPtr); + return ret; + } + } + + public switch_core_time_duration() : this(freeswitchPINVOKE.new_switch_core_time_duration(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_device_node_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_device_node_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_device_node_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_device_node_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_device_node_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string uuid { + set { + freeswitchPINVOKE.switch_device_node_t_uuid_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_device_node_t_uuid_get(swigCPtr); + return ret; + } + } + + public switch_xml xml_cdr { + set { + freeswitchPINVOKE.switch_device_node_t_xml_cdr_set(swigCPtr, switch_xml.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_xml_cdr_get(swigCPtr); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + } + + public switch_event _event { + set { + freeswitchPINVOKE.switch_device_node_t__event_set(swigCPtr, switch_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t__event_get(swigCPtr); + switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); + return ret; + } + } + + public switch_channel_callstate_t callstate { + set { + freeswitchPINVOKE.switch_device_node_t_callstate_set(swigCPtr, (int)value); + } + get { + switch_channel_callstate_t ret = (switch_channel_callstate_t)freeswitchPINVOKE.switch_device_node_t_callstate_get(swigCPtr); + return ret; + } + } + + public switch_hold_record_t hold_record { + set { + freeswitchPINVOKE.switch_device_node_t_hold_record_set(swigCPtr, switch_hold_record_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_hold_record_get(swigCPtr); + switch_hold_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_hold_record_t(cPtr, false); + return ret; + } + } + + public switch_caller_profile hup_profile { + set { + freeswitchPINVOKE.switch_device_node_t_hup_profile_set(swigCPtr, switch_caller_profile.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_hup_profile_get(swigCPtr); + switch_caller_profile ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_profile(cPtr, false); + return ret; + } + } + + public switch_call_direction_t direction { + set { + freeswitchPINVOKE.switch_device_node_t_direction_set(swigCPtr, (int)value); + } + get { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_device_node_t_direction_get(swigCPtr); + return ret; + } + } + + public switch_device_record_t parent { + set { + freeswitchPINVOKE.switch_device_node_t_parent_set(swigCPtr, switch_device_record_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_parent_get(swigCPtr); + switch_device_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_record_t(cPtr, false); + return ret; + } + } + + public switch_device_node_t next { + set { + freeswitchPINVOKE.switch_device_node_t_next_set(swigCPtr, switch_device_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_node_t_next_get(swigCPtr); + switch_device_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_node_t(cPtr, false); + return ret; + } + } + + public switch_device_node_t() : this(freeswitchPINVOKE.new_switch_device_node_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_device_record_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_device_record_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_device_record_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_device_record_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_device_record_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string device_id { + set { + freeswitchPINVOKE.switch_device_record_t_device_id_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_device_record_t_device_id_get(swigCPtr); + return ret; + } + } + + public string uuid { + set { + freeswitchPINVOKE.switch_device_record_t_uuid_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_device_record_t_uuid_get(swigCPtr); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_device_record_t_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_device_record_t_refs_get(swigCPtr); + return ret; + } + } + + public switch_device_stats_t stats { + set { + freeswitchPINVOKE.switch_device_record_t_stats_set(swigCPtr, switch_device_stats_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_stats_get(swigCPtr); + switch_device_stats_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_stats_t(cPtr, false); + return ret; + } + } + + public switch_device_stats_t last_stats { + set { + freeswitchPINVOKE.switch_device_record_t_last_stats_set(swigCPtr, switch_device_stats_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_last_stats_get(swigCPtr); + switch_device_stats_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_stats_t(cPtr, false); + return ret; + } + } + + public switch_device_state_t state { + set { + freeswitchPINVOKE.switch_device_record_t_state_set(swigCPtr, (int)value); + } + get { + switch_device_state_t ret = (switch_device_state_t)freeswitchPINVOKE.switch_device_record_t_state_get(swigCPtr); + return ret; + } + } + + public switch_device_state_t last_state { + set { + freeswitchPINVOKE.switch_device_record_t_last_state_set(swigCPtr, (int)value); + } + get { + switch_device_state_t ret = (switch_device_state_t)freeswitchPINVOKE.switch_device_record_t_last_state_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t active_start { + set { + freeswitchPINVOKE.switch_device_record_t_active_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_active_start_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t active_stop { + set { + freeswitchPINVOKE.switch_device_record_t_active_stop_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_active_stop_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t last_call_time { + set { + freeswitchPINVOKE.switch_device_record_t_last_call_time_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_last_call_time_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t ring_start { + set { + freeswitchPINVOKE.switch_device_record_t_ring_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_ring_start_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t ring_stop { + set { + freeswitchPINVOKE.switch_device_record_t_ring_stop_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_ring_stop_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t hold_start { + set { + freeswitchPINVOKE.switch_device_record_t_hold_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_hold_start_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t hold_stop { + set { + freeswitchPINVOKE.switch_device_record_t_hold_stop_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_hold_stop_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t call_start { + set { + freeswitchPINVOKE.switch_device_record_t_call_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_device_record_t_call_start_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_device_node_t uuid_list { + set { + freeswitchPINVOKE.switch_device_record_t_uuid_list_set(swigCPtr, switch_device_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_uuid_list_get(swigCPtr); + switch_device_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_node_t(cPtr, false); + return ret; + } + } + + public switch_device_node_t uuid_tail { + set { + freeswitchPINVOKE.switch_device_record_t_uuid_tail_set(swigCPtr, switch_device_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_uuid_tail_get(swigCPtr); + switch_device_node_t ret = (cPtr == IntPtr.Zero) ? null : new switch_device_node_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t mutex { + set { + freeswitchPINVOKE.switch_device_record_t_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_mutex_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t pool { + set { + freeswitchPINVOKE.switch_device_record_t_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void user_data { + set { + freeswitchPINVOKE.switch_device_record_t_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_device_record_t_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public switch_device_record_t() : this(freeswitchPINVOKE.new_switch_device_record_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_device_state_t { + SDS_DOWN, + SDS_RINGING, + SDS_ACTIVE, + SDS_ACTIVE_MULTI, + SDS_HELD, + SDS_UNHELD, + SDS_HANGUP +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_device_stats_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_device_stats_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_device_stats_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_device_stats_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_device_stats_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint total { + set { + freeswitchPINVOKE.switch_device_stats_t_total_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_total_get(swigCPtr); + return ret; + } + } + + public uint total_in { + set { + freeswitchPINVOKE.switch_device_stats_t_total_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_total_in_get(swigCPtr); + return ret; + } + } + + public uint total_out { + set { + freeswitchPINVOKE.switch_device_stats_t_total_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_total_out_get(swigCPtr); + return ret; + } + } + + public uint offhook { + set { + freeswitchPINVOKE.switch_device_stats_t_offhook_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_offhook_get(swigCPtr); + return ret; + } + } + + public uint offhook_in { + set { + freeswitchPINVOKE.switch_device_stats_t_offhook_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_offhook_in_get(swigCPtr); + return ret; + } + } + + public uint offhook_out { + set { + freeswitchPINVOKE.switch_device_stats_t_offhook_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_offhook_out_get(swigCPtr); + return ret; + } + } + + public uint active { + set { + freeswitchPINVOKE.switch_device_stats_t_active_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_active_get(swigCPtr); + return ret; + } + } + + public uint active_in { + set { + freeswitchPINVOKE.switch_device_stats_t_active_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_active_in_get(swigCPtr); + return ret; + } + } + + public uint active_out { + set { + freeswitchPINVOKE.switch_device_stats_t_active_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_active_out_get(swigCPtr); + return ret; + } + } + + public uint held { + set { + freeswitchPINVOKE.switch_device_stats_t_held_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_held_get(swigCPtr); + return ret; + } + } + + public uint held_in { + set { + freeswitchPINVOKE.switch_device_stats_t_held_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_held_in_get(swigCPtr); + return ret; + } + } + + public uint held_out { + set { + freeswitchPINVOKE.switch_device_stats_t_held_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_held_out_get(swigCPtr); + return ret; + } + } + + public uint unheld { + set { + freeswitchPINVOKE.switch_device_stats_t_unheld_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_unheld_get(swigCPtr); + return ret; + } + } + + public uint unheld_in { + set { + freeswitchPINVOKE.switch_device_stats_t_unheld_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_unheld_in_get(swigCPtr); + return ret; + } + } + + public uint unheld_out { + set { + freeswitchPINVOKE.switch_device_stats_t_unheld_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_unheld_out_get(swigCPtr); + return ret; + } + } + + public uint hup { + set { + freeswitchPINVOKE.switch_device_stats_t_hup_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_hup_get(swigCPtr); + return ret; + } + } + + public uint hup_in { + set { + freeswitchPINVOKE.switch_device_stats_t_hup_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_hup_in_get(swigCPtr); + return ret; + } + } + + public uint hup_out { + set { + freeswitchPINVOKE.switch_device_stats_t_hup_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_hup_out_get(swigCPtr); + return ret; + } + } + + public uint ringing { + set { + freeswitchPINVOKE.switch_device_stats_t_ringing_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_ringing_get(swigCPtr); + return ret; + } + } + + public uint ringing_in { + set { + freeswitchPINVOKE.switch_device_stats_t_ringing_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_ringing_in_get(swigCPtr); + return ret; + } + } + + public uint ringing_out { + set { + freeswitchPINVOKE.switch_device_stats_t_ringing_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_ringing_out_get(swigCPtr); + return ret; + } + } + + public uint early { + set { + freeswitchPINVOKE.switch_device_stats_t_early_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_early_get(swigCPtr); + return ret; + } + } + + public uint early_in { + set { + freeswitchPINVOKE.switch_device_stats_t_early_in_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_early_in_get(swigCPtr); + return ret; + } + } + + public uint early_out { + set { + freeswitchPINVOKE.switch_device_stats_t_early_out_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_early_out_get(swigCPtr); + return ret; + } + } + + public uint ring_wait { + set { + freeswitchPINVOKE.switch_device_stats_t_ring_wait_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_device_stats_t_ring_wait_get(swigCPtr); + return ret; + } + } + + public switch_device_stats_t() : this(freeswitchPINVOKE.new_switch_device_stats_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_dialplan_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_dialplan_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_dialplan_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_dialplan_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_dialplan_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_dialplan_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_dialplan_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension hunt_function { + set { + freeswitchPINVOKE.switch_dialplan_interface_hunt_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_hunt_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_t_p_void_p_switch_caller_profile_t__p_switch_caller_extension(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_dialplan_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_dialplan_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_dialplan_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_dialplan_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_dialplan_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_dialplan_interface next { + set { + freeswitchPINVOKE.switch_dialplan_interface_next_set(swigCPtr, switch_dialplan_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_dialplan_interface_next_get(swigCPtr); + switch_dialplan_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_dialplan_interface(cPtr, false); + return ret; + } + } + + public switch_dialplan_interface() : this(freeswitchPINVOKE.new_switch_dialplan_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_digit_action_target_t { + DIGIT_TARGET_SELF, + DIGIT_TARGET_PEER, + DIGIT_TARGET_BOTH +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_directories : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_directories(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_directories obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_directories() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_directories(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string base_dir { + set { + freeswitchPINVOKE.switch_directories_base_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_base_dir_get(swigCPtr); + return ret; + } + } + + public string mod_dir { + set { + freeswitchPINVOKE.switch_directories_mod_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_mod_dir_get(swigCPtr); + return ret; + } + } + + public string conf_dir { + set { + freeswitchPINVOKE.switch_directories_conf_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_conf_dir_get(swigCPtr); + return ret; + } + } + + public string log_dir { + set { + freeswitchPINVOKE.switch_directories_log_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_log_dir_get(swigCPtr); + return ret; + } + } + + public string run_dir { + set { + freeswitchPINVOKE.switch_directories_run_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_run_dir_get(swigCPtr); + return ret; + } + } + + public string db_dir { + set { + freeswitchPINVOKE.switch_directories_db_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_db_dir_get(swigCPtr); + return ret; + } + } + + public string script_dir { + set { + freeswitchPINVOKE.switch_directories_script_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_script_dir_get(swigCPtr); + return ret; + } + } + + public string temp_dir { + set { + freeswitchPINVOKE.switch_directories_temp_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_temp_dir_get(swigCPtr); + return ret; + } + } + + public string htdocs_dir { + set { + freeswitchPINVOKE.switch_directories_htdocs_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_htdocs_dir_get(swigCPtr); + return ret; + } + } + + public string grammar_dir { + set { + freeswitchPINVOKE.switch_directories_grammar_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_grammar_dir_get(swigCPtr); + return ret; + } + } + + public string storage_dir { + set { + freeswitchPINVOKE.switch_directories_storage_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_storage_dir_get(swigCPtr); + return ret; + } + } + + public string cache_dir { + set { + freeswitchPINVOKE.switch_directories_cache_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_cache_dir_get(swigCPtr); + return ret; + } + } + + public string recordings_dir { + set { + freeswitchPINVOKE.switch_directories_recordings_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_recordings_dir_get(swigCPtr); + return ret; + } + } + + public string sounds_dir { + set { + freeswitchPINVOKE.switch_directories_sounds_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_sounds_dir_get(swigCPtr); + return ret; + } + } + + public string lib_dir { + set { + freeswitchPINVOKE.switch_directories_lib_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_lib_dir_get(swigCPtr); + return ret; + } + } + + public string certs_dir { + set { + freeswitchPINVOKE.switch_directories_certs_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_certs_dir_get(swigCPtr); + return ret; + } + } + + public switch_directories() : this(freeswitchPINVOKE.new_switch_directories(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_directory_flag_enum_t { + SWITCH_DIRECTORY_FLAG_FREE_POOL = (1 << 0) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_directory_handle : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_directory_handle(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_directory_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_directory_handle() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_directory_handle(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_directory_interface directory_interface { + set { + freeswitchPINVOKE.switch_directory_handle_directory_interface_set(swigCPtr, switch_directory_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_handle_directory_interface_get(swigCPtr); + switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_directory_handle_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_directory_handle_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t memory_pool { + set { + freeswitchPINVOKE.switch_directory_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_handle_memory_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_directory_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_handle_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public switch_directory_handle() : this(freeswitchPINVOKE.new_switch_directory_handle(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_directory_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_directory_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_directory_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_directory_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_directory_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_directory_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directory_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t directory_open { + set { + freeswitchPINVOKE.switch_directory_interface_directory_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_open_get(swigCPtr); + SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char_p_char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t directory_close { + set { + freeswitchPINVOKE.switch_directory_interface_directory_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_close_get(swigCPtr); + SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t directory_query { + set { + freeswitchPINVOKE.switch_directory_interface_directory_query_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_query_get(swigCPtr); + SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle_p_char_p_char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t directory_next { + set { + freeswitchPINVOKE.switch_directory_interface_directory_next_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_next_get(swigCPtr); + SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t directory_next_pair { + set { + freeswitchPINVOKE.switch_directory_interface_directory_next_pair_set(swigCPtr, SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_directory_next_pair_get(swigCPtr); + SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_directory_handle_p_p_char_p_p_char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_directory_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_directory_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_directory_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_directory_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_directory_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_directory_interface next { + set { + freeswitchPINVOKE.switch_directory_interface_next_set(swigCPtr, switch_directory_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_directory_interface_next_get(swigCPtr); + switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); + return ret; + } + } + + public switch_directory_interface() : this(freeswitchPINVOKE.new_switch_directory_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_dtmf_direction_t { + SWITCH_DTMF_RECV = 0, + SWITCH_DTMF_SEND = 1 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_dtmf_source_t { + SWITCH_DTMF_UNKNOWN, + SWITCH_DTMF_INBAND_AUDIO, + SWITCH_DTMF_RTP, + SWITCH_DTMF_ENDPOINT, + SWITCH_DTMF_APP +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_dtmf_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_dtmf_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_dtmf_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_dtmf_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_dtmf_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public char digit { + set { + freeswitchPINVOKE.switch_dtmf_t_digit_set(swigCPtr, value); + } + get { + char ret = freeswitchPINVOKE.switch_dtmf_t_digit_get(swigCPtr); + return ret; + } + } + + public uint duration { + set { + freeswitchPINVOKE.switch_dtmf_t_duration_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_dtmf_t_duration_get(swigCPtr); + return ret; + } + } + + public int flags { + set { + freeswitchPINVOKE.switch_dtmf_t_flags_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_dtmf_t_flags_get(swigCPtr); + return ret; + } + } + + public switch_dtmf_source_t source { + set { + freeswitchPINVOKE.switch_dtmf_t_source_set(swigCPtr, (int)value); + } + get { + switch_dtmf_source_t ret = (switch_dtmf_source_t)freeswitchPINVOKE.switch_dtmf_t_source_get(swigCPtr); + return ret; + } + } + + public switch_dtmf_t() : this(freeswitchPINVOKE.new_switch_dtmf_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_eavesdrop_flag_enum_t { + ED_NONE = 0, + ED_MUX_READ = (1 << 0), + ED_MUX_WRITE = (1 << 1), + ED_DTMF = (1 << 2), + ED_COPY_DISPLAY = (1 << 3), + ED_BRIDGE_READ = (1 << 4), + ED_BRIDGE_WRITE = (1 << 5) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_endpoint_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_endpoint_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_endpoint_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_endpoint_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_endpoint_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_endpoint_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_endpoint_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public switch_io_routines io_routines { + set { + freeswitchPINVOKE.switch_endpoint_interface_io_routines_set(swigCPtr, switch_io_routines.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_io_routines_get(swigCPtr); + switch_io_routines ret = (cPtr == IntPtr.Zero) ? null : new switch_io_routines(cPtr, false); + return ret; + } + } + + public switch_state_handler_table state_handler { + set { + freeswitchPINVOKE.switch_endpoint_interface_state_handler_set(swigCPtr, switch_state_handler_table.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_state_handler_get(swigCPtr); + switch_state_handler_table ret = (cPtr == IntPtr.Zero) ? null : new switch_state_handler_table(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_endpoint_interface_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_endpoint_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_endpoint_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_endpoint_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_endpoint_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_endpoint_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_endpoint_interface next { + set { + freeswitchPINVOKE.switch_endpoint_interface_next_set(swigCPtr, switch_endpoint_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_next_get(swigCPtr); + switch_endpoint_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_endpoint_interface(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__int recover_callback { + set { + freeswitchPINVOKE.switch_endpoint_interface_recover_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__int.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_endpoint_interface_recover_callback_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__int(cPtr, false); + return ret; + } + } + + public switch_endpoint_interface() : this(freeswitchPINVOKE.new_switch_endpoint_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_event : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_event(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_event obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_event() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_event(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_event_types_t event_id { + set { + freeswitchPINVOKE.switch_event_event_id_set(swigCPtr, (int)value); + } + get { + switch_event_types_t ret = (switch_event_types_t)freeswitchPINVOKE.switch_event_event_id_get(swigCPtr); + return ret; + } + } + + public switch_priority_t priority { + set { + freeswitchPINVOKE.switch_event_priority_set(swigCPtr, (int)value); + } + get { + switch_priority_t ret = (switch_priority_t)freeswitchPINVOKE.switch_event_priority_get(swigCPtr); + return ret; + } + } + + public string owner { + set { + freeswitchPINVOKE.switch_event_owner_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_event_owner_get(swigCPtr); + return ret; + } + } + + public string subclass_name { + set { + freeswitchPINVOKE.switch_event_subclass_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_event_subclass_name_get(swigCPtr); + return ret; + } + } + + public switch_event_header headers { + set { + freeswitchPINVOKE.switch_event_headers_set(swigCPtr, switch_event_header.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_event_headers_get(swigCPtr); + switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); + return ret; + } + } + + public switch_event_header last_header { + set { + freeswitchPINVOKE.switch_event_last_header_set(swigCPtr, switch_event_header.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_event_last_header_get(swigCPtr); + switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); + return ret; + } + } + + public string body { + set { + freeswitchPINVOKE.switch_event_body_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_event_body_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void bind_user_data { + set { + freeswitchPINVOKE.switch_event_bind_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_event_bind_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void event_user_data { + set { + freeswitchPINVOKE.switch_event_event_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_event_event_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public uint key { + set { + freeswitchPINVOKE.switch_event_key_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_event_key_get(swigCPtr); + return ret; + } + } + + public switch_event next { + set { + freeswitchPINVOKE.switch_event_next_set(swigCPtr, switch_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_event_next_get(swigCPtr); + switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); + return ret; + } + } + + public int flags { + set { + freeswitchPINVOKE.switch_event_flags_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_event_flags_get(swigCPtr); + return ret; + } + } + + public switch_event() : this(freeswitchPINVOKE.new_switch_event(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_event_flag_t { + EF_UNIQ_HEADERS = (1 << 0), + EF_NO_CHAT_EXEC = (1 << 1), + EF_DEFAULT_ALLOW = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_event_header : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_event_header(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_event_header obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_event_header() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_event_header(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string name { + set { + freeswitchPINVOKE.switch_event_header_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_event_header_name_get(swigCPtr); + return ret; + } + } + + public string value { + set { + freeswitchPINVOKE.switch_event_header_value_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_event_header_value_get(swigCPtr); + return ret; + } + } + + public string array { + set { freeswitchPINVOKE.switch_event_header_array_set(swigCPtr, ref value); } + + get { + return freeswitchPINVOKE.switch_event_header_array_get(swigCPtr); + } + + } + + public int idx { + set { + freeswitchPINVOKE.switch_event_header_idx_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_event_header_idx_get(swigCPtr); + return ret; + } + } + + public uint hash { + set { + freeswitchPINVOKE.switch_event_header_hash_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_event_header_hash_get(swigCPtr); + return ret; + } + } + + public switch_event_header next { + set { + freeswitchPINVOKE.switch_event_header_next_set(swigCPtr, switch_event_header.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_event_header_next_get(swigCPtr); + switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false); + return ret; + } + } + + public switch_event_header() : this(freeswitchPINVOKE.new_switch_event_header(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_event_types_t { + SWITCH_EVENT_CUSTOM, + SWITCH_EVENT_CLONE, + SWITCH_EVENT_CHANNEL_CREATE, + SWITCH_EVENT_CHANNEL_DESTROY, + SWITCH_EVENT_CHANNEL_STATE, + SWITCH_EVENT_CHANNEL_CALLSTATE, + SWITCH_EVENT_CHANNEL_ANSWER, + SWITCH_EVENT_CHANNEL_HANGUP, + SWITCH_EVENT_CHANNEL_HANGUP_COMPLETE, + SWITCH_EVENT_CHANNEL_EXECUTE, + SWITCH_EVENT_CHANNEL_EXECUTE_COMPLETE, + SWITCH_EVENT_CHANNEL_HOLD, + SWITCH_EVENT_CHANNEL_UNHOLD, + SWITCH_EVENT_CHANNEL_BRIDGE, + SWITCH_EVENT_CHANNEL_UNBRIDGE, + SWITCH_EVENT_CHANNEL_PROGRESS, + SWITCH_EVENT_CHANNEL_PROGRESS_MEDIA, + SWITCH_EVENT_CHANNEL_OUTGOING, + SWITCH_EVENT_CHANNEL_PARK, + SWITCH_EVENT_CHANNEL_UNPARK, + SWITCH_EVENT_CHANNEL_APPLICATION, + SWITCH_EVENT_CHANNEL_ORIGINATE, + SWITCH_EVENT_CHANNEL_UUID, + SWITCH_EVENT_API, + SWITCH_EVENT_LOG, + SWITCH_EVENT_INBOUND_CHAN, + SWITCH_EVENT_OUTBOUND_CHAN, + SWITCH_EVENT_STARTUP, + SWITCH_EVENT_SHUTDOWN, + SWITCH_EVENT_PUBLISH, + SWITCH_EVENT_UNPUBLISH, + SWITCH_EVENT_TALK, + SWITCH_EVENT_NOTALK, + SWITCH_EVENT_SESSION_CRASH, + SWITCH_EVENT_MODULE_LOAD, + SWITCH_EVENT_MODULE_UNLOAD, + SWITCH_EVENT_DTMF, + SWITCH_EVENT_MESSAGE, + SWITCH_EVENT_PRESENCE_IN, + SWITCH_EVENT_NOTIFY_IN, + SWITCH_EVENT_PRESENCE_OUT, + SWITCH_EVENT_PRESENCE_PROBE, + SWITCH_EVENT_MESSAGE_WAITING, + SWITCH_EVENT_MESSAGE_QUERY, + SWITCH_EVENT_ROSTER, + SWITCH_EVENT_CODEC, + SWITCH_EVENT_BACKGROUND_JOB, + SWITCH_EVENT_DETECTED_SPEECH, + SWITCH_EVENT_DETECTED_TONE, + SWITCH_EVENT_PRIVATE_COMMAND, + SWITCH_EVENT_HEARTBEAT, + SWITCH_EVENT_TRAP, + SWITCH_EVENT_ADD_SCHEDULE, + SWITCH_EVENT_DEL_SCHEDULE, + SWITCH_EVENT_EXE_SCHEDULE, + SWITCH_EVENT_RE_SCHEDULE, + SWITCH_EVENT_RELOADXML, + SWITCH_EVENT_NOTIFY, + SWITCH_EVENT_PHONE_FEATURE, + SWITCH_EVENT_PHONE_FEATURE_SUBSCRIBE, + SWITCH_EVENT_SEND_MESSAGE, + SWITCH_EVENT_RECV_MESSAGE, + SWITCH_EVENT_REQUEST_PARAMS, + SWITCH_EVENT_CHANNEL_DATA, + SWITCH_EVENT_GENERAL, + SWITCH_EVENT_COMMAND, + SWITCH_EVENT_SESSION_HEARTBEAT, + SWITCH_EVENT_CLIENT_DISCONNECTED, + SWITCH_EVENT_SERVER_DISCONNECTED, + SWITCH_EVENT_SEND_INFO, + SWITCH_EVENT_RECV_INFO, + SWITCH_EVENT_RECV_RTCP_MESSAGE, + SWITCH_EVENT_CALL_SECURE, + SWITCH_EVENT_NAT, + SWITCH_EVENT_RECORD_START, + SWITCH_EVENT_RECORD_STOP, + SWITCH_EVENT_PLAYBACK_START, + SWITCH_EVENT_PLAYBACK_STOP, + SWITCH_EVENT_CALL_UPDATE, + SWITCH_EVENT_FAILURE, + SWITCH_EVENT_SOCKET_DATA, + SWITCH_EVENT_MEDIA_BUG_START, + SWITCH_EVENT_MEDIA_BUG_STOP, + SWITCH_EVENT_CONFERENCE_DATA_QUERY, + SWITCH_EVENT_CONFERENCE_DATA, + SWITCH_EVENT_CALL_SETUP_REQ, + SWITCH_EVENT_CALL_SETUP_RESULT, + SWITCH_EVENT_CALL_DETAIL, + SWITCH_EVENT_DEVICE_STATE, + SWITCH_EVENT_ALL +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_file_flag_enum_t { + SWITCH_FILE_FLAG_READ = (1 << 0), + SWITCH_FILE_FLAG_WRITE = (1 << 1), + SWITCH_FILE_FLAG_FREE_POOL = (1 << 2), + SWITCH_FILE_DATA_SHORT = (1 << 3), + SWITCH_FILE_DATA_INT = (1 << 4), + SWITCH_FILE_DATA_FLOAT = (1 << 5), + SWITCH_FILE_DATA_DOUBLE = (1 << 6), + SWITCH_FILE_DATA_RAW = (1 << 7), + SWITCH_FILE_PAUSE = (1 << 8), + SWITCH_FILE_NATIVE = (1 << 9), + SWITCH_FILE_SEEK = (1 << 10), + SWITCH_FILE_OPEN = (1 << 11), + SWITCH_FILE_CALLBACK = (1 << 12), + SWITCH_FILE_DONE = (1 << 13), + SWITCH_FILE_BUFFER_DONE = (1 << 14), + SWITCH_FILE_WRITE_APPEND = (1 << 15), + SWITCH_FILE_WRITE_OVER = (1 << 16), + SWITCH_FILE_NOMUX = (1 << 17), + SWITCH_FILE_BREAK_ON_CHANGE = (1 << 18) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_file_handle : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_file_handle(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_file_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_file_handle() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_file_handle(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_file_interface file_interface { + set { + freeswitchPINVOKE.switch_file_handle_file_interface_set(swigCPtr, switch_file_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_file_interface_get(swigCPtr); + switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_file_handle_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_file_t fd { + set { + freeswitchPINVOKE.switch_file_handle_fd_set(swigCPtr, SWIGTYPE_p_switch_file_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_fd_get(swigCPtr); + SWIGTYPE_p_switch_file_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_file_t(cPtr, false); + return ret; + } + } + + public uint samples { + set { + freeswitchPINVOKE.switch_file_handle_samples_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_samples_get(swigCPtr); + return ret; + } + } + + public uint samplerate { + set { + freeswitchPINVOKE.switch_file_handle_samplerate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_samplerate_get(swigCPtr); + return ret; + } + } + + public uint native_rate { + set { + freeswitchPINVOKE.switch_file_handle_native_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_native_rate_get(swigCPtr); + return ret; + } + } + + public uint channels { + set { + freeswitchPINVOKE.switch_file_handle_channels_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_channels_get(swigCPtr); + return ret; + } + } + + public uint real_channels { + set { + freeswitchPINVOKE.switch_file_handle_real_channels_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_real_channels_get(swigCPtr); + return ret; + } + } + + public uint format { + set { + freeswitchPINVOKE.switch_file_handle_format_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_format_get(swigCPtr); + return ret; + } + } + + public uint sections { + set { + freeswitchPINVOKE.switch_file_handle_sections_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_sections_get(swigCPtr); + return ret; + } + } + + public int seekable { + set { + freeswitchPINVOKE.switch_file_handle_seekable_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_file_handle_seekable_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t sample_count { + set { + freeswitchPINVOKE.switch_file_handle_sample_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_sample_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public int speed { + set { + freeswitchPINVOKE.switch_file_handle_speed_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_file_handle_speed_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t memory_pool { + set { + freeswitchPINVOKE.switch_file_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_memory_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public uint prebuf { + set { + freeswitchPINVOKE.switch_file_handle_prebuf_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_prebuf_get(swigCPtr); + return ret; + } + } + + public uint interval { + set { + freeswitchPINVOKE.switch_file_handle_interval_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_interval_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_file_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public string handler { + set { + freeswitchPINVOKE.switch_file_handle_handler_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_handler_get(swigCPtr); + return ret; + } + } + + public long pos { + set { + freeswitchPINVOKE.switch_file_handle_pos_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_file_handle_pos_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_buffer audio_buffer { + set { + freeswitchPINVOKE.switch_file_handle_audio_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_audio_buffer_get(swigCPtr); + SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_buffer sp_audio_buffer { + set { + freeswitchPINVOKE.switch_file_handle_sp_audio_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_sp_audio_buffer_get(swigCPtr); + SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); + return ret; + } + } + + public uint thresh { + set { + freeswitchPINVOKE.switch_file_handle_thresh_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_thresh_get(swigCPtr); + return ret; + } + } + + public uint silence_hits { + set { + freeswitchPINVOKE.switch_file_handle_silence_hits_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_silence_hits_get(swigCPtr); + return ret; + } + } + + public uint offset_pos { + set { + freeswitchPINVOKE.switch_file_handle_offset_pos_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_offset_pos_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t samples_in { + set { + freeswitchPINVOKE.switch_file_handle_samples_in_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_samples_in_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t samples_out { + set { + freeswitchPINVOKE.switch_file_handle_samples_out_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_samples_out_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public int vol { + set { + freeswitchPINVOKE.switch_file_handle_vol_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_file_handle_vol_get(swigCPtr); + return ret; + } + } + + public switch_audio_resampler_t resampler { + set { + freeswitchPINVOKE.switch_file_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_resampler_get(swigCPtr); + switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_buffer buffer { + set { + freeswitchPINVOKE.switch_file_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_buffer_get(swigCPtr); + SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char dbuf { + set { + freeswitchPINVOKE.switch_file_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_dbuf_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t dbuflen { + set { + freeswitchPINVOKE.switch_file_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_dbuflen_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_buffer pre_buffer { + set { + freeswitchPINVOKE.switch_file_handle_pre_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_pre_buffer_get(swigCPtr); + SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char pre_buffer_data { + set { + freeswitchPINVOKE.switch_file_handle_pre_buffer_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_pre_buffer_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t pre_buffer_datalen { + set { + freeswitchPINVOKE.switch_file_handle_pre_buffer_datalen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_file_handle_pre_buffer_datalen_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string file { + set { + freeswitchPINVOKE.switch_file_handle_file_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_file_get(swigCPtr); + return ret; + } + } + + public string func { + set { + freeswitchPINVOKE.switch_file_handle_func_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_func_get(swigCPtr); + return ret; + } + } + + public int line { + set { + freeswitchPINVOKE.switch_file_handle_line_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_file_handle_line_get(swigCPtr); + return ret; + } + } + + public string file_path { + set { + freeswitchPINVOKE.switch_file_handle_file_path_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_file_path_get(swigCPtr); + return ret; + } + } + + public string spool_path { + set { + freeswitchPINVOKE.switch_file_handle_spool_path_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_spool_path_get(swigCPtr); + return ret; + } + } + + public string prefix { + set { + freeswitchPINVOKE.switch_file_handle_prefix_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_prefix_get(swigCPtr); + return ret; + } + } + + public int max_samples { + set { + freeswitchPINVOKE.switch_file_handle_max_samples_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_file_handle_max_samples_get(swigCPtr); + return ret; + } + } + + public switch_event _params { + set { + freeswitchPINVOKE.switch_file_handle__params_set(swigCPtr, switch_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle__params_get(swigCPtr); + switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); + return ret; + } + } + + public uint cur_channels { + set { + freeswitchPINVOKE.switch_file_handle_cur_channels_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_cur_channels_get(swigCPtr); + return ret; + } + } + + public uint cur_samplerate { + set { + freeswitchPINVOKE.switch_file_handle_cur_samplerate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_file_handle_cur_samplerate_get(swigCPtr); + return ret; + } + } + + public switch_file_handle() : this(freeswitchPINVOKE.new_switch_file_handle(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_file_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_file_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_file_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_file_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_file_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_file_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t file_open { + set { + freeswitchPINVOKE.switch_file_interface_file_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_open_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle__switch_status_t file_close { + set { + freeswitchPINVOKE.switch_file_interface_file_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_close_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t file_truncate { + set { + freeswitchPINVOKE.switch_file_interface_file_truncate_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_truncate_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_long_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_read { + set { + freeswitchPINVOKE.switch_file_interface_file_read_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_read_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_write { + set { + freeswitchPINVOKE.switch_file_interface_file_write_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_write_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_read_video { + set { + freeswitchPINVOKE.switch_file_interface_file_read_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_read_video_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_write_video { + set { + freeswitchPINVOKE.switch_file_interface_file_write_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_write_video_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t file_seek { + set { + freeswitchPINVOKE.switch_file_interface_file_seek_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_seek_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t file_set_string { + set { + freeswitchPINVOKE.switch_file_interface_file_set_string_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_set_string_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t file_get_string { + set { + freeswitchPINVOKE.switch_file_interface_file_get_string_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_get_string_get(swigCPtr); + SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_enum_switch_audio_col_t_p_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public string extens { + set { freeswitchPINVOKE.switch_file_interface_extens_set(swigCPtr, ref value); } + + get { + return freeswitchPINVOKE.switch_file_interface_extens_get(swigCPtr); + } + + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_file_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_file_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_file_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_file_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_file_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_file_interface next { + set { + freeswitchPINVOKE.switch_file_interface_next_set(swigCPtr, switch_file_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_next_get(swigCPtr); + switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); + return ret; + } + } + + public switch_file_interface() : this(freeswitchPINVOKE.new_switch_file_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_filenames : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_filenames(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_filenames obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_filenames() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_filenames(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string conf_name { + set { + freeswitchPINVOKE.switch_filenames_conf_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_filenames_conf_name_get(swigCPtr); + return ret; + } + } + + public switch_filenames() : this(freeswitchPINVOKE.new_switch_filenames(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_frame : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_frame(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_frame() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_frame(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_codec codec { + set { + freeswitchPINVOKE.switch_frame_codec_set(swigCPtr, switch_codec.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_codec_get(swigCPtr); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + } + + public string source { + set { + freeswitchPINVOKE.switch_frame_source_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_frame_source_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void packet { + set { + freeswitchPINVOKE.switch_frame_packet_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_packet_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public uint packetlen { + set { + freeswitchPINVOKE.switch_frame_packetlen_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_packetlen_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void extra_data { + set { + freeswitchPINVOKE.switch_frame_extra_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_extra_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void data { + set { + freeswitchPINVOKE.switch_frame_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public uint datalen { + set { + freeswitchPINVOKE.switch_frame_datalen_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_datalen_get(swigCPtr); + return ret; + } + } + + public uint buflen { + set { + freeswitchPINVOKE.switch_frame_buflen_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_buflen_get(swigCPtr); + return ret; + } + } + + public uint samples { + set { + freeswitchPINVOKE.switch_frame_samples_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_samples_get(swigCPtr); + return ret; + } + } + + public uint rate { + set { + freeswitchPINVOKE.switch_frame_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_rate_get(swigCPtr); + return ret; + } + } + + public uint channels { + set { + freeswitchPINVOKE.switch_frame_channels_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_channels_get(swigCPtr); + return ret; + } + } + + public byte payload { + set { + freeswitchPINVOKE.switch_frame_payload_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_frame_payload_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t timestamp { + set { + freeswitchPINVOKE.switch_frame_timestamp_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_frame_timestamp_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public ushort seq { + set { + freeswitchPINVOKE.switch_frame_seq_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_frame_seq_get(swigCPtr); + return ret; + } + } + + public uint ssrc { + set { + freeswitchPINVOKE.switch_frame_ssrc_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_ssrc_get(swigCPtr); + return ret; + } + } + + public switch_bool_t m { + set { + freeswitchPINVOKE.switch_frame_m_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_frame_m_get(swigCPtr); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_frame_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_frame_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void user_data { + set { + freeswitchPINVOKE.switch_frame_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public payload_map_t pmap { + set { + freeswitchPINVOKE.switch_frame_pmap_set(swigCPtr, payload_map_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_pmap_get(swigCPtr); + payload_map_t ret = (cPtr == IntPtr.Zero) ? null : new payload_map_t(cPtr, false); + return ret; + } + } + + public switch_frame() : this(freeswitchPINVOKE.new_switch_frame(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_frame_flag_enum_t { + SFF_NONE = 0, + SFF_CNG = (1 << 0), + SFF_RAW_RTP = (1 << 1), + SFF_RTP_HEADER = (1 << 2), + SFF_PLC = (1 << 3), + SFF_RFC2833 = (1 << 4), + SFF_PROXY_PACKET = (1 << 5), + SFF_DYNAMIC = (1 << 6), + SFF_ZRTP = (1 << 7), + SFF_UDPTL_PACKET = (1 << 8), + SFF_NOT_AUDIO = (1 << 9), + SFF_RTCP = (1 << 10) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_hold_record_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_hold_record_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_hold_record_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_hold_record_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_hold_record_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_time_t on { + set { + freeswitchPINVOKE.switch_hold_record_t_on_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_hold_record_t_on_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t off { + set { + freeswitchPINVOKE.switch_hold_record_t_off_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_hold_record_t_off_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string uuid { + set { + freeswitchPINVOKE.switch_hold_record_t_uuid_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_hold_record_t_uuid_get(swigCPtr); + return ret; + } + } + + public switch_hold_record_t next { + set { + freeswitchPINVOKE.switch_hold_record_t_next_set(swigCPtr, switch_hold_record_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_hold_record_t_next_get(swigCPtr); + switch_hold_record_t ret = (cPtr == IntPtr.Zero) ? null : new switch_hold_record_t(cPtr, false); + return ret; + } + } + + public switch_hold_record_t() : this(freeswitchPINVOKE.new_switch_hold_record_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_http_request_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_http_request_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_http_request_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_http_request_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_http_request_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string method { + set { + freeswitchPINVOKE.switch_http_request_t_method_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_method_get(swigCPtr); + return ret; + } + } + + public string uri { + set { + freeswitchPINVOKE.switch_http_request_t_uri_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_uri_get(swigCPtr); + return ret; + } + } + + public string qs { + set { + freeswitchPINVOKE.switch_http_request_t_qs_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_qs_get(swigCPtr); + return ret; + } + } + + public string host { + set { + freeswitchPINVOKE.switch_http_request_t_host_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_host_get(swigCPtr); + return ret; + } + } + + public ushort port { + set { + freeswitchPINVOKE.switch_http_request_t_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_http_request_t_port_get(swigCPtr); + return ret; + } + } + + public string from { + set { + freeswitchPINVOKE.switch_http_request_t_from_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_from_get(swigCPtr); + return ret; + } + } + + public string user_agent { + set { + freeswitchPINVOKE.switch_http_request_t_user_agent_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_user_agent_get(swigCPtr); + return ret; + } + } + + public string referer { + set { + freeswitchPINVOKE.switch_http_request_t_referer_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_referer_get(swigCPtr); + return ret; + } + } + + public string user { + set { + freeswitchPINVOKE.switch_http_request_t_user_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_user_get(swigCPtr); + return ret; + } + } + + public switch_bool_t keepalive { + set { + freeswitchPINVOKE.switch_http_request_t_keepalive_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_http_request_t_keepalive_get(swigCPtr); + return ret; + } + } + + public string content_type { + set { + freeswitchPINVOKE.switch_http_request_t_content_type_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_content_type_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t content_length { + set { + freeswitchPINVOKE.switch_http_request_t_content_length_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_content_length_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t bytes_header { + set { + freeswitchPINVOKE.switch_http_request_t_bytes_header_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_bytes_header_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t bytes_read { + set { + freeswitchPINVOKE.switch_http_request_t_bytes_read_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_bytes_read_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t bytes_buffered { + set { + freeswitchPINVOKE.switch_http_request_t_bytes_buffered_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_http_request_t_bytes_buffered_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_event headers { + set { + freeswitchPINVOKE.switch_http_request_t_headers_set(swigCPtr, switch_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_http_request_t_headers_get(swigCPtr); + switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void user_data { + set { + freeswitchPINVOKE.switch_http_request_t_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_http_request_t_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public string _buffer { + set { + freeswitchPINVOKE.switch_http_request_t__buffer_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t__buffer_get(swigCPtr); + return ret; + } + } + + public switch_bool_t _destroy_headers { + set { + freeswitchPINVOKE.switch_http_request_t__destroy_headers_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_http_request_t__destroy_headers_get(swigCPtr); + return ret; + } + } + + public switch_http_request_t() : this(freeswitchPINVOKE.new_switch_http_request_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_hup_type_t { + SHT_NONE = 0, + SHT_UNANSWERED = (1 << 0), + SHT_ANSWERED = (1 << 1) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_input_args_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_input_args_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_input_args_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_input_args_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_input_args_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t input_callback { + set { + freeswitchPINVOKE.switch_input_args_t_input_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_input_callback_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_void_enum_switch_input_type_t_p_void_unsigned_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void buf { + set { + freeswitchPINVOKE.switch_input_args_t_buf_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_buf_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public uint buflen { + set { + freeswitchPINVOKE.switch_input_args_t_buflen_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_input_args_t_buflen_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t read_frame_callback { + set { + freeswitchPINVOKE.switch_input_args_t_read_frame_callback_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_read_frame_callback_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void user_data { + set { + freeswitchPINVOKE.switch_input_args_t_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_ivr_dmachine dmachine { + set { + freeswitchPINVOKE.switch_input_args_t_dmachine_set(swigCPtr, SWIGTYPE_p_switch_ivr_dmachine.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_input_args_t_dmachine_get(swigCPtr); + SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); + return ret; + } + } + + public int loops { + set { + freeswitchPINVOKE.switch_input_args_t_loops_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_input_args_t_loops_get(swigCPtr); + return ret; + } + } + + public switch_input_args_t() : this(freeswitchPINVOKE.new_switch_input_args_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_input_type_t { + SWITCH_INPUT_TYPE_DTMF, + SWITCH_INPUT_TYPE_EVENT +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_kill_channel : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_kill_channel(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_kill_channel obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_kill_channel() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_kill_channel(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel { + set { + freeswitchPINVOKE.switch_io_event_hook_kill_channel_kill_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_kill_channel_kill_channel_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_kill_channel next { + set { + freeswitchPINVOKE.switch_io_event_hook_kill_channel_next_set(swigCPtr, switch_io_event_hook_kill_channel.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_kill_channel_next_get(swigCPtr); + switch_io_event_hook_kill_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_kill_channel(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_kill_channel() : this(freeswitchPINVOKE.new_switch_io_event_hook_kill_channel(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_outgoing_channel : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_outgoing_channel(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_outgoing_channel obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_outgoing_channel() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_outgoing_channel(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t outgoing_channel { + set { + freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_outgoing_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_outgoing_channel_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_switch_core_session_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_outgoing_channel next { + set { + freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_next_set(swigCPtr, switch_io_event_hook_outgoing_channel.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_outgoing_channel_next_get(swigCPtr); + switch_io_event_hook_outgoing_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_outgoing_channel(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_outgoing_channel() : this(freeswitchPINVOKE.new_switch_io_event_hook_outgoing_channel(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_read_frame : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_read_frame(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_read_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_read_frame() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_read_frame(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame { + set { + freeswitchPINVOKE.switch_io_event_hook_read_frame_read_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_read_frame_read_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_read_frame next { + set { + freeswitchPINVOKE.switch_io_event_hook_read_frame_next_set(swigCPtr, switch_io_event_hook_read_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_read_frame_next_get(swigCPtr); + switch_io_event_hook_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_read_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_read_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_read_frame(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_receive_event : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_receive_event(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_receive_event obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_receive_event() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_receive_event(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event { + set { + freeswitchPINVOKE.switch_io_event_hook_receive_event_receive_event_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_event_receive_event_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_receive_event next { + set { + freeswitchPINVOKE.switch_io_event_hook_receive_event_next_set(swigCPtr, switch_io_event_hook_receive_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_event_next_get(swigCPtr); + switch_io_event_hook_receive_event ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_event(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_receive_event() : this(freeswitchPINVOKE.new_switch_io_event_hook_receive_event(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_receive_message : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_receive_message(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_receive_message obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_receive_message() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_receive_message(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message { + set { + freeswitchPINVOKE.switch_io_event_hook_receive_message_receive_message_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_message_receive_message_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_receive_message next { + set { + freeswitchPINVOKE.switch_io_event_hook_receive_message_next_set(swigCPtr, switch_io_event_hook_receive_message.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_receive_message_next_get(swigCPtr); + switch_io_event_hook_receive_message ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_message(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_receive_message() : this(freeswitchPINVOKE.new_switch_io_event_hook_receive_message(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_recv_dtmf : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_recv_dtmf(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_recv_dtmf obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_recv_dtmf() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_recv_dtmf(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t recv_dtmf { + set { + freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_recv_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_recv_dtmf_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_recv_dtmf next { + set { + freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_next_set(swigCPtr, switch_io_event_hook_recv_dtmf.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_recv_dtmf_next_get(swigCPtr); + switch_io_event_hook_recv_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_recv_dtmf(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_recv_dtmf() : this(freeswitchPINVOKE.new_switch_io_event_hook_recv_dtmf(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hooks : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hooks(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hooks obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hooks() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hooks(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_io_event_hook_outgoing_channel outgoing_channel { + set { + freeswitchPINVOKE.switch_io_event_hooks_outgoing_channel_set(swigCPtr, switch_io_event_hook_outgoing_channel.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_outgoing_channel_get(swigCPtr); + switch_io_event_hook_outgoing_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_outgoing_channel(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_receive_message receive_message { + set { + freeswitchPINVOKE.switch_io_event_hooks_receive_message_set(swigCPtr, switch_io_event_hook_receive_message.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_receive_message_get(swigCPtr); + switch_io_event_hook_receive_message ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_message(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_receive_event receive_event { + set { + freeswitchPINVOKE.switch_io_event_hooks_receive_event_set(swigCPtr, switch_io_event_hook_receive_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_receive_event_get(swigCPtr); + switch_io_event_hook_receive_event ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_receive_event(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_read_frame read_frame { + set { + freeswitchPINVOKE.switch_io_event_hooks_read_frame_set(swigCPtr, switch_io_event_hook_read_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_read_frame_get(swigCPtr); + switch_io_event_hook_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_read_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_video_read_frame video_read_frame { + set { + freeswitchPINVOKE.switch_io_event_hooks_video_read_frame_set(swigCPtr, switch_io_event_hook_video_read_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_video_read_frame_get(swigCPtr); + switch_io_event_hook_video_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_read_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_write_frame write_frame { + set { + freeswitchPINVOKE.switch_io_event_hooks_write_frame_set(swigCPtr, switch_io_event_hook_write_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_write_frame_get(swigCPtr); + switch_io_event_hook_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_write_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_video_write_frame video_write_frame { + set { + freeswitchPINVOKE.switch_io_event_hooks_video_write_frame_set(swigCPtr, switch_io_event_hook_video_write_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_video_write_frame_get(swigCPtr); + switch_io_event_hook_video_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_write_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_kill_channel kill_channel { + set { + freeswitchPINVOKE.switch_io_event_hooks_kill_channel_set(swigCPtr, switch_io_event_hook_kill_channel.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_kill_channel_get(swigCPtr); + switch_io_event_hook_kill_channel ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_kill_channel(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_send_dtmf send_dtmf { + set { + freeswitchPINVOKE.switch_io_event_hooks_send_dtmf_set(swigCPtr, switch_io_event_hook_send_dtmf.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_send_dtmf_get(swigCPtr); + switch_io_event_hook_send_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_send_dtmf(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_recv_dtmf recv_dtmf { + set { + freeswitchPINVOKE.switch_io_event_hooks_recv_dtmf_set(swigCPtr, switch_io_event_hook_recv_dtmf.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_recv_dtmf_get(swigCPtr); + switch_io_event_hook_recv_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_recv_dtmf(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_state_change state_change { + set { + freeswitchPINVOKE.switch_io_event_hooks_state_change_set(swigCPtr, switch_io_event_hook_state_change.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_state_change_get(swigCPtr); + switch_io_event_hook_state_change ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_change(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_state_run state_run { + set { + freeswitchPINVOKE.switch_io_event_hooks_state_run_set(swigCPtr, switch_io_event_hook_state_run.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hooks_state_run_get(swigCPtr); + switch_io_event_hook_state_run ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_run(cPtr, false); + return ret; + } + } + + public switch_io_event_hooks() : this(freeswitchPINVOKE.new_switch_io_event_hooks(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_send_dtmf : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_send_dtmf(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_send_dtmf obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_send_dtmf() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_send_dtmf(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t send_dtmf { + set { + freeswitchPINVOKE.switch_io_event_hook_send_dtmf_send_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_send_dtmf_send_dtmf_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t_enum_switch_dtmf_direction_t__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_send_dtmf next { + set { + freeswitchPINVOKE.switch_io_event_hook_send_dtmf_next_set(swigCPtr, switch_io_event_hook_send_dtmf.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_send_dtmf_next_get(swigCPtr); + switch_io_event_hook_send_dtmf ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_send_dtmf(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_send_dtmf() : this(freeswitchPINVOKE.new_switch_io_event_hook_send_dtmf(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_state_change : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_state_change(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_state_change obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_state_change() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_state_change(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change { + set { + freeswitchPINVOKE.switch_io_event_hook_state_change_state_change_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_change_state_change_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_state_change next { + set { + freeswitchPINVOKE.switch_io_event_hook_state_change_next_set(swigCPtr, switch_io_event_hook_state_change.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_change_next_get(swigCPtr); + switch_io_event_hook_state_change ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_change(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_state_change() : this(freeswitchPINVOKE.new_switch_io_event_hook_state_change(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_state_run : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_state_run(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_state_run obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_state_run() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_state_run(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run { + set { + freeswitchPINVOKE.switch_io_event_hook_state_run_state_run_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_run_state_run_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_state_run next { + set { + freeswitchPINVOKE.switch_io_event_hook_state_run_next_set(swigCPtr, switch_io_event_hook_state_run.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_state_run_next_get(swigCPtr); + switch_io_event_hook_state_run ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_state_run(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_state_run() : this(freeswitchPINVOKE.new_switch_io_event_hook_state_run(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_video_read_frame : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_video_read_frame(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_video_read_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_video_read_frame() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_video_read_frame(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t video_read_frame { + set { + freeswitchPINVOKE.switch_io_event_hook_video_read_frame_video_read_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_read_frame_video_read_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_video_read_frame next { + set { + freeswitchPINVOKE.switch_io_event_hook_video_read_frame_next_set(swigCPtr, switch_io_event_hook_video_read_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_read_frame_next_get(swigCPtr); + switch_io_event_hook_video_read_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_read_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_video_read_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_video_read_frame(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_video_write_frame : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_video_write_frame(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_video_write_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_video_write_frame() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_video_write_frame(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t video_write_frame { + set { + freeswitchPINVOKE.switch_io_event_hook_video_write_frame_video_write_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_write_frame_video_write_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_video_write_frame next { + set { + freeswitchPINVOKE.switch_io_event_hook_video_write_frame_next_set(swigCPtr, switch_io_event_hook_video_write_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_video_write_frame_next_get(swigCPtr); + switch_io_event_hook_video_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_video_write_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_video_write_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_video_write_frame(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_event_hook_write_frame : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_event_hook_write_frame(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_event_hook_write_frame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_event_hook_write_frame() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_event_hook_write_frame(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame { + set { + freeswitchPINVOKE.switch_io_event_hook_write_frame_write_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_write_frame_write_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_write_frame next { + set { + freeswitchPINVOKE.switch_io_event_hook_write_frame_next_set(swigCPtr, switch_io_event_hook_write_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_event_hook_write_frame_next_get(swigCPtr); + switch_io_event_hook_write_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_io_event_hook_write_frame(cPtr, false); + return ret; + } + } + + public switch_io_event_hook_write_frame() : this(freeswitchPINVOKE.new_switch_io_event_hook_write_frame(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_io_flag_enum_t { + SWITCH_IO_FLAG_NONE = 0, + SWITCH_IO_FLAG_NOBLOCK = (1 << 0), + SWITCH_IO_FLAG_SINGLE_READ = (1 << 1) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_io_routine_name_t { + SWITCH_IO_OUTGOING_CHANNEL, + SWITCH_IO_READ_FRAME, + SWITCH_IO_WRITE_FRAME, + SWITCH_IO_KILL_CHANNEL, + SWITCH_IO_SEND_DTMF, + SWITCH_IO_RECEIVE_MESSAGE, + SWITCH_IO_RECEIVE_EVENT, + SWITCH_IO_STATE_CHANGE, + SWITCH_IO_READ_VIDEO_FRAME, + SWITCH_IO_WRITE_VIDEO_FRAME, + SWITCH_IO_GET_JB +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_io_routines : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_io_routines(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_io_routines obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_io_routines() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_io_routines(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t outgoing_channel { + set { + freeswitchPINVOKE.switch_io_routines_outgoing_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_outgoing_channel_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event_p_switch_caller_profile_p_p_switch_core_session_p_p_apr_pool_t_unsigned_long_p_enum_switch_call_cause_t__switch_call_cause_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_frame { + set { + freeswitchPINVOKE.switch_io_routines_read_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_read_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_frame { + set { + freeswitchPINVOKE.switch_io_routines_write_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_write_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t kill_channel { + set { + freeswitchPINVOKE.switch_io_routines_kill_channel_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_kill_channel_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t send_dtmf { + set { + freeswitchPINVOKE.switch_io_routines_send_dtmf_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_send_dtmf_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__switch_dtmf_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t receive_message { + set { + freeswitchPINVOKE.switch_io_routines_receive_message_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_receive_message_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_core_session_message__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t receive_event { + set { + freeswitchPINVOKE.switch_io_routines_receive_event_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_receive_event_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_event__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_change { + set { + freeswitchPINVOKE.switch_io_routines_state_change_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_state_change_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t read_video_frame { + set { + freeswitchPINVOKE.switch_io_routines_read_video_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_read_video_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t write_video_frame { + set { + freeswitchPINVOKE.switch_io_routines_write_video_frame_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_write_video_frame_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_unsigned_long_int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t state_run { + set { + freeswitchPINVOKE.switch_io_routines_state_run_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_state_run_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t get_jb { + set { + freeswitchPINVOKE.switch_io_routines_get_jb_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_get_jb_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_enum_switch_media_type_t__p_stfu_instance_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_p_void padding { + set { + freeswitchPINVOKE.switch_io_routines_padding_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_io_routines_padding_get(swigCPtr); + SWIGTYPE_p_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); + return ret; + } + } + + public switch_io_routines() : this(freeswitchPINVOKE.new_switch_io_routines(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_ivr_action_t { + SWITCH_IVR_ACTION_DIE, + SWITCH_IVR_ACTION_EXECMENU, + SWITCH_IVR_ACTION_EXECAPP, + SWITCH_IVR_ACTION_PLAYSOUND, + SWITCH_IVR_ACTION_BACK, + SWITCH_IVR_ACTION_TOMAIN, + SWITCH_IVR_ACTION_NOOP +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_ivr_dmachine_match : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_ivr_dmachine_match(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_ivr_dmachine_match obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_ivr_dmachine_match() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_ivr_dmachine_match(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_ivr_dmachine dmachine { + set { + freeswitchPINVOKE.switch_ivr_dmachine_match_dmachine_set(swigCPtr, SWIGTYPE_p_switch_ivr_dmachine.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_ivr_dmachine_match_dmachine_get(swigCPtr); + SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); + return ret; + } + } + + public string match_digits { + set { + freeswitchPINVOKE.switch_ivr_dmachine_match_match_digits_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_ivr_dmachine_match_match_digits_get(swigCPtr); + return ret; + } + } + + public int match_key { + set { + freeswitchPINVOKE.switch_ivr_dmachine_match_match_key_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_ivr_dmachine_match_match_key_get(swigCPtr); + return ret; + } + } + + public dm_match_type_t type { + set { + freeswitchPINVOKE.switch_ivr_dmachine_match_type_set(swigCPtr, (int)value); + } + get { + dm_match_type_t ret = (dm_match_type_t)freeswitchPINVOKE.switch_ivr_dmachine_match_type_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void user_data { + set { + freeswitchPINVOKE.switch_ivr_dmachine_match_user_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_ivr_dmachine_match_user_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public switch_ivr_dmachine_match() : this(freeswitchPINVOKE.new_switch_ivr_dmachine_match(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_ivr_menu_flags { + SWITCH_IVR_MENU_FLAG_FALLTOMAIN = (1 << 0), + SWITCH_IVR_MENU_FLAG_FREEPOOL = (1 << 1), + SWITCH_IVR_MENU_FLAG_STACK = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_ivr_option_enum_t { + SWITCH_IVR_OPTION_NONE = 0, + SWITCH_IVR_OPTION_ASYNC = (1 << 0), + SWITCH_IVR_OPTION_FILE = (1 << 1) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_json_api_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_json_api_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_json_api_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_json_api_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_json_api_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_json_api_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_json_api_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public string desc { + set { + freeswitchPINVOKE.switch_json_api_interface_desc_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_json_api_interface_desc_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t function { + set { + freeswitchPINVOKE.switch_json_api_interface_function_set(swigCPtr, SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_function_get(swigCPtr); + SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__cJSON_p_switch_core_session_p_p_cJSON__switch_status_t(cPtr, false); + return ret; + } + } + + public string syntax { + set { + freeswitchPINVOKE.switch_json_api_interface_syntax_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_json_api_interface_syntax_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_json_api_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_json_api_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_json_api_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_json_api_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_json_api_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_json_api_interface next { + set { + freeswitchPINVOKE.switch_json_api_interface_next_set(swigCPtr, switch_json_api_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_json_api_interface_next_get(swigCPtr); + switch_json_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_json_api_interface(cPtr, false); + return ret; + } + } + + public switch_json_api_interface() : this(freeswitchPINVOKE.new_switch_json_api_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_limit_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_limit_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_limit_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_limit_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_limit_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_limit_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_limit_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t incr { + set { + freeswitchPINVOKE.switch_limit_interface_incr_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_incr_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t release { + set { + freeswitchPINVOKE.switch_limit_interface_release_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_release_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int usage { + set { + freeswitchPINVOKE.switch_limit_interface_usage_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_usage_get(swigCPtr); + SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_void__switch_status_t reset { + set { + freeswitchPINVOKE.switch_limit_interface_reset_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_reset_get(swigCPtr); + SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_void__p_char status { + set { + freeswitchPINVOKE.switch_limit_interface_status_set(swigCPtr, SWIGTYPE_p_f_void__p_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_status_get(swigCPtr); + SWIGTYPE_p_f_void__p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__p_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t interval_reset { + set { + freeswitchPINVOKE.switch_limit_interface_interval_reset_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_interval_reset_get(swigCPtr); + SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_limit_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_limit_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_limit_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_limit_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_limit_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_limit_interface next { + set { + freeswitchPINVOKE.switch_limit_interface_next_set(swigCPtr, switch_limit_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_next_get(swigCPtr); + switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); + return ret; + } + } + + public switch_limit_interface() : this(freeswitchPINVOKE.new_switch_limit_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_loadable_module_function_table_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_loadable_module_function_table_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_loadable_module_function_table_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_loadable_module_function_table_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_loadable_module_function_table_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int switch_api_version { + set { + freeswitchPINVOKE.switch_loadable_module_function_table_t_switch_api_version_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_loadable_module_function_table_t_switch_api_version_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t load { + set { + freeswitchPINVOKE.switch_loadable_module_function_table_t_load_set(swigCPtr, SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_function_table_t_load_get(swigCPtr); + SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_p_switch_loadable_module_interface_p_apr_pool_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_void__switch_status_t shutdown { + set { + freeswitchPINVOKE.switch_loadable_module_function_table_t_shutdown_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_function_table_t_shutdown_get(swigCPtr); + SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_void__switch_status_t runtime { + set { + freeswitchPINVOKE.switch_loadable_module_function_table_t_runtime_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_function_table_t_runtime_get(swigCPtr); + SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_loadable_module_function_table_t_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_loadable_module_function_table_t_flags_get(swigCPtr); + return ret; + } + } + + public switch_loadable_module_function_table_t() : this(freeswitchPINVOKE.new_switch_loadable_module_function_table_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_loadable_module_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_loadable_module_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_loadable_module_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_loadable_module_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_loadable_module_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string module_name { + set { + freeswitchPINVOKE.switch_loadable_module_interface_module_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_loadable_module_interface_module_name_get(swigCPtr); + return ret; + } + } + + public switch_endpoint_interface endpoint_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_endpoint_interface_set(swigCPtr, switch_endpoint_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_endpoint_interface_get(swigCPtr); + switch_endpoint_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_endpoint_interface(cPtr, false); + return ret; + } + } + + public switch_timer_interface timer_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_timer_interface_set(swigCPtr, switch_timer_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_timer_interface_get(swigCPtr); + switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); + return ret; + } + } + + public switch_dialplan_interface dialplan_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_dialplan_interface_set(swigCPtr, switch_dialplan_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_dialplan_interface_get(swigCPtr); + switch_dialplan_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_dialplan_interface(cPtr, false); + return ret; + } + } + + public switch_codec_interface codec_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_codec_interface_set(swigCPtr, switch_codec_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_codec_interface_get(swigCPtr); + switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); + return ret; + } + } + + public switch_application_interface application_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_application_interface_set(swigCPtr, switch_application_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_application_interface_get(swigCPtr); + switch_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_application_interface(cPtr, false); + return ret; + } + } + + public switch_chat_application_interface chat_application_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_chat_application_interface_set(swigCPtr, switch_chat_application_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_chat_application_interface_get(swigCPtr); + switch_chat_application_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_application_interface(cPtr, false); + return ret; + } + } + + public switch_api_interface api_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_api_interface_set(swigCPtr, switch_api_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_api_interface_get(swigCPtr); + switch_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_api_interface(cPtr, false); + return ret; + } + } + + public switch_json_api_interface json_api_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_json_api_interface_set(swigCPtr, switch_json_api_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_json_api_interface_get(swigCPtr); + switch_json_api_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_json_api_interface(cPtr, false); + return ret; + } + } + + public switch_file_interface file_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_file_interface_set(swigCPtr, switch_file_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_file_interface_get(swigCPtr); + switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); + return ret; + } + } + + public switch_speech_interface speech_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_speech_interface_set(swigCPtr, switch_speech_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_speech_interface_get(swigCPtr); + switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); + return ret; + } + } + + public switch_directory_interface directory_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_directory_interface_set(swigCPtr, switch_directory_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_directory_interface_get(swigCPtr); + switch_directory_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_directory_interface(cPtr, false); + return ret; + } + } + + public switch_chat_interface chat_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_chat_interface_set(swigCPtr, switch_chat_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_chat_interface_get(swigCPtr); + switch_chat_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_chat_interface(cPtr, false); + return ret; + } + } + + public switch_say_interface say_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_say_interface_set(swigCPtr, switch_say_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_say_interface_get(swigCPtr); + switch_say_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_say_interface(cPtr, false); + return ret; + } + } + + public switch_asr_interface asr_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_asr_interface_set(swigCPtr, switch_asr_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_asr_interface_get(swigCPtr); + switch_asr_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_asr_interface(cPtr, false); + return ret; + } + } + + public switch_management_interface management_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_management_interface_set(swigCPtr, switch_management_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_management_interface_get(swigCPtr); + switch_management_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_management_interface(cPtr, false); + return ret; + } + } + + public switch_limit_interface limit_interface { + set { + freeswitchPINVOKE.switch_loadable_module_interface_limit_interface_set(swigCPtr, switch_limit_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_limit_interface_get(swigCPtr); + switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_loadable_module_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_loadable_module_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_loadable_module_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t pool { + set { + freeswitchPINVOKE.switch_loadable_module_interface_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_interface_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface() : this(freeswitchPINVOKE.new_switch_loadable_module_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_log_level_t { + SWITCH_LOG_DEBUG10 = 110, + SWITCH_LOG_DEBUG9 = 109, + SWITCH_LOG_DEBUG8 = 108, + SWITCH_LOG_DEBUG7 = 107, + SWITCH_LOG_DEBUG6 = 106, + SWITCH_LOG_DEBUG5 = 105, + SWITCH_LOG_DEBUG4 = 104, + SWITCH_LOG_DEBUG3 = 103, + SWITCH_LOG_DEBUG2 = 102, + SWITCH_LOG_DEBUG1 = 101, + SWITCH_LOG_DEBUG = 7, + SWITCH_LOG_INFO = 6, + SWITCH_LOG_NOTICE = 5, + SWITCH_LOG_WARNING = 4, + SWITCH_LOG_ERROR = 3, + SWITCH_LOG_CRIT = 2, + SWITCH_LOG_ALERT = 1, + SWITCH_LOG_CONSOLE = 0, + SWITCH_LOG_INVALID = 64, + SWITCH_LOG_UNINIT = 1000 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_log_node_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_log_node_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_log_node_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_log_node_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_log_node_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string data { + set { + freeswitchPINVOKE.switch_log_node_t_data_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_log_node_t_data_get(swigCPtr); + return ret; + } + } + + public string file { + set { + freeswitchPINVOKE.switch_log_node_t_file_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_log_node_t_file_get(swigCPtr); + return ret; + } + } + + public uint line { + set { + freeswitchPINVOKE.switch_log_node_t_line_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_log_node_t_line_get(swigCPtr); + return ret; + } + } + + public string func { + set { + freeswitchPINVOKE.switch_log_node_t_func_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_log_node_t_func_get(swigCPtr); + return ret; + } + } + + public switch_log_level_t level { + set { + freeswitchPINVOKE.switch_log_node_t_level_set(swigCPtr, (int)value); + } + get { + switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_log_node_t_level_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t timestamp { + set { + freeswitchPINVOKE.switch_log_node_t_timestamp_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_log_node_t_timestamp_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string content { + set { + freeswitchPINVOKE.switch_log_node_t_content_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_log_node_t_content_get(swigCPtr); + return ret; + } + } + + public string userdata { + set { + freeswitchPINVOKE.switch_log_node_t_userdata_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_log_node_t_userdata_get(swigCPtr); + return ret; + } + } + + public switch_text_channel_t channel { + set { + freeswitchPINVOKE.switch_log_node_t_channel_set(swigCPtr, (int)value); + } + get { + switch_text_channel_t ret = (switch_text_channel_t)freeswitchPINVOKE.switch_log_node_t_channel_get(swigCPtr); + return ret; + } + } + + public switch_log_level_t slevel { + set { + freeswitchPINVOKE.switch_log_node_t_slevel_set(swigCPtr, (int)value); + } + get { + switch_log_level_t ret = (switch_log_level_t)freeswitchPINVOKE.switch_log_node_t_slevel_get(swigCPtr); + return ret; + } + } + + public switch_log_node_t() : this(freeswitchPINVOKE.new_switch_log_node_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_management_action_t { + SMA_NONE, + SMA_GET, + SMA_SET +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_management_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_management_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_management_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_management_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_management_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string relative_oid { + set { + freeswitchPINVOKE.switch_management_interface_relative_oid_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_management_interface_relative_oid_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t management_function { + set { + freeswitchPINVOKE.switch_management_interface_management_function_set(swigCPtr, SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_management_function_get(swigCPtr); + SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_char_enum_switch_management_action_t_p_char_switch_size_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_management_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_management_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_management_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_management_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_management_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_management_interface next { + set { + freeswitchPINVOKE.switch_management_interface_next_set(swigCPtr, switch_management_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_management_interface_next_get(swigCPtr); + switch_management_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_management_interface(cPtr, false); + return ret; + } + } + + public switch_management_interface() : this(freeswitchPINVOKE.new_switch_management_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_media_bug_flag_enum_t { + SMBF_BOTH = 0, + SMBF_READ_STREAM = (1 << 0), + SMBF_WRITE_STREAM = (1 << 1), + SMBF_WRITE_REPLACE = (1 << 2), + SMBF_READ_REPLACE = (1 << 3), + SMBF_READ_PING = (1 << 4), + SMBF_STEREO = (1 << 5), + SMBF_ANSWER_REQ = (1 << 6), + SMBF_BRIDGE_REQ = (1 << 7), + SMBF_THREAD_LOCK = (1 << 8), + SMBF_PRUNE = (1 << 9), + SMBF_NO_PAUSE = (1 << 10), + SMBF_STEREO_SWAP = (1 << 11), + SMBF_LOCK = (1 << 12), + SMBF_TAP_NATIVE_READ = (1 << 13), + SMBF_TAP_NATIVE_WRITE = (1 << 14), + SMBF_ONE_ONLY = (1 << 15), + SMBF_MASK = (1 << 16) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_media_flag_enum_t { + SMF_NONE = 0, + SMF_REBRIDGE = (1 << 0), + SMF_ECHO_ALEG = (1 << 1), + SMF_ECHO_BLEG = (1 << 2), + SMF_FORCE = (1 << 3), + SMF_LOOP = (1 << 4), + SMF_HOLD_BLEG = (1 << 5), + SMF_IMMEDIATE = (1 << 6), + SMF_EXEC_INLINE = (1 << 7), + SMF_PRIORITY = (1 << 8), + SMF_REPLYONLY_A = (1 << 9), + SMF_REPLYONLY_B = (1 << 10) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_media_type_t { + SWITCH_MEDIA_TYPE_AUDIO, + SWITCH_MEDIA_TYPE_VIDEO +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_module_flag_enum_t { + SMODF_NONE = 0, + SMODF_GLOBAL_SYMBOLS = (1 << 0) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_module_interface_name_t { + SWITCH_ENDPOINT_INTERFACE, + SWITCH_TIMER_INTERFACE, + SWITCH_DIALPLAN_INTERFACE, + SWITCH_CODEC_INTERFACE, + SWITCH_APPLICATION_INTERFACE, + SWITCH_API_INTERFACE, + SWITCH_FILE_INTERFACE, + SWITCH_SPEECH_INTERFACE, + SWITCH_DIRECTORY_INTERFACE, + SWITCH_CHAT_INTERFACE, + SWITCH_SAY_INTERFACE, + SWITCH_ASR_INTERFACE, + SWITCH_MANAGEMENT_INTERFACE, + SWITCH_LIMIT_INTERFACE, + SWITCH_CHAT_APPLICATION_INTERFACE, + SWITCH_JSON_API_INTERFACE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_originate_flag_enum_t { + SOF_NONE = 0, + SOF_NOBLOCK = (1 << 0), + SOF_FORKED_DIAL = (1 << 1), + SOF_NO_EFFECTIVE_ANI = (1 << 2), + SOF_NO_EFFECTIVE_ANIII = (1 << 3), + SOF_NO_EFFECTIVE_CID_NUM = (1 << 4), + SOF_NO_EFFECTIVE_CID_NAME = (1 << 5), + SOF_NO_LIMITS = (1 << 6) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_poll_t { + SWITCH_POLL_READ = (1 << 0), + SWITCH_POLL_WRITE = (1 << 1), + SWITCH_POLL_ERROR = (1 << 2), + SWITCH_POLL_HUP = (1 << 3), + SWITCH_POLL_RDNORM = (1 << 4), + SWITCH_POLL_RDBAND = (1 << 5), + SWITCH_POLL_PRI = (1 << 6), + SWITCH_POLL_INVALID = (1 << 7) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_port_flag_enum_t { + SPF_NONE = 0, + SPF_ODD = (1 << 0), + SPF_EVEN = (1 << 1), + SPF_ROBUST_TCP = (1 << 2), + SPF_ROBUST_UDP = (1 << 3) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_priority_t { + SWITCH_PRIORITY_NORMAL, + SWITCH_PRIORITY_LOW, + SWITCH_PRIORITY_HIGH +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_pvt_class_t { + SWITCH_PVT_PRIMARY = 0, + SWITCH_PVT_SECONDARY +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_ring_ready_t { + SWITCH_RING_READY_NONE, + SWITCH_RING_READY_RINGING, + SWITCH_RING_READY_QUEUED +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtcp_hdr_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtcp_hdr_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtcp_hdr_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtcp_hdr_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtcp_hdr_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint version { + set { + freeswitchPINVOKE.switch_rtcp_hdr_t_version_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_version_get(swigCPtr); + return ret; + } + } + + public uint p { + set { + freeswitchPINVOKE.switch_rtcp_hdr_t_p_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_p_get(swigCPtr); + return ret; + } + } + + public uint count { + set { + freeswitchPINVOKE.switch_rtcp_hdr_t_count_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_count_get(swigCPtr); + return ret; + } + } + + public uint type { + set { + freeswitchPINVOKE.switch_rtcp_hdr_t_type_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_type_get(swigCPtr); + return ret; + } + } + + public uint length { + set { + freeswitchPINVOKE.switch_rtcp_hdr_t_length_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_hdr_t_length_get(swigCPtr); + return ret; + } + } + + public switch_rtcp_hdr_t() : this(freeswitchPINVOKE.new_switch_rtcp_hdr_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtcp_numbers_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtcp_numbers_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtcp_numbers_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtcp_numbers_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtcp_numbers_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint packet_count { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_packet_count_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_packet_count_get(swigCPtr); + return ret; + } + } + + public uint octet_count { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_octet_count_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_octet_count_get(swigCPtr); + return ret; + } + } + + public uint peer_ssrc { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_peer_ssrc_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_peer_ssrc_get(swigCPtr); + return ret; + } + } + + public uint last_rpt_ts { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_last_rpt_ts_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_last_rpt_ts_get(swigCPtr); + return ret; + } + } + + public uint ssrc { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_ssrc_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_ssrc_get(swigCPtr); + return ret; + } + } + + public uint csrc { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_csrc_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_csrc_get(swigCPtr); + return ret; + } + } + + public uint last_pkt_tsdiff { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_last_pkt_tsdiff_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_last_pkt_tsdiff_get(swigCPtr); + return ret; + } + } + + public double inter_jitter { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_inter_jitter_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtcp_numbers_t_inter_jitter_get(swigCPtr); + return ret; + } + } + + public uint last_rpt_ext_seq { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_last_rpt_ext_seq_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_last_rpt_ext_seq_get(swigCPtr); + return ret; + } + } + + public ushort last_rpt_cycle { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_last_rpt_cycle_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_rtcp_numbers_t_last_rpt_cycle_get(swigCPtr); + return ret; + } + } + + public ushort period_pkt_count { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_period_pkt_count_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_rtcp_numbers_t_period_pkt_count_get(swigCPtr); + return ret; + } + } + + public ushort pkt_count { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_pkt_count_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_rtcp_numbers_t_pkt_count_get(swigCPtr); + return ret; + } + } + + public uint rtcp_rtp_count { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_rtcp_rtp_count_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_rtcp_rtp_count_get(swigCPtr); + return ret; + } + } + + public uint high_ext_seq_recv { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_high_ext_seq_recv_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_high_ext_seq_recv_get(swigCPtr); + return ret; + } + } + + public ushort cycle { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_cycle_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_rtcp_numbers_t_cycle_get(swigCPtr); + return ret; + } + } + + public uint bad_seq { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_bad_seq_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_bad_seq_get(swigCPtr); + return ret; + } + } + + public ushort base_seq { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_base_seq_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_rtcp_numbers_t_base_seq_get(swigCPtr); + return ret; + } + } + + public uint cum_lost { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_cum_lost_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_cum_lost_get(swigCPtr); + return ret; + } + } + + public uint last_recv_lsr_local { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_last_recv_lsr_local_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_last_recv_lsr_local_get(swigCPtr); + return ret; + } + } + + public uint last_recv_lsr_peer { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_last_recv_lsr_peer_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_last_recv_lsr_peer_get(swigCPtr); + return ret; + } + } + + public uint init { + set { + freeswitchPINVOKE.switch_rtcp_numbers_t_init_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtcp_numbers_t_init_get(swigCPtr); + return ret; + } + } + + public switch_rtcp_numbers_t() : this(freeswitchPINVOKE.new_switch_rtcp_numbers_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_rtp_bug_flag_t { + RTP_BUG_NONE = 0, + RTP_BUG_CISCO_SKIP_MARK_BIT_2833 = (1 << 0), + RTP_BUG_SONUS_SEND_INVALID_TIMESTAMP_2833 = (1 << 1), + RTP_BUG_IGNORE_MARK_BIT = (1 << 2), + RTP_BUG_SEND_LINEAR_TIMESTAMPS = (1 << 3), + RTP_BUG_START_SEQ_AT_ZERO = (1 << 4), + RTP_BUG_NEVER_SEND_MARKER = (1 << 5), + RTP_BUG_IGNORE_DTMF_DURATION = (1 << 6), + RTP_BUG_ACCEPT_ANY_PACKETS = (1 << 7), + RTP_BUG_GEN_ONE_GEN_ALL = (1 << 8), + RTP_BUG_CHANGE_SSRC_ON_MARKER = (1 << 9), + RTP_BUG_FLUSH_JB_ON_DTMF = (1 << 10), + RTP_BUG_ACCEPT_ANY_PAYLOAD = (1 << 11), + RTP_BUG_ALWAYS_AUTO_ADJUST = (1 << 12) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_rtp_crypto_direction_t { + SWITCH_RTP_CRYPTO_SEND, + SWITCH_RTP_CRYPTO_RECV, + SWITCH_RTP_CRYPTO_SEND_RTCP, + SWITCH_RTP_CRYPTO_RECV_RTCP, + SWITCH_RTP_CRYPTO_MAX +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtp_crypto_key : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtp_crypto_key(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtp_crypto_key obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtp_crypto_key() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtp_crypto_key(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint index { + set { + freeswitchPINVOKE.switch_rtp_crypto_key_index_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_crypto_key_index_get(swigCPtr); + return ret; + } + } + + public switch_rtp_crypto_key_type_t type { + set { + freeswitchPINVOKE.switch_rtp_crypto_key_type_set(swigCPtr, (int)value); + } + get { + switch_rtp_crypto_key_type_t ret = (switch_rtp_crypto_key_type_t)freeswitchPINVOKE.switch_rtp_crypto_key_type_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char key { + set { + freeswitchPINVOKE.switch_rtp_crypto_key_key_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_crypto_key_key_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t keylen { + set { + freeswitchPINVOKE.switch_rtp_crypto_key_keylen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_crypto_key_keylen_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_rtp_crypto_key next { + set { + freeswitchPINVOKE.switch_rtp_crypto_key_next_set(swigCPtr, switch_rtp_crypto_key.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_crypto_key_next_get(swigCPtr); + switch_rtp_crypto_key ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_crypto_key(cPtr, false); + return ret; + } + } + + public switch_rtp_crypto_key() : this(freeswitchPINVOKE.new_switch_rtp_crypto_key(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_rtp_crypto_key_type_t { + AEAD_AES_256_GCM_8, + AEAD_AES_128_GCM_8, + AES_CM_256_HMAC_SHA1_80, + AES_CM_192_HMAC_SHA1_80, + AES_CM_128_HMAC_SHA1_80, + AES_CM_256_HMAC_SHA1_32, + AES_CM_192_HMAC_SHA1_32, + AES_CM_128_HMAC_SHA1_32, + AES_CM_128_NULL_AUTH, + CRYPTO_INVALID +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_rtp_flag_t { + SWITCH_RTP_FLAG_NOBLOCK = 0, + SWITCH_RTP_FLAG_DTMF_ON, + SWITCH_RTP_FLAG_IO, + SWITCH_RTP_FLAG_USE_TIMER, + SWITCH_RTP_FLAG_RTCP_PASSTHRU, + SWITCH_RTP_FLAG_SECURE_SEND, + SWITCH_RTP_FLAG_SECURE_RECV, + SWITCH_RTP_FLAG_AUTOADJ, + SWITCH_RTP_FLAG_RAW_WRITE, + SWITCH_RTP_FLAG_GOOGLEHACK, + SWITCH_RTP_FLAG_VAD, + SWITCH_RTP_FLAG_BREAK, + SWITCH_RTP_FLAG_UDPTL, + SWITCH_RTP_FLAG_DATAWAIT, + SWITCH_RTP_FLAG_BYTESWAP, + SWITCH_RTP_FLAG_PASS_RFC2833, + SWITCH_RTP_FLAG_AUTO_CNG, + SWITCH_RTP_FLAG_SECURE_SEND_RESET, + SWITCH_RTP_FLAG_SECURE_RECV_RESET, + SWITCH_RTP_FLAG_PROXY_MEDIA, + SWITCH_RTP_FLAG_SHUTDOWN, + SWITCH_RTP_FLAG_FLUSH, + SWITCH_RTP_FLAG_AUTOFLUSH, + SWITCH_RTP_FLAG_STICKY_FLUSH, + SWITCH_ZRTP_FLAG_SECURE_SEND, + SWITCH_ZRTP_FLAG_SECURE_RECV, + SWITCH_ZRTP_FLAG_SECURE_MITM_SEND, + SWITCH_ZRTP_FLAG_SECURE_MITM_RECV, + SWITCH_RTP_FLAG_DEBUG_RTP_READ, + SWITCH_RTP_FLAG_DEBUG_RTP_WRITE, + SWITCH_RTP_FLAG_VIDEO, + SWITCH_RTP_FLAG_ENABLE_RTCP, + SWITCH_RTP_FLAG_RTCP_MUX, + SWITCH_RTP_FLAG_KILL_JB, + SWITCH_RTP_FLAG_VIDEO_BREAK, + SWITCH_RTP_FLAG_PAUSE, + SWITCH_RTP_FLAG_FIR, + SWITCH_RTP_FLAG_PLI, + SWITCH_RTP_FLAG_RESET, + SWITCH_RTP_FLAG_MUTE, + SWITCH_RTP_FLAG_INVALID +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_rtp_flush_t { + SWITCH_RTP_FLUSH_ONCE, + SWITCH_RTP_FLUSH_STICK, + SWITCH_RTP_FLUSH_UNSTICK +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtp_hdr_ext_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtp_hdr_ext_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtp_hdr_ext_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtp_hdr_ext_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtp_hdr_ext_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint length { + set { + freeswitchPINVOKE.switch_rtp_hdr_ext_t_length_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_ext_t_length_get(swigCPtr); + return ret; + } + } + + public uint profile { + set { + freeswitchPINVOKE.switch_rtp_hdr_ext_t_profile_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_ext_t_profile_get(swigCPtr); + return ret; + } + } + + public switch_rtp_hdr_ext_t() : this(freeswitchPINVOKE.new_switch_rtp_hdr_ext_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtp_hdr_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtp_hdr_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtp_hdr_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtp_hdr_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtp_hdr_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint version { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_version_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_version_get(swigCPtr); + return ret; + } + } + + public uint p { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_p_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_p_get(swigCPtr); + return ret; + } + } + + public uint x { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_x_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_x_get(swigCPtr); + return ret; + } + } + + public uint cc { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_cc_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_cc_get(swigCPtr); + return ret; + } + } + + public uint m { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_m_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_m_get(swigCPtr); + return ret; + } + } + + public uint pt { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_pt_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_pt_get(swigCPtr); + return ret; + } + } + + public uint seq { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_seq_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_seq_get(swigCPtr); + return ret; + } + } + + public uint ts { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_ts_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_ts_get(swigCPtr); + return ret; + } + } + + public uint ssrc { + set { + freeswitchPINVOKE.switch_rtp_hdr_t_ssrc_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_hdr_t_ssrc_get(swigCPtr); + return ret; + } + } + + public switch_rtp_hdr_t() : this(freeswitchPINVOKE.new_switch_rtp_hdr_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtp_numbers_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtp_numbers_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtp_numbers_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtp_numbers_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtp_numbers_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_size_t raw_bytes { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_raw_bytes_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_raw_bytes_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t media_bytes { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_media_bytes_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_media_bytes_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t period_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_period_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_period_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t media_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_media_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_media_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t skip_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_skip_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_skip_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t jb_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_jb_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_jb_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t dtmf_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_dtmf_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_dtmf_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t cng_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_cng_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_cng_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t flush_packet_count { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_flush_packet_count_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_flush_packet_count_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t largest_jb_size { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_largest_jb_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_largest_jb_size_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public long last_proc_time { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_last_proc_time_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_rtp_numbers_t_last_proc_time_get(swigCPtr); + return ret; + } + } + + public long jitter_n { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_jitter_n_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_rtp_numbers_t_jitter_n_get(swigCPtr); + return ret; + } + } + + public long jitter_add { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_jitter_add_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_rtp_numbers_t_jitter_add_get(swigCPtr); + return ret; + } + } + + public long jitter_addsq { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_jitter_addsq_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_rtp_numbers_t_jitter_addsq_get(swigCPtr); + return ret; + } + } + + public double variance { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_variance_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_variance_get(swigCPtr); + return ret; + } + } + + public double min_variance { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_min_variance_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_min_variance_get(swigCPtr); + return ret; + } + } + + public double max_variance { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_max_variance_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_max_variance_get(swigCPtr); + return ret; + } + } + + public double std_deviation { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_std_deviation_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_std_deviation_get(swigCPtr); + return ret; + } + } + + public double lossrate { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_lossrate_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_lossrate_get(swigCPtr); + return ret; + } + } + + public double burstrate { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_burstrate_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_burstrate_get(swigCPtr); + return ret; + } + } + + public double mean_interval { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_mean_interval_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_mean_interval_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_int loss { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_loss_set(swigCPtr, SWIGTYPE_p_int.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_numbers_t_loss_get(swigCPtr); + SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + } + + public int last_loss { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_last_loss_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_rtp_numbers_t_last_loss_get(swigCPtr); + return ret; + } + } + + public int recved { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_recved_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_rtp_numbers_t_recved_get(swigCPtr); + return ret; + } + } + + public int last_processed_seq { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_last_processed_seq_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_rtp_numbers_t_last_processed_seq_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t flaws { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_flaws_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_flaws_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t last_flaw { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_last_flaw_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_last_flaw_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public double R { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_R_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_R_get(swigCPtr); + return ret; + } + } + + public double mos { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_mos_set(swigCPtr, value); + } + get { + double ret = freeswitchPINVOKE.switch_rtp_numbers_t_mos_get(swigCPtr); + return ret; + } + } + + public switch_rtp_numbers_t() : this(freeswitchPINVOKE.new_switch_rtp_numbers_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_rtp_stats_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtp_stats_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtp_stats_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtp_stats_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtp_stats_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_rtp_numbers_t inbound { + set { + freeswitchPINVOKE.switch_rtp_stats_t_inbound_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value)); + } + get { + 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 outbound { + set { + freeswitchPINVOKE.switch_rtp_stats_t_outbound_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value)); + } + get { + 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; + } + } + + public switch_rtcp_numbers_t rtcp { + set { + freeswitchPINVOKE.switch_rtp_stats_t_rtcp_set(swigCPtr, switch_rtcp_numbers_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_stats_t_rtcp_get(swigCPtr); + switch_rtcp_numbers_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtcp_numbers_t(cPtr, false); + return ret; + } + } + + public uint read_count { + set { + freeswitchPINVOKE.switch_rtp_stats_t_read_count_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_rtp_stats_t_read_count_get(swigCPtr); + return ret; + } + } + + public switch_rtp_stats_t() : this(freeswitchPINVOKE.new_switch_rtp_stats_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_say_args_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_say_args_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_say_args_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_say_args_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_say_args_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_say_type_t type { + set { + freeswitchPINVOKE.switch_say_args_t_type_set(swigCPtr, (int)value); + } + get { + switch_say_type_t ret = (switch_say_type_t)freeswitchPINVOKE.switch_say_args_t_type_get(swigCPtr); + return ret; + } + } + + public switch_say_method_t method { + set { + freeswitchPINVOKE.switch_say_args_t_method_set(swigCPtr, (int)value); + } + get { + switch_say_method_t ret = (switch_say_method_t)freeswitchPINVOKE.switch_say_args_t_method_get(swigCPtr); + return ret; + } + } + + public switch_say_gender_t gender { + set { + freeswitchPINVOKE.switch_say_args_t_gender_set(swigCPtr, (int)value); + } + get { + switch_say_gender_t ret = (switch_say_gender_t)freeswitchPINVOKE.switch_say_args_t_gender_get(swigCPtr); + return ret; + } + } + + public string ext { + set { + freeswitchPINVOKE.switch_say_args_t_ext_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_say_args_t_ext_get(swigCPtr); + return ret; + } + } + + public switch_say_args_t() : this(freeswitchPINVOKE.new_switch_say_args_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_say_gender_t { + SSG_MASCULINE, + SSG_FEMININE, + SSG_NEUTER, + SSG_UTRUM +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_say_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_say_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_say_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_say_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_say_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_say_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_say_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t say_function { + set { + freeswitchPINVOKE.switch_say_interface_say_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_say_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t say_string_function { + set { + freeswitchPINVOKE.switch_say_interface_say_string_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_say_string_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_p_char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_say_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_say_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_say_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_say_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_say_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_say_interface next { + set { + freeswitchPINVOKE.switch_say_interface_next_set(swigCPtr, switch_say_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_next_get(swigCPtr); + switch_say_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_say_interface(cPtr, false); + return ret; + } + } + + public switch_say_interface() : this(freeswitchPINVOKE.new_switch_say_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_say_method_t { + SSM_NA, + SSM_PRONOUNCED, + SSM_ITERATED, + SSM_COUNTED, + SSM_PRONOUNCED_YEAR +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_say_type_t { + SST_NUMBER, + SST_ITEMS, + SST_PERSONS, + SST_MESSAGES, + SST_CURRENCY, + SST_TIME_MEASUREMENT, + SST_CURRENT_DATE, + SST_CURRENT_TIME, + SST_CURRENT_DATE_TIME, + SST_TELEPHONE_NUMBER, + SST_TELEPHONE_EXTENSION, + SST_URL, + SST_IP_ADDRESS, + SST_EMAIL_ADDRESS, + SST_POSTAL_ADDRESS, + SST_ACCOUNT_NUMBER, + SST_NAME_SPELLED, + SST_NAME_PHONETIC, + SST_SHORT_DATE_TIME +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_scheduler_flag_enum_t { + SSHF_NONE = 0, + SSHF_OWN_THREAD = (1 << 0), + SSHF_FREE_ARG = (1 << 1), + SSHF_NO_DEL = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_scheduler_task : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_scheduler_task(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_scheduler_task obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_scheduler_task() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_scheduler_task(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public long created { + set { + freeswitchPINVOKE.switch_scheduler_task_created_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_scheduler_task_created_get(swigCPtr); + return ret; + } + } + + public long runtime { + set { + freeswitchPINVOKE.switch_scheduler_task_runtime_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_scheduler_task_runtime_get(swigCPtr); + return ret; + } + } + + public uint cmd_id { + set { + freeswitchPINVOKE.switch_scheduler_task_cmd_id_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_scheduler_task_cmd_id_get(swigCPtr); + return ret; + } + } + + public uint repeat { + set { + freeswitchPINVOKE.switch_scheduler_task_repeat_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_scheduler_task_repeat_get(swigCPtr); + return ret; + } + } + + public string group { + set { + freeswitchPINVOKE.switch_scheduler_task_group_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_scheduler_task_group_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void cmd_arg { + set { + freeswitchPINVOKE.switch_scheduler_task_cmd_arg_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_scheduler_task_cmd_arg_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public uint task_id { + set { + freeswitchPINVOKE.switch_scheduler_task_task_id_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_scheduler_task_task_id_get(swigCPtr); + return ret; + } + } + + public uint hash { + set { + freeswitchPINVOKE.switch_scheduler_task_hash_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_scheduler_task_hash_get(swigCPtr); + return ret; + } + } + + public switch_scheduler_task() : this(freeswitchPINVOKE.new_switch_scheduler_task(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_sdp_type_t { + SDP_TYPE_REQUEST, + SDP_TYPE_RESPONSE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_serial_event_header_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_serial_event_header_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_serial_event_header_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_serial_event_header_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_serial_event_header_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string name { + set { + freeswitchPINVOKE.switch_serial_event_header_t_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_serial_event_header_t_name_get(swigCPtr); + return ret; + } + } + + public string value { + set { + freeswitchPINVOKE.switch_serial_event_header_t_value_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_serial_event_header_t_value_get(swigCPtr); + return ret; + } + } + + public switch_serial_event_header_t() : this(freeswitchPINVOKE.new_switch_serial_event_header_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_serial_event_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_serial_event_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_serial_event_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_serial_event_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_serial_event_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int event_id { + set { + freeswitchPINVOKE.switch_serial_event_t_event_id_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_serial_event_t_event_id_get(swigCPtr); + return ret; + } + } + + public int priority { + set { + freeswitchPINVOKE.switch_serial_event_t_priority_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_serial_event_t_priority_get(swigCPtr); + return ret; + } + } + + public int flags { + set { + freeswitchPINVOKE.switch_serial_event_t_flags_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_serial_event_t_flags_get(swigCPtr); + return ret; + } + } + + public string owner { + set { + freeswitchPINVOKE.switch_serial_event_t_owner_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_serial_event_t_owner_get(swigCPtr); + return ret; + } + } + + public string subclass_name { + set { + freeswitchPINVOKE.switch_serial_event_t_subclass_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_serial_event_t_subclass_name_get(swigCPtr); + return ret; + } + } + + public string body { + set { + freeswitchPINVOKE.switch_serial_event_t_body_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_serial_event_t_body_get(swigCPtr); + return ret; + } + } + + public switch_serial_event_t() : this(freeswitchPINVOKE.new_switch_serial_event_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_session_ctl_t { + SCSC_PAUSE_INBOUND, + SCSC_PAUSE_OUTBOUND, + SCSC_PAUSE_ALL, + SCSC_HUPALL, + SCSC_SHUTDOWN, + SCSC_CHECK_RUNNING, + SCSC_LOGLEVEL, + SCSC_SPS, + SCSC_LAST_SPS, + SCSC_RECLAIM, + SCSC_MAX_SESSIONS, + SCSC_SYNC_CLOCK, + SCSC_MAX_DTMF_DURATION, + SCSC_MIN_DTMF_DURATION, + SCSC_DEFAULT_DTMF_DURATION, + SCSC_SHUTDOWN_ELEGANT, + SCSC_SHUTDOWN_ASAP, + SCSC_CANCEL_SHUTDOWN, + SCSC_SEND_SIGHUP, + SCSC_DEBUG_LEVEL, + SCSC_FLUSH_DB_HANDLES, + SCSC_SHUTDOWN_NOW, + SCSC_REINCARNATE_NOW, + SCSC_CALIBRATE_CLOCK, + SCSC_SAVE_HISTORY, + SCSC_CRASH, + SCSC_MIN_IDLE_CPU, + SCSC_VERBOSE_EVENTS, + SCSC_SHUTDOWN_CHECK, + SCSC_PAUSE_INBOUND_CHECK, + SCSC_PAUSE_OUTBOUND_CHECK, + SCSC_PAUSE_CHECK, + SCSC_READY_CHECK, + SCSC_THREADED_SYSTEM_EXEC, + SCSC_SYNC_CLOCK_WHEN_IDLE, + SCSC_DEBUG_SQL, + SCSC_SQL, + SCSC_API_EXPANSION, + SCSC_RECOVER, + SCSC_SPS_PEAK, + SCSC_SPS_PEAK_FIVEMIN, + SCSC_SESSIONS_PEAK, + SCSC_SESSIONS_PEAK_FIVEMIN +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_signal_t { + SWITCH_SIG_NONE, + SWITCH_SIG_KILL, + SWITCH_SIG_XFER, + SWITCH_SIG_BREAK +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_slin_data : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_slin_data(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_slin_data obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_slin_data() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_slin_data(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_core_session session { + set { + freeswitchPINVOKE.switch_slin_data_session_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_slin_data_session_get(swigCPtr); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + } + + public switch_frame write_frame { + set { + freeswitchPINVOKE.switch_slin_data_write_frame_set(swigCPtr, switch_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_slin_data_write_frame_get(swigCPtr); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + } + + public switch_codec codec { + set { + freeswitchPINVOKE.switch_slin_data_codec_set(swigCPtr, switch_codec.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_slin_data_codec_get(swigCPtr); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + } + + public string frame_data { + set { + freeswitchPINVOKE.switch_slin_data_frame_data_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_slin_data_frame_data_get(swigCPtr); + return ret; + } + } + + public switch_slin_data() : this(freeswitchPINVOKE.new_switch_slin_data(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_speech_flag_enum_t { + SWITCH_SPEECH_FLAG_NONE = 0, + SWITCH_SPEECH_FLAG_HASTEXT = (1 << 0), + SWITCH_SPEECH_FLAG_PEEK = (1 << 1), + SWITCH_SPEECH_FLAG_FREE_POOL = (1 << 2), + SWITCH_SPEECH_FLAG_BLOCKING = (1 << 3), + SWITCH_SPEECH_FLAG_PAUSE = (1 << 4), + SWITCH_SPEECH_FLAG_OPEN = (1 << 5), + SWITCH_SPEECH_FLAG_DONE = (1 << 6) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_speech_handle : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_speech_handle(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_speech_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_speech_handle() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_speech_handle(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_speech_interface speech_interface { + set { + freeswitchPINVOKE.switch_speech_handle_speech_interface_set(swigCPtr, switch_speech_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_speech_interface_get(swigCPtr); + switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_speech_handle_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_flags_get(swigCPtr); + return ret; + } + } + + public string name { + set { + freeswitchPINVOKE.switch_speech_handle_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_speech_handle_name_get(swigCPtr); + return ret; + } + } + + public uint rate { + set { + freeswitchPINVOKE.switch_speech_handle_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_rate_get(swigCPtr); + return ret; + } + } + + public uint speed { + set { + freeswitchPINVOKE.switch_speech_handle_speed_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_speed_get(swigCPtr); + return ret; + } + } + + public uint samples { + set { + freeswitchPINVOKE.switch_speech_handle_samples_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_samples_get(swigCPtr); + return ret; + } + } + + public uint channels { + set { + freeswitchPINVOKE.switch_speech_handle_channels_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_channels_get(swigCPtr); + return ret; + } + } + + public uint real_channels { + set { + freeswitchPINVOKE.switch_speech_handle_real_channels_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_real_channels_get(swigCPtr); + return ret; + } + } + + public string voice { + set { + freeswitchPINVOKE.switch_speech_handle_voice_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_speech_handle_voice_get(swigCPtr); + return ret; + } + } + + public string engine { + set { + freeswitchPINVOKE.switch_speech_handle_engine_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_speech_handle_engine_get(swigCPtr); + return ret; + } + } + + public string param { + set { + freeswitchPINVOKE.switch_speech_handle_param_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_speech_handle_param_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t memory_pool { + set { + freeswitchPINVOKE.switch_speech_handle_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_memory_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public switch_audio_resampler_t resampler { + set { + freeswitchPINVOKE.switch_speech_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_resampler_get(swigCPtr); + switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_buffer buffer { + set { + freeswitchPINVOKE.switch_speech_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_buffer_get(swigCPtr); + SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char dbuf { + set { + freeswitchPINVOKE.switch_speech_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_dbuf_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t dbuflen { + set { + freeswitchPINVOKE.switch_speech_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_speech_handle_dbuflen_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public uint samplerate { + set { + freeswitchPINVOKE.switch_speech_handle_samplerate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_samplerate_get(swigCPtr); + return ret; + } + } + + public uint native_rate { + set { + freeswitchPINVOKE.switch_speech_handle_native_rate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_speech_handle_native_rate_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_speech_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public switch_speech_handle() : this(freeswitchPINVOKE.new_switch_speech_handle(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_speech_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_speech_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_speech_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_speech_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_speech_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_speech_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_speech_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t speech_open { + set { + freeswitchPINVOKE.switch_speech_interface_speech_open_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_open_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_q_const__char_int_int_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t speech_close { + set { + freeswitchPINVOKE.switch_speech_interface_speech_close_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_close_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t speech_feed_tts { + set { + freeswitchPINVOKE.switch_speech_interface_speech_feed_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_feed_tts_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t speech_read_tts { + set { + freeswitchPINVOKE.switch_speech_interface_speech_read_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_read_tts_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle__void speech_flush_tts { + set { + freeswitchPINVOKE.switch_speech_interface_speech_flush_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_flush_tts_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void speech_text_param_tts { + set { + freeswitchPINVOKE.switch_speech_interface_speech_text_param_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_text_param_tts_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_p_q_const__char__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void speech_numeric_param_tts { + set { + freeswitchPINVOKE.switch_speech_interface_speech_numeric_param_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_numeric_param_tts_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_int__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void speech_float_param_tts { + set { + freeswitchPINVOKE.switch_speech_interface_speech_float_param_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_float_param_tts_get(swigCPtr); + SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_char_double__void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_speech_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_speech_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_speech_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_speech_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_speech_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_speech_interface next { + set { + freeswitchPINVOKE.switch_speech_interface_next_set(swigCPtr, switch_speech_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_next_get(swigCPtr); + switch_speech_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_speech_interface(cPtr, false); + return ret; + } + } + + public switch_speech_interface() : this(freeswitchPINVOKE.new_switch_speech_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_srtp_crypto_suite_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_srtp_crypto_suite_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_srtp_crypto_suite_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_srtp_crypto_suite_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_srtp_crypto_suite_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string name { + set { + freeswitchPINVOKE.switch_srtp_crypto_suite_t_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_srtp_crypto_suite_t_name_get(swigCPtr); + return ret; + } + } + + public switch_rtp_crypto_key_type_t type { + set { + freeswitchPINVOKE.switch_srtp_crypto_suite_t_type_set(swigCPtr, (int)value); + } + get { + switch_rtp_crypto_key_type_t ret = (switch_rtp_crypto_key_type_t)freeswitchPINVOKE.switch_srtp_crypto_suite_t_type_get(swigCPtr); + return ret; + } + } + + public int keylen { + set { + freeswitchPINVOKE.switch_srtp_crypto_suite_t_keylen_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_srtp_crypto_suite_t_keylen_get(swigCPtr); + return ret; + } + } + + public switch_srtp_crypto_suite_t() : this(freeswitchPINVOKE.new_switch_srtp_crypto_suite_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_stack_t { + SWITCH_STACK_BOTTOM = (1 << 0), + SWITCH_STACK_TOP = (1 << 1), + SWITCH_STACK_NODUP = (1 << 2), + SWITCH_STACK_UNSHIFT = (1 << 3), + SWITCH_STACK_PUSH = (1 << 4) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_state_handler_flag_t { + SSH_FLAG_STICKY = (1 << 0) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_state_handler_name_t { + SWITCH_SHN_ON_INIT, + SWITCH_SHN_ON_ROUTING, + SWITCH_SHN_ON_EXECUTE, + SWITCH_SHN_ON_HANGUP, + SWITCH_SHN_ON_EXCHANGE_MEDIA, + SWITCH_SHN_ON_SOFT_EXECUTE, + SWITCH_SHN_ON_CONSUME_MEDIA, + SWITCH_SHN_ON_HIBERNATE, + SWITCH_SHN_ON_RESET, + SWITCH_SHN_ON_PARK, + SWITCH_SHN_ON_REPORTING, + SWITCH_SHN_ON_DESTROY +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_state_handler_table : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_state_handler_table(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_state_handler_table obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_state_handler_table() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_state_handler_table(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_init { + set { + freeswitchPINVOKE.switch_state_handler_table_on_init_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_init_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_routing { + set { + freeswitchPINVOKE.switch_state_handler_table_on_routing_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_routing_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_execute { + set { + freeswitchPINVOKE.switch_state_handler_table_on_execute_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_execute_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_hangup { + set { + freeswitchPINVOKE.switch_state_handler_table_on_hangup_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_hangup_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_exchange_media { + set { + freeswitchPINVOKE.switch_state_handler_table_on_exchange_media_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_exchange_media_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_soft_execute { + set { + freeswitchPINVOKE.switch_state_handler_table_on_soft_execute_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_soft_execute_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_consume_media { + set { + freeswitchPINVOKE.switch_state_handler_table_on_consume_media_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_consume_media_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_hibernate { + set { + freeswitchPINVOKE.switch_state_handler_table_on_hibernate_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_hibernate_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_reset { + set { + freeswitchPINVOKE.switch_state_handler_table_on_reset_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_reset_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_park { + set { + freeswitchPINVOKE.switch_state_handler_table_on_park_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_park_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_reporting { + set { + freeswitchPINVOKE.switch_state_handler_table_on_reporting_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_reporting_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_destroy { + set { + freeswitchPINVOKE.switch_state_handler_table_on_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_destroy_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + + public int flags { + set { + freeswitchPINVOKE.switch_state_handler_table_flags_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_state_handler_table_flags_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_p_void padding { + set { + freeswitchPINVOKE.switch_state_handler_table_padding_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_padding_get(swigCPtr); + SWIGTYPE_p_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); + return ret; + } + } + + public switch_state_handler_table() : this(freeswitchPINVOKE.new_switch_state_handler_table(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_status_t { + SWITCH_STATUS_SUCCESS, + SWITCH_STATUS_FALSE, + SWITCH_STATUS_TIMEOUT, + SWITCH_STATUS_RESTART, + SWITCH_STATUS_INTR, + SWITCH_STATUS_NOTIMPL, + SWITCH_STATUS_MEMERR, + SWITCH_STATUS_NOOP, + SWITCH_STATUS_RESAMPLE, + SWITCH_STATUS_GENERR, + SWITCH_STATUS_INUSE, + SWITCH_STATUS_BREAK, + SWITCH_STATUS_SOCKERR, + SWITCH_STATUS_MORE_DATA, + SWITCH_STATUS_NOTFOUND, + SWITCH_STATUS_UNLOAD, + SWITCH_STATUS_NOUNLOAD, + SWITCH_STATUS_IGNORE, + SWITCH_STATUS_TOO_SMALL, + SWITCH_STATUS_FOUND, + SWITCH_STATUS_CONTINUE, + SWITCH_STATUS_TERM, + SWITCH_STATUS_NOT_INITALIZED, + SWITCH_STATUS_XBREAK = 35, + SWITCH_STATUS_WINBREAK = 730035 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_stream_handle : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_stream_handle(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_stream_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_stream_handle() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_stream_handle(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char read_function { + set { + freeswitchPINVOKE.switch_stream_handle_read_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_read_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_stream_handle_p_int__p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t write_function { + set { + freeswitchPINVOKE.switch_stream_handle_write_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_write_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_stream_handle_p_q_const__char_v_______switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t raw_write_function { + set { + freeswitchPINVOKE.switch_stream_handle_raw_write_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_raw_write_function_get(swigCPtr); + SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_stream_handle_p_unsigned_char_switch_size_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void data { + set { + freeswitchPINVOKE.switch_stream_handle_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void end { + set { + freeswitchPINVOKE.switch_stream_handle_end_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_end_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t data_size { + set { + freeswitchPINVOKE.switch_stream_handle_data_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_data_size_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t data_len { + set { + freeswitchPINVOKE.switch_stream_handle_data_len_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_data_len_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t alloc_len { + set { + freeswitchPINVOKE.switch_stream_handle_alloc_len_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_alloc_len_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t alloc_chunk { + set { + freeswitchPINVOKE.switch_stream_handle_alloc_chunk_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_stream_handle_alloc_chunk_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_event param_event { + set { + freeswitchPINVOKE.switch_stream_handle_param_event_set(swigCPtr, switch_event.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_stream_handle_param_event_get(swigCPtr); + switch_event ret = (cPtr == IntPtr.Zero) ? null : new switch_event(cPtr, false); + return ret; + } + } + + public switch_stream_handle() : this(freeswitchPINVOKE.new_switch_stream_handle(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_t38_options_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_t38_options_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_t38_options_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_t38_options_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_t38_options_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ushort T38FaxVersion { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxVersion_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxVersion_get(swigCPtr); + return ret; + } + } + + public uint T38MaxBitRate { + set { + freeswitchPINVOKE.switch_t38_options_t_T38MaxBitRate_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_t38_options_t_T38MaxBitRate_get(swigCPtr); + return ret; + } + } + + public switch_bool_t T38FaxFillBitRemoval { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxFillBitRemoval_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_t38_options_t_T38FaxFillBitRemoval_get(swigCPtr); + return ret; + } + } + + public switch_bool_t T38FaxTranscodingMMR { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingMMR_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingMMR_get(swigCPtr); + return ret; + } + } + + public switch_bool_t T38FaxTranscodingJBIG { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingJBIG_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_t38_options_t_T38FaxTranscodingJBIG_get(swigCPtr); + return ret; + } + } + + public string T38FaxRateManagement { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxRateManagement_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxRateManagement_get(swigCPtr); + return ret; + } + } + + public uint T38FaxMaxBuffer { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxBuffer_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxBuffer_get(swigCPtr); + return ret; + } + } + + public uint T38FaxMaxDatagram { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxDatagram_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxMaxDatagram_get(swigCPtr); + return ret; + } + } + + public string T38FaxUdpEC { + set { + freeswitchPINVOKE.switch_t38_options_t_T38FaxUdpEC_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_t38_options_t_T38FaxUdpEC_get(swigCPtr); + return ret; + } + } + + public string T38VendorInfo { + set { + freeswitchPINVOKE.switch_t38_options_t_T38VendorInfo_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_t38_options_t_T38VendorInfo_get(swigCPtr); + return ret; + } + } + + public string remote_ip { + set { + freeswitchPINVOKE.switch_t38_options_t_remote_ip_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_t38_options_t_remote_ip_get(swigCPtr); + return ret; + } + } + + public ushort remote_port { + set { + freeswitchPINVOKE.switch_t38_options_t_remote_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_t38_options_t_remote_port_get(swigCPtr); + return ret; + } + } + + public string local_ip { + set { + freeswitchPINVOKE.switch_t38_options_t_local_ip_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_t38_options_t_local_ip_get(swigCPtr); + return ret; + } + } + + public ushort local_port { + set { + freeswitchPINVOKE.switch_t38_options_t_local_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_t38_options_t_local_port_get(swigCPtr); + return ret; + } + } + + public string sdp_o_line { + set { + freeswitchPINVOKE.switch_t38_options_t_sdp_o_line_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_t38_options_t_sdp_o_line_get(swigCPtr); + return ret; + } + } + + public switch_t38_options_t() : this(freeswitchPINVOKE.new_switch_t38_options_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_text_channel_t { + SWITCH_CHANNEL_ID_LOG, + SWITCH_CHANNEL_ID_LOG_CLEAN, + SWITCH_CHANNEL_ID_EVENT, + SWITCH_CHANNEL_ID_SESSION +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_thread_data_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_thread_data_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_thread_data_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_thread_data_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_thread_data_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_thread_start_t func { + set { + freeswitchPINVOKE.switch_thread_data_t_func_set(swigCPtr, SWIGTYPE_p_switch_thread_start_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_thread_start_t ret = new SWIGTYPE_p_switch_thread_start_t(freeswitchPINVOKE.switch_thread_data_t_func_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_void obj { + set { + freeswitchPINVOKE.switch_thread_data_t_obj_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_thread_data_t_obj_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public int alloc { + set { + freeswitchPINVOKE.switch_thread_data_t_alloc_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_thread_data_t_alloc_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t pool { + set { + freeswitchPINVOKE.switch_thread_data_t_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_thread_data_t_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public switch_thread_data_t() : this(freeswitchPINVOKE.new_switch_thread_data_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_thread_priority_t { + SWITCH_PRI_LOW = 1, + SWITCH_PRI_NORMAL = 10, + SWITCH_PRI_IMPORTANT = 50, + SWITCH_PRI_REALTIME = 99 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_timer : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_timer(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_timer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_timer() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_timer(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int interval { + set { + freeswitchPINVOKE.switch_timer_interval_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_timer_interval_get(swigCPtr); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_timer_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_timer_flags_get(swigCPtr); + return ret; + } + } + + public uint samples { + set { + freeswitchPINVOKE.switch_timer_samples_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_timer_samples_get(swigCPtr); + return ret; + } + } + + public uint samplecount { + set { + freeswitchPINVOKE.switch_timer_samplecount_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_timer_samplecount_get(swigCPtr); + return ret; + } + } + + public switch_timer_interface timer_interface { + set { + freeswitchPINVOKE.switch_timer_timer_interface_set(swigCPtr, switch_timer_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_timer_interface_get(swigCPtr); + switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_apr_pool_t memory_pool { + set { + freeswitchPINVOKE.switch_timer_memory_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_memory_pool_get(swigCPtr); + SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void private_info { + set { + freeswitchPINVOKE.switch_timer_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_private_info_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t diff { + set { + freeswitchPINVOKE.switch_timer_diff_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_timer_diff_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_time_t start { + set { + freeswitchPINVOKE.switch_timer_start_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_timer_start_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public ulong tick { + set { + freeswitchPINVOKE.switch_timer_tick_set(swigCPtr, value); + } + get { + ulong ret = freeswitchPINVOKE.switch_timer_tick_get(swigCPtr); + return ret; + } + } + + public switch_timer() : this(freeswitchPINVOKE.new_switch_timer(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_timer_flag_enum_t { + SWITCH_TIMER_FLAG_FREE_POOL = (1 << 0) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_timer_func_name_t { + SWITCH_TIMER_FUNC_TIMER_INIT, + SWITCH_TIMER_FUNC_TIMER_NEXT, + SWITCH_TIMER_FUNC_TIMER_STEP, + SWITCH_TIMER_FUNC_TIMER_SYNC, + SWITCH_TIMER_FUNC_TIMER_CHECK, + SWITCH_TIMER_FUNC_TIMER_DESTROY +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_timer_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_timer_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_timer_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_timer_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_timer_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_timer_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_timer_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_init { + set { + freeswitchPINVOKE.switch_timer_interface_timer_init_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_init_get(swigCPtr); + SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_next { + set { + freeswitchPINVOKE.switch_timer_interface_timer_next_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_next_get(swigCPtr); + SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_step { + set { + freeswitchPINVOKE.switch_timer_interface_timer_step_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_step_get(swigCPtr); + SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_sync { + set { + freeswitchPINVOKE.switch_timer_interface_timer_sync_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_sync_get(swigCPtr); + SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t timer_check { + set { + freeswitchPINVOKE.switch_timer_interface_timer_check_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_check_get(swigCPtr); + SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer_enum_switch_bool_t__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_timer__switch_status_t timer_destroy { + set { + freeswitchPINVOKE.switch_timer_interface_timer_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_timer__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_timer_destroy_get(swigCPtr); + SWIGTYPE_p_f_p_switch_timer__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_timer__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_timer_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_timer_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_timer_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_timer_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_timer_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_parent_get(swigCPtr); + switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_timer_interface next { + set { + freeswitchPINVOKE.switch_timer_interface_next_set(swigCPtr, switch_timer_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_timer_interface_next_get(swigCPtr); + switch_timer_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_timer_interface(cPtr, false); + return ret; + } + } + + public switch_timer_interface() : this(freeswitchPINVOKE.new_switch_timer_interface(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_unicast_conninfo : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_unicast_conninfo(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_unicast_conninfo obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_unicast_conninfo() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_unicast_conninfo(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_switch_core_session session { + set { + freeswitchPINVOKE.switch_unicast_conninfo_session_set(swigCPtr, SWIGTYPE_p_switch_core_session.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_session_get(swigCPtr); + SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); + return ret; + } + } + + public switch_codec read_codec { + set { + freeswitchPINVOKE.switch_unicast_conninfo_read_codec_set(swigCPtr, switch_codec.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_read_codec_get(swigCPtr); + switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false); + return ret; + } + } + + public switch_frame write_frame { + set { + freeswitchPINVOKE.switch_unicast_conninfo_write_frame_set(swigCPtr, switch_frame.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_write_frame_get(swigCPtr); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_unsigned_char write_frame_data { + set { + freeswitchPINVOKE.switch_unicast_conninfo_write_frame_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_write_frame_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_socket_t socket { + set { + freeswitchPINVOKE.switch_unicast_conninfo_socket_set(swigCPtr, SWIGTYPE_p_switch_socket_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_socket_get(swigCPtr); + SWIGTYPE_p_switch_socket_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_socket_t(cPtr, false); + return ret; + } + } + + public string local_ip { + set { + freeswitchPINVOKE.switch_unicast_conninfo_local_ip_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_unicast_conninfo_local_ip_get(swigCPtr); + return ret; + } + } + + public ushort local_port { + set { + freeswitchPINVOKE.switch_unicast_conninfo_local_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_unicast_conninfo_local_port_get(swigCPtr); + return ret; + } + } + + public string remote_ip { + set { + freeswitchPINVOKE.switch_unicast_conninfo_remote_ip_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_unicast_conninfo_remote_ip_get(swigCPtr); + return ret; + } + } + + public ushort remote_port { + set { + freeswitchPINVOKE.switch_unicast_conninfo_remote_port_set(swigCPtr, value); + } + get { + ushort ret = freeswitchPINVOKE.switch_unicast_conninfo_remote_port_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_sockaddr_t local_addr { + set { + freeswitchPINVOKE.switch_unicast_conninfo_local_addr_set(swigCPtr, SWIGTYPE_p_switch_sockaddr_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_local_addr_get(swigCPtr); + SWIGTYPE_p_switch_sockaddr_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_sockaddr_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_sockaddr_t remote_addr { + set { + freeswitchPINVOKE.switch_unicast_conninfo_remote_addr_set(swigCPtr, SWIGTYPE_p_switch_sockaddr_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_remote_addr_get(swigCPtr); + SWIGTYPE_p_switch_sockaddr_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_sockaddr_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t flag_mutex { + set { + freeswitchPINVOKE.switch_unicast_conninfo_flag_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_flag_mutex_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public int flags { + set { + freeswitchPINVOKE.switch_unicast_conninfo_flags_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_unicast_conninfo_flags_get(swigCPtr); + return ret; + } + } + + public int type { + set { + freeswitchPINVOKE.switch_unicast_conninfo_type_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_unicast_conninfo_type_get(swigCPtr); + return ret; + } + } + + public int transport { + set { + freeswitchPINVOKE.switch_unicast_conninfo_transport_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_unicast_conninfo_transport_get(swigCPtr); + return ret; + } + } + + public int stream_id { + set { + freeswitchPINVOKE.switch_unicast_conninfo_stream_id_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_unicast_conninfo_stream_id_get(swigCPtr); + return ret; + } + } + + public switch_unicast_conninfo() : this(freeswitchPINVOKE.new_switch_unicast_conninfo(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_unicast_flag_enum_t { + SUF_NONE = 0, + SUF_THREAD_RUNNING = (1 << 0), + SUF_READY = (1 << 1), + SUF_NATIVE = (1 << 2) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +public enum switch_uri_flags { + SWITCH_URI_NUMERIC_HOST = 1, + SWITCH_URI_NUMERIC_PORT = 2, + SWITCH_URI_NO_SCOPE = 4 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_vad_flag_enum_t { + SWITCH_VAD_FLAG_TALKING = (1 << 0), + SWITCH_VAD_FLAG_EVENTS_TALK = (1 << 1), + SWITCH_VAD_FLAG_EVENTS_NOTALK = (1 << 2), + SWITCH_VAD_FLAG_CNG = (1 << 3) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_waitlist_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_waitlist_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_waitlist_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_waitlist_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_waitlist_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int sock { + set { + freeswitchPINVOKE.switch_waitlist_t_sock_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_waitlist_t_sock_get(swigCPtr); + return ret; + } + } + + public uint events { + set { + freeswitchPINVOKE.switch_waitlist_t_events_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_waitlist_t_events_get(swigCPtr); + return ret; + } + } + + public uint revents { + set { + freeswitchPINVOKE.switch_waitlist_t_revents_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_waitlist_t_revents_get(swigCPtr); + return ret; + } + } + + public switch_waitlist_t() : this(freeswitchPINVOKE.new_switch_waitlist_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + +public class switch_xml : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_xml(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_xml obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_xml() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_xml(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public string name { + set { + freeswitchPINVOKE.switch_xml_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_xml_name_get(swigCPtr); + return ret; + } + } + + public string attr { + set { freeswitchPINVOKE.switch_xml_attr_set(swigCPtr, ref value); } + + get { + return freeswitchPINVOKE.switch_xml_attr_get(swigCPtr); + } + + } + + public string txt { + set { + freeswitchPINVOKE.switch_xml_txt_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_xml_txt_get(swigCPtr); + return ret; + } + } + + public string free_path { + set { + freeswitchPINVOKE.switch_xml_free_path_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_xml_free_path_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t off { + set { + freeswitchPINVOKE.switch_xml_off_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_xml_off_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public switch_xml next { + set { + freeswitchPINVOKE.switch_xml_next_set(swigCPtr, switch_xml.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_next_get(swigCPtr); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + } + + public switch_xml sibling { + set { + freeswitchPINVOKE.switch_xml_sibling_set(swigCPtr, switch_xml.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_sibling_get(swigCPtr); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + } + + public switch_xml ordered { + set { + freeswitchPINVOKE.switch_xml_ordered_set(swigCPtr, switch_xml.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_ordered_get(swigCPtr); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + } + + public switch_xml child { + set { + freeswitchPINVOKE.switch_xml_child_set(swigCPtr, switch_xml.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_child_get(swigCPtr); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + } + + public switch_xml parent { + set { + freeswitchPINVOKE.switch_xml_parent_set(swigCPtr, switch_xml.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_xml_parent_get(swigCPtr); + switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); + return ret; + } + } + + public uint flags { + set { + freeswitchPINVOKE.switch_xml_flags_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_xml_flags_get(swigCPtr); + return ret; + } + } + + public switch_bool_t is_switch_xml_root_t { + set { + freeswitchPINVOKE.switch_xml_is_switch_xml_root_t_set(swigCPtr, (int)value); + } + get { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_xml_is_switch_xml_root_t_get(swigCPtr); + return ret; + } + } + + public uint refs { + set { + freeswitchPINVOKE.switch_xml_refs_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_xml_refs_get(swigCPtr); + return ret; + } + } + + public switch_xml() : this(freeswitchPINVOKE.new_switch_xml(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_xml_flag_t { + SWITCH_XML_ROOT = (1 << 0), + SWITCH_XML_NAMEM = (1 << 1), + SWITCH_XML_TXTM = (1 << 2), + SWITCH_XML_DUP = (1 << 3) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +[System.Flags] public enum switch_xml_section_enum_t { + SWITCH_XML_SECTION_RESULT = 0, + SWITCH_XML_SECTION_CONFIG = (1 << 0), + SWITCH_XML_SECTION_DIRECTORY = (1 << 1), + SWITCH_XML_SECTION_DIALPLAN = (1 << 2), + SWITCH_XML_SECTION_LANGUAGES = (1 << 3), + SWITCH_XML_SECTION_CHATPLAN = (1 << 4), + SWITCH_XML_SECTION_MAX = (1 << 4) +} + +} diff --git a/src/mod/languages/mod_perl/freeswitch.pm b/src/mod/languages/mod_perl/freeswitch.pm index 6622989171..f8b56f02bc 100644 --- a/src/mod/languages/mod_perl/freeswitch.pm +++ b/src/mod/languages/mod_perl/freeswitch.pm @@ -1,5 +1,8 @@ -# This file was created automatically by SWIG 1.3.29. +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 1.3.35 +# # Don't modify this file, modify the SWIG interface instead. + package freeswitch; require Exporter; @ISA = qw(Exporter); diff --git a/src/mod/languages/mod_perl/mod_perl_wrap.cpp b/src/mod/languages/mod_perl/mod_perl_wrap.cpp index 8ba241815b..e581200ba4 100644 --- a/src/mod/languages/mod_perl/mod_perl_wrap.cpp +++ b/src/mod/languages/mod_perl/mod_perl_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -12,7 +12,7 @@ #define SWIG_CASTRANK_MODE #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -25,6 +25,10 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; + +template T SwigValueInit() { + return T(); +} #endif /* ----------------------------------------------------------------------------- @@ -34,14 +38,14 @@ private: /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) -# if (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -120,10 +124,16 @@ private: #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -133,7 +143,7 @@ private: /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "2" +#define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -168,6 +178,7 @@ private: /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -308,10 +319,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *); +typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store inforomation on one type */ +/* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -356,7 +367,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (l1 - f1) - (l2 - f2); + return (int)((l1 - f1) - (l2 - f2)); } /* @@ -438,8 +449,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* @@ -792,6 +803,10 @@ extern "C" { # endif #endif /* !INT2PTR */ +#ifndef SvPV_nolen +# define SvPV_nolen(x) SvPV(x,PL_na) +#endif + #ifndef get_sv # define get_sv perl_get_sv #endif @@ -940,6 +955,11 @@ extern "C" { /* SWIG Perl macros */ +/* Macro to declare an XS function */ +#ifndef XSPROTO +# define XSPROTO(name) void name(pTHX_ CV* cv) +#endif + /* Macro to call an XS function */ #ifdef PERL_OBJECT # define SWIG_CALLXS(_name) _name(cv,pPerl) @@ -951,51 +971,50 @@ extern "C" { # endif #endif -/* Note: SwigMagicFuncHack is a typedef used to get the C++ compiler to just shut up already */ - #ifdef PERL_OBJECT #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; -typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus extern "C" { #endif -typedef int (CPerlObj::*SwigMagicFuncHack)(SV *, MAGIC *); +typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #define SWIGCLASS_STATIC -#else + +#else /* PERL_OBJECT */ + #define MAGIC_PPERL #define SWIGCLASS_STATIC static SWIGUNUSED + #ifndef MULTIPLICITY #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) -typedef int (*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus extern "C" { #endif -typedef int (*SwigMagicFuncHack)(SV *, MAGIC *); +typedef int (*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif +#else /* MULTIPLICITY */ -#else #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); #ifdef __cplusplus -extern "C" { -#endif -typedef int (*SwigMagicFuncHack)(struct interpreter *, SV *, MAGIC *); -#ifdef __cplusplus } #endif -#endif -#endif +#endif /* MULTIPLICITY */ +#endif /* PERL_OBJECT */ /* Workaround for bug in perl 5.6.x croak and earlier */ #if (PERL_VERSION < 8) @@ -1019,6 +1038,35 @@ static void SWIG_croak_null() #endif +/* + Define how strict is the cast between strings and integers/doubles + when overloading between these types occurs. + + The default is making it as strict as possible by using SWIG_AddCast + when needed. + + You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to + disable the SWIG_AddCast, making the casting between string and + numbers less strict. + + In the end, we try to solve the overloading between strings and + numerical types in the more natural way, but if you can avoid it, + well, avoid it using %rename, for example. +*/ +#ifndef SWIG_PERL_NO_STRICT_STR2NUM +# ifndef SWIG_PERL_STRICT_STR2NUM +# define SWIG_PERL_STRICT_STR2NUM +# endif +#endif +#ifdef SWIG_PERL_STRICT_STR2NUM +/* string takes precedence */ +#define SWIG_Str2NumCast(x) SWIG_AddCast(x) +#else +/* number takes precedence */ +#define SWIG_Str2NumCast(x) x +#endif + + #include @@ -1035,7 +1083,7 @@ SWIG_Perl_TypeProxyName(const swig_type_info *type) { SWIGRUNTIME swig_cast_info * SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { - SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp((char*)iter->type->name, c) == 0)) + SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty); } @@ -1093,7 +1141,11 @@ SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info * if (!tc) { return SWIG_ERROR; } - *ptr = SWIG_TypeCast(tc,voidptr); + { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } } else { *ptr = voidptr; } @@ -1183,7 +1235,7 @@ SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_ const char *c = 0; if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; - c = SvPV(obj, PL_na); + c = SvPV_nolen(obj); /* Pointer values must start with leading underscore */ if (*c != '_') return SWIG_ERROR; c++; @@ -1200,7 +1252,7 @@ SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } -typedef XS(SwigPerlWrapper); +typedef XSPROTO(SwigPerlWrapper); typedef SwigPerlWrapper *SwigPerlWrapperPtr; /* Structure for command table */ @@ -1253,8 +1305,8 @@ SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, i sv_magic(sv,sv,'U',(char *) name,strlen(name)); mg = mg_find(sv,'U'); mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); - mg->mg_virtual->svt_get = (SwigMagicFuncHack) get; - mg->mg_virtual->svt_set = (SwigMagicFuncHack) set; + mg->mg_virtual->svt_get = (SwigMagicFunc) get; + mg->mg_virtual->svt_set = (SwigMagicFunc) set; mg->mg_virtual->svt_len = 0; mg->mg_virtual->svt_clear = 0; mg->mg_virtual->svt_free = 0; @@ -1268,7 +1320,7 @@ SWIG_Perl_GetModule(void) { /* first check if pointer already created */ if (!type_pointer) { - pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE); + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); if (pointer && SvOK(pointer)) { type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); } @@ -1282,7 +1334,7 @@ SWIG_Perl_SetModule(swig_module_info *module) { SV *pointer; /* create a new pointer */ - pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE); + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); sv_setiv(pointer, PTR2IV(module)); } @@ -1377,6 +1429,12 @@ SWIG_Perl_SetModule(swig_module_info *module) { #ifdef check #undef check #endif +#ifdef seekdir + #undef seekdir +#endif +#ifdef open + #undef open +#endif @@ -1429,7 +1487,8 @@ static swig_module_info swig_module = {swig_types, 29, 0, 0, 0, 0}; #define SWIG_name "freeswitchc::boot_freeswitch" #define SWIG_prefix "freeswitchc::" -#define SWIGVERSION 0x010329 +#define SWIGVERSION 0x010335 +#define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) @@ -1458,7 +1517,7 @@ SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); SWIGINTERN swig_type_info* -SWIG_pchar_descriptor() +SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; @@ -1512,16 +1571,8 @@ SWIGINTERNINLINE SV * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { SV *obj = sv_newmortal(); - if (size && carray) { - if (carray[size - 1] == 0) { - sv_setpv(obj, carray); - } else { - char *tmp = (new char[size + 1]); - memcpy(tmp, carray, size); - tmp[size] = 0; - sv_setpv(obj, tmp); - delete[] tmp; - } + if (carray) { + sv_setpvn(obj, carray, size); } else { sv_setsv(obj, &PL_sv_undef); } @@ -1537,14 +1588,12 @@ SWIG_FromCharPtr(const char *cptr) #include -#ifndef LLONG_MIN -# define LLONG_MIN LONG_LONG_MIN -#endif -#ifndef LLONG_MAX -# define LLONG_MAX LONG_LONG_MAX -#endif -#ifndef ULLONG_MAX -# define ULLONG_MAX ULONG_LONG_MAX +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif #endif @@ -1558,7 +1607,7 @@ SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) if (val) *val = (double) SvIV(obj); return SWIG_AddCast(SWIG_OK); } else { - const char *nptr = SvPV(obj, PL_na); + const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; double v = strtod(nptr, &endptr); @@ -1568,7 +1617,7 @@ SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) } else { if (*endptr == '\0') { if (val) *val = v; - return SWIG_AddCast(SWIG_OK); + return SWIG_Str2NumCast(SWIG_OK); } } } @@ -1621,17 +1670,19 @@ SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) return SWIG_OK; } else { int dispatch = 0; - const char *nptr = SvPV(obj, PL_na); + const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; - long v = strtol(nptr, &endptr,0); + long v; + errno = 0; + v = strtol(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; - return SWIG_AddCast(SWIG_OK); + return SWIG_Str2NumCast(SWIG_OK); } } } @@ -1759,17 +1810,19 @@ SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) } } else { int dispatch = 0; - const char *nptr = SvPV(obj, PL_na); + const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; - unsigned long v = strtoul(nptr, &endptr,0); + unsigned long v; + errno = 0; + v = strtoul(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; - return SWIG_AddCast(SWIG_OK); + return SWIG_Str2NumCast(SWIG_OK); } } } @@ -1834,6 +1887,10 @@ SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val) return SWIG_TypeError; } +#ifdef __cplusplus +extern "C" { +#endif + #ifdef PERL_OBJECT #define MAGIC_CLASS _wrap_freeswitch_var:: class _wrap_freeswitch_var : public CPerlObj { @@ -1852,6 +1909,10 @@ SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SW }; #endif +#ifdef __cplusplus +} +#endif + #ifdef __cplusplus extern "C" { #endif @@ -1875,12 +1936,12 @@ XS(_wrap_setGlobalVariable) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setGlobalVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); setGlobalVariable(arg1,arg2); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -1911,9 +1972,9 @@ XS(_wrap_getGlobalVariable) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); result = (char *)getGlobalVariable(arg1); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc1 == SWIG_NEWOBJ) delete[] buf1; free(result); XSRETURN(argvi); @@ -1944,12 +2005,12 @@ XS(_wrap_consoleLog) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); consoleLog(arg1,arg2); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -1994,17 +2055,17 @@ XS(_wrap_consoleLog2) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog2" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "consoleLog2" "', argument " "4"" of type '" "int""'"); @@ -2014,7 +2075,7 @@ XS(_wrap_consoleLog2) { if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "consoleLog2" "', argument " "5"" of type '" "char *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); consoleLog2(arg1,arg2,arg3,arg4,arg5); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -2050,7 +2111,7 @@ XS(_wrap_consoleCleanLog) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleCleanLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); consoleCleanLog(arg1); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -2121,46 +2182,46 @@ XS(_wrap_email) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "email" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "email" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "email" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "email" "', argument " "4"" of type '" "char *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); } if (items > 4) { res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "email" "', argument " "5"" of type '" "char *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); } if (items > 5) { res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "email" "', argument " "6"" of type '" "char *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); } if (items > 6) { res7 = SWIG_AsCharPtrAndSize(ST(6), &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "email" "', argument " "7"" of type '" "char *""'"); } - arg7 = buf7; + arg7 = reinterpret_cast< char * >(buf7); } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -2264,52 +2325,52 @@ XS(_wrap_new_IVRMenu) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IVRMenu" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_IVRMenu" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IVRMenu" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_IVRMenu" "', argument " "5"" of type '" "char const *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_IVRMenu" "', argument " "6"" of type '" "char const *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); res7 = SWIG_AsCharPtrAndSize(ST(6), &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_IVRMenu" "', argument " "7"" of type '" "char const *""'"); } - arg7 = buf7; + arg7 = reinterpret_cast< char * >(buf7); res8 = SWIG_AsCharPtrAndSize(ST(7), &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_IVRMenu" "', argument " "8"" of type '" "char const *""'"); } - arg8 = buf8; + arg8 = reinterpret_cast< char * >(buf8); res9 = SWIG_AsCharPtrAndSize(ST(8), &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_IVRMenu" "', argument " "9"" of type '" "char const *""'"); } - arg9 = buf9; + arg9 = reinterpret_cast< char * >(buf9); res10 = SWIG_AsCharPtrAndSize(ST(9), &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_IVRMenu" "', argument " "10"" of type '" "char const *""'"); } - arg10 = buf10; + arg10 = reinterpret_cast< char * >(buf10); res11 = SWIG_AsCharPtrAndSize(ST(10), &buf11, NULL, &alloc11); if (!SWIG_IsOK(res11)) { SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_IVRMenu" "', argument " "11"" of type '" "char const *""'"); } - arg11 = buf11; + arg11 = reinterpret_cast< char * >(buf11); ecode12 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(11), &val12); if (!SWIG_IsOK(ecode12)) { SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_IVRMenu" "', argument " "12"" of type '" "int""'"); @@ -2443,17 +2504,17 @@ XS(_wrap_IVRMenu_bindAction) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IVRMenu_bindAction" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_bindAction" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IVRMenu_bindAction" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); @@ -2503,7 +2564,7 @@ XS(_wrap_IVRMenu_execute) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->execute(arg2,(char const *)arg3); @@ -2606,16 +2667,16 @@ XS(_wrap_API_execute) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "API_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -2655,9 +2716,9 @@ XS(_wrap_API_executeString) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_executeString" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (char *)(arg1)->executeString((char const *)arg2); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; free(result); @@ -2688,7 +2749,7 @@ XS(_wrap_API_getTime) { } arg1 = reinterpret_cast< API * >(argp1); result = (char *)(arg1)->getTime(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -2914,11 +2975,11 @@ XS(_wrap_input_callback_state_t_funcargs_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_funcargs_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->funcargs) delete[] arg1->funcargs; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->funcargs = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->funcargs = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->funcargs = 0; } @@ -2952,7 +3013,7 @@ XS(_wrap_input_callback_state_t_funcargs_get) { } arg1 = reinterpret_cast< input_callback_state_t * >(argp1); result = (char *) ((arg1)->funcargs); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -3365,7 +3426,7 @@ XS(_wrap_Stream_read) { } arg2 = reinterpret_cast< int * >(argp2); result = (char *)(arg1)->read(arg2); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); @@ -3401,7 +3462,7 @@ XS(_wrap_Stream_write) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); (arg1)->write((char const *)arg2); @@ -3442,7 +3503,7 @@ XS(_wrap_Stream_raw_write) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_raw_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Stream_raw_write" "', argument " "3"" of type '" "int""'"); @@ -3481,7 +3542,7 @@ XS(_wrap_Stream_get_data) { } arg1 = reinterpret_cast< Stream * >(argp1); result = (char *)(arg1)->get_data(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -3581,11 +3642,11 @@ XS(_wrap_Event_serialized_string_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialized_string_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->serialized_string) delete[] arg1->serialized_string; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->serialized_string = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->serialized_string = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->serialized_string = 0; } @@ -3619,7 +3680,7 @@ XS(_wrap_Event_serialized_string_get) { } arg1 = reinterpret_cast< Event * >(argp1); result = (char *) ((arg1)->serialized_string); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -3716,13 +3777,13 @@ XS(_wrap_new_Event__SWIG_0) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Event" "', argument " "1"" of type '" "char const *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); if (items > 1) { res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Event" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } result = (Event *)new Event((char const *)arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_OWNER | SWIG_SHADOW); argvi++ ; @@ -3917,13 +3978,13 @@ XS(_wrap_Event_chat_execute) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_chat_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -3966,7 +4027,7 @@ XS(_wrap_Event_chat_send) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_send" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } result = (int)(arg1)->chat_send((char const *)arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -4007,10 +4068,10 @@ XS(_wrap_Event_serialize) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialize" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } result = (char *)(arg1)->serialize((char const *)arg2); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); @@ -4091,9 +4152,9 @@ XS(_wrap_Event_getHeader) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_getHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (char *)(arg1)->getHeader((char const *)arg2); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); @@ -4123,7 +4184,7 @@ XS(_wrap_Event_getBody) { } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getBody(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -4151,7 +4212,7 @@ XS(_wrap_Event_getType) { } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getType(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -4186,7 +4247,7 @@ XS(_wrap_Event_addBody) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addBody" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (bool)(arg1)->addBody((char const *)arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -4229,12 +4290,12 @@ XS(_wrap_Event_addHeader) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_addHeader" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -4275,7 +4336,7 @@ XS(_wrap_Event_delHeader) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_delHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (bool)(arg1)->delHeader((char const *)arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; @@ -4477,11 +4538,11 @@ XS(_wrap_EventConsumer_e_callback_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_callback_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->e_callback) delete[] arg1->e_callback; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->e_callback = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->e_callback = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->e_callback = 0; } @@ -4515,7 +4576,7 @@ XS(_wrap_EventConsumer_e_callback_get) { } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_callback); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -4549,11 +4610,11 @@ XS(_wrap_EventConsumer_e_subclass_name_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_subclass_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->e_subclass_name) delete[] arg1->e_subclass_name; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->e_subclass_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->e_subclass_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->e_subclass_name = 0; } @@ -4587,7 +4648,7 @@ XS(_wrap_EventConsumer_e_subclass_name_get) { } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_subclass_name); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -4621,11 +4682,11 @@ XS(_wrap_EventConsumer_e_cb_arg_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_cb_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->e_cb_arg) delete[] arg1->e_cb_arg; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->e_cb_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->e_cb_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->e_cb_arg = 0; } @@ -4659,7 +4720,7 @@ XS(_wrap_EventConsumer_e_cb_arg_get) { } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_cb_arg); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -4836,14 +4897,14 @@ XS(_wrap_new_EventConsumer) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventConsumer" "', argument " "1"" of type '" "char const *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); } if (items > 1) { res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EventConsumer" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } if (items > 2) { ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); @@ -4924,13 +4985,13 @@ XS(_wrap_EventConsumer_bind) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_bind" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "EventConsumer_bind" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -5548,11 +5609,11 @@ XS(_wrap_CoreSession_uuid_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_uuid_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->uuid) delete[] arg1->uuid; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->uuid = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->uuid = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->uuid = 0; } @@ -5586,7 +5647,7 @@ XS(_wrap_CoreSession_uuid_get) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->uuid); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -5620,11 +5681,11 @@ XS(_wrap_CoreSession_tts_name_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_tts_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->tts_name) delete[] arg1->tts_name; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->tts_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->tts_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->tts_name = 0; } @@ -5658,7 +5719,7 @@ XS(_wrap_CoreSession_tts_name_get) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->tts_name); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -5692,11 +5753,11 @@ XS(_wrap_CoreSession_voice_name_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_voice_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->voice_name) delete[] arg1->voice_name; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->voice_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->voice_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->voice_name = 0; } @@ -5730,7 +5791,7 @@ XS(_wrap_CoreSession_voice_name_get) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->voice_name); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -5772,12 +5833,12 @@ XS(_wrap_CoreSession_insertFile) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_insertFile" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_insertFile" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_insertFile" "', argument " "4"" of type '" "int""'"); @@ -5881,7 +5942,7 @@ XS(_wrap_CoreSession_hangup) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_hangup" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } (arg1)->hangup((char const *)arg2); @@ -5951,12 +6012,12 @@ XS(_wrap_CoreSession_setVariable) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setVariable" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->setVariable(arg2,arg3); @@ -5998,7 +6059,7 @@ XS(_wrap_CoreSession_setPrivate) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setPrivate" "', argument " "3"" of type '" "void *""'"); @@ -6043,7 +6104,7 @@ XS(_wrap_CoreSession_getPrivate) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (void *)(arg1)->getPrivate(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; @@ -6082,9 +6143,9 @@ XS(_wrap_CoreSession_getVariable) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (char *)(arg1)->getVariable(arg2); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); @@ -6121,7 +6182,7 @@ XS(_wrap_CoreSession_process_callback_result) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_process_callback_result" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (arg1)->process_callback_result(arg2); ST(argvi) = SWIG_NewPointerObj((new switch_status_t(static_cast< const switch_status_t& >(result))), SWIGTYPE_p_switch_status_t, SWIG_POINTER_OWN | 0); argvi++ ; @@ -6175,28 +6236,28 @@ XS(_wrap_CoreSession_say) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_say" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_say" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_say" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CoreSession_say" "', argument " "5"" of type '" "char const *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); if (items > 5) { res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_say" "', argument " "6"" of type '" "char const *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); @@ -6251,20 +6312,20 @@ XS(_wrap_CoreSession_sayPhrase) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_sayPhrase" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_sayPhrase" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_sayPhrase" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); @@ -6301,7 +6362,7 @@ XS(_wrap_CoreSession_hangupCause) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->hangupCause(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -6329,7 +6390,7 @@ XS(_wrap_CoreSession_getState) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getState(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -6373,7 +6434,7 @@ XS(_wrap_CoreSession_recordFile) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_recordFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { @@ -6453,7 +6514,7 @@ XS(_wrap_CoreSession_originate) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_originate" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); if (items > 3) { ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { @@ -6544,7 +6605,7 @@ XS(_wrap_CoreSession_setDTMFCallback) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setDTMFCallback" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->setDTMFCallback(arg2,arg3); @@ -6585,7 +6646,7 @@ XS(_wrap_CoreSession_speak) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_speak" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (int)(arg1)->speak(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -6627,12 +6688,12 @@ XS(_wrap_CoreSession_set_tts_parms) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_parms" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_parms" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->set_tts_parms(arg2,arg3); @@ -6676,12 +6737,12 @@ XS(_wrap_CoreSession_set_tts_params) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_params" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_params" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->set_tts_params(arg2,arg3); @@ -6911,14 +6972,14 @@ XS(_wrap_CoreSession_getDigits__SWIG_0) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -6973,7 +7034,7 @@ XS(_wrap_CoreSession_getDigits__SWIG_1) { if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); @@ -6985,7 +7046,7 @@ XS(_wrap_CoreSession_getDigits__SWIG_1) { } arg5 = static_cast< int >(val5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -7164,20 +7225,20 @@ XS(_wrap_CoreSession_transfer) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_transfer" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_transfer" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_transfer" "', argument " "4"" of type '" "char *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); } result = (int)(arg1)->transfer(arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; @@ -7247,7 +7308,7 @@ XS(_wrap_CoreSession_read) { if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_read" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_read" "', argument " "5"" of type '" "int""'"); @@ -7257,7 +7318,7 @@ XS(_wrap_CoreSession_read) { if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_read" "', argument " "6"" of type '" "char const *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); if (items > 6) { ecode7 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { @@ -7266,7 +7327,7 @@ XS(_wrap_CoreSession_read) { arg7 = static_cast< int >(val7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; @@ -7368,28 +7429,28 @@ XS(_wrap_CoreSession_playAndGetDigits) { if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_playAndGetDigits" "', argument " "6"" of type '" "char *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); res7 = SWIG_AsCharPtrAndSize(ST(6), &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CoreSession_playAndGetDigits" "', argument " "7"" of type '" "char *""'"); } - arg7 = buf7; + arg7 = reinterpret_cast< char * >(buf7); res8 = SWIG_AsCharPtrAndSize(ST(7), &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CoreSession_playAndGetDigits" "', argument " "8"" of type '" "char *""'"); } - arg8 = buf8; + arg8 = reinterpret_cast< char * >(buf8); res9 = SWIG_AsCharPtrAndSize(ST(8), &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CoreSession_playAndGetDigits" "', argument " "9"" of type '" "char *""'"); } - arg9 = buf9; + arg9 = reinterpret_cast< char * >(buf9); if (items > 9) { res10 = SWIG_AsCharPtrAndSize(ST(9), &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "CoreSession_playAndGetDigits" "', argument " "10"" of type '" "char const *""'"); } - arg10 = buf10; + arg10 = reinterpret_cast< char * >(buf10); } if (items > 10) { ecode11 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(10), &val11); @@ -7403,10 +7464,10 @@ XS(_wrap_CoreSession_playAndGetDigits) { if (!SWIG_IsOK(res12)) { SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "CoreSession_playAndGetDigits" "', argument " "12"" of type '" "char const *""'"); } - arg12 = buf12; + arg12 = reinterpret_cast< char * >(buf12); } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; @@ -7466,7 +7527,7 @@ XS(_wrap_CoreSession_streamFile) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_streamFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { @@ -7845,13 +7906,13 @@ XS(_wrap_CoreSession_execute) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } (arg1)->execute((char const *)arg2,(char const *)arg3); @@ -7960,7 +8021,7 @@ XS(_wrap_CoreSession_getXMLCDR) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getXMLCDR(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -8044,7 +8105,7 @@ XS(_wrap_CoreSession_get_uuid) { } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)((CoreSession const *)arg1)->get_uuid(); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -8190,12 +8251,12 @@ XS(_wrap_CoreSession_consoleLog) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->consoleLog(arg2,arg3); @@ -8250,17 +8311,17 @@ XS(_wrap_CoreSession_consoleLog2) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_consoleLog2" "', argument " "4"" of type '" "char *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_consoleLog2" "', argument " "5"" of type '" "int""'"); @@ -8270,7 +8331,7 @@ XS(_wrap_CoreSession_consoleLog2) { if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_consoleLog2" "', argument " "6"" of type '" "char *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); @@ -8312,12 +8373,12 @@ XS(_wrap_console_log) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); console_log(arg1,arg2); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8362,17 +8423,17 @@ XS(_wrap_console_log2) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log2" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log2" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "console_log2" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "console_log2" "', argument " "4"" of type '" "int""'"); @@ -8382,7 +8443,7 @@ XS(_wrap_console_log2) { if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "console_log2" "', argument " "5"" of type '" "char *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); console_log2(arg1,arg2,arg3,arg4,arg5); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8418,7 +8479,7 @@ XS(_wrap_console_clean_log) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_clean_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); console_clean_log(arg1); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8640,7 +8701,7 @@ XS(_wrap_new_Session__SWIG_1) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CoreSession, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Session" "', argument " "2"" of type '" "CoreSession *""'"); @@ -8686,10 +8747,20 @@ XS(_wrap_new_Session__SWIG_2) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; - result = (PERL::Session *)new PERL::Session(arg1); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + arg1 = reinterpret_cast< char * >(buf1); + result = (PERL::Session *)new PERL::Session(arg1); + if (result->allocated) { + result->setPERL(my_perl); + foo = get_sv(result->suuid, TRUE); + SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); + result->setME(foo); + } else { + foo = sv_newmortal(); + SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); + } + ST(argvi) = foo; argvi++ ; if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8705,6 +8776,7 @@ XS(_wrap_new_Session__SWIG_3) { void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; + SV *foo; dXSARGS; if ((items < 1) || (items > 1)) { @@ -8716,8 +8788,18 @@ XS(_wrap_new_Session__SWIG_3) { } arg1 = reinterpret_cast< switch_core_session_t * >(argp1); result = (PERL::Session *)new PERL::Session(arg1); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - + if (result->allocated) { + result->setPERL(my_perl); + foo = get_sv(result->suuid, TRUE); + SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); + result->setME(foo); + } else { + foo = sv_newmortal(); + SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); + } + + ST(argvi) = foo; argvi++ ; + XSRETURN(argvi); fail: @@ -8945,7 +9027,6 @@ XS(_wrap_Session_check_hangup_hook) { void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; - SV *foo; dXSARGS; if ((items < 1) || (items > 1)) { @@ -9076,12 +9157,12 @@ XS(_wrap_Session_setInputCallback__SWIG_0) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setInputCallback" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Session_setInputCallback" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->setInputCallback(arg2,arg3); @@ -9121,7 +9202,7 @@ XS(_wrap_Session_setInputCallback__SWIG_1) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setInputCallback" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); (arg1)->setInputCallback(arg2); @@ -9326,12 +9407,12 @@ XS(_wrap_Session_setHangupHook__SWIG_0) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setHangupHook" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Session_setHangupHook" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->setHangupHook(arg2,arg3); @@ -9371,7 +9452,7 @@ XS(_wrap_Session_setHangupHook__SWIG_1) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_setHangupHook" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); (arg1)->setHangupHook(arg2); @@ -9523,11 +9604,11 @@ XS(_wrap_Session_suuid_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_suuid_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->suuid) delete[] arg1->suuid; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->suuid = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->suuid = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->suuid = 0; } @@ -9561,7 +9642,7 @@ XS(_wrap_Session_suuid_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->suuid); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -9595,11 +9676,11 @@ XS(_wrap_Session_cb_function_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_cb_function_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->cb_function) delete[] arg1->cb_function; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->cb_function = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->cb_function = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->cb_function = 0; } @@ -9633,7 +9714,7 @@ XS(_wrap_Session_cb_function_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->cb_function); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -9667,11 +9748,11 @@ XS(_wrap_Session_cb_arg_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_cb_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->cb_arg) delete[] arg1->cb_arg; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->cb_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->cb_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->cb_arg = 0; } @@ -9705,7 +9786,7 @@ XS(_wrap_Session_cb_arg_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->cb_arg); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -9739,11 +9820,11 @@ XS(_wrap_Session_hangup_func_str_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_hangup_func_str_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->hangup_func_str) delete[] arg1->hangup_func_str; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->hangup_func_str = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->hangup_func_str = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->hangup_func_str = 0; } @@ -9777,7 +9858,7 @@ XS(_wrap_Session_hangup_func_str_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->hangup_func_str); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -9811,11 +9892,11 @@ XS(_wrap_Session_hangup_func_arg_set) { if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_hangup_func_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->hangup_func_arg) delete[] arg1->hangup_func_arg; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->hangup_func_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->hangup_func_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->hangup_func_arg = 0; } @@ -9849,7 +9930,7 @@ XS(_wrap_Session_hangup_func_arg_get) { } arg1 = reinterpret_cast< PERL::Session * >(argp1); result = (char *) ((arg1)->hangup_func_arg); - ST(argvi) = SWIG_FromCharPtr(result); argvi++ ; + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: @@ -9899,7 +9980,7 @@ XS(_wrap_Session_setPERL) { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_PERL__SessionTo_p_CoreSession(void *x) { +static void *_p_PERL__SessionTo_p_CoreSession(void *x, int *newmemory) { return (void *)((CoreSession *) ((PERL::Session *) x)); } static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)"freeswitch::API", 0}; @@ -9912,7 +9993,7 @@ static swig_type_info _swigt__p_PERL__Session = {"_p_PERL__Session", "PERL::Sess static swig_type_info _swigt__p_PerlInterpreter = {"_p_PerlInterpreter", "PerlInterpreter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)"freeswitch::Stream", 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)"freeswitch::input_callback_state_t", 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)"freeswitch::input_callback_state_t", 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum session_flag_t *|session_flag_t *", 0, 0, (void*)0, 0}; @@ -10231,7 +10312,7 @@ static swig_command_info swig_commands[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop though that array, and handle each type individually. + * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -10269,32 +10350,58 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif + SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head; - static int init_run = 0; + swig_module_info *module_head, *iter; + int found, init; clientdata = clientdata; - if (init_run) return; - init_run = 1; - - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (module_head) { + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; - } else { - /* This is the first module loaded */ - swig_module.next = &swig_module; - SWIG_SetModule(clientdata, &swig_module); } + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -10448,7 +10555,7 @@ XS(SWIG_init) { /* Install variables */ for (i = 0; swig_variables[i].name; i++) { SV *sv; - sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2); + sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); if (swig_variables[i].type) { SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); } else { @@ -10460,7 +10567,7 @@ XS(SWIG_init) { /* Install constant */ for (i = 0; swig_constants[i].type; i++) { SV *sv; - sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2); + sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); switch(swig_constants[i].type) { case SWIG_INT: sv_setiv(sv, (IV) swig_constants[i].lvalue); @@ -10486,18 +10593,18 @@ XS(SWIG_init) { SWIG_TypeClientData(SWIGTYPE_p_IVRMenu, (void*) "freeswitch::IVRMenu"); SWIG_TypeClientData(SWIGTYPE_p_API, (void*) "freeswitch::API"); SWIG_TypeClientData(SWIGTYPE_p_input_callback_state, (void*) "freeswitch::input_callback_state_t"); - /*@SWIG:%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2); + /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_HUP))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG:%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2); + /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_FREE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG:%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2); + /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_RDLOCK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; diff --git a/src/mod/languages/mod_python/freeswitch.py b/src/mod/languages/mod_python/freeswitch.py index f69db966bd..e2831b47db 100644 --- a/src/mod/languages/mod_python/freeswitch.py +++ b/src/mod/languages/mod_python/freeswitch.py @@ -1,10 +1,16 @@ -# This file was created automatically by SWIG 1.3.29. +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 1.3.35 +# # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _freeswitch import new new_instancemethod = new.instancemethod +try: + _swig_property = property +except NameError: + pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): @@ -92,16 +98,16 @@ class input_callback_state_t(_object): __repr__ = _swig_repr __swig_setmethods__["function"] = _freeswitch.input_callback_state_t_function_set __swig_getmethods__["function"] = _freeswitch.input_callback_state_t_function_get - if _newclass:function = property(_freeswitch.input_callback_state_t_function_get, _freeswitch.input_callback_state_t_function_set) + if _newclass:function = _swig_property(_freeswitch.input_callback_state_t_function_get, _freeswitch.input_callback_state_t_function_set) __swig_setmethods__["threadState"] = _freeswitch.input_callback_state_t_threadState_set __swig_getmethods__["threadState"] = _freeswitch.input_callback_state_t_threadState_get - if _newclass:threadState = property(_freeswitch.input_callback_state_t_threadState_get, _freeswitch.input_callback_state_t_threadState_set) + if _newclass:threadState = _swig_property(_freeswitch.input_callback_state_t_threadState_get, _freeswitch.input_callback_state_t_threadState_set) __swig_setmethods__["extra"] = _freeswitch.input_callback_state_t_extra_set __swig_getmethods__["extra"] = _freeswitch.input_callback_state_t_extra_get - if _newclass:extra = property(_freeswitch.input_callback_state_t_extra_get, _freeswitch.input_callback_state_t_extra_set) + if _newclass:extra = _swig_property(_freeswitch.input_callback_state_t_extra_get, _freeswitch.input_callback_state_t_extra_set) __swig_setmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_set __swig_getmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_get - if _newclass:funcargs = property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set) + if _newclass:funcargs = _swig_property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set) def __init__(self, *args): this = _freeswitch.new_input_callback_state_t(*args) try: self.this.append(this) @@ -122,10 +128,10 @@ class DTMF(_object): __repr__ = _swig_repr __swig_setmethods__["digit"] = _freeswitch.DTMF_digit_set __swig_getmethods__["digit"] = _freeswitch.DTMF_digit_get - if _newclass:digit = property(_freeswitch.DTMF_digit_get, _freeswitch.DTMF_digit_set) + if _newclass:digit = _swig_property(_freeswitch.DTMF_digit_get, _freeswitch.DTMF_digit_set) __swig_setmethods__["duration"] = _freeswitch.DTMF_duration_set __swig_getmethods__["duration"] = _freeswitch.DTMF_duration_get - if _newclass:duration = property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set) + if _newclass:duration = _swig_property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set) def __init__(self, *args): this = _freeswitch.new_DTMF(*args) try: self.this.append(this) @@ -162,13 +168,13 @@ class Event(_object): __repr__ = _swig_repr __swig_setmethods__["event"] = _freeswitch.Event_event_set __swig_getmethods__["event"] = _freeswitch.Event_event_get - if _newclass:event = property(_freeswitch.Event_event_get, _freeswitch.Event_event_set) + if _newclass:event = _swig_property(_freeswitch.Event_event_get, _freeswitch.Event_event_set) __swig_setmethods__["serialized_string"] = _freeswitch.Event_serialized_string_set __swig_getmethods__["serialized_string"] = _freeswitch.Event_serialized_string_get - if _newclass:serialized_string = property(_freeswitch.Event_serialized_string_get, _freeswitch.Event_serialized_string_set) + if _newclass:serialized_string = _swig_property(_freeswitch.Event_serialized_string_get, _freeswitch.Event_serialized_string_set) __swig_setmethods__["mine"] = _freeswitch.Event_mine_set __swig_getmethods__["mine"] = _freeswitch.Event_mine_get - if _newclass:mine = property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set) + if _newclass:mine = _swig_property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set) def __init__(self, *args): this = _freeswitch.new_Event(*args) try: self.this.append(this) @@ -197,25 +203,25 @@ class EventConsumer(_object): __repr__ = _swig_repr __swig_setmethods__["events"] = _freeswitch.EventConsumer_events_set __swig_getmethods__["events"] = _freeswitch.EventConsumer_events_get - if _newclass:events = property(_freeswitch.EventConsumer_events_get, _freeswitch.EventConsumer_events_set) + if _newclass:events = _swig_property(_freeswitch.EventConsumer_events_get, _freeswitch.EventConsumer_events_set) __swig_setmethods__["e_event_id"] = _freeswitch.EventConsumer_e_event_id_set __swig_getmethods__["e_event_id"] = _freeswitch.EventConsumer_e_event_id_get - if _newclass:e_event_id = property(_freeswitch.EventConsumer_e_event_id_get, _freeswitch.EventConsumer_e_event_id_set) + if _newclass:e_event_id = _swig_property(_freeswitch.EventConsumer_e_event_id_get, _freeswitch.EventConsumer_e_event_id_set) __swig_setmethods__["e_callback"] = _freeswitch.EventConsumer_e_callback_set __swig_getmethods__["e_callback"] = _freeswitch.EventConsumer_e_callback_get - if _newclass:e_callback = property(_freeswitch.EventConsumer_e_callback_get, _freeswitch.EventConsumer_e_callback_set) + if _newclass:e_callback = _swig_property(_freeswitch.EventConsumer_e_callback_get, _freeswitch.EventConsumer_e_callback_set) __swig_setmethods__["e_subclass_name"] = _freeswitch.EventConsumer_e_subclass_name_set __swig_getmethods__["e_subclass_name"] = _freeswitch.EventConsumer_e_subclass_name_get - if _newclass:e_subclass_name = property(_freeswitch.EventConsumer_e_subclass_name_get, _freeswitch.EventConsumer_e_subclass_name_set) + if _newclass:e_subclass_name = _swig_property(_freeswitch.EventConsumer_e_subclass_name_get, _freeswitch.EventConsumer_e_subclass_name_set) __swig_setmethods__["e_cb_arg"] = _freeswitch.EventConsumer_e_cb_arg_set __swig_getmethods__["e_cb_arg"] = _freeswitch.EventConsumer_e_cb_arg_get - if _newclass:e_cb_arg = property(_freeswitch.EventConsumer_e_cb_arg_get, _freeswitch.EventConsumer_e_cb_arg_set) + if _newclass:e_cb_arg = _swig_property(_freeswitch.EventConsumer_e_cb_arg_get, _freeswitch.EventConsumer_e_cb_arg_set) __swig_setmethods__["enodes"] = _freeswitch.EventConsumer_enodes_set __swig_getmethods__["enodes"] = _freeswitch.EventConsumer_enodes_get - if _newclass:enodes = property(_freeswitch.EventConsumer_enodes_get, _freeswitch.EventConsumer_enodes_set) + if _newclass:enodes = _swig_property(_freeswitch.EventConsumer_enodes_get, _freeswitch.EventConsumer_enodes_set) __swig_setmethods__["node_index"] = _freeswitch.EventConsumer_node_index_set __swig_getmethods__["node_index"] = _freeswitch.EventConsumer_node_index_get - if _newclass:node_index = property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set) + if _newclass:node_index = _swig_property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set) def __init__(self, *args): this = _freeswitch.new_EventConsumer(*args) try: self.this.append(this) @@ -233,40 +239,40 @@ class CoreSession(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name) - def __init__(self): raise AttributeError, "No constructor defined" + def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr __swig_destroy__ = _freeswitch.delete_CoreSession __del__ = lambda self : None; __swig_setmethods__["session"] = _freeswitch.CoreSession_session_set __swig_getmethods__["session"] = _freeswitch.CoreSession_session_get - if _newclass:session = property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set) + if _newclass:session = _swig_property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set) __swig_setmethods__["channel"] = _freeswitch.CoreSession_channel_set __swig_getmethods__["channel"] = _freeswitch.CoreSession_channel_get - if _newclass:channel = property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set) + if _newclass:channel = _swig_property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set) __swig_setmethods__["flags"] = _freeswitch.CoreSession_flags_set __swig_getmethods__["flags"] = _freeswitch.CoreSession_flags_get - if _newclass:flags = property(_freeswitch.CoreSession_flags_get, _freeswitch.CoreSession_flags_set) + if _newclass:flags = _swig_property(_freeswitch.CoreSession_flags_get, _freeswitch.CoreSession_flags_set) __swig_setmethods__["allocated"] = _freeswitch.CoreSession_allocated_set __swig_getmethods__["allocated"] = _freeswitch.CoreSession_allocated_get - if _newclass:allocated = property(_freeswitch.CoreSession_allocated_get, _freeswitch.CoreSession_allocated_set) + if _newclass:allocated = _swig_property(_freeswitch.CoreSession_allocated_get, _freeswitch.CoreSession_allocated_set) __swig_setmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_set __swig_getmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_get - if _newclass:cb_state = property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set) + if _newclass:cb_state = _swig_property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set) __swig_setmethods__["hook_state"] = _freeswitch.CoreSession_hook_state_set __swig_getmethods__["hook_state"] = _freeswitch.CoreSession_hook_state_get - if _newclass:hook_state = property(_freeswitch.CoreSession_hook_state_get, _freeswitch.CoreSession_hook_state_set) + if _newclass:hook_state = _swig_property(_freeswitch.CoreSession_hook_state_get, _freeswitch.CoreSession_hook_state_set) __swig_setmethods__["cause"] = _freeswitch.CoreSession_cause_set __swig_getmethods__["cause"] = _freeswitch.CoreSession_cause_get - if _newclass:cause = property(_freeswitch.CoreSession_cause_get, _freeswitch.CoreSession_cause_set) + if _newclass:cause = _swig_property(_freeswitch.CoreSession_cause_get, _freeswitch.CoreSession_cause_set) __swig_setmethods__["uuid"] = _freeswitch.CoreSession_uuid_set __swig_getmethods__["uuid"] = _freeswitch.CoreSession_uuid_get - if _newclass:uuid = property(_freeswitch.CoreSession_uuid_get, _freeswitch.CoreSession_uuid_set) + if _newclass:uuid = _swig_property(_freeswitch.CoreSession_uuid_get, _freeswitch.CoreSession_uuid_set) __swig_setmethods__["tts_name"] = _freeswitch.CoreSession_tts_name_set __swig_getmethods__["tts_name"] = _freeswitch.CoreSession_tts_name_get - if _newclass:tts_name = property(_freeswitch.CoreSession_tts_name_get, _freeswitch.CoreSession_tts_name_set) + if _newclass:tts_name = _swig_property(_freeswitch.CoreSession_tts_name_get, _freeswitch.CoreSession_tts_name_set) __swig_setmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_set __swig_getmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_get - if _newclass:voice_name = property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set) + if _newclass:voice_name = _swig_property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set) def insertFile(*args): return _freeswitch.CoreSession_insertFile(*args) def answer(*args): return _freeswitch.CoreSession_answer(*args) def preAnswer(*args): return _freeswitch.CoreSession_preAnswer(*args) @@ -328,10 +334,10 @@ hanguphook = _freeswitch.hanguphook dtmf_callback = _freeswitch.dtmf_callback class Session(CoreSession): __swig_setmethods__ = {} - for _s in [CoreSession]: __swig_setmethods__.update(_s.__swig_setmethods__) + for _s in [CoreSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Session, name, value) __swig_getmethods__ = {} - for _s in [CoreSession]: __swig_getmethods__.update(_s.__swig_getmethods__) + for _s in [CoreSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Session, name) __repr__ = _swig_repr def __init__(self, *args): @@ -351,16 +357,16 @@ class Session(CoreSession): def ready(*args): return _freeswitch.Session_ready(*args) __swig_setmethods__["cb_function"] = _freeswitch.Session_cb_function_set __swig_getmethods__["cb_function"] = _freeswitch.Session_cb_function_get - if _newclass:cb_function = property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set) + if _newclass:cb_function = _swig_property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set) __swig_setmethods__["cb_arg"] = _freeswitch.Session_cb_arg_set __swig_getmethods__["cb_arg"] = _freeswitch.Session_cb_arg_get - if _newclass:cb_arg = property(_freeswitch.Session_cb_arg_get, _freeswitch.Session_cb_arg_set) + if _newclass:cb_arg = _swig_property(_freeswitch.Session_cb_arg_get, _freeswitch.Session_cb_arg_set) __swig_setmethods__["hangup_func"] = _freeswitch.Session_hangup_func_set __swig_getmethods__["hangup_func"] = _freeswitch.Session_hangup_func_get - if _newclass:hangup_func = property(_freeswitch.Session_hangup_func_get, _freeswitch.Session_hangup_func_set) + if _newclass:hangup_func = _swig_property(_freeswitch.Session_hangup_func_get, _freeswitch.Session_hangup_func_set) __swig_setmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_set __swig_getmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_get - if _newclass:hangup_func_arg = property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set) + if _newclass:hangup_func_arg = _swig_property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set) def setPython(*args): return _freeswitch.Session_setPython(*args) def setSelf(*args): return _freeswitch.Session_setSelf(*args) Session_swigregister = _freeswitch.Session_swigregister diff --git a/src/mod/languages/mod_python/mod_python_wrap.cpp b/src/mod/languages/mod_python/mod_python_wrap.cpp index 92285ce5b9..e7afa21ba5 100644 --- a/src/mod/languages/mod_python/mod_python_wrap.cpp +++ b/src/mod/languages/mod_python/mod_python_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -12,7 +12,7 @@ #define SWIG_PYTHON_DIRECTOR_NO_VTABLE #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -25,6 +25,10 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; + +template T SwigValueInit() { + return T(); +} #endif /* ----------------------------------------------------------------------------- @@ -34,14 +38,14 @@ private: /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) -# if (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -120,10 +124,16 @@ private: #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + /* Python.h has to appear first */ #include @@ -137,7 +147,7 @@ private: /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "2" +#define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -172,6 +182,7 @@ private: /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -312,10 +323,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *); +typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store inforomation on one type */ +/* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -360,7 +371,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (l1 - f1) - (l2 - f2); + return (int)((l1 - f1) - (l2 - f2)); } /* @@ -442,8 +453,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* @@ -714,8 +725,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { -/* Python.h has to appear first */ -#include /* Add PyOS_snprintf for old Pythons */ #if PY_VERSION_HEX < 0x02020000 @@ -796,6 +805,14 @@ PyObject *PyBool_FromLong(long ok) } #endif +/* Py_ssize_t for old Pythons */ +/* This code is as recommended by: */ +/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +#endif /* ----------------------------------------------------------------------------- * error manipulation @@ -861,7 +878,7 @@ SWIG_Python_AddErrorMsg(const char* mesg) Py_DECREF(old_str); Py_DECREF(value); } else { - PyErr_Format(PyExc_RuntimeError, mesg); + PyErr_SetString(PyExc_RuntimeError, mesg); } } @@ -1101,14 +1118,14 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { /* Unpack the argument tuple */ SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) +SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { if (!min && !max) { return 1; } else { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), min); + name, (min == max ? "" : "at least "), (int)min); return 0; } } @@ -1116,14 +1133,14 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyOb PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register int l = PyTuple_GET_SIZE(args); + register Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), min, l); + name, (min == max ? "" : "at least "), (int)min, (int)l); return 0; } else if (l > max) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), max, l); + name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { register int i; @@ -1189,7 +1206,7 @@ extern "C" { SWIGRUNTIMEINLINE PyObject * _SWIG_Py_None(void) { - PyObject *none = Py_BuildValue(""); + PyObject *none = Py_BuildValue((char*)""); Py_DECREF(none); return none; } @@ -1421,7 +1438,7 @@ PySwigObject_dealloc(PyObject *v) { PySwigObject *sobj = (PySwigObject *) v; PyObject *next = sobj->next; - if (sobj->own) { + if (sobj->own == SWIG_POINTER_OWN) { swig_type_info *ty = sobj->ty; PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; PyObject *destroy = data ? data->destroy : 0; @@ -1439,12 +1456,13 @@ PySwigObject_dealloc(PyObject *v) res = ((*meth)(mself, v)); } Py_XDECREF(res); - } else { - const char *name = SWIG_TypePrettyName(ty); + } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); -#endif + else { + const char *name = SWIG_TypePrettyName(ty); + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); } +#endif } Py_XDECREF(next); PyObject_DEL(v); @@ -1602,9 +1620,11 @@ _PySwigObject_type(void) { (unaryfunc)0, /*nb_float*/ (unaryfunc)PySwigObject_oct, /*nb_oct*/ (unaryfunc)PySwigObject_hex, /*nb_hex*/ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 +#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ +#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ #endif }; @@ -1947,7 +1967,7 @@ SWIG_Python_GetSwigThis(PyObject *pyobj) SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own) { + if (own == SWIG_POINTER_OWN) { PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); if (sobj) { int oldown = sobj->own; @@ -1968,6 +1988,8 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int return SWIG_OK; } else { PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); + if (own) + *own = 0; while (sobj) { void *vptr = sobj->ptr; if (ty) { @@ -1981,7 +2003,15 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int if (!tc) { sobj = (PySwigObject *)sobj->next; } else { - if (ptr) *ptr = SWIG_TypeCast(tc,vptr); + if (ptr) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } break; } } @@ -1991,7 +2021,8 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } if (sobj) { - if (own) *own = sobj->own; + if (own) + *own = *own | sobj->own; if (flags & SWIG_POINTER_DISOWN) { sobj->own = 0; } @@ -2048,7 +2079,7 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { void *vptr = 0; /* here we get the method pointer for callbacks */ - char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) { desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; @@ -2056,8 +2087,13 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { } if (ty) { swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (!tc) return SWIG_ERROR; - *ptr = SWIG_TypeCast(tc,vptr); + if (tc) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } else { + return SWIG_ERROR; + } } else { *ptr = vptr; } @@ -2169,7 +2205,7 @@ SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) return; } #endif - dict = PyObject_GetAttrString(inst, "__dict__"); + dict = PyObject_GetAttrString(inst, (char*)"__dict__"); PyDict_SetItem(dict, SWIG_This(), swig_this); Py_DECREF(dict); } @@ -2310,7 +2346,7 @@ SWIG_Python_SetModule(swig_module_info *swig_module) { /* The python cached type query */ SWIGRUNTIME PyObject * -SWIG_Python_TypeCache() { +SWIG_Python_TypeCache(void) { static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); return cache; } @@ -2496,7 +2532,7 @@ static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0}; #if (PY_VERSION_HEX <= 0x02000000) # if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires to use swig with the '-classic' option" +# error "This python version requires swig to be run with the '-classic' option" # endif #endif @@ -2507,7 +2543,8 @@ static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0}; #define SWIG_name "_freeswitch" -#define SWIGVERSION 0x010329 +#define SWIGVERSION 0x010335 +#define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) @@ -2534,7 +2571,9 @@ namespace swig { PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) { - if (initial_ref) Py_XINCREF(_obj); + if (initial_ref) { + Py_XINCREF(_obj); + } } PyObject_ptr & operator=(const PyObject_ptr& item) @@ -2582,7 +2621,7 @@ namespace swig { SWIGINTERN swig_type_info* -SWIG_pchar_descriptor() +SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; @@ -2598,7 +2637,7 @@ SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { if (PyString_Check(obj)) { - char *cstr; int len; + char *cstr; Py_ssize_t len; PyString_AsStringAndSize(obj, &cstr, &len); if (cptr) { if (alloc) { @@ -2674,14 +2713,12 @@ SWIG_FromCharPtr(const char *cptr) #include -#ifndef LLONG_MIN -# define LLONG_MIN LONG_LONG_MIN -#endif -#ifndef LLONG_MAX -# define LLONG_MAX LONG_LONG_MAX -#endif -#ifndef ULLONG_MAX -# define ULLONG_MAX ULONG_LONG_MAX +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif #endif @@ -2965,18 +3002,11 @@ SWIG_From_unsigned_SS_int (unsigned int value) SWIGINTERN int SWIG_AsVal_bool (PyObject *obj, bool *val) { - if (obj == Py_True) { - if (val) *val = true; - return SWIG_OK; - } else if (obj == Py_False) { - if (val) *val = false; - return SWIG_OK; - } else { - long v = 0; - int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); - if (SWIG_IsOK(res) && val) *val = v ? true : false; - return res; - } + int r = PyObject_IsTrue(obj); + if (r == -1) + return SWIG_ERROR; + if (val) *val = r ? true : false; + return SWIG_OK; } #ifdef __cplusplus @@ -3000,12 +3030,12 @@ SWIGINTERN PyObject *_wrap_setGlobalVariable(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setGlobalVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); setGlobalVariable(arg1,arg2); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3032,9 +3062,9 @@ SWIGINTERN PyObject *_wrap_getGlobalVariable(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getGlobalVariable" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); result = (char *)getGlobalVariable(arg1); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; free(result); return resultobj; @@ -3062,12 +3092,12 @@ SWIGINTERN PyObject *_wrap_consoleLog(PyObject *SWIGUNUSEDPARM(self), PyObject * if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); consoleLog(arg1,arg2); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3112,17 +3142,17 @@ SWIGINTERN PyObject *_wrap_consoleLog2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleLog2" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "consoleLog2" "', argument " "4"" of type '" "int""'"); @@ -3132,7 +3162,7 @@ SWIGINTERN PyObject *_wrap_consoleLog2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "consoleLog2" "', argument " "5"" of type '" "char *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); consoleLog2(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3162,7 +3192,7 @@ SWIGINTERN PyObject *_wrap_consoleCleanLog(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consoleCleanLog" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); consoleCleanLog(arg1); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -3230,46 +3260,46 @@ SWIGINTERN PyObject *_wrap_email(PyObject *SWIGUNUSEDPARM(self), PyObject *args) if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "email" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "email" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "email" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "email" "', argument " "4"" of type '" "char *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); } if (obj4) { res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "email" "', argument " "5"" of type '" "char *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); } if (obj5) { res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "email" "', argument " "6"" of type '" "char *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); } if (obj6) { res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "email" "', argument " "7"" of type '" "char *""'"); } - arg7 = buf7; + arg7 = reinterpret_cast< char * >(buf7); } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); @@ -3385,52 +3415,52 @@ SWIGINTERN PyObject *_wrap_new_IVRMenu(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IVRMenu" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_IVRMenu" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IVRMenu" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_IVRMenu" "', argument " "5"" of type '" "char const *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_IVRMenu" "', argument " "6"" of type '" "char const *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_IVRMenu" "', argument " "7"" of type '" "char const *""'"); } - arg7 = buf7; + arg7 = reinterpret_cast< char * >(buf7); res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_IVRMenu" "', argument " "8"" of type '" "char const *""'"); } - arg8 = buf8; + arg8 = reinterpret_cast< char * >(buf8); res9 = SWIG_AsCharPtrAndSize(obj8, &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_IVRMenu" "', argument " "9"" of type '" "char const *""'"); } - arg9 = buf9; + arg9 = reinterpret_cast< char * >(buf9); res10 = SWIG_AsCharPtrAndSize(obj9, &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_IVRMenu" "', argument " "10"" of type '" "char const *""'"); } - arg10 = buf10; + arg10 = reinterpret_cast< char * >(buf10); res11 = SWIG_AsCharPtrAndSize(obj10, &buf11, NULL, &alloc11); if (!SWIG_IsOK(res11)) { SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_IVRMenu" "', argument " "11"" of type '" "char const *""'"); } - arg11 = buf11; + arg11 = reinterpret_cast< char * >(buf11); ecode12 = SWIG_AsVal_int(obj11, &val12); if (!SWIG_IsOK(ecode12)) { SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_IVRMenu" "', argument " "12"" of type '" "int""'"); @@ -3543,17 +3573,17 @@ SWIGINTERN PyObject *_wrap_IVRMenu_bindAction(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IVRMenu_bindAction" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_bindAction" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IVRMenu_bindAction" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -3599,7 +3629,7 @@ SWIGINTERN PyObject *_wrap_IVRMenu_execute(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IVRMenu_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->execute(arg2,(char const *)arg3); resultobj = SWIG_Py_Void(); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -3612,7 +3642,7 @@ fail: SWIGINTERN PyObject *IVRMenu_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_IVRMenu, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -3691,16 +3721,16 @@ SWIGINTERN PyObject *_wrap_API_execute(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "API_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return resultobj; @@ -3734,9 +3764,9 @@ SWIGINTERN PyObject *_wrap_API_executeString(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "API_executeString" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (char *)(arg1)->executeString((char const *)arg2); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -3760,7 +3790,7 @@ SWIGINTERN PyObject *_wrap_API_getTime(PyObject *SWIGUNUSEDPARM(self), PyObject } arg1 = reinterpret_cast< API * >(argp1); result = (char *)(arg1)->getTime(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -3769,7 +3799,7 @@ fail: SWIGINTERN PyObject *API_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_API, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -3949,11 +3979,11 @@ SWIGINTERN PyObject *_wrap_input_callback_state_t_funcargs_set(PyObject *SWIGUNU if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_funcargs_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->funcargs) delete[] arg1->funcargs; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->funcargs = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->funcargs = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->funcargs = 0; } @@ -3981,7 +4011,7 @@ SWIGINTERN PyObject *_wrap_input_callback_state_t_funcargs_get(PyObject *SWIGUNU } arg1 = reinterpret_cast< input_callback_state_t * >(argp1); result = (char *) ((arg1)->funcargs); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -4025,7 +4055,7 @@ fail: SWIGINTERN PyObject *input_callback_state_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_input_callback_state, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -4209,7 +4239,7 @@ fail: SWIGINTERN PyObject *DTMF_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_DTMF, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -4255,7 +4285,7 @@ SWIGINTERN PyObject *_wrap_new_Stream(PyObject *self, PyObject *args) { int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 1); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -4273,7 +4303,10 @@ SWIGINTERN PyObject *_wrap_new_Stream(PyObject *self, PyObject *args) { } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_Stream'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Stream'.\n" + " Possible C/C++ prototypes are:\n" + " Stream()\n" + " Stream(switch_stream_handle_t *)\n"); return NULL; } @@ -4324,7 +4357,7 @@ SWIGINTERN PyObject *_wrap_Stream_read(PyObject *SWIGUNUSEDPARM(self), PyObject } arg2 = reinterpret_cast< int * >(argp2); result = (char *)(arg1)->read(arg2); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -4353,7 +4386,7 @@ SWIGINTERN PyObject *_wrap_Stream_write(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); (arg1)->write((char const *)arg2); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -4390,7 +4423,7 @@ SWIGINTERN PyObject *_wrap_Stream_raw_write(PyObject *SWIGUNUSEDPARM(self), PyOb if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_raw_write" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Stream_raw_write" "', argument " "3"" of type '" "int""'"); @@ -4421,7 +4454,7 @@ SWIGINTERN PyObject *_wrap_Stream_get_data(PyObject *SWIGUNUSEDPARM(self), PyObj } arg1 = reinterpret_cast< Stream * >(argp1); result = (char *)(arg1)->get_data(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -4430,7 +4463,7 @@ fail: SWIGINTERN PyObject *Stream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Stream, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -4510,11 +4543,11 @@ SWIGINTERN PyObject *_wrap_Event_serialized_string_set(PyObject *SWIGUNUSEDPARM( if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialized_string_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->serialized_string) delete[] arg1->serialized_string; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->serialized_string = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->serialized_string = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->serialized_string = 0; } @@ -4542,7 +4575,7 @@ SWIGINTERN PyObject *_wrap_Event_serialized_string_get(PyObject *SWIGUNUSEDPARM( } arg1 = reinterpret_cast< Event * >(argp1); result = (char *) ((arg1)->serialized_string); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -4621,13 +4654,13 @@ SWIGINTERN PyObject *_wrap_new_Event__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Event" "', argument " "1"" of type '" "char const *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); if (obj1) { res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Event" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } result = (Event *)new Event((char const *)arg1,(char const *)arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_NEW | 0 ); @@ -4680,7 +4713,7 @@ SWIGINTERN PyObject *_wrap_new_Event(PyObject *self, PyObject *args) { int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 2); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -4719,7 +4752,10 @@ SWIGINTERN PyObject *_wrap_new_Event(PyObject *self, PyObject *args) { } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_Event'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Event'.\n" + " Possible C/C++ prototypes are:\n" + " Event(char const *,char const *)\n" + " Event(switch_event_t *,int)\n"); return NULL; } @@ -4774,13 +4810,13 @@ SWIGINTERN PyObject *_wrap_Event_chat_execute(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_chat_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -4818,7 +4854,7 @@ SWIGINTERN PyObject *_wrap_Event_chat_send(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_chat_send" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } result = (int)(arg1)->chat_send((char const *)arg2); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -4854,10 +4890,10 @@ SWIGINTERN PyObject *_wrap_Event_serialize(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_serialize" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } result = (char *)(arg1)->serialize((char const *)arg2); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -4930,9 +4966,9 @@ SWIGINTERN PyObject *_wrap_Event_getHeader(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_getHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (char *)(arg1)->getHeader((char const *)arg2); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -4956,7 +4992,7 @@ SWIGINTERN PyObject *_wrap_Event_getBody(PyObject *SWIGUNUSEDPARM(self), PyObjec } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getBody(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -4978,7 +5014,7 @@ SWIGINTERN PyObject *_wrap_Event_getType(PyObject *SWIGUNUSEDPARM(self), PyObjec } arg1 = reinterpret_cast< Event * >(argp1); result = (char *)(arg1)->getType(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -5008,7 +5044,7 @@ SWIGINTERN PyObject *_wrap_Event_addBody(PyObject *SWIGUNUSEDPARM(self), PyObjec if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addBody" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (bool)(arg1)->addBody((char const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -5047,12 +5083,12 @@ SWIGINTERN PyObject *_wrap_Event_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_addHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Event_addHeader" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -5088,7 +5124,7 @@ SWIGINTERN PyObject *_wrap_Event_delHeader(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_delHeader" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (bool)(arg1)->delHeader((char const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -5123,7 +5159,7 @@ fail: SWIGINTERN PyObject *Event_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Event, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -5264,11 +5300,11 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_callback_set(PyObject *SWIGUNUSEDPARM if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_callback_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->e_callback) delete[] arg1->e_callback; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->e_callback = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->e_callback = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->e_callback = 0; } @@ -5296,7 +5332,7 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_callback_get(PyObject *SWIGUNUSEDPARM } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_callback); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -5325,11 +5361,11 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_subclass_name_set(PyObject *SWIGUNUSE if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_subclass_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->e_subclass_name) delete[] arg1->e_subclass_name; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->e_subclass_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->e_subclass_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->e_subclass_name = 0; } @@ -5357,7 +5393,7 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_subclass_name_get(PyObject *SWIGUNUSE } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_subclass_name); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -5386,11 +5422,11 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_cb_arg_set(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_e_cb_arg_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->e_cb_arg) delete[] arg1->e_cb_arg; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->e_cb_arg = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->e_cb_arg = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->e_cb_arg = 0; } @@ -5418,7 +5454,7 @@ SWIGINTERN PyObject *_wrap_EventConsumer_e_cb_arg_get(PyObject *SWIGUNUSEDPARM(s } arg1 = reinterpret_cast< EventConsumer * >(argp1); result = (char *) ((arg1)->e_cb_arg); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -5569,14 +5605,14 @@ SWIGINTERN PyObject *_wrap_new_EventConsumer(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventConsumer" "', argument " "1"" of type '" "char const *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); } if (obj1) { res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EventConsumer" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } if (obj2) { ecode3 = SWIG_AsVal_int(obj2, &val3); @@ -5647,13 +5683,13 @@ SWIGINTERN PyObject *_wrap_EventConsumer_bind(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EventConsumer_bind" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "EventConsumer_bind" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -5736,7 +5772,7 @@ fail: SWIGINTERN PyObject *EventConsumer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_EventConsumer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -6172,11 +6208,11 @@ SWIGINTERN PyObject *_wrap_CoreSession_uuid_set(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_uuid_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->uuid) delete[] arg1->uuid; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->uuid = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->uuid = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->uuid = 0; } @@ -6204,7 +6240,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_uuid_get(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->uuid); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -6233,11 +6269,11 @@ SWIGINTERN PyObject *_wrap_CoreSession_tts_name_set(PyObject *SWIGUNUSEDPARM(sel if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_tts_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->tts_name) delete[] arg1->tts_name; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->tts_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->tts_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->tts_name = 0; } @@ -6265,7 +6301,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_tts_name_get(PyObject *SWIGUNUSEDPARM(sel } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->tts_name); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -6294,11 +6330,11 @@ SWIGINTERN PyObject *_wrap_CoreSession_voice_name_set(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_voice_name_set" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (arg1->voice_name) delete[] arg1->voice_name; if (arg2) { - size_t size = strlen(arg2) + 1; - arg1->voice_name = reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); + size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; + arg1->voice_name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); } else { arg1->voice_name = 0; } @@ -6326,7 +6362,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_voice_name_get(PyObject *SWIGUNUSEDPARM(s } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *) ((arg1)->voice_name); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -6365,12 +6401,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_insertFile(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_insertFile" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_insertFile" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_insertFile" "', argument " "4"" of type '" "int""'"); @@ -6455,7 +6491,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_hangup(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_hangup" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); } (arg1)->hangup((char const *)arg2); resultobj = SWIG_Py_Void(); @@ -6515,12 +6551,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_setVariable(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setVariable" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->setVariable(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -6558,7 +6594,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_setPrivate(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setPrivate" "', argument " "3"" of type '" "void *""'"); @@ -6596,7 +6632,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getPrivate(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getPrivate" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (void *)(arg1)->getPrivate(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -6630,9 +6666,9 @@ SWIGINTERN PyObject *_wrap_CoreSession_getVariable(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_getVariable" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (char *)(arg1)->getVariable(arg2); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -6664,7 +6700,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_process_callback_result(PyObject *SWIGUNU if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_process_callback_result" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (arg1)->process_callback_result(arg2); resultobj = SWIG_NewPointerObj((new switch_status_t(static_cast< const switch_status_t& >(result))), SWIGTYPE_p_switch_status_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -6717,28 +6753,28 @@ SWIGINTERN PyObject *_wrap_CoreSession_say(PyObject *SWIGUNUSEDPARM(self), PyObj if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_say" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_say" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_say" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CoreSession_say" "', argument " "5"" of type '" "char const *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); if (obj5) { res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_say" "', argument " "6"" of type '" "char const *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); resultobj = SWIG_Py_Void(); @@ -6790,20 +6826,20 @@ SWIGINTERN PyObject *_wrap_CoreSession_sayPhrase(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_sayPhrase" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_sayPhrase" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_sayPhrase" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); resultobj = SWIG_Py_Void(); @@ -6834,7 +6870,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_hangupCause(PyObject *SWIGUNUSEDPARM(self } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->hangupCause(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -6856,7 +6892,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getState(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getState(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -6898,7 +6934,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_recordFile(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_recordFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -6970,7 +7006,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_originate(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_originate" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); if (obj3) { ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { @@ -7045,7 +7081,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_setDTMFCallback(PyObject *SWIGUNUSEDPARM( if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setDTMFCallback" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->setDTMFCallback(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; @@ -7079,7 +7115,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_speak(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_speak" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); result = (int)(arg1)->speak(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -7117,12 +7153,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_set_tts_parms(PyObject *SWIGUNUSEDPARM(se if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_parms" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_parms" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->set_tts_parms(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -7162,12 +7198,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_set_tts_params(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_set_tts_params" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_set_tts_params" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->set_tts_params(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -7257,7 +7293,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_collectDigits(PyObject *self, PyObject *a int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 3); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -7299,7 +7335,10 @@ SWIGINTERN PyObject *_wrap_CoreSession_collectDigits(PyObject *self, PyObject *a } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'CoreSession_collectDigits'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_collectDigits'.\n" + " Possible C/C++ prototypes are:\n" + " collectDigits(CoreSession *,int)\n" + " collectDigits(CoreSession *,int,int)\n"); return NULL; } @@ -7340,14 +7379,14 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_0(PyObject *SWIGUNUSEDPAR if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return resultobj; fail: @@ -7396,7 +7435,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_1(PyObject *SWIGUNUSEDPAR if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'"); @@ -7408,7 +7447,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_1(PyObject *SWIGUNUSEDPAR } arg5 = static_cast< int >(val5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return resultobj; fail: @@ -7423,7 +7462,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits(PyObject *self, PyObject *args) int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 5); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -7485,7 +7524,10 @@ SWIGINTERN PyObject *_wrap_CoreSession_getDigits(PyObject *self, PyObject *args) } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'CoreSession_getDigits'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_getDigits'.\n" + " Possible C/C++ prototypes are:\n" + " getDigits(CoreSession *,int,char *,int)\n" + " getDigits(CoreSession *,int,char *,int,int)\n"); return NULL; } @@ -7523,20 +7565,20 @@ SWIGINTERN PyObject *_wrap_CoreSession_transfer(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_transfer" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_transfer" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_transfer" "', argument " "4"" of type '" "char *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); } result = (int)(arg1)->transfer(arg2,arg3,arg4); resultobj = SWIG_From_int(static_cast< int >(result)); @@ -7606,7 +7648,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_read(PyObject *SWIGUNUSEDPARM(self), PyOb if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_read" "', argument " "4"" of type '" "char const *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_read" "', argument " "5"" of type '" "int""'"); @@ -7616,7 +7658,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_read(PyObject *SWIGUNUSEDPARM(self), PyOb if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_read" "', argument " "6"" of type '" "char const *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); if (obj6) { ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { @@ -7625,7 +7667,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_read(PyObject *SWIGUNUSEDPARM(self), PyOb arg7 = static_cast< int >(val7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc4 == SWIG_NEWOBJ) delete[] buf4; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return resultobj; @@ -7724,28 +7766,28 @@ SWIGINTERN PyObject *_wrap_CoreSession_playAndGetDigits(PyObject *SWIGUNUSEDPARM if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_playAndGetDigits" "', argument " "6"" of type '" "char *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CoreSession_playAndGetDigits" "', argument " "7"" of type '" "char *""'"); } - arg7 = buf7; + arg7 = reinterpret_cast< char * >(buf7); res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CoreSession_playAndGetDigits" "', argument " "8"" of type '" "char *""'"); } - arg8 = buf8; + arg8 = reinterpret_cast< char * >(buf8); res9 = SWIG_AsCharPtrAndSize(obj8, &buf9, NULL, &alloc9); if (!SWIG_IsOK(res9)) { SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CoreSession_playAndGetDigits" "', argument " "9"" of type '" "char *""'"); } - arg9 = buf9; + arg9 = reinterpret_cast< char * >(buf9); if (obj9) { res10 = SWIG_AsCharPtrAndSize(obj9, &buf10, NULL, &alloc10); if (!SWIG_IsOK(res10)) { SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "CoreSession_playAndGetDigits" "', argument " "10"" of type '" "char const *""'"); } - arg10 = buf10; + arg10 = reinterpret_cast< char * >(buf10); } if (obj10) { ecode11 = SWIG_AsVal_int(obj10, &val11); @@ -7759,10 +7801,10 @@ SWIGINTERN PyObject *_wrap_CoreSession_playAndGetDigits(PyObject *SWIGUNUSEDPARM if (!SWIG_IsOK(res12)) { SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "CoreSession_playAndGetDigits" "', argument " "12"" of type '" "char const *""'"); } - arg12 = buf12; + arg12 = reinterpret_cast< char * >(buf12); } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); if (alloc6 == SWIG_NEWOBJ) delete[] buf6; if (alloc7 == SWIG_NEWOBJ) delete[] buf7; if (alloc8 == SWIG_NEWOBJ) delete[] buf8; @@ -7808,7 +7850,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_streamFile(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_streamFile" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -8116,13 +8158,13 @@ SWIGINTERN PyObject *_wrap_CoreSession_execute(PyObject *SWIGUNUSEDPARM(self), P if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_execute" "', argument " "2"" of type '" "char const *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_execute" "', argument " "3"" of type '" "char const *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); } (arg1)->execute((char const *)arg2,(char const *)arg3); resultobj = SWIG_Py_Void(); @@ -8211,7 +8253,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_getXMLCDR(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)(arg1)->getXMLCDR(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -8277,7 +8319,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_get_uuid(PyObject *SWIGUNUSEDPARM(self), } arg1 = reinterpret_cast< CoreSession * >(argp1); result = (char *)((CoreSession const *)arg1)->get_uuid(); - resultobj = SWIG_FromCharPtr(result); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; @@ -8403,12 +8445,12 @@ SWIGINTERN PyObject *_wrap_CoreSession_consoleLog(PyObject *SWIGUNUSEDPARM(self) if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); (arg1)->consoleLog(arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -8462,17 +8504,17 @@ SWIGINTERN PyObject *_wrap_CoreSession_consoleLog2(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_consoleLog2" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_consoleLog2" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoreSession_consoleLog2" "', argument " "4"" of type '" "char *""'"); } - arg4 = buf4; + arg4 = reinterpret_cast< char * >(buf4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_consoleLog2" "', argument " "5"" of type '" "int""'"); @@ -8482,7 +8524,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_consoleLog2(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CoreSession_consoleLog2" "', argument " "6"" of type '" "char *""'"); } - arg6 = buf6; + arg6 = reinterpret_cast< char * >(buf6); (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; @@ -8501,7 +8543,7 @@ fail: SWIGINTERN PyObject *CoreSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CoreSession, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -8524,12 +8566,12 @@ SWIGINTERN PyObject *_wrap_console_log(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); console_log(arg1,arg2); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8574,17 +8616,17 @@ SWIGINTERN PyObject *_wrap_console_log2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_log2" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "console_log2" "', argument " "2"" of type '" "char *""'"); } - arg2 = buf2; + arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "console_log2" "', argument " "3"" of type '" "char *""'"); } - arg3 = buf3; + arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "console_log2" "', argument " "4"" of type '" "int""'"); @@ -8594,7 +8636,7 @@ SWIGINTERN PyObject *_wrap_console_log2(PyObject *SWIGUNUSEDPARM(self), PyObject if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "console_log2" "', argument " "5"" of type '" "char *""'"); } - arg5 = buf5; + arg5 = reinterpret_cast< char * >(buf5); console_log2(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8624,7 +8666,7 @@ SWIGINTERN PyObject *_wrap_console_clean_log(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "console_clean_log" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); console_clean_log(arg1); resultobj = SWIG_Py_Void(); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8807,7 +8849,7 @@ SWIGINTERN PyObject *_wrap_new_Session__SWIG_1(PyObject *self, PyObject *args) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CoreSession, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Session" "', argument " "2"" of type '" "CoreSession *""'"); @@ -8837,7 +8879,7 @@ SWIGINTERN PyObject *_wrap_new_Session__SWIG_2(PyObject *self, PyObject *args) { if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'"); } - arg1 = buf1; + arg1 = reinterpret_cast< char * >(buf1); result = (PYTHON::Session *)new PYTHON::Session(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PYTHON__Session, SWIG_POINTER_NEW | 0 ); result->setPython(self); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; @@ -8876,7 +8918,7 @@ SWIGINTERN PyObject *_wrap_new_Session(PyObject *self, PyObject *args) { int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 2); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -8915,7 +8957,12 @@ SWIGINTERN PyObject *_wrap_new_Session(PyObject *self, PyObject *args) { } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_Session'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Session'.\n" + " Possible C/C++ prototypes are:\n" + " PYTHON::Session()\n" + " PYTHON::Session(char *,CoreSession *)\n" + " PYTHON::Session(char *)\n" + " PYTHON::Session(switch_core_session_t *)\n"); return NULL; } @@ -9131,7 +9178,7 @@ SWIGINTERN PyObject *_wrap_Session_setInputCallback(PyObject *self, PyObject *ar int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 3); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -9164,7 +9211,10 @@ SWIGINTERN PyObject *_wrap_Session_setInputCallback(PyObject *self, PyObject *ar } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Session_setInputCallback'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Session_setInputCallback'.\n" + " Possible C/C++ prototypes are:\n" + " setInputCallback(PYTHON::Session *,PyObject *,PyObject *)\n" + " setInputCallback(PYTHON::Session *,PyObject *)\n"); return NULL; } @@ -9247,7 +9297,7 @@ SWIGINTERN PyObject *_wrap_Session_setHangupHook(PyObject *self, PyObject *args) int ii; if (!PyTuple_Check(args)) SWIG_fail; - argc = PyObject_Length(args); + argc = (int)PyObject_Length(args); for (ii = 0; (ii < argc) && (ii < 3); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } @@ -9280,7 +9330,10 @@ SWIGINTERN PyObject *_wrap_Session_setHangupHook(PyObject *self, PyObject *args) } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Session_setHangupHook'"); + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Session_setHangupHook'.\n" + " Possible C/C++ prototypes are:\n" + " setHangupHook(PYTHON::Session *,PyObject *,PyObject *)\n" + " setHangupHook(PYTHON::Session *,PyObject *)\n"); return NULL; } @@ -9545,7 +9598,7 @@ fail: SWIGINTERN PyObject *Session_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_PYTHON__Session, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } @@ -9740,7 +9793,7 @@ static PyMethodDef SwigMethods[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_PYTHON__SessionTo_p_CoreSession(void *x) { +static void *_p_PYTHON__SessionTo_p_CoreSession(void *x, int *newmemory) { return (void *)((CoreSession *) ((PYTHON::Session *) x)); } static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)0, 0}; @@ -9752,7 +9805,7 @@ static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (voi static swig_type_info _swigt__p_PYTHON__Session = {"_p_PYTHON__Session", "PYTHON::Session *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum session_flag_t *|session_flag_t *", 0, 0, (void*)0, 0}; @@ -9886,7 +9939,7 @@ static swig_const_info swig_const_table[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop though that array, and handle each type individually. + * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -9924,32 +9977,58 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif + SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head; - static int init_run = 0; + swig_module_info *module_head, *iter; + int found, init; clientdata = clientdata; - if (init_run) return; - init_run = 1; - - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (module_head) { + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; - } else { - /* This is the first module loaded */ - swig_module.next = &swig_module; - SWIG_SetModule(clientdata, &swig_module); } + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -10260,7 +10339,7 @@ extern "C" { } SWIGINTERN PyObject * - SWIG_globals() { + SWIG_globals(void) { static PyObject *_SWIG_globals = 0; if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); return _SWIG_globals; @@ -10305,11 +10384,11 @@ extern "C" { swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { - char *c = methods[i].ml_doc; + const char *c = methods[i].ml_doc; if (c && (c = strstr(c, "swig_ptr: "))) { int j; swig_const_info *ci = 0; - char *name = c + 10; + const char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, strlen(const_table[j].name)) == 0) { diff --git a/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp b/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp index 42015c8d6e..1e2147f31f 100644 --- a/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp +++ b/src/mod/legacy/languages/mod_lua/mod_lua_wrap.cpp @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.29 + * Version 1.3.35 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -10,7 +10,7 @@ #ifdef __cplusplus -template class SwigValueWrapper { +template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } @@ -23,6 +23,10 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; + +template T SwigValueInit() { + return T(); +} #endif /* ----------------------------------------------------------------------------- @@ -32,14 +36,14 @@ private: /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) -# if (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -118,10 +122,16 @@ private: #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -131,7 +141,7 @@ private: /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "2" +#define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -166,6 +176,7 @@ private: /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -306,10 +317,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *); +typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store inforomation on one type */ +/* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ @@ -354,7 +365,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (l1 - f1) - (l2 - f2); + return (int)((l1 - f1) - (l2 - f2)); } /* @@ -436,8 +447,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* @@ -708,7 +719,8 @@ extern "C" { #include "lua.h" #include "lauxlib.h" -#include /* for a few sanity tests */ +#include /* for malloc */ +#include /* for a few sanity tests */ /* ----------------------------------------------------------------------------- * global swig types @@ -719,12 +731,7 @@ extern "C" { #define SWIG_LUA_STRING 3 #define SWIG_LUA_POINTER 4 #define SWIG_LUA_BINARY 5 - -/* Structure for command table (replaced by luaLib's luaL_reg) */ -/*typedef struct { - const char *name; - lua_CFunction wrapper; -} swig_lua_command_info;*/ +#define SWIG_LUA_CHAR 6 /* Structure for variable linking table */ typedef struct { @@ -755,29 +762,42 @@ typedef struct { } swig_lua_attribute; typedef struct swig_lua_class { - const char *name; + const char *name; swig_type_info **type; - lua_CFunction constructor; - void (*destructor)(void *); - swig_lua_method *methods; + lua_CFunction constructor; + void (*destructor)(void *); + swig_lua_method *methods; swig_lua_attribute *attributes; struct swig_lua_class **bases; + const char **base_names; } swig_lua_class; +/* this is the struct for wrappering all pointers in SwigLua +*/ typedef struct { - void *ptr; swig_type_info *type; - int own; /* 1 if owned & must be destroyed */ + int own; /* 1 if owned & must be destroyed */ + void *ptr; } swig_lua_userdata; +/* this is the struct for wrapping arbitary packed binary data +(currently it is only used for member function pointers) +the data ordering is similar to swig_lua_userdata, but it is currently not possible +to tell the two structures apart within Swig, other than by looking at the type +*/ +typedef struct { + swig_type_info *type; + int own; /* 1 if owned & must be destroyed */ + char data[1]; /* arbitary amount of data */ +} swig_lua_rawdata; /* Common SWIG API */ -#define SWIG_NewPointerObj(L, ptr, type, owner) \ - SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) -#define SWIG_ConvertPtr(L,idx, ptr, type, flags) \ - SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) -#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) \ - SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) +#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) +#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) +#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) +#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) @@ -788,141 +808,193 @@ typedef struct { #define SWIG_contract_assert(expr, msg) \ if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else - - /* helper #defines */ #define SWIG_fail {goto fail;} -#define SWIG_fail_arg(I) {lua_pushfstring(L,"argument %d incorrect/missing",I);goto fail;} +#define SWIG_fail_arg(func_name,argnum,type) \ + {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ + func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ + goto fail;} +#define SWIG_fail_ptr(func_name,argnum,type) \ + SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") +#define SWIG_check_num_args(func_name,a,b) \ + if (lua_gettop(L)b) \ + {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ + goto fail;} + #define SWIG_Lua_get_table(L,n) \ - (lua_pushstring(L, n), lua_rawget(L,-2)) + (lua_pushstring(L, n), lua_rawget(L,-2)) #define SWIG_Lua_add_function(L,n,f) \ - (lua_pushstring(L, n), \ - lua_pushcfunction(L, f), \ - lua_rawset(L,-3)) + (lua_pushstring(L, n), \ + lua_pushcfunction(L, f), \ + lua_rawset(L,-3)) + +/* special helper for allowing 'nil' for usertypes */ +#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) + +#ifdef __cplusplus +/* Special helper for member function pointers +it gets the address, casts it, then dereferences it */ +//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) +#endif + +/* storing/access of swig_module_info */ +SWIGRUNTIME swig_module_info * +SWIG_Lua_GetModule(lua_State* L) { + swig_module_info *ret = 0; + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_rawget(L,LUA_REGISTRYINDEX); + if (lua_islightuserdata(L,-1)) + ret=(swig_module_info*)lua_touserdata(L,-1); + lua_pop(L,1); /* tidy */ + return ret; +} + +SWIGRUNTIME void +SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { + /* add this all into the Lua registry: */ + lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + lua_pushlightuserdata(L,(void*)module); + lua_rawset(L,LUA_REGISTRYINDEX); +} /* ----------------------------------------------------------------------------- * global variable support code: modules * ----------------------------------------------------------------------------- */ +/* this function is called when trying to set an immutable. +default value is to print an error. +This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ +SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) +{ +/* there should be 1 param passed in: the new value */ +#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE + lua_pop(L,1); /* remove it */ + lua_pushstring(L,"This variable is immutable"); + lua_error(L); +#endif + return 0; /* should not return anything */ +} + /* the module.get method used for getting linked data */ SWIGINTERN int SWIG_Lua_module_get(lua_State* L) { -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); +/* there should be 2 params passed in + (1) table (not the meta table) + (2) string name of the attribute + printf("SWIG_Lua_module_get %p(%s) '%s'\n", + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2)); */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* get the .get table */ + lua_remove(L,3); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,3); /* remove .get */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_call(L,0,1); + return 1; + } + lua_pop(L,1); /* remove the top */ + } + lua_pop(L,1); /* remove the .get */ + lua_pushnil(L); /* return a nil */ return 1; } /* the module.set method used for setting linked data */ SWIGINTERN int SWIG_Lua_module_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value */ - /* get the metatable */ - assert(lua_istable(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .set */ - return 0; + /* get the metatable */ + assert(lua_istable(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".set"); /* get the .set table */ + lua_remove(L,4); /* remove metatable */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,4); /* remove .set */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,3); /* value */ + lua_call(L,1,0); + return 0; + } + } + lua_settop(L,3); /* reset back to start */ + /* we now have the table, key & new value, so just set directly */ + lua_rawset(L,1); /* add direct */ + return 0; } /* registering a module in lua */ SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushstring(L,name); + lua_newtable(L); /* the table */ + /* add meta table */ + lua_newtable(L); /* the meta table */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); + lua_pushstring(L,".get"); + lua_newtable(L); /* the .get table */ + lua_rawset(L,-3); /* add .get into metatable */ + lua_pushstring(L,".set"); + lua_newtable(L); /* the .set table */ + lua_rawset(L,-3); /* add .set into metatable */ + lua_setmetatable(L,-2); /* sets meta table in module */ + lua_rawset(L,-3); /* add module into parent */ + SWIG_Lua_get_table(L,name); /* get the table back out */ } /* ending the register */ SWIGINTERN void SWIG_Lua_module_end(lua_State* L) { - lua_pop(L,1); /* tidy stack (remove module) */ + lua_pop(L,1); /* tidy stack (remove module) */ } /* adding a linked variable to the module */ SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_istable(L,-1)); /* just in case */ + lua_getmetatable(L,-1); /* get the metatable */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) /* if there is a set fn */ + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* should be a table: */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } + lua_pop(L,1); /* tidy stack (remove meta) */ } /* adding a function module */ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_add_function(L,name,fn); } /* ----------------------------------------------------------------------------- @@ -932,307 +1004,383 @@ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_ /* the class.get method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_get(lua_State* L) { -/* there should be 2 params passed in - (1) userdata (not the meta table) - (2) string name of the attribute +/* there should be 2 params passed in + (1) userdata (not the meta table) + (2) string name of the attribute */ - assert(lua_isuserdata(L,-2)); /* just in case */ - lua_getmetatable(L,-2); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,-2); /* stack tidy, remove .get table */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* ok, so try the .fn table */ - SWIG_Lua_get_table(L,".fn"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); /* look for the fn */ - lua_remove(L,-2); /* stack tidy, remove .fn table */ - if (lua_iscfunction(L,-1)) - { /* found it so return the fn & let lua call it */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - lua_pop(L,1); /* remove whatever was there */ - /* NEW: looks for the __getitem() fn - this is a user provided get fn */ - SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; /* sorry not known */ + assert(lua_isuserdata(L,-2)); /* just in case */ + lua_getmetatable(L,-2); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + /* look for the key in the .get table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + lua_remove(L,-2); /* stack tidy, remove .get table */ + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* ok, so try the .fn table */ + SWIG_Lua_get_table(L,".fn"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); /* look for the fn */ + lua_remove(L,-2); /* stack tidy, remove .fn table */ + if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */ + { /* found it so return the fn & let lua call it */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + lua_pop(L,1); /* remove whatever was there */ + /* NEW: looks for the __getitem() fn + this is a user provided get fn */ + SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; /* sorry not known */ } /* the class.set method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_set(lua_State* L) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value +/* there should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + lua_topointer(L,1),lua_typename(L,lua_type(L,1)), + lua_tostring(L,2), + lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ - assert(lua_istable(L,-1)); /* just in case */ + assert(lua_isuserdata(L,1)); /* just in case */ + lua_getmetatable(L,1); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - if (lua_istable(L,-1)) - { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ - lua_call(L,2,0); - return 0; - } - lua_pop(L,1); /* remove the value */ - } - lua_pop(L,1); /* remove the value .set table */ - /* NEW: looks for the __setitem() fn - this is a user provided set fn */ - SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ - lua_call(L,3,0); /* 3 values in ,0 out */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; - } - return 0; + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + if (lua_istable(L,-1)) + { + /* look for the key in the .set table */ + lua_pushvalue(L,2); /* key */ + lua_rawget(L,-2); + if (lua_iscfunction(L,-1)) + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* userdata */ + lua_pushvalue(L,3); /* value */ + lua_call(L,2,0); + return 0; + } + lua_pop(L,1); /* remove the value */ + } + lua_pop(L,1); /* remove the value .set table */ + /* NEW: looks for the __setitem() fn + this is a user provided set fn */ + SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,1); /* the userdata */ + lua_pushvalue(L,2); /* the parameter */ + lua_pushvalue(L,3); /* the value */ + lua_call(L,3,0); /* 3 values in ,0 out */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + return 1; + } + return 0; } /* the class.destruct method called by the interpreter */ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) { -/* there should be 1 params passed in - (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; - assert(lua_isuserdata(L,-1)); /* just in case */ - usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ - /* if must be destroyed & has a destructor */ - if (usr->own) /* if must be destroyed */ - { - clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ - if (clss && clss->destructor) /* there is a destroy fn */ - { - clss->destructor(usr->ptr); /* bye bye */ - } - } - return 0; +/* there should be 1 params passed in + (1) userdata (not the meta table) */ + swig_lua_userdata* usr; + swig_lua_class* clss; + assert(lua_isuserdata(L,-1)); /* just in case */ + usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ + /* if must be destroyed & has a destructor */ + if (usr->own) /* if must be destroyed */ + { + clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ + if (clss && clss->destructor) /* there is a destroy fn */ + { + clss->destructor(usr->ptr); /* bye bye */ + } + } + return 0; } /* gets the swig class registry (or creates it) */ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) { - /* add this all into the swig registry: */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ - if (!lua_istable(L,-1)) /* not there */ - { /* must be first time, so add it */ - lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); - /* then get it */ - lua_pushstring(L,"SWIG"); - lua_rawget(L,LUA_REGISTRYINDEX); - } + /* add this all into the swig registry: */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ + if (!lua_istable(L,-1)) /* not there */ + { /* must be first time, so add it */ + lua_pop(L,1); /* remove the result */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + lua_rawset(L,LUA_REGISTRYINDEX); + /* then get it */ + lua_pushstring(L,"SWIG"); + lua_rawget(L,LUA_REGISTRYINDEX); + } } /* helper fn to get the classes metatable from the register */ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) { - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,cname); /* get the name */ - lua_rawget(L,-2); /* get it */ - lua_remove(L,-2); /* tidy up (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,cname); /* get the name */ + lua_rawget(L,-2); /* get it */ + lua_remove(L,-2); /* tidy up (remove registry) */ } /* helper add a variable to a registered class */ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ - } + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_get_table(L,".get"); /* find the .get table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,getFn); + lua_pop(L,1); /* tidy stack (remove table) */ + if (setFn) + { + SWIG_Lua_get_table(L,".set"); /* find the .set table */ + assert(lua_istable(L,-1)); /* just in case */ + SWIG_Lua_add_function(L,name,setFn); + lua_pop(L,1); /* tidy stack (remove table) */ + } } /* helper to recursively add class details (attributes & operations) */ SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) { - int i; - /* call all the base classes first: we can then override these later: */ - for(i=0;clss->bases[i];i++) - { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ - for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); - } - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); - } - } + int i; + /* call all the base classes first: we can then override these later: */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_add_class_details(L,clss->bases[i]); + } + /* add fns */ + for(i=0;clss->attributes[i].name;i++){ + SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + } + /* add methods to the metatable */ + SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ + assert(lua_istable(L,-1)); /* just in case */ + for(i=0;clss->methods[i].name;i++){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + lua_pop(L,1); /* tidy stack (remove table) */ + /* add operator overloads + these look ANY method which start with "__" and assume they + are operator overloads & add them to the metatable + (this might mess up is someone defines a method __gc (the destructor)*/ + for(i=0;clss->methods[i].name;i++){ + if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + } + } +} + +/* set up the base classes pointers. +Each class structure has a list of pointers to the base class structures. +This function fills them. +It cannot be done at compile time, as this will not work with hireachies +spread over more than one swig file. +Therefore it must be done at runtime, querying the SWIG type system. +*/ +SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) +{ + int i=0; + swig_module_info* module=SWIG_GetModule(L); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* not found yet */ + { + /* lookup and cache the base class */ + swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); + if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + } + } } /* performs the entire class registration process */ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) { -/* add its constructor to module with the name of the class - so you can do MyClass(...) as well as new_MyClass(...) - BUT only if a constructor is defined - (this overcomes the problem of pure virtual classes without constructors)*/ - if (clss->constructor) - SWIG_Lua_add_function(L,clss->name,clss->constructor); + /* add its constructor to module with the name of the class + so you can do MyClass(...) as well as new_MyClass(...) + BUT only if a constructor is defined + (this overcomes the problem of pure virtual classes without constructors)*/ + if (clss->constructor) + SWIG_Lua_add_function(L,clss->name,clss->constructor); - SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ - lua_newtable(L); /* create the metatable */ - /* add string of class name called ".type" */ - lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); - lua_rawset(L,-3); - /* add a table called ".get" */ - lua_pushstring(L,".get"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".set" */ - lua_pushstring(L,".set"); - lua_newtable(L); - lua_rawset(L,-3); - /* add a table called ".fn" */ - lua_pushstring(L,".fn"); - lua_newtable(L); - lua_rawset(L,-3); - /* add accessor fns for using the .get,.set&.fn */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); - SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add it */ - lua_rawset(L,-3); /* metatable into registry */ - lua_pop(L,1); /* tidy stack (remove registry) */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->name); /* get the name */ + lua_newtable(L); /* create the metatable */ + /* add string of class name called ".type" */ + lua_pushstring(L,".type"); + lua_pushstring(L,clss->name); + lua_rawset(L,-3); + /* add a table called ".get" */ + lua_pushstring(L,".get"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".set" */ + lua_pushstring(L,".set"); + lua_newtable(L); + lua_rawset(L,-3); + /* add a table called ".fn" */ + lua_pushstring(L,".fn"); + lua_newtable(L); + lua_rawset(L,-3); + /* add accessor fns for using the .get,.set&.fn */ + SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); + SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); + SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); + /* add it */ + lua_rawset(L,-3); /* metatable into registry */ + lua_pop(L,1); /* tidy stack (remove registry) */ - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ - lua_pop(L,1); /* tidy stack (remove class metatable) */ + SWIG_Lua_get_class_metatable(L,clss->name); + SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ + lua_pop(L,1); /* tidy stack (remove class metatable) */ } /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ +/* helper to add metatable to new lua object */ +SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) +{ + if (type->clientdata) /* there is clientdata: so add the metatable */ + { + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + if (lua_istable(L,-1)) + { + lua_setmetatable(L,-2); + } + else + { + lua_pop(L,1); + } + } +} + /* pushes a new object into the lua stack */ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; - if (!ptr){ - lua_pushnil(L); - return; - } - usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ - usr->ptr=ptr; /* set the ptr */ - usr->type=type; - usr->own=own; - if (type->clientdata) /* there is clientdata: so add the metatable */ - { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); - if (lua_istable(L,-1)) - { - lua_setmetatable(L,-2); - } - else - { - lua_pop(L,1); - } - } + swig_lua_userdata* usr; + if (!ptr){ + lua_pushnil(L); + return; + } + usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ + usr->ptr=ptr; /* set the ptr */ + usr->type=type; + usr->own=own; + _SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; - swig_cast_info *cast; - usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ - if (usr) - { - cast=SWIG_TypeCheckStruct(usr->type,type); - if (cast) - { - *ptr=SWIG_TypeCast(cast,usr->ptr); - return 0; /* ok */ - } - } - return 1; /* error */ + swig_lua_userdata* usr; + swig_cast_info *cast; + if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ + usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ + if (usr) + { + if (flags & SWIG_POINTER_DISOWN) /* must disown the object */ + { + usr->own=0; + } + if (!type) /* special cast void*, no casting fn */ + { + *ptr=usr->ptr; + return SWIG_OK; /* ok */ + } + cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */ + if (cast) + { + int newmemory = 0; + *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + return SWIG_OK; /* ok */ + } + } + return SWIG_ERROR; /* error */ } SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; - if (SWIG_ConvertPtr(L,index,&result,type,flags)){ - lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", - func_name,(type && type->str)?type->str:"void*",argnum); - lua_error(L); - } - return result; + int argnum,const char* func_name){ + void* result; + if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ + lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", + func_name,(type && type->str)?type->str:"void*",argnum); + lua_error(L); + } + return result; +} + +/* pushes a packed userdata. user for member fn pointers only */ +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) +{ + swig_lua_rawdata* raw; + assert(ptr); /* not acceptable to pass in a NULL value */ + raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ + raw->type=type; + raw->own=0; + memcpy(raw->data,ptr,size); /* copy the data */ + _SWIG_Lua_AddMetatable(L,type); /* add metatable */ +} + +/* converts a packed userdata. user for member fn pointers only */ +SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) +{ + swig_lua_rawdata* raw; + raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ + if (!raw) return SWIG_ERROR; /* error */ + if (type==0 || type==raw->type) /* void* or identical type */ + { + memcpy(ptr,raw->data,size); /* copy it */ + return SWIG_OK; /* ok */ + } + return SWIG_ERROR; /* error */ +} + +/* a function to get the typestring of a piece of data */ +SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) +{ + swig_lua_userdata* usr; + if (lua_isuserdata(L,tp)) + { + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + if (usr && usr->type && usr->type->str) + return usr->type->str; + return "userdata (unknown type)"; + } + return lua_typename(L,lua_type(L,tp)); } /* lua callable function to get the userdata's type */ SWIGRUNTIME int SWIG_Lua_type(lua_State* L) { - swig_lua_userdata* usr; - if (!lua_isuserdata(L,1)) /* just in case */ - return 0; /* nil reply */ - usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - lua_pushstring(L,usr->type->name); - return 1; + lua_pushstring(L,SWIG_Lua_typename(L,1)); + return 1; } /* lua callable function to compare userdata's value @@ -1240,18 +1388,18 @@ the issue is that two userdata may point to the same thing but to lua, they are different objects */ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) { - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); - lua_pushboolean(L,result); - return 1; + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ + result=(usr1->ptr==usr2->ptr); + lua_pushboolean(L,result); + return 1; } - /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1264,12 +1412,17 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(double)constants[i].lvalue); + lua_pushnumber(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(double)constants[i].dvalue); + lua_pushnumber(L,(lua_Number)constants[i].dvalue); + lua_rawset(L,-3); + break; + case SWIG_LUA_CHAR: + lua_pushstring(L,constants[i].name); + lua_pushfstring(L,"%c",(char)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1283,8 +1436,9 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { lua_rawset(L,-3); break; case SWIG_LUA_BINARY: - /* TODO?? */ -/* obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); */ + lua_pushstring(L,constants[i].name); + SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); + lua_rawset(L,-3); break; default: break; @@ -1292,25 +1446,34 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { } } -/* storing/access of swig_module_info */ -SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { - swig_module_info *ret = 0; - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_rawget(L,LUA_REGISTRYINDEX); - if (lua_islightuserdata(L,-1)) - ret=(swig_module_info*)lua_touserdata(L,-1); - lua_pop(L,1); /* tidy */ - return ret; -} +/* ----------------------------------------------------------------------------- + * executing lua code from within the wrapper + * ----------------------------------------------------------------------------- */ -SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { - /* add this all into the Lua registry: */ - lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); - lua_pushlightuserdata(L,(void*)module); - lua_rawset(L,LUA_REGISTRYINDEX); -} +#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */ +#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) +#endif +/* Executes a C string in Lua a really simple way of calling lua from C +Unfortunately lua keeps changing its API's, so we need a conditional compile +In lua 5.0.X its lua_dostring() +In lua 5.1.X its luaL_dostring() +*/ +SWIGINTERN int +SWIG_Lua_dostring(lua_State *L, const char* str) { + int ok,top; + if (str==0 || str[0]==0) return 0; /* nothing to do */ + top=lua_gettop(L); /* save stack */ +#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) + ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */ +#else + ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */ +#endif + if (ok!=0) { + SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); + } + lua_settop(L,top); /* restore the stack */ + return ok; +} #ifdef __cplusplus } @@ -1321,15 +1484,15 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* -------- TYPES TABLE (BEGIN) -------- */ -#define SWIGTYPE_SWIGLUA_FN swig_types[0] -#define SWIGTYPE_p_API swig_types[1] -#define SWIGTYPE_p_CoreSession swig_types[2] -#define SWIGTYPE_p_DTMF swig_types[3] -#define SWIGTYPE_p_Event swig_types[4] -#define SWIGTYPE_p_EventConsumer swig_types[5] -#define SWIGTYPE_p_IVRMenu swig_types[6] -#define SWIGTYPE_p_LUA__Dbh swig_types[7] -#define SWIGTYPE_p_LUA__Session swig_types[8] +#define SWIGTYPE_p_API swig_types[0] +#define SWIGTYPE_p_CoreSession swig_types[1] +#define SWIGTYPE_p_DTMF swig_types[2] +#define SWIGTYPE_p_Event swig_types[3] +#define SWIGTYPE_p_EventConsumer swig_types[4] +#define SWIGTYPE_p_IVRMenu swig_types[5] +#define SWIGTYPE_p_LUA__Dbh swig_types[6] +#define SWIGTYPE_p_LUA__Session swig_types[7] +#define SWIGTYPE_p_SWIGLUA_FN swig_types[8] #define SWIGTYPE_p_Stream swig_types[9] #define SWIGTYPE_p_input_callback_state swig_types[10] #define SWIGTYPE_p_int swig_types[11] @@ -1351,22 +1514,23 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { #define SWIGTYPE_p_switch_stream_handle_t swig_types[27] #define SWIGTYPE_p_uint32_t swig_types[28] #define SWIGTYPE_p_void swig_types[29] -#define SWIGTYPE_switch_call_cause_t swig_types[30] -#define SWIGTYPE_switch_channel_state_t swig_types[31] -#define SWIGTYPE_switch_event_types_t swig_types[32] -#define SWIGTYPE_switch_input_type_t swig_types[33] -#define SWIGTYPE_switch_priority_t swig_types[34] -#define SWIGTYPE_uint32_t swig_types[35] -static swig_type_info *swig_types[37]; -static swig_module_info swig_module = {swig_types, 36, 0, 0, 0, 0}; +static swig_type_info *swig_types[31]; +static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ -#define SWIG_init Freeswitch_Init -#define SWIG_name "freeswitch" -#define SWIG_import luaopen_freeswitch +#define SWIG_name "freeswitch" +#define SWIG_init luaopen_freeswitch +#define SWIG_init_user luaopen_freeswitch_user + +#define SWIG_LUACODE luaopen_freeswitch_luacode + + +namespace swig { +typedef struct{} LANGUAGE_OBJ; +} #include "switch.h" @@ -1381,15 +1545,18 @@ static int _wrap_setGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("setGlobalVariable",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); setGlobalVariable(arg1,arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1401,14 +1568,17 @@ static int _wrap_getGlobalVariable(lua_State* L) { char *arg1 = (char *) 0 ; char *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("getGlobalVariable",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); result = (char *)getGlobalVariable(arg1); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; free(result); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1420,15 +1590,18 @@ static int _wrap_consoleLog(lua_State* L) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("consoleLog",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); consoleLog(arg1,arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1443,21 +1616,24 @@ static int _wrap_consoleLog2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("consoleLog2",5,5) + if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int"); + if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char*)lua_tostring(L, 5); + arg5 = (char *)lua_tostring(L, 5); consoleLog2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1468,13 +1644,16 @@ static int _wrap_consoleCleanLog(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("consoleCleanLog",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); consoleCleanLog(arg1); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1485,11 +1664,14 @@ static int _wrap_running(lua_State* L) { int SWIG_arg = -1; bool result; + SWIG_check_num_args("running",0,0) result = (bool)running(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1507,35 +1689,38 @@ static int _wrap_email(lua_State* L) { char *arg7 = (char *) NULL ; bool result; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); - if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg(5); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); - if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg(7); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("email",2,7) + if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *"); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *"); + if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *"); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *"); + if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); } if(lua_gettop(L)>=5){ - arg5 = (char*)lua_tostring(L, 5); + arg5 = (char *)lua_tostring(L, 5); } if(lua_gettop(L)>=6){ - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); } if(lua_gettop(L)>=7){ - arg7 = (char*)lua_tostring(L, 7); + arg7 = (char *)lua_tostring(L, 7); } result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1563,34 +1748,39 @@ static int _wrap_new_IVRMenu(lua_State* L) { int arg17 ; IVRMenu *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - if(!lua_isstring(L,7)) SWIG_fail_arg(7); - if(!lua_isstring(L,8)) SWIG_fail_arg(8); - if(!lua_isstring(L,9)) SWIG_fail_arg(9); - if(!lua_isstring(L,10)) SWIG_fail_arg(10); - if(!lua_isstring(L,11)) SWIG_fail_arg(11); - if(!lua_isnumber(L,12)) SWIG_fail_arg(12); - if(!lua_isnumber(L,13)) SWIG_fail_arg(13); - if(!lua_isnumber(L,14)) SWIG_fail_arg(14); - if(!lua_isnumber(L,15)) SWIG_fail_arg(15); - if(!lua_isnumber(L,16)) SWIG_fail_arg(16); - if(!lua_isnumber(L,17)) SWIG_fail_arg(17); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"new_IVRMenu"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); - arg5 = (char*)lua_tostring(L, 5); - arg6 = (char*)lua_tostring(L, 6); - arg7 = (char*)lua_tostring(L, 7); - arg8 = (char*)lua_tostring(L, 8); - arg9 = (char*)lua_tostring(L, 9); - arg10 = (char*)lua_tostring(L, 10); - arg11 = (char*)lua_tostring(L, 11); + SWIG_check_num_args("IVRMenu",17,17) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *"); + if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *"); + if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *"); + if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *"); + if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *"); + if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *"); + if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *"); + if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *"); + if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int"); + if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int"); + if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int"); + if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int"); + if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int"); + if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ + SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); + arg5 = (char *)lua_tostring(L, 5); + arg6 = (char *)lua_tostring(L, 6); + arg7 = (char *)lua_tostring(L, 7); + arg8 = (char *)lua_tostring(L, 8); + arg9 = (char *)lua_tostring(L, 9); + arg10 = (char *)lua_tostring(L, 10); + arg11 = (char *)lua_tostring(L, 11); arg12 = (int)lua_tonumber(L, 12); arg13 = (int)lua_tonumber(L, 13); arg14 = (int)lua_tonumber(L, 14); @@ -1602,6 +1792,8 @@ static int _wrap_new_IVRMenu(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1612,14 +1804,21 @@ static int _wrap_delete_IVRMenu(lua_State* L) { int SWIG_arg = -1; IVRMenu *arg1 = (IVRMenu *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"delete_IVRMenu"); + SWIG_check_num_args("IVRMenu",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1633,19 +1832,26 @@ static int _wrap_IVRMenu_bindAction(lua_State* L) { char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_bindAction"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); + SWIG_check_num_args("bindAction",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bindAction",1,"IVRMenu *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ + SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1658,17 +1864,28 @@ static int _wrap_IVRMenu_execute(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(IVRMenu *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_IVRMenu,0,1,"IVRMenu_execute"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"IVRMenu_execute"); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("execute",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"IVRMenu *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("execute",2,"CoreSession *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){ + SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("IVRMenu_execute",2,SWIGTYPE_p_CoreSession); + } + + arg3 = (char *)lua_tostring(L, 3); (arg1)->execute(arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1688,22 +1905,28 @@ static swig_lua_attribute swig_IVRMenu_attributes[] = { {0,0,0} }; static swig_lua_class *swig_IVRMenu_bases[] = {0}; -swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases }; +static const char *swig_IVRMenu_base_names[] = {0}; +static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names }; static int _wrap_new_API(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) NULL ; API *result = 0 ; - if(lua_gettop(L)>=1 && !lua_isuserdata(L,1)) SWIG_fail_arg(1); + SWIG_check_num_args("API",0,1) + if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"CoreSession *"); if(lua_gettop(L)>=1){ - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"new_API"); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession); + } } result = (API *)new API(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1714,14 +1937,21 @@ static int _wrap_delete_API(lua_State* L) { int SWIG_arg = -1; API *arg1 = (API *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"delete_API"); + SWIG_check_num_args("API",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"API *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1735,20 +1965,27 @@ static int _wrap_API_execute(lua_State* L) { char *arg3 = (char *) NULL ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_execute"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("execute",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"API *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ + SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; free(result); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1761,16 +1998,23 @@ static int _wrap_API_executeString(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_executeString"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("executeString",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("executeString",1,"API *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ + SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API); + } + + arg2 = (char *)lua_tostring(L, 2); result = (char *)(arg1)->executeString((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; free(result); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1782,13 +2026,20 @@ static int _wrap_API_getTime(lua_State* L) { API *arg1 = (API *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(API *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_API,0,1,"API_getTime"); + SWIG_check_num_args("getTime",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){ + SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API); + } + result = (char *)(arg1)->getTime(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1809,23 +2060,31 @@ static swig_lua_attribute swig_API_attributes[] = { {0,0,0} }; static swig_lua_class *swig_API_bases[] = {0}; -swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases }; +static const char *swig_API_base_names[] = {0}; +static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names }; static int _wrap_input_callback_state_t_function_set(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_set"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("function",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("function",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set"); if (arg1) (arg1)->function = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1837,13 +2096,20 @@ static int _wrap_input_callback_state_t_function_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_function_get"); + SWIG_check_num_args("function",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state); + } + result = (void *) ((arg1)->function); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1855,16 +2121,23 @@ static int _wrap_input_callback_state_t_threadState_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_set"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("threadState",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("threadState",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set"); if (arg1) (arg1)->threadState = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1876,13 +2149,20 @@ static int _wrap_input_callback_state_t_threadState_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_threadState_get"); + SWIG_check_num_args("threadState",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state); + } + result = (void *) ((arg1)->threadState); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1894,16 +2174,23 @@ static int _wrap_input_callback_state_t_extra_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_set"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("extra",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("extra",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set"); if (arg1) (arg1)->extra = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1915,13 +2202,20 @@ static int _wrap_input_callback_state_t_extra_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_extra_get"); + SWIG_check_num_args("extra",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state); + } + result = (void *) ((arg1)->extra); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1933,15 +2227,20 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("funcargs",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->funcargs) delete [] arg1->funcargs; if (arg2) { - arg1->funcargs = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->funcargs,arg2); + arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->funcargs, (const char *)arg2); } else { arg1->funcargs = 0; } @@ -1950,6 +2249,8 @@ static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1961,13 +2262,20 @@ static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) { input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"input_callback_state_t_funcargs_get"); + SWIG_check_num_args("funcargs",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state); + } + result = (char *) ((arg1)->funcargs); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1978,11 +2286,14 @@ static int _wrap_new_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *result = 0 ; + SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0) result = (input_callback_state_t *)new input_callback_state_t(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -1993,14 +2304,21 @@ static int _wrap_delete_input_callback_state_t(lua_State* L) { int SWIG_arg = -1; input_callback_state_t *arg1 = (input_callback_state_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(input_callback_state_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_input_callback_state,0,1,"delete_input_callback_state_t"); + SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2015,30 +2333,38 @@ static swig_lua_method swig_input_callback_state_t_methods[] = { {0,0} }; static swig_lua_attribute swig_input_callback_state_t_attributes[] = { - { "function",_wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, - { "threadState",_wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, - { "extra",_wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, - { "funcargs",_wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, + { "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set}, + { "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set}, + { "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set}, + { "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set}, {0,0,0} }; static swig_lua_class *swig_input_callback_state_t_bases[] = {0}; -swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases }; +static const char *swig_input_callback_state_t_base_names[] = {0}; +static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names }; static int _wrap_DTMF_digit_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; char arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_set"); - arg2 = ((char*)lua_tostring(L, 2))[0]; + SWIG_check_num_args("digit",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF); + } + + arg2 = (lua_tostring(L, 2))[0]; if (arg1) (arg1)->digit = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2050,13 +2376,20 @@ static int _wrap_DTMF_digit_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; char result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_digit_get"); + SWIG_check_num_args("digit",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF); + } + result = (char) ((arg1)->digit); SWIG_arg=0; lua_pushfstring(L,"%c",result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2067,21 +2400,30 @@ static int _wrap_DTMF_duration_set(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; uint32_t arg2 ; + uint32_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_set"); - { - uint32_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("duration",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ + SWIG_fail_ptr("DTMF_duration_set",2,SWIGTYPE_p_uint32_t); + } + arg2 = *argp2; + if (arg1) (arg1)->duration = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2093,17 +2435,23 @@ static int _wrap_DTMF_duration_get(lua_State* L) { DTMF *arg1 = (DTMF *) 0 ; uint32_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"DTMF_duration_get"); + SWIG_check_num_args("duration",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){ + SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF); + } + result = ((arg1)->duration); SWIG_arg=0; { - uint32_t * resultptr; - resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2115,22 +2463,25 @@ static int _wrap_new_DTMF(lua_State* L) { char arg1 ; uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ; DTMF *result = 0 ; + uint32_t *argp2 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1 = ((char*)lua_tostring(L, 1))[0]; + SWIG_check_num_args("DTMF",1,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char"); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t"); + arg1 = (lua_tostring(L, 1))[0]; if(lua_gettop(L)>=2){ - { - uint32_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; - arg2 = *argp; + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ + SWIG_fail_ptr("new_DTMF",2,SWIGTYPE_p_uint32_t); } + arg2 = *argp2; } result = (DTMF *)new DTMF(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2141,14 +2492,21 @@ static int _wrap_delete_DTMF(lua_State* L) { int SWIG_arg = -1; DTMF *arg1 = (DTMF *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(DTMF *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_DTMF,0,1,"delete_DTMF"); + SWIG_check_num_args("DTMF",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF",1,"DTMF *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2163,22 +2521,26 @@ static swig_lua_method swig_DTMF_methods[] = { {0,0} }; static swig_lua_attribute swig_DTMF_attributes[] = { - { "digit",_wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, - { "duration",_wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, + { "digit", _wrap_DTMF_digit_get, _wrap_DTMF_digit_set}, + { "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set}, {0,0,0} }; static swig_lua_class *swig_DTMF_bases[] = {0}; -swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases }; +static const char *swig_DTMF_base_names[] = {0}; +static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names }; static int _wrap_new_Stream__SWIG_0(lua_State* L) { int SWIG_arg = -1; Stream *result = 0 ; + SWIG_check_num_args("Stream",0,0) result = (Stream *)new Stream(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2190,13 +2552,20 @@ static int _wrap_new_Stream__SWIG_1(lua_State* L) { switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; Stream *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(switch_stream_handle_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_stream_handle_t,0,1,"new_Stream"); + SWIG_check_num_args("Stream",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))){ + SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t); + } + result = (Stream *)new Stream(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2217,7 +2586,7 @@ static int _wrap_new_Stream(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)) { _v = 0; } else { _v = 1; @@ -2237,14 +2606,21 @@ static int _wrap_delete_Stream(lua_State* L) { int SWIG_arg = -1; Stream *arg1 = (Stream *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"delete_Stream"); + SWIG_check_num_args("Stream",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"Stream *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2257,15 +2633,26 @@ static int _wrap_Stream_read(lua_State* L) { int *arg2 = (int *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_read"); - arg2=(int *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_int,0,2,"Stream_read"); + SWIG_check_num_args("read",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("read",2,"int *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_int,0))){ + SWIG_fail_ptr("Stream_read",2,SWIGTYPE_p_int); + } + result = (char *)(arg1)->read(arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2277,15 +2664,22 @@ static int _wrap_Stream_write(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_write"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("write",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("write",1,"Stream *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->write((char const *)arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2298,17 +2692,24 @@ static int _wrap_Stream_raw_write(lua_State* L) { char *arg2 = (char *) 0 ; int arg3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_raw_write"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("raw_write",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream); + } + + arg2 = (char *)lua_tostring(L, 2); arg3 = (int)lua_tonumber(L, 3); (arg1)->raw_write((char const *)arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2320,13 +2721,20 @@ static int _wrap_Stream_get_data(lua_State* L) { Stream *arg1 = (Stream *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Stream *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Stream,0,1,"Stream_get_data"); + SWIG_check_num_args("get_data",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_data",1,"Stream *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){ + SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream); + } + result = (char *)(arg1)->get_data(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2348,23 +2756,35 @@ static swig_lua_attribute swig_Stream_attributes[] = { {0,0,0} }; static swig_lua_class *swig_Stream_bases[] = {0}; -swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases }; +static const char *swig_Stream_base_names[] = {0}; +static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names }; static int _wrap_Event_event_set(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_set"); - arg2=(switch_event_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_event_t,0,2,"Event_event_set"); + SWIG_check_num_args("event",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("event",2,"switch_event_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_event_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("Event_event_set",2,SWIGTYPE_p_switch_event_t); + } + if (arg1) (arg1)->event = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2376,13 +2796,20 @@ static int _wrap_Event_event_get(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_event_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_event_get"); + SWIG_check_num_args("event",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event); + } + result = (switch_event_t *) ((arg1)->event); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2394,15 +2821,20 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { Event *arg1 = (Event *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("serialized_string",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->serialized_string) delete [] arg1->serialized_string; if (arg2) { - arg1->serialized_string = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->serialized_string,arg2); + arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->serialized_string, (const char *)arg2); } else { arg1->serialized_string = 0; } @@ -2411,6 +2843,8 @@ static int _wrap_Event_serialized_string_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2422,13 +2856,20 @@ static int _wrap_Event_serialized_string_get(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialized_string_get"); + SWIG_check_num_args("serialized_string",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event); + } + result = (char *) ((arg1)->serialized_string); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2440,9 +2881,14 @@ static int _wrap_Event_mine_set(lua_State* L) { Event *arg1 = (Event *) 0 ; int arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_set"); + SWIG_check_num_args("mine",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event); + } + arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->mine = arg2; @@ -2450,6 +2896,8 @@ static int _wrap_Event_mine_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2461,13 +2909,20 @@ static int _wrap_Event_mine_get(lua_State* L) { Event *arg1 = (Event *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_mine_get"); + SWIG_check_num_args("mine",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event); + } + result = (int) ((arg1)->mine); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2480,17 +2935,20 @@ static int _wrap_new_Event__SWIG_0(lua_State* L) { char *arg2 = (char *) NULL ; Event *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("Event",1,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *"); + arg1 = (char *)lua_tostring(L, 1); if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } result = (Event *)new Event((char const *)arg1,(char const *)arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2503,9 +2961,14 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { int arg2 = (int) 0 ; Event *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(switch_event_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_event_t,0,1,"new_Event"); + SWIG_check_num_args("Event",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"switch_event_t *"); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))){ + SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t); + } + if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -2514,6 +2977,8 @@ static int _wrap_new_Event__SWIG_1(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2531,7 +2996,7 @@ static int _wrap_new_Event(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)) { _v = 0; } else { _v = 1; @@ -2576,14 +3041,21 @@ static int _wrap_delete_Event(lua_State* L) { int SWIG_arg = -1; Event *arg1 = (Event *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"delete_Event"); + SWIG_check_num_args("Event",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2597,19 +3069,26 @@ static int _wrap_Event_chat_execute(lua_State* L) { char *arg3 = (char *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_execute"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("chat_execute",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_execute",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2622,17 +3101,24 @@ static int _wrap_Event_chat_send(lua_State* L) { char *arg2 = (char *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_chat_send"); + SWIG_check_num_args("chat_send",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_send",1,"Event *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event); + } + if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } result = (int)(arg1)->chat_send((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2645,17 +3131,24 @@ static int _wrap_Event_serialize(lua_State* L) { char *arg2 = (char *) NULL ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_serialize"); + SWIG_check_num_args("serialize",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialize",1,"Event *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event); + } + if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } result = (char *)(arg1)->serialize((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2667,22 +3160,29 @@ static int _wrap_Event_setPriority(lua_State* L) { Event *arg1 = (Event *) 0 ; switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ; bool result; + switch_priority_t *argp2 ; + + SWIG_check_num_args("setPriority",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPriority",1,"Event *"); + if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event); + } - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_setPriority"); if(lua_gettop(L)>=2){ - { - switch_priority_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_priority_t,0)) SWIG_fail; - arg2 = *argp; + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_priority_t,0))){ + SWIG_fail_ptr("Event_setPriority",2,SWIGTYPE_p_switch_priority_t); } + arg2 = *argp2; } result = (bool)(arg1)->setPriority(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2695,15 +3195,22 @@ static int _wrap_Event_getHeader(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getHeader"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("getHeader",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getHeader",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); result = (char *)(arg1)->getHeader((char const *)arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2715,13 +3222,20 @@ static int _wrap_Event_getBody(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getBody"); + SWIG_check_num_args("getBody",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getBody",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event); + } + result = (char *)(arg1)->getBody(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2733,13 +3247,20 @@ static int _wrap_Event_getType(lua_State* L) { Event *arg1 = (Event *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_getType"); + SWIG_check_num_args("getType",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getType",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event); + } + result = (char *)(arg1)->getType(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2752,15 +3273,22 @@ static int _wrap_Event_addBody(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addBody"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("addBody",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addBody",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); result = (bool)(arg1)->addBody((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2774,17 +3302,24 @@ static int _wrap_Event_addHeader(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_addHeader"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("addHeader",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addHeader",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2797,15 +3332,22 @@ static int _wrap_Event_delHeader(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_delHeader"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("delHeader",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delHeader",1,"Event *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event); + } + + arg2 = (char *)lua_tostring(L, 2); result = (bool)(arg1)->delHeader((char const *)arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2817,13 +3359,20 @@ static int _wrap_Event_fire(lua_State* L) { Event *arg1 = (Event *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(Event *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_Event,0,1,"Event_fire"); + SWIG_check_num_args("fire",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("fire",1,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event); + } + result = (bool)(arg1)->fire(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2849,29 +3398,41 @@ static swig_lua_method swig_Event_methods[] = { {0,0} }; static swig_lua_attribute swig_Event_attributes[] = { - { "event",_wrap_Event_event_get, _wrap_Event_event_set}, - { "serialized_string",_wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, - { "mine",_wrap_Event_mine_get, _wrap_Event_mine_set}, + { "event", _wrap_Event_event_get, _wrap_Event_event_set}, + { "serialized_string", _wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set}, + { "mine", _wrap_Event_mine_get, _wrap_Event_mine_set}, {0,0,0} }; static swig_lua_class *swig_Event_bases[] = {0}; -swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases }; +static const char *swig_Event_base_names[] = {0}; +static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names }; static int _wrap_EventConsumer_events_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *arg2 = (switch_queue_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_set"); - arg2=(switch_queue_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_queue_t,0,2,"EventConsumer_events_set"); + SWIG_check_num_args("events",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_queue_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("EventConsumer_events_set",2,SWIGTYPE_p_switch_queue_t); + } + if (arg1) (arg1)->events = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2883,13 +3444,20 @@ static int _wrap_EventConsumer_events_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_queue_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_events_get"); + SWIG_check_num_args("events",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer); + } + result = (switch_queue_t *) ((arg1)->events); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2900,21 +3468,30 @@ static int _wrap_EventConsumer_e_event_id_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t arg2 ; + switch_event_types_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_set"); - { - switch_event_types_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_event_types_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("e_event_id",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_event_types_t,0))){ + SWIG_fail_ptr("EventConsumer_e_event_id_set",2,SWIGTYPE_p_switch_event_types_t); + } + arg2 = *argp2; + if (arg1) (arg1)->e_event_id = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2926,17 +3503,23 @@ static int _wrap_EventConsumer_e_event_id_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_types_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_event_id_get"); + SWIG_check_num_args("e_event_id",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer); + } + result = ((arg1)->e_event_id); SWIG_arg=0; { - switch_event_types_t * resultptr; - resultptr = new switch_event_types_t((switch_event_types_t &) result); + switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2948,15 +3531,20 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("e_callback",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->e_callback) delete [] arg1->e_callback; if (arg2) { - arg1->e_callback = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_callback,arg2); + arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_callback, (const char *)arg2); } else { arg1->e_callback = 0; } @@ -2965,6 +3553,8 @@ static int _wrap_EventConsumer_e_callback_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2976,13 +3566,20 @@ static int _wrap_EventConsumer_e_callback_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_callback_get"); + SWIG_check_num_args("e_callback",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer); + } + result = (char *) ((arg1)->e_callback); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -2994,15 +3591,20 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("e_subclass_name",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->e_subclass_name) delete [] arg1->e_subclass_name; if (arg2) { - arg1->e_subclass_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_subclass_name,arg2); + arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_subclass_name, (const char *)arg2); } else { arg1->e_subclass_name = 0; } @@ -3011,6 +3613,8 @@ static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3022,13 +3626,20 @@ static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_subclass_name_get"); + SWIG_check_num_args("e_subclass_name",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer); + } + result = (char *) ((arg1)->e_subclass_name); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3040,15 +3651,20 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("e_cb_arg",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->e_cb_arg) delete [] arg1->e_cb_arg; if (arg2) { - arg1->e_cb_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->e_cb_arg,arg2); + arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->e_cb_arg, (const char *)arg2); } else { arg1->e_cb_arg = 0; } @@ -3057,6 +3673,8 @@ static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3068,13 +3686,20 @@ static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_e_cb_arg_get"); + SWIG_check_num_args("e_cb_arg",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer); + } + result = (char *) ((arg1)->e_cb_arg); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3086,10 +3711,19 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_set"); - arg2=(switch_event_node_t **)SWIG_MustGetPtr(L,2,SWIGTYPE_p_p_switch_event_node_t,0,2,"EventConsumer_enodes_set"); + SWIG_check_num_args("enodes",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_switch_event_node_t,0))){ + SWIG_fail_ptr("EventConsumer_enodes_set",2,SWIGTYPE_p_p_switch_event_node_t); + } + { size_t ii; switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes; @@ -3099,6 +3733,8 @@ static int _wrap_EventConsumer_enodes_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3110,13 +3746,20 @@ static int _wrap_EventConsumer_enodes_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; switch_event_node_t **result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_enodes_get"); + SWIG_check_num_args("enodes",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer); + } + result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3127,21 +3770,30 @@ static int _wrap_EventConsumer_node_index_set(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t arg2 ; + uint32_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_set"); - { - uint32_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_uint32_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("node_index",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){ + SWIG_fail_ptr("EventConsumer_node_index_set",2,SWIGTYPE_p_uint32_t); + } + arg2 = *argp2; + if (arg1) (arg1)->node_index = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3153,17 +3805,23 @@ static int _wrap_EventConsumer_node_index_get(lua_State* L) { EventConsumer *arg1 = (EventConsumer *) 0 ; uint32_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_node_index_get"); + SWIG_check_num_args("node_index",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer); + } + result = ((arg1)->node_index); SWIG_arg=0; { - uint32_t * resultptr; - resultptr = new uint32_t((uint32_t &) result); + uint32_t * resultptr = new uint32_t((uint32_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3177,14 +3835,15 @@ static int _wrap_new_EventConsumer(lua_State* L) { int arg3 = (int) 5000 ; EventConsumer *result = 0 ; - if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); + SWIG_check_num_args("EventConsumer",0,3) + if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int"); if(lua_gettop(L)>=1){ - arg1 = (char*)lua_tostring(L, 1); + arg1 = (char *)lua_tostring(L, 1); } if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -3194,6 +3853,8 @@ static int _wrap_new_EventConsumer(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3204,14 +3865,21 @@ static int _wrap_delete_EventConsumer(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"delete_EventConsumer"); + SWIG_check_num_args("EventConsumer",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3225,19 +3893,26 @@ static int _wrap_EventConsumer_bind(lua_State* L) { char *arg3 = (char *) "" ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_bind"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("bind",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bind",1,"EventConsumer *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3251,10 +3926,15 @@ static int _wrap_EventConsumer_pop(lua_State* L) { int arg3 = (int) 0 ; Event *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_pop"); + SWIG_check_num_args("pop",1,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *"); + if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer); + } + if(lua_gettop(L)>=2){ arg2 = (int)lua_tonumber(L, 2); } @@ -3266,6 +3946,8 @@ static int _wrap_EventConsumer_pop(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3276,13 +3958,20 @@ static int _wrap_EventConsumer_cleanup(lua_State* L) { int SWIG_arg = -1; EventConsumer *arg1 = (EventConsumer *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(EventConsumer *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_EventConsumer,0,1,"EventConsumer_cleanup"); + SWIG_check_num_args("cleanup",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){ + SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer); + } + (arg1)->cleanup(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3300,30 +3989,38 @@ static swig_lua_method swig_EventConsumer_methods[] = { {0,0} }; static swig_lua_attribute swig_EventConsumer_attributes[] = { - { "events",_wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, - { "e_event_id",_wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, - { "e_callback",_wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, - { "e_subclass_name",_wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, - { "e_cb_arg",_wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, - { "enodes",_wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, - { "node_index",_wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, + { "events", _wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set}, + { "e_event_id", _wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set}, + { "e_callback", _wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set}, + { "e_subclass_name", _wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set}, + { "e_cb_arg", _wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set}, + { "enodes", _wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set}, + { "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set}, {0,0,0} }; static swig_lua_class *swig_EventConsumer_bases[] = {0}; -swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases }; +static const char *swig_EventConsumer_base_names[] = {0}; +static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names }; static int _wrap_delete_CoreSession(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"delete_CoreSession"); + SWIG_check_num_args("CoreSession",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3335,16 +4032,27 @@ static int _wrap_CoreSession_session_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_set"); - arg2=(switch_core_session_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_core_session_t,0,2,"CoreSession_session_set"); + SWIG_check_num_args("session",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("session",2,"switch_core_session_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_core_session_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("CoreSession_session_set",2,SWIGTYPE_p_switch_core_session_t); + } + if (arg1) (arg1)->session = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3356,13 +4064,20 @@ static int _wrap_CoreSession_session_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_core_session_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_session_get"); + SWIG_check_num_args("session",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession); + } + result = (switch_core_session_t *) ((arg1)->session); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3374,16 +4089,27 @@ static int _wrap_CoreSession_channel_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *arg2 = (switch_channel_t *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_set"); - arg2=(switch_channel_t *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_switch_channel_t,0,2,"CoreSession_channel_set"); + SWIG_check_num_args("channel",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("channel",2,"switch_channel_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_channel_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("CoreSession_channel_set",2,SWIGTYPE_p_switch_channel_t); + } + if (arg1) (arg1)->channel = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3395,13 +4121,20 @@ static int _wrap_CoreSession_channel_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_channel_get"); + SWIG_check_num_args("channel",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession); + } + result = (switch_channel_t *) ((arg1)->channel); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3413,9 +4146,14 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_set"); + SWIG_check_num_args("flags",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession); + } + arg2 = (unsigned int)lua_tonumber(L, 2); if (arg1) (arg1)->flags = arg2; @@ -3423,6 +4161,8 @@ static int _wrap_CoreSession_flags_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3434,13 +4174,20 @@ static int _wrap_CoreSession_flags_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; unsigned int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flags_get"); + SWIG_check_num_args("flags",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession); + } + result = (unsigned int) ((arg1)->flags); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3452,9 +4199,14 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int arg2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_set"); + SWIG_check_num_args("allocated",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); if (arg1) (arg1)->allocated = arg2; @@ -3462,6 +4214,8 @@ static int _wrap_CoreSession_allocated_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3473,13 +4227,20 @@ static int _wrap_CoreSession_allocated_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_allocated_get"); + SWIG_check_num_args("allocated",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession); + } + result = (int) ((arg1)->allocated); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3491,16 +4252,27 @@ static int _wrap_CoreSession_cb_state_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *arg2 = (input_callback_state *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_set"); - arg2=(input_callback_state *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_input_callback_state,0,2,"CoreSession_cb_state_set"); + SWIG_check_num_args("cb_state",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("cb_state",2,"input_callback_state *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_input_callback_state,0))){ + SWIG_fail_ptr("CoreSession_cb_state_set",2,SWIGTYPE_p_input_callback_state); + } + if (arg1) (arg1)->cb_state = *arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3512,13 +4284,20 @@ static int _wrap_CoreSession_cb_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; input_callback_state *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cb_state_get"); + SWIG_check_num_args("cb_state",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession); + } + result = (input_callback_state *)& ((arg1)->cb_state); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3529,21 +4308,30 @@ static int _wrap_CoreSession_hook_state_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t arg2 ; + switch_channel_state_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_set"); - { - switch_channel_state_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_channel_state_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("hook_state",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_channel_state_t,0))){ + SWIG_fail_ptr("CoreSession_hook_state_set",2,SWIGTYPE_p_switch_channel_state_t); + } + arg2 = *argp2; + if (arg1) (arg1)->hook_state = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3555,17 +4343,23 @@ static int _wrap_CoreSession_hook_state_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_channel_state_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hook_state_get"); + SWIG_check_num_args("hook_state",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession); + } + result = ((arg1)->hook_state); SWIG_arg=0; { - switch_channel_state_t * resultptr; - resultptr = new switch_channel_state_t((switch_channel_state_t &) result); + switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3576,21 +4370,30 @@ static int _wrap_CoreSession_cause_set(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t arg2 ; + switch_call_cause_t *argp2 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_set"); - { - switch_call_cause_t * argp; - if(SWIG_ConvertPtr(L,2,(void**)(&argp),SWIGTYPE_p_switch_call_cause_t,0)) SWIG_fail; - arg2 = *argp; + SWIG_check_num_args("cause",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession); } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_call_cause_t,0))){ + SWIG_fail_ptr("CoreSession_cause_set",2,SWIGTYPE_p_switch_call_cause_t); + } + arg2 = *argp2; + if (arg1) (arg1)->cause = arg2; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3602,17 +4405,23 @@ static int _wrap_CoreSession_cause_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_call_cause_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_cause_get"); + SWIG_check_num_args("cause",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession); + } + result = ((arg1)->cause); SWIG_arg=0; { - switch_call_cause_t * resultptr; - resultptr = new switch_call_cause_t((switch_call_cause_t &) result); + switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3624,15 +4433,20 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("uuid",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->uuid) delete [] arg1->uuid; if (arg2) { - arg1->uuid = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->uuid,arg2); + arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->uuid, (const char *)arg2); } else { arg1->uuid = 0; } @@ -3641,6 +4455,8 @@ static int _wrap_CoreSession_uuid_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3652,13 +4468,20 @@ static int _wrap_CoreSession_uuid_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_uuid_get"); + SWIG_check_num_args("uuid",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession); + } + result = (char *) ((arg1)->uuid); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3670,15 +4493,20 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("tts_name",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->tts_name) delete [] arg1->tts_name; if (arg2) { - arg1->tts_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->tts_name,arg2); + arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->tts_name, (const char *)arg2); } else { arg1->tts_name = 0; } @@ -3687,6 +4515,8 @@ static int _wrap_CoreSession_tts_name_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3698,13 +4528,20 @@ static int _wrap_CoreSession_tts_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_tts_name_get"); + SWIG_check_num_args("tts_name",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession); + } + result = (char *) ((arg1)->tts_name); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3716,15 +4553,20 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("voice_name",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->voice_name) delete [] arg1->voice_name; if (arg2) { - arg1->voice_name = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->voice_name,arg2); + arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->voice_name, (const char *)arg2); } else { arg1->voice_name = 0; } @@ -3733,6 +4575,8 @@ static int _wrap_CoreSession_voice_name_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3744,13 +4588,20 @@ static int _wrap_CoreSession_voice_name_get(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_voice_name_get"); + SWIG_check_num_args("voice_name",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession); + } + result = (char *) ((arg1)->voice_name); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3765,19 +4616,26 @@ static int _wrap_CoreSession_insertFile(lua_State* L) { int arg4 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_insertFile"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("insertFile",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("insertFile",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3789,13 +4647,20 @@ static int _wrap_CoreSession_answer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answer"); + SWIG_check_num_args("answer",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answer",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->answer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3807,13 +4672,20 @@ static int _wrap_CoreSession_preAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_preAnswer"); + SWIG_check_num_args("preAnswer",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("preAnswer",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->preAnswer(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3825,17 +4697,24 @@ static int _wrap_CoreSession_hangup(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *arg2 = (char *) "normal_clearing" ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangup"); + SWIG_check_num_args("hangup",1,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup",1,"CoreSession *"); + if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession); + } + if(lua_gettop(L)>=2){ - arg2 = (char*)lua_tostring(L, 2); + arg2 = (char *)lua_tostring(L, 2); } (arg1)->hangup((char const *)arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3846,13 +4725,20 @@ static int _wrap_CoreSession_hangupState(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupState"); + SWIG_check_num_args("hangupState",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupState",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession); + } + (arg1)->hangupState(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3865,17 +4751,24 @@ static int _wrap_CoreSession_setVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setVariable"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setVariable",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setVariable",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setVariable(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3888,17 +4781,24 @@ static int _wrap_CoreSession_setPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *arg3 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setPrivate"); - arg2 = (char*)lua_tostring(L, 2); - arg3=((swig_lua_userdata*)(lua_touserdata(L,3)))->ptr; + SWIG_check_num_args("setPrivate",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPrivate",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("setPrivate",3,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate"); (arg1)->setPrivate(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3911,15 +4811,22 @@ static int _wrap_CoreSession_getPrivate(lua_State* L) { char *arg2 = (char *) 0 ; void *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getPrivate"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("getPrivate",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getPrivate",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (void *)(arg1)->getPrivate(arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3932,15 +4839,22 @@ static int _wrap_CoreSession_getVariable(lua_State* L) { char *arg2 = (char *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getVariable"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("getVariable",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getVariable",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (char *)(arg1)->getVariable(arg2); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3953,19 +4867,25 @@ static int _wrap_CoreSession_process_callback_result(lua_State* L) { char *arg2 = (char *) 0 ; switch_status_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_process_callback_result"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("process_callback_result",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("process_callback_result",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (arg1)->process_callback_result(arg2); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -3981,25 +4901,32 @@ static int _wrap_CoreSession_say(lua_State* L) { char *arg5 = (char *) 0 ; char *arg6 = (char *) NULL ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg(6); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_say"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); - arg5 = (char*)lua_tostring(L, 5); + SWIG_check_num_args("say",5,6) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("say",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *"); + if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *"); + if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); + arg5 = (char *)lua_tostring(L, 5); if(lua_gettop(L)>=6){ - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); } (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4013,23 +4940,30 @@ static int _wrap_CoreSession_sayPhrase(lua_State* L) { char *arg3 = (char *) "" ; char *arg4 = (char *) NULL ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sayPhrase"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("sayPhrase",2,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sayPhrase",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *"); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); } (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4041,13 +4975,20 @@ static int _wrap_CoreSession_hangupCause(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_hangupCause"); + SWIG_check_num_args("hangupCause",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupCause",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession); + } + result = (char *)(arg1)->hangupCause(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4059,13 +5000,20 @@ static int _wrap_CoreSession_getState(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getState"); + SWIG_check_num_args("getState",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getState",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession); + } + result = (char *)(arg1)->getState(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4081,13 +5029,18 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { int arg5 = (int) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); - if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg(5); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_recordFile"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("recordFile",2,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("recordFile",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int"); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int"); + if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -4102,6 +5055,8 @@ static int _wrap_CoreSession_recordFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4117,25 +5072,38 @@ static int _wrap_CoreSession_originate(lua_State* L) { switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg(4); - if(lua_gettop(L)>=5 && !lua_isuserdata(L,5)) SWIG_fail_arg(5); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_originate"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_originate"); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("originate",3,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); + if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); + if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_originate",2,SWIGTYPE_p_CoreSession); + } + + arg3 = (char *)lua_tostring(L, 3); if(lua_gettop(L)>=4){ arg4 = (int)lua_tonumber(L, 4); } if(lua_gettop(L)>=5){ - arg5=(switch_state_handler_table_t *)SWIG_MustGetPtr(L,5,SWIGTYPE_p_switch_state_handler_table_t,0,5,"CoreSession_originate"); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_switch_state_handler_table_t,0))){ + SWIG_fail_ptr("CoreSession_originate",5,SWIGTYPE_p_switch_state_handler_table_t); + } } result = (int)(arg1)->originate(arg2,arg3,arg4,arg5); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4146,13 +5114,20 @@ static int _wrap_CoreSession_destroy(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_destroy"); + SWIG_check_num_args("destroy",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession); + } + (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4165,17 +5140,24 @@ static int _wrap_CoreSession_setDTMFCallback(lua_State* L) { void *arg2 = (void *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setDTMFCallback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setDTMFCallback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setDTMFCallback",2,"void *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback"); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setDTMFCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4188,15 +5170,22 @@ static int _wrap_CoreSession_speak(lua_State* L) { char *arg2 = (char *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_speak"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("speak",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("speak",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); result = (int)(arg1)->speak(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4209,17 +5198,24 @@ static int _wrap_CoreSession_set_tts_parms(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_parms"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("set_tts_parms",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_parms",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->set_tts_parms(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4232,17 +5228,24 @@ static int _wrap_CoreSession_set_tts_params(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_set_tts_params"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("set_tts_params",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_params",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->set_tts_params(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4255,15 +5258,22 @@ static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) { int arg2 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); + SWIG_check_num_args("collectDigits",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); result = (int)(arg1)->collectDigits(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4277,10 +5287,15 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { int arg3 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_collectDigits"); + SWIG_check_num_args("collectDigits",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); result = (int)(arg1)->collectDigits(arg2,arg3); @@ -4288,6 +5303,8 @@ static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4305,7 +5322,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4324,7 +5341,7 @@ static int _wrap_CoreSession_collectDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4358,19 +5375,26 @@ static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) { int arg4 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); + SWIG_check_num_args("getDigits",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); + if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (char *)(arg1)->getDigits(arg2,arg3,arg4); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4386,21 +5410,28 @@ static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) { int arg5 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getDigits"); + SWIG_check_num_args("getDigits",5,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"); + if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4418,7 +5449,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4447,7 +5478,7 @@ static int _wrap_CoreSession_getDigits(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -4491,23 +5522,30 @@ static int _wrap_CoreSession_transfer(lua_State* L) { char *arg4 = (char *) NULL ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_transfer"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("transfer",2,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("transfer",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *"); + if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); } result = (int)(arg1)->transfer(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4525,27 +5563,34 @@ static int _wrap_CoreSession_read(lua_State* L) { int arg7 = (int) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg(7); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_read"); + SWIG_check_num_args("read",6,7) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int"); + if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int"); + if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *"); + if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); - arg4 = (char*)lua_tostring(L, 4); + arg4 = (char *)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); if(lua_gettop(L)>=7){ arg7 = (int)lua_tonumber(L, 7); } result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4568,41 +5613,48 @@ static int _wrap_CoreSession_playAndGetDigits(lua_State* L) { char *arg12 = (char *) NULL ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(!lua_isnumber(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - if(!lua_isstring(L,7)) SWIG_fail_arg(7); - if(!lua_isstring(L,8)) SWIG_fail_arg(8); - if(!lua_isstring(L,9)) SWIG_fail_arg(9); - if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg(10); - if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg(11); - if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg(12); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_playAndGetDigits"); + SWIG_check_num_args("playAndGetDigits",9,12) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int"); + if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *"); + if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *"); + if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *"); + if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *"); + if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *"); + if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int"); + if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); arg3 = (int)lua_tonumber(L, 3); arg4 = (int)lua_tonumber(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char*)lua_tostring(L, 6); - arg7 = (char*)lua_tostring(L, 7); - arg8 = (char*)lua_tostring(L, 8); - arg9 = (char*)lua_tostring(L, 9); + arg6 = (char *)lua_tostring(L, 6); + arg7 = (char *)lua_tostring(L, 7); + arg8 = (char *)lua_tostring(L, 8); + arg9 = (char *)lua_tostring(L, 9); if(lua_gettop(L)>=10){ - arg10 = (char*)lua_tostring(L, 10); + arg10 = (char *)lua_tostring(L, 10); } if(lua_gettop(L)>=11){ arg11 = (int)lua_tonumber(L, 11); } if(lua_gettop(L)>=12){ - arg12 = (char*)lua_tostring(L, 12); + arg12 = (char *)lua_tostring(L, 12); } result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4616,11 +5668,16 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { int arg3 = (int) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_streamFile"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("streamFile",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("streamFile",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); } @@ -4629,6 +5686,8 @@ static int _wrap_CoreSession_streamFile(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4642,10 +5701,15 @@ static int _wrap_CoreSession_sleep(lua_State* L) { int arg3 = (int) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isnumber(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sleep"); + SWIG_check_num_args("sleep",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int"); + if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession); + } + arg2 = (int)lua_tonumber(L, 2); if(lua_gettop(L)>=3){ arg3 = (int)lua_tonumber(L, 3); @@ -4655,6 +5719,8 @@ static int _wrap_CoreSession_sleep(lua_State* L) { lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4666,13 +5732,20 @@ static int _wrap_CoreSession_flushEvents(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushEvents"); + SWIG_check_num_args("flushEvents",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushEvents",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->flushEvents(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4684,13 +5757,20 @@ static int _wrap_CoreSession_flushDigits(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_flushDigits"); + SWIG_check_num_args("flushDigits",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushDigits",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession); + } + result = (int)(arg1)->flushDigits(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4703,15 +5783,22 @@ static int _wrap_CoreSession_setAutoHangup(lua_State* L) { bool arg2 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isboolean(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setAutoHangup"); - arg2 = (bool)lua_toboolean(L, 2); + SWIG_check_num_args("setAutoHangup",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setAutoHangup",1,"CoreSession *"); + if(!lua_isboolean(L,2)) SWIG_fail_arg("setAutoHangup",2,"bool"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (lua_toboolean(L, 2)!=0); result = (int)(arg1)->setAutoHangup(arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4723,15 +5810,22 @@ static int _wrap_CoreSession_setHangupHook(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; void *arg2 = (void *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setHangupHook"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; + SWIG_check_num_args("setHangupHook",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setHangupHook",2,"void *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession); + } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook"); (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4743,13 +5837,20 @@ static int _wrap_CoreSession_ready(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_ready"); + SWIG_check_num_args("ready",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4761,13 +5862,20 @@ static int _wrap_CoreSession_bridged(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_bridged"); + SWIG_check_num_args("bridged",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->bridged(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4779,13 +5887,20 @@ static int _wrap_CoreSession_answered(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_answered"); + SWIG_check_num_args("answered",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answered",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->answered(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4797,13 +5912,20 @@ static int _wrap_CoreSession_mediaReady(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_mediaReady"); + SWIG_check_num_args("mediaReady",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mediaReady",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->mediaReady(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4815,15 +5937,26 @@ static int _wrap_CoreSession_waitForAnswer(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; CoreSession *arg2 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_waitForAnswer"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"CoreSession_waitForAnswer"); + SWIG_check_num_args("waitForAnswer",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("waitForAnswer",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("waitForAnswer",2,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_waitForAnswer",2,SWIGTYPE_p_CoreSession); + } + (arg1)->waitForAnswer(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4836,19 +5969,26 @@ static int _wrap_CoreSession_execute(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_execute"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("execute",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"); + if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ - arg3 = (char*)lua_tostring(L, 3); + arg3 = (char *)lua_tostring(L, 3); } (arg1)->execute((char const *)arg2,(char const *)arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4860,15 +6000,26 @@ static int _wrap_CoreSession_sendEvent(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_sendEvent"); - arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_sendEvent"); + SWIG_check_num_args("sendEvent",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sendEvent",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("sendEvent",2,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("CoreSession_sendEvent",2,SWIGTYPE_p_Event); + } + (arg1)->sendEvent(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4880,15 +6031,26 @@ static int _wrap_CoreSession_setEventData(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; Event *arg2 = (Event *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_setEventData"); - arg2=(Event *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_Event,0,2,"CoreSession_setEventData"); + SWIG_check_num_args("setEventData",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setEventData",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setEventData",2,"Event *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))){ + SWIG_fail_ptr("CoreSession_setEventData",2,SWIGTYPE_p_Event); + } + (arg1)->setEventData(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4900,13 +6062,20 @@ static int _wrap_CoreSession_getXMLCDR(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_getXMLCDR"); + SWIG_check_num_args("getXMLCDR",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getXMLCDR",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession); + } + result = (char *)(arg1)->getXMLCDR(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4918,13 +6087,20 @@ static int _wrap_CoreSession_begin_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_begin_allow_threads"); + SWIG_check_num_args("begin_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4936,13 +6112,20 @@ static int _wrap_CoreSession_end_allow_threads(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_end_allow_threads"); + SWIG_check_num_args("end_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession); + } + result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4954,13 +6137,20 @@ static int _wrap_CoreSession_get_uuid(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_uuid"); + SWIG_check_num_args("get_uuid",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_uuid",1,"CoreSession const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession); + } + result = (char *)((CoreSession const *)arg1)->get_uuid(); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4972,8 +6162,13 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { CoreSession *arg1 = (CoreSession *) 0 ; switch_input_args_t *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_get_cb_args"); + SWIG_check_num_args("get_cb_args",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_cb_args",1,"CoreSession const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession); + } + { switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args(); result = (switch_input_args_t *) &_result_ref; @@ -4982,6 +6177,8 @@ static int _wrap_CoreSession_get_cb_args(lua_State* L) { SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -4992,13 +6189,20 @@ static int _wrap_CoreSession_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_check_hangup_hook"); + SWIG_check_num_args("check_hangup_hook",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession); + } + (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5011,26 +6215,34 @@ static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; + switch_input_type_t *argp3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_run_dtmf_callback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - { - switch_input_type_t * argp; - if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; - arg3 = *argp; + SWIG_check_num_args("run_dtmf_callback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); + if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession); } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_run_dtmf_callback"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ + SWIG_fail_ptr("CoreSession_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); + } + arg3 = *argp3; + result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5043,17 +6255,24 @@ static int _wrap_CoreSession_consoleLog(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("consoleLog",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->consoleLog(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5069,23 +6288,30 @@ static int _wrap_CoreSession_consoleLog2(lua_State* L) { int arg5 ; char *arg6 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - if(!lua_isstring(L,6)) SWIG_fail_arg(6); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"CoreSession_consoleLog2"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); + SWIG_check_num_args("consoleLog2",6,6) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog2",1,"CoreSession *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int"); + if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); arg5 = (int)lua_tonumber(L, 5); - arg6 = (char*)lua_tostring(L, 6); + arg6 = (char *)lua_tostring(L, 6); (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5149,35 +6375,39 @@ static swig_lua_method swig_CoreSession_methods[] = { {0,0} }; static swig_lua_attribute swig_CoreSession_attributes[] = { - { "session",_wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, - { "channel",_wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, - { "flags",_wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, - { "allocated",_wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, - { "cb_state",_wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, - { "hook_state",_wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, - { "cause",_wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, - { "uuid",_wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, - { "tts_name",_wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, - { "voice_name",_wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, + { "session", _wrap_CoreSession_session_get, _wrap_CoreSession_session_set}, + { "channel", _wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set}, + { "flags", _wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set}, + { "allocated", _wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set}, + { "cb_state", _wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set}, + { "hook_state", _wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set}, + { "cause", _wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set}, + { "uuid", _wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set}, + { "tts_name", _wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set}, + { "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set}, {0,0,0} }; static swig_lua_class *swig_CoreSession_bases[] = {0}; -swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases }; +static const char *swig_CoreSession_base_names[] = {0}; +static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names }; static int _wrap_console_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("console_log",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); console_log(arg1,arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5192,21 +6422,24 @@ static int _wrap_console_log2(lua_State* L) { int arg4 ; char *arg5 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - if(!lua_isstring(L,5)) SWIG_fail_arg(5); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("console_log2",5,5) + if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int"); + if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); - arg5 = (char*)lua_tostring(L, 5); + arg5 = (char *)lua_tostring(L, 5); console_log2(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5217,13 +6450,16 @@ static int _wrap_console_clean_log(lua_State* L) { int SWIG_arg = -1; char *arg1 = (char *) 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("console_clean_log",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); console_clean_log(arg1); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5234,13 +6470,16 @@ static int _wrap_msleep(lua_State* L) { int SWIG_arg = -1; unsigned int arg1 ; - if(!lua_isnumber(L,1)) SWIG_fail_arg(1); + SWIG_check_num_args("switch_msleep",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int"); arg1 = (unsigned int)lua_tonumber(L, 1); switch_msleep(arg1); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5252,15 +6491,26 @@ static int _wrap_bridge(lua_State* L) { CoreSession *arg1 = 0 ; CoreSession *arg2 = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(CoreSession *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_CoreSession,0,1,"bridge"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"bridge"); + SWIG_check_num_args("bridge",2,2) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("bridge",1,"CoreSession &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("bridge",2,"CoreSession &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("bridge",1,SWIGTYPE_p_CoreSession); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("bridge",2,SWIGTYPE_p_CoreSession); + } + bridge(*arg1,*arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5272,17 +6522,23 @@ static int _wrap_hanguphook(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_status_t result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"hanguphook"); + SWIG_check_num_args("hanguphook",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hanguphook",1,"switch_core_session_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ + SWIG_fail_ptr("hanguphook",1,SWIGTYPE_p_switch_core_session_t); + } + result = hanguphook(arg1); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5297,30 +6553,38 @@ static int _wrap_dtmf_callback(lua_State* L) { void *arg4 = (void *) 0 ; unsigned int arg5 ; switch_status_t result; + switch_input_type_t *argp3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - if(!lua_isuserdata(L,4)) SWIG_fail_arg(4); - if(!lua_isnumber(L,5)) SWIG_fail_arg(5); - arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"dtmf_callback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - { - switch_input_type_t * argp; - if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; - arg3 = *argp; + SWIG_check_num_args("dtmf_callback",5,5) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("dtmf_callback",2,"void *"); + if(!lua_isuserdata(L,3)) SWIG_fail_arg("dtmf_callback",3,"switch_input_type_t"); + if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("dtmf_callback",4,"void *"); + if(!lua_isnumber(L,5)) SWIG_fail_arg("dtmf_callback",5,"unsigned int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ + SWIG_fail_ptr("dtmf_callback",1,SWIGTYPE_p_switch_core_session_t); } - arg4=((swig_lua_userdata*)(lua_touserdata(L,4)))->ptr; + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"dtmf_callback"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ + SWIG_fail_ptr("dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); + } + arg3 = *argp3; + + arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback"); arg5 = (unsigned int)lua_tonumber(L, 5); result = dtmf_callback(arg1,arg2,arg3,arg4,arg5); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5331,11 +6595,14 @@ static int _wrap_new_Session__SWIG_0(lua_State* L) { int SWIG_arg = -1; LUA::Session *result = 0 ; + SWIG_check_num_args("LUA::Session",0,0) result = (LUA::Session *)new LUA::Session(); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5348,15 +6615,22 @@ static int _wrap_new_Session__SWIG_1(lua_State* L) { CoreSession *arg2 = (CoreSession *) 0 ; LUA::Session *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"new_Session"); + SWIG_check_num_args("LUA::Session",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *"); + arg1 = (char *)lua_tostring(L, 1); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("new_Session",2,SWIGTYPE_p_CoreSession); + } + result = (LUA::Session *)new LUA::Session(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5368,13 +6642,16 @@ static int _wrap_new_Session__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Session *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("LUA::Session",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5386,13 +6663,20 @@ static int _wrap_new_Session__SWIG_3(lua_State* L) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; LUA::Session *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(switch_core_session_t *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_switch_core_session_t,0,1,"new_Session"); + SWIG_check_num_args("LUA::Session",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){ + SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t); + } + result = (LUA::Session *)new LUA::Session(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L); return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5413,7 +6697,7 @@ static int _wrap_new_Session(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)) { _v = 0; } else { _v = 1; @@ -5440,7 +6724,7 @@ static int _wrap_new_Session(lua_State* L) { if (_v) { { void *ptr; - if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { + if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) { _v = 0; } else { _v = 1; @@ -5461,14 +6745,21 @@ static int _wrap_delete_Session(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"delete_Session"); + SWIG_check_num_args("LUA::~Session",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5480,15 +6771,22 @@ static int _wrap_Session_destroy__SWIG_0(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("destroy",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->destroy((char const *)arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5499,13 +6797,20 @@ static int _wrap_Session_destroy__SWIG_1(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_destroy"); + SWIG_check_num_args("destroy",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->destroy(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5523,7 +6828,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5537,7 +6842,7 @@ static int _wrap_Session_destroy(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5563,13 +6868,20 @@ static int _wrap_Session_begin_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_begin_allow_threads"); + SWIG_check_num_args("begin_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session); + } + result = (bool)(arg1)->begin_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5581,13 +6893,20 @@ static int _wrap_Session_end_allow_threads(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_end_allow_threads"); + SWIG_check_num_args("end_allow_threads",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session); + } + result = (bool)(arg1)->end_allow_threads(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5598,13 +6917,20 @@ static int _wrap_Session_check_hangup_hook(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_check_hangup_hook"); + SWIG_check_num_args("check_hangup_hook",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->check_hangup_hook(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5617,26 +6943,34 @@ static int _wrap_Session_run_dtmf_callback(lua_State* L) { void *arg2 = (void *) 0 ; switch_input_type_t arg3 ; switch_status_t result; + switch_input_type_t *argp3 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isuserdata(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_run_dtmf_callback"); - arg2=((swig_lua_userdata*)(lua_touserdata(L,2)))->ptr; - { - switch_input_type_t * argp; - if(SWIG_ConvertPtr(L,3,(void**)(&argp),SWIGTYPE_p_switch_input_type_t,0)) SWIG_fail; - arg3 = *argp; + SWIG_check_num_args("run_dtmf_callback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *"); + if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session); } + + arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"Session_run_dtmf_callback"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))){ + SWIG_fail_ptr("Session_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t); + } + arg3 = *argp3; + result = (arg1)->run_dtmf_callback(arg2,arg3); SWIG_arg=0; { - switch_status_t * resultptr; - resultptr = new switch_status_t((switch_status_t &) result); + switch_status_t * resultptr = new switch_status_t((switch_status_t &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++; } return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5647,13 +6981,20 @@ static int _wrap_Session_unsetInputCallback(lua_State* L) { int SWIG_arg = -1; LUA::Session *arg1 = (LUA::Session *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_unsetInputCallback"); + SWIG_check_num_args("unsetInputCallback",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->unsetInputCallback(); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5666,17 +7007,24 @@ static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setInputCallback",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setInputCallback(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5688,15 +7036,22 @@ static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setInputCallback"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("setInputCallback",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->setInputCallback(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5714,7 +7069,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5733,7 +7088,7 @@ static int _wrap_Session_setInputCallback(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5765,17 +7120,24 @@ static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("setHangupHook",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); (arg1)->setHangupHook(arg2,arg3); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5787,15 +7149,22 @@ static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setHangupHook"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("setHangupHook",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); (arg1)->setHangupHook(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5813,7 +7182,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5832,7 +7201,7 @@ static int _wrap_Session_setHangupHook(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)) { _v = 0; } else { _v = 1; @@ -5863,13 +7232,20 @@ static int _wrap_Session_ready(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_ready"); + SWIG_check_num_args("ready",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session); + } + result = (bool)(arg1)->ready(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5884,19 +7260,30 @@ static int _wrap_Session_originate(lua_State* L) { int arg4 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isnumber(L,4)) SWIG_fail_arg(4); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_originate"); - arg2=(CoreSession *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_CoreSession,0,2,"Session_originate"); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("originate",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("Session_originate",2,SWIGTYPE_p_CoreSession); + } + + arg3 = (char *)lua_tostring(L, 3); arg4 = (int)lua_tonumber(L, 4); result = (int)(arg1)->originate(arg2,arg3,arg4); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5908,15 +7295,20 @@ static int _wrap_Session_cb_function_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("cb_function",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->cb_function) delete [] arg1->cb_function; if (arg2) { - arg1->cb_function = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->cb_function,arg2); + arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->cb_function, (const char *)arg2); } else { arg1->cb_function = 0; } @@ -5925,6 +7317,8 @@ static int _wrap_Session_cb_function_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5936,13 +7330,20 @@ static int _wrap_Session_cb_function_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_function_get"); + SWIG_check_num_args("cb_function",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->cb_function); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5954,15 +7355,20 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("cb_arg",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->cb_arg) delete [] arg1->cb_arg; if (arg2) { - arg1->cb_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->cb_arg,arg2); + arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->cb_arg, (const char *)arg2); } else { arg1->cb_arg = 0; } @@ -5971,6 +7377,8 @@ static int _wrap_Session_cb_arg_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -5982,13 +7390,20 @@ static int _wrap_Session_cb_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_cb_arg_get"); + SWIG_check_num_args("cb_arg",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->cb_arg); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6000,15 +7415,20 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("hangup_func_str",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->hangup_func_str) delete [] arg1->hangup_func_str; if (arg2) { - arg1->hangup_func_str = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->hangup_func_str,arg2); + arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->hangup_func_str, (const char *)arg2); } else { arg1->hangup_func_str = 0; } @@ -6017,6 +7437,8 @@ static int _wrap_Session_hangup_func_str_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6028,13 +7450,20 @@ static int _wrap_Session_hangup_func_str_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_str_get"); + SWIG_check_num_args("hangup_func_str",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->hangup_func_str); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6046,15 +7475,20 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *arg2 = (char *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_set"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("hangup_func_arg",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session); + } + + arg2 = (char *)lua_tostring(L, 2); { if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg; if (arg2) { - arg1->hangup_func_arg = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->hangup_func_arg,arg2); + arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->hangup_func_arg, (const char *)arg2); } else { arg1->hangup_func_arg = 0; } @@ -6063,6 +7497,8 @@ static int _wrap_Session_hangup_func_arg_set(lua_State* L) { return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6074,13 +7510,20 @@ static int _wrap_Session_hangup_func_arg_get(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; char *result = 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_hangup_func_arg_get"); + SWIG_check_num_args("hangup_func_arg",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session); + } + result = (char *) ((arg1)->hangup_func_arg); SWIG_arg=0; - lua_pushstring(L,result); SWIG_arg++; + lua_pushstring(L,(const char*)result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6092,15 +7535,21 @@ static int _wrap_Session_setLUA(lua_State* L) { LUA::Session *arg1 = (LUA::Session *) 0 ; lua_State *arg2 = (lua_State *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isuserdata(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Session *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Session,0,1,"Session_setLUA"); - arg2=(lua_State *)SWIG_MustGetPtr(L,2,SWIGTYPE_p_lua_State,0,2,"Session_setLUA"); + arg2 = L; + SWIG_check_num_args("setLUA",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setLUA",1,"LUA::Session *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){ + SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session); + } + (arg1)->setLUA(arg2); SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6126,14 +7575,15 @@ static swig_lua_method swig_LUA_Session_methods[] = { {0,0} }; static swig_lua_attribute swig_LUA_Session_attributes[] = { - { "cb_function",_wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, - { "cb_arg",_wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, - { "hangup_func_str",_wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, - { "hangup_func_arg",_wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, + { "cb_function", _wrap_Session_cb_function_get, _wrap_Session_cb_function_set}, + { "cb_arg", _wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set}, + { "hangup_func_str", _wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set}, + { "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set}, {0,0,0} }; -static swig_lua_class *swig_LUA_Session_bases[] = {&_wrap_class_CoreSession,0}; -swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases }; +static swig_lua_class *swig_LUA_Session_bases[] = {0,0}; +static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0}; +static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names }; static int _wrap_new_Dbh__SWIG_0(lua_State* L) { int SWIG_arg = -1; @@ -6142,17 +7592,20 @@ static int _wrap_new_Dbh__SWIG_0(lua_State* L) { char *arg3 = (char *) 0 ; LUA::Dbh *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("LUA::Dbh",3,3) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6165,15 +7618,18 @@ static int _wrap_new_Dbh__SWIG_1(lua_State* L) { char *arg2 = (char *) 0 ; LUA::Dbh *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1 = (char*)lua_tostring(L, 1); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("LUA::Dbh",2,2) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"); + arg1 = (char *)lua_tostring(L, 1); + arg2 = (char *)lua_tostring(L, 2); result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6185,13 +7641,16 @@ static int _wrap_new_Dbh__SWIG_2(lua_State* L) { char *arg1 = (char *) 0 ; LUA::Dbh *result = 0 ; - if(!lua_isstring(L,1)) SWIG_fail_arg(1); - arg1 = (char*)lua_tostring(L, 1); + SWIG_check_num_args("LUA::Dbh",1,1) + if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"); + arg1 = (char *)lua_tostring(L, 1); result = (LUA::Dbh *)new LUA::Dbh(arg1); SWIG_arg=0; SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6257,14 +7716,21 @@ static int _wrap_delete_Dbh(lua_State* L) { int SWIG_arg = -1; LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"delete_Dbh"); + SWIG_check_num_args("LUA::~Dbh",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh); + } + delete arg1; SWIG_arg=0; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6276,13 +7742,20 @@ static int _wrap_Dbh_release(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_release"); + SWIG_check_num_args("release",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("release",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh); + } + result = (bool)(arg1)->release(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6294,13 +7767,20 @@ static int _wrap_Dbh_connected(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_connected"); + SWIG_check_num_args("connected",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("connected",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh); + } + result = (bool)(arg1)->connected(); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6315,19 +7795,26 @@ static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) { char *arg4 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - if(!lua_isstring(L,4)) SWIG_fail_arg(4); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); - arg4 = (char*)lua_tostring(L, 4); + SWIG_check_num_args("test_reactive",4,4) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); + if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); + arg4 = (char *)lua_tostring(L, 4); result = (bool)(arg1)->test_reactive(arg2,arg3,arg4); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6341,17 +7828,24 @@ static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) { char *arg3 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(!lua_isstring(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); - arg2 = (char*)lua_tostring(L, 2); - arg3 = (char*)lua_tostring(L, 3); + SWIG_check_num_args("test_reactive",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); + if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); + arg3 = (char *)lua_tostring(L, 3); result = (bool)(arg1)->test_reactive(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6364,15 +7858,22 @@ static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) { char *arg2 = (char *) 0 ; bool result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_test_reactive"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("test_reactive",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); result = (bool)(arg1)->test_reactive(arg2); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6390,7 +7891,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -6409,7 +7910,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -6433,7 +7934,7 @@ static int _wrap_Dbh_test_reactive(lua_State* L) { int _v; { void *ptr; - if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)) { _v = 0; } else { _v = 1; @@ -6477,11 +7978,16 @@ static int _wrap_Dbh_query(lua_State* L) { }; arg3 = default_swiglua_fn; } - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg(3); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_query"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("query",2,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("query",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *"); + if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("query",3,"SWIGLUA_FN"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ { (&arg3)->L = L; @@ -6490,9 +7996,11 @@ static int _wrap_Dbh_query(lua_State* L) { } result = (bool)(arg1)->query(arg2,arg3); SWIG_arg=0; - lua_pushboolean(L,(int)result); SWIG_arg++; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6504,13 +8012,20 @@ static int _wrap_Dbh_affected_rows(lua_State* L) { LUA::Dbh *arg1 = (LUA::Dbh *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_affected_rows"); + SWIG_check_num_args("affected_rows",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh); + } + result = (int)(arg1)->affected_rows(); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6523,15 +8038,22 @@ static int _wrap_Dbh_load_extension(lua_State* L) { char *arg2 = (char *) 0 ; int result; - if(!lua_isuserdata(L,1)) SWIG_fail_arg(1); - if(!lua_isstring(L,2)) SWIG_fail_arg(2); - arg1=(LUA::Dbh *)SWIG_MustGetPtr(L,1,SWIGTYPE_p_LUA__Dbh,0,1,"Dbh_load_extension"); - arg2 = (char*)lua_tostring(L, 2); + SWIG_check_num_args("load_extension",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("load_extension",1,"LUA::Dbh *"); + if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){ + SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh); + } + + arg2 = (char *)lua_tostring(L, 2); result = (int)(arg1)->load_extension((char const *)arg2); SWIG_arg=0; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; + if(0) SWIG_fail; + fail: lua_error(L); return SWIG_arg; @@ -6555,7 +8077,8 @@ static swig_lua_attribute swig_LUA_Dbh_attributes[] = { {0,0,0} }; static swig_lua_class *swig_LUA_Dbh_bases[] = {0}; -swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases }; +static const char *swig_LUA_Dbh_base_names[] = {0}; +static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names }; #ifdef __cplusplus } @@ -6569,145 +8092,6 @@ static const struct luaL_reg swig_commands[] = { { "consoleCleanLog", _wrap_consoleCleanLog}, { "running", _wrap_running}, { "email", _wrap_email}, - { "new_IVRMenu", _wrap_new_IVRMenu}, - { "delete_IVRMenu", _wrap_delete_IVRMenu}, - { "IVRMenu_bindAction", _wrap_IVRMenu_bindAction}, - { "IVRMenu_execute", _wrap_IVRMenu_execute}, - { "new_API", _wrap_new_API}, - { "delete_API", _wrap_delete_API}, - { "API_execute", _wrap_API_execute}, - { "API_executeString", _wrap_API_executeString}, - { "API_getTime", _wrap_API_getTime}, - { "input_callback_state_t_function_set", _wrap_input_callback_state_t_function_set}, - { "input_callback_state_t_function_get", _wrap_input_callback_state_t_function_get}, - { "input_callback_state_t_threadState_set", _wrap_input_callback_state_t_threadState_set}, - { "input_callback_state_t_threadState_get", _wrap_input_callback_state_t_threadState_get}, - { "input_callback_state_t_extra_set", _wrap_input_callback_state_t_extra_set}, - { "input_callback_state_t_extra_get", _wrap_input_callback_state_t_extra_get}, - { "input_callback_state_t_funcargs_set", _wrap_input_callback_state_t_funcargs_set}, - { "input_callback_state_t_funcargs_get", _wrap_input_callback_state_t_funcargs_get}, - { "new_input_callback_state_t", _wrap_new_input_callback_state_t}, - { "delete_input_callback_state_t", _wrap_delete_input_callback_state_t}, - { "DTMF_digit_set", _wrap_DTMF_digit_set}, - { "DTMF_digit_get", _wrap_DTMF_digit_get}, - { "DTMF_duration_set", _wrap_DTMF_duration_set}, - { "DTMF_duration_get", _wrap_DTMF_duration_get}, - { "new_DTMF", _wrap_new_DTMF}, - { "delete_DTMF", _wrap_delete_DTMF}, - { "new_Stream",_wrap_new_Stream}, - { "delete_Stream", _wrap_delete_Stream}, - { "Stream_read", _wrap_Stream_read}, - { "Stream_write", _wrap_Stream_write}, - { "Stream_raw_write", _wrap_Stream_raw_write}, - { "Stream_get_data", _wrap_Stream_get_data}, - { "Event_event_set", _wrap_Event_event_set}, - { "Event_event_get", _wrap_Event_event_get}, - { "Event_serialized_string_set", _wrap_Event_serialized_string_set}, - { "Event_serialized_string_get", _wrap_Event_serialized_string_get}, - { "Event_mine_set", _wrap_Event_mine_set}, - { "Event_mine_get", _wrap_Event_mine_get}, - { "new_Event",_wrap_new_Event}, - { "delete_Event", _wrap_delete_Event}, - { "Event_chat_execute", _wrap_Event_chat_execute}, - { "Event_chat_send", _wrap_Event_chat_send}, - { "Event_serialize", _wrap_Event_serialize}, - { "Event_setPriority", _wrap_Event_setPriority}, - { "Event_getHeader", _wrap_Event_getHeader}, - { "Event_getBody", _wrap_Event_getBody}, - { "Event_getType", _wrap_Event_getType}, - { "Event_addBody", _wrap_Event_addBody}, - { "Event_addHeader", _wrap_Event_addHeader}, - { "Event_delHeader", _wrap_Event_delHeader}, - { "Event_fire", _wrap_Event_fire}, - { "EventConsumer_events_set", _wrap_EventConsumer_events_set}, - { "EventConsumer_events_get", _wrap_EventConsumer_events_get}, - { "EventConsumer_e_event_id_set", _wrap_EventConsumer_e_event_id_set}, - { "EventConsumer_e_event_id_get", _wrap_EventConsumer_e_event_id_get}, - { "EventConsumer_e_callback_set", _wrap_EventConsumer_e_callback_set}, - { "EventConsumer_e_callback_get", _wrap_EventConsumer_e_callback_get}, - { "EventConsumer_e_subclass_name_set", _wrap_EventConsumer_e_subclass_name_set}, - { "EventConsumer_e_subclass_name_get", _wrap_EventConsumer_e_subclass_name_get}, - { "EventConsumer_e_cb_arg_set", _wrap_EventConsumer_e_cb_arg_set}, - { "EventConsumer_e_cb_arg_get", _wrap_EventConsumer_e_cb_arg_get}, - { "EventConsumer_enodes_set", _wrap_EventConsumer_enodes_set}, - { "EventConsumer_enodes_get", _wrap_EventConsumer_enodes_get}, - { "EventConsumer_node_index_set", _wrap_EventConsumer_node_index_set}, - { "EventConsumer_node_index_get", _wrap_EventConsumer_node_index_get}, - { "new_EventConsumer", _wrap_new_EventConsumer}, - { "delete_EventConsumer", _wrap_delete_EventConsumer}, - { "EventConsumer_bind", _wrap_EventConsumer_bind}, - { "EventConsumer_pop", _wrap_EventConsumer_pop}, - { "EventConsumer_cleanup", _wrap_EventConsumer_cleanup}, - { "delete_CoreSession", _wrap_delete_CoreSession}, - { "CoreSession_session_set", _wrap_CoreSession_session_set}, - { "CoreSession_session_get", _wrap_CoreSession_session_get}, - { "CoreSession_channel_set", _wrap_CoreSession_channel_set}, - { "CoreSession_channel_get", _wrap_CoreSession_channel_get}, - { "CoreSession_flags_set", _wrap_CoreSession_flags_set}, - { "CoreSession_flags_get", _wrap_CoreSession_flags_get}, - { "CoreSession_allocated_set", _wrap_CoreSession_allocated_set}, - { "CoreSession_allocated_get", _wrap_CoreSession_allocated_get}, - { "CoreSession_cb_state_set", _wrap_CoreSession_cb_state_set}, - { "CoreSession_cb_state_get", _wrap_CoreSession_cb_state_get}, - { "CoreSession_hook_state_set", _wrap_CoreSession_hook_state_set}, - { "CoreSession_hook_state_get", _wrap_CoreSession_hook_state_get}, - { "CoreSession_cause_set", _wrap_CoreSession_cause_set}, - { "CoreSession_cause_get", _wrap_CoreSession_cause_get}, - { "CoreSession_uuid_set", _wrap_CoreSession_uuid_set}, - { "CoreSession_uuid_get", _wrap_CoreSession_uuid_get}, - { "CoreSession_tts_name_set", _wrap_CoreSession_tts_name_set}, - { "CoreSession_tts_name_get", _wrap_CoreSession_tts_name_get}, - { "CoreSession_voice_name_set", _wrap_CoreSession_voice_name_set}, - { "CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get}, - { "CoreSession_insertFile", _wrap_CoreSession_insertFile}, - { "CoreSession_answer", _wrap_CoreSession_answer}, - { "CoreSession_preAnswer", _wrap_CoreSession_preAnswer}, - { "CoreSession_hangup", _wrap_CoreSession_hangup}, - { "CoreSession_hangupState", _wrap_CoreSession_hangupState}, - { "CoreSession_setVariable", _wrap_CoreSession_setVariable}, - { "CoreSession_setPrivate", _wrap_CoreSession_setPrivate}, - { "CoreSession_getPrivate", _wrap_CoreSession_getPrivate}, - { "CoreSession_getVariable", _wrap_CoreSession_getVariable}, - { "CoreSession_process_callback_result", _wrap_CoreSession_process_callback_result}, - { "CoreSession_say", _wrap_CoreSession_say}, - { "CoreSession_sayPhrase", _wrap_CoreSession_sayPhrase}, - { "CoreSession_hangupCause", _wrap_CoreSession_hangupCause}, - { "CoreSession_getState", _wrap_CoreSession_getState}, - { "CoreSession_recordFile", _wrap_CoreSession_recordFile}, - { "CoreSession_originate", _wrap_CoreSession_originate}, - { "CoreSession_destroy", _wrap_CoreSession_destroy}, - { "CoreSession_setDTMFCallback", _wrap_CoreSession_setDTMFCallback}, - { "CoreSession_speak", _wrap_CoreSession_speak}, - { "CoreSession_set_tts_parms", _wrap_CoreSession_set_tts_parms}, - { "CoreSession_set_tts_params", _wrap_CoreSession_set_tts_params}, - { "CoreSession_collectDigits",_wrap_CoreSession_collectDigits}, - { "CoreSession_getDigits",_wrap_CoreSession_getDigits}, - { "CoreSession_transfer", _wrap_CoreSession_transfer}, - { "CoreSession_read", _wrap_CoreSession_read}, - { "CoreSession_playAndGetDigits", _wrap_CoreSession_playAndGetDigits}, - { "CoreSession_streamFile", _wrap_CoreSession_streamFile}, - { "CoreSession_sleep", _wrap_CoreSession_sleep}, - { "CoreSession_flushEvents", _wrap_CoreSession_flushEvents}, - { "CoreSession_flushDigits", _wrap_CoreSession_flushDigits}, - { "CoreSession_setAutoHangup", _wrap_CoreSession_setAutoHangup}, - { "CoreSession_setHangupHook", _wrap_CoreSession_setHangupHook}, - { "CoreSession_ready", _wrap_CoreSession_ready}, - { "CoreSession_bridged", _wrap_CoreSession_bridged}, - { "CoreSession_answered", _wrap_CoreSession_answered}, - { "CoreSession_mediaReady", _wrap_CoreSession_mediaReady}, - { "CoreSession_waitForAnswer", _wrap_CoreSession_waitForAnswer}, - { "CoreSession_execute", _wrap_CoreSession_execute}, - { "CoreSession_sendEvent", _wrap_CoreSession_sendEvent}, - { "CoreSession_setEventData", _wrap_CoreSession_setEventData}, - { "CoreSession_getXMLCDR", _wrap_CoreSession_getXMLCDR}, - { "CoreSession_begin_allow_threads", _wrap_CoreSession_begin_allow_threads}, - { "CoreSession_end_allow_threads", _wrap_CoreSession_end_allow_threads}, - { "CoreSession_get_uuid", _wrap_CoreSession_get_uuid}, - { "CoreSession_get_cb_args", _wrap_CoreSession_get_cb_args}, - { "CoreSession_check_hangup_hook", _wrap_CoreSession_check_hangup_hook}, - { "CoreSession_run_dtmf_callback", _wrap_CoreSession_run_dtmf_callback}, - { "CoreSession_consoleLog", _wrap_CoreSession_consoleLog}, - { "CoreSession_consoleLog2", _wrap_CoreSession_consoleLog2}, { "console_log", _wrap_console_log}, { "console_log2", _wrap_console_log2}, { "console_clean_log", _wrap_console_clean_log}, @@ -6715,35 +8099,6 @@ static const struct luaL_reg swig_commands[] = { { "bridge", _wrap_bridge}, { "hanguphook", _wrap_hanguphook}, { "dtmf_callback", _wrap_dtmf_callback}, - { "new_Session",_wrap_new_Session}, - { "delete_Session", _wrap_delete_Session}, - { "Session_destroy",_wrap_Session_destroy}, - { "Session_begin_allow_threads", _wrap_Session_begin_allow_threads}, - { "Session_end_allow_threads", _wrap_Session_end_allow_threads}, - { "Session_check_hangup_hook", _wrap_Session_check_hangup_hook}, - { "Session_run_dtmf_callback", _wrap_Session_run_dtmf_callback}, - { "Session_unsetInputCallback", _wrap_Session_unsetInputCallback}, - { "Session_setInputCallback",_wrap_Session_setInputCallback}, - { "Session_setHangupHook",_wrap_Session_setHangupHook}, - { "Session_ready", _wrap_Session_ready}, - { "Session_originate", _wrap_Session_originate}, - { "Session_cb_function_set", _wrap_Session_cb_function_set}, - { "Session_cb_function_get", _wrap_Session_cb_function_get}, - { "Session_cb_arg_set", _wrap_Session_cb_arg_set}, - { "Session_cb_arg_get", _wrap_Session_cb_arg_get}, - { "Session_hangup_func_str_set", _wrap_Session_hangup_func_str_set}, - { "Session_hangup_func_str_get", _wrap_Session_hangup_func_str_get}, - { "Session_hangup_func_arg_set", _wrap_Session_hangup_func_arg_set}, - { "Session_hangup_func_arg_get", _wrap_Session_hangup_func_arg_get}, - { "Session_setLUA", _wrap_Session_setLUA}, - { "new_Dbh",_wrap_new_Dbh}, - { "delete_Dbh", _wrap_delete_Dbh}, - { "Dbh_release", _wrap_Dbh_release}, - { "Dbh_connected", _wrap_Dbh_connected}, - { "Dbh_test_reactive",_wrap_Dbh_test_reactive}, - { "Dbh_query", _wrap_Dbh_query}, - { "Dbh_affected_rows", _wrap_Dbh_affected_rows}, - { "Dbh_load_extension", _wrap_Dbh_load_extension}, {0,0} }; @@ -6760,10 +8115,9 @@ static swig_lua_const_info swig_constants[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ -static void *_p_LUA__SessionTo_p_CoreSession(void *x) { +static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) { return (void *)((CoreSession *) ((LUA::Session *) x)); } -static swig_type_info _swigt__SWIGLUA_FN = {"_SWIGLUA_FN", "SWIGLUA_FN", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0}; static swig_type_info _swigt__p_CoreSession = {"_p_CoreSession", "CoreSession *", 0, 0, (void*)&_wrap_class_CoreSession, 0}; static swig_type_info _swigt__p_DTMF = {"_p_DTMF", "DTMF *", 0, 0, (void*)&_wrap_class_DTMF, 0}; @@ -6772,8 +8126,9 @@ static swig_type_info _swigt__p_EventConsumer = {"_p_EventConsumer", "EventConsu static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (void*)&_wrap_class_IVRMenu, 0}; static swig_type_info _swigt__p_LUA__Dbh = {"_p_LUA__Dbh", "LUA::Dbh *", 0, 0, (void*)&_wrap_class_LUA_Dbh, 0}; static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0}; +static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0}; -static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; +static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0}; @@ -6793,15 +8148,8 @@ static swig_type_info _swigt__p_switch_status_t = {"_p_switch_status_t", "switch static swig_type_info _swigt__p_switch_stream_handle_t = {"_p_switch_stream_handle_t", "switch_stream_handle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_call_cause_t = {"_switch_call_cause_t", "switch_call_cause_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_channel_state_t = {"_switch_channel_state_t", "switch_channel_state_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_event_types_t = {"_switch_event_types_t", "switch_event_types_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_input_type_t = {"_switch_input_type_t", "switch_input_type_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__switch_priority_t = {"_switch_priority_t", "switch_priority_t", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__uint32_t = {"_uint32_t", "uint32_t", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { - &_swigt__SWIGLUA_FN, &_swigt__p_API, &_swigt__p_CoreSession, &_swigt__p_DTMF, @@ -6810,6 +8158,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_IVRMenu, &_swigt__p_LUA__Dbh, &_swigt__p_LUA__Session, + &_swigt__p_SWIGLUA_FN, &_swigt__p_Stream, &_swigt__p_input_callback_state, &_swigt__p_int, @@ -6831,15 +8180,8 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_switch_stream_handle_t, &_swigt__p_uint32_t, &_swigt__p_void, - &_swigt__switch_call_cause_t, - &_swigt__switch_channel_state_t, - &_swigt__switch_event_types_t, - &_swigt__switch_input_type_t, - &_swigt__switch_priority_t, - &_swigt__uint32_t, }; -static swig_cast_info _swigc__SWIGLUA_FN[] = { {&_swigt__SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_API[] = { {&_swigt__p_API, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CoreSession[] = { {&_swigt__p_CoreSession, 0, 0, 0}, {&_swigt__p_LUA__Session, _p_LUA__SessionTo_p_CoreSession, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_DTMF[] = { {&_swigt__p_DTMF, 0, 0, 0},{0, 0, 0, 0}}; @@ -6848,6 +8190,7 @@ static swig_cast_info _swigc__p_EventConsumer[] = { {&_swigt__p_EventConsumer, static swig_cast_info _swigc__p_IVRMenu[] = { {&_swigt__p_IVRMenu, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Dbh[] = { {&_swigt__p_LUA__Dbh, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SWIGLUA_FN[] = { {&_swigt__p_SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_callback_state, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; @@ -6869,15 +8212,8 @@ static swig_cast_info _swigc__p_switch_status_t[] = { {&_swigt__p_switch_status static swig_cast_info _swigc__p_switch_stream_handle_t[] = { {&_swigt__p_switch_stream_handle_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_call_cause_t[] = { {&_swigt__switch_call_cause_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_channel_state_t[] = { {&_swigt__switch_channel_state_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_event_types_t[] = { {&_swigt__switch_event_types_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_input_type_t[] = { {&_swigt__switch_input_type_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__switch_priority_t[] = { {&_swigt__switch_priority_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__uint32_t[] = { {&_swigt__uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { - _swigc__SWIGLUA_FN, _swigc__p_API, _swigc__p_CoreSession, _swigc__p_DTMF, @@ -6886,6 +8222,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_IVRMenu, _swigc__p_LUA__Dbh, _swigc__p_LUA__Session, + _swigc__p_SWIGLUA_FN, _swigc__p_Stream, _swigc__p_input_callback_state, _swigc__p_int, @@ -6907,12 +8244,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_switch_stream_handle_t, _swigc__p_uint32_t, _swigc__p_void, - _swigc__switch_call_cause_t, - _swigc__switch_channel_state_t, - _swigc__switch_event_types_t, - _swigc__switch_input_type_t, - _swigc__switch_priority_t, - _swigc__uint32_t, }; @@ -6932,7 +8263,7 @@ static swig_cast_info *swig_cast_initial[] = { * structures together. * * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop though that array, and handle each type individually. + * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a @@ -6970,32 +8301,58 @@ extern "C" { #define SWIGRUNTIME_DEBUG #endif + SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; - swig_module_info *module_head; - static int init_run = 0; + swig_module_info *module_head, *iter; + int found, init; clientdata = clientdata; - if (init_run) return; - init_run = 1; - - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (module_head) { + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; - } else { - /* This is the first module loaded */ - swig_module.next = &swig_module; - SWIG_SetModule(clientdata, &swig_module); } - + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -7132,73 +8489,56 @@ SWIG_PropagateClientData(void) { /* Forward declaration of where the user's %init{} gets inserted */ +void SWIG_init_user(lua_State* L ); + #ifdef __cplusplus extern "C" { #endif -void SWIG_init_user(lua_State* L ); - /* this is the initialization function - added at the very end of the code - the function is always called SWIG_init, but an eariler #define will rename it + added at the very end of the code + the function is always called SWIG_init, but an eariler #define will rename it */ SWIGEXPORT int SWIG_init(lua_State* L) { - int i; - - /* start with global table */ - lua_pushvalue(L,LUA_GLOBALSINDEX); - - SWIG_InitializeModule((void*)L); - SWIG_PropagateClientData(); - - /* invoke user-specific initialization */ - SWIG_init_user(L); - - /* add a global fn */ - SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /*luaL_openlib(L,NULL,swig_commands,0);*/ - /* all in one */ - /*luaL_openlib(L,SWIG_name,swig_commands,0);*/ - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } - - /* additional registration structs & classes in lua: */ - for (i = 0; swig_types[i]; i++){ - if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); - } - } - - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); - - /* end module */ - /*SWIG_Lua_module_end(L);*/ - lua_pop(L,1); /* tidy stack (remove module table)*/ - lua_pop(L,1); /* tidy stack (remove global table)*/ - - return 1; -} - -/* Lua 5.1 has a different name for importing libraries -luaopen_XXX, where XXX is the name of the module (not capitalised) -this function will allow Lua 5.1 to import correctly. -There is a #define in the wrapper to rename 'SWIG_import' to the correct name -*/ - -SWIGEXPORT int SWIG_import(lua_State* L) -{ - return SWIG_init(L); + int i; + /* start with global table */ + lua_pushvalue(L,LUA_GLOBALSINDEX); + /* SWIG's internal initalisation */ + SWIG_InitializeModule((void*)L); + SWIG_PropagateClientData(); + /* add a global fn */ + SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); + /* begin the module (its a table with the same name as the module) */ + SWIG_Lua_module_begin(L,SWIG_name); + /* add commands/functions */ + for (i = 0; swig_commands[i].name; i++){ + SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); + } + /* add variables */ + for (i = 0; swig_variables[i].name; i++){ + SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); + } + /* set up base class pointers (the hierachy) */ + for (i = 0; swig_types[i]; i++){ + if (swig_types[i]->clientdata){ + SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); + } + } + /* additional registration structs & classes in lua */ + for (i = 0; swig_types[i]; i++){ + if (swig_types[i]->clientdata){ + SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + } + } + /* constants */ + SWIG_Lua_InstallConstants(L,swig_constants); + /* invoke user-specific initialization */ + SWIG_init_user(L); + /* end module */ + lua_pop(L,1); /* tidy stack (remove module table)*/ + lua_pop(L,1); /* tidy stack (remove global table)*/ + return 1; } #ifdef __cplusplus @@ -7206,12 +8546,13 @@ SWIGEXPORT int SWIG_import(lua_State* L) #endif -#ifdef __cplusplus -extern "C" -#endif +const char* SWIG_LUACODE= + ""; + void SWIG_init_user(lua_State* L) { - + /* exec Lua code if applicable */ + SWIG_Lua_dostring(L,SWIG_LUACODE); } #include "mod_lua_extra.c" From 6e588b551b227fc00d562e018fd32b1c34f9c8c3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 28 Apr 2015 16:12:24 -0500 Subject: [PATCH 63/97] FS-7472 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index ece392334c..c1f7272879 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -167,6 +167,9 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t * tech_pvt->mparams.rtp_timeout_sec = profile->rtp_timeout_sec; tech_pvt->mparams.rtp_hold_timeout_sec = profile->rtp_hold_timeout_sec; + if (profile->rtp_digit_delay) { + tech_pvt->mparams.dtmf_delay = profile->rtp_digit_delay; + } switch_media_handle_create(&tech_pvt->media_handle, session, &tech_pvt->mparams); switch_media_handle_set_media_flags(tech_pvt->media_handle, tech_pvt->profile->media_flags); From b90aa23cbd411df706cf679d9a95de2e4b487e54 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 28 Apr 2015 11:59:15 -0500 Subject: [PATCH 64/97] FS-7488: [mod_managed] fix build error --- src/include/switch_utils.h | 2 +- src/mod/languages/mod_managed/freeswitch_wrap.cxx | 4 +--- src/mod/languages/mod_managed/mod_managed.cpp | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 395c1b5e16..120e319838 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -43,7 +43,7 @@ SWITCH_BEGIN_EXTERN_C -#define SWITCH_URL_UNSAFE "\r\n \"#%&+:;<=>?@[\\]^`{|}" +#define SWITCH_URL_UNSAFE "\r\n #%&+:;<=>?@[\\]^`{|}\"" /* https://code.google.com/p/stringencoders/wiki/PerformanceAscii diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 2f848eae91..2bc1b2e868 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -17201,9 +17201,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_URL_UNSAFE_get() { char * jresult ; char *result = 0 ; - result = (char *)("\r\n \"#%&+:;<=>?@[\\]^`{ - | -}"); +result = (char *)("\r\n #%&+:;<=>?@[\\]^`{|}\""); jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } diff --git a/src/mod/languages/mod_managed/mod_managed.cpp b/src/mod/languages/mod_managed/mod_managed.cpp index 6831aec930..bc627483f4 100644 --- a/src/mod/languages/mod_managed/mod_managed.cpp +++ b/src/mod/languages/mod_managed/mod_managed.cpp @@ -100,7 +100,7 @@ SWITCH_MOD_DECLARE_NONSTD(void) InitManagedSession(ManagedSession *session, inpu if (!session) { return; } - session->setDTMFCallback(NULL, ""); + session->setDTMFCallback(NULL, (char *)""); session->setHangupHook(NULL); session->dtmfDelegate = dtmfDelegate; session->hangupDelegate = hangupDelegate; From 5816ddcd39ae3f467caa43681db11b5e54c4a8e7 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 28 Apr 2015 14:38:38 -0400 Subject: [PATCH 65/97] FS-7490 #resolve #comment mod_rayo, srgs to regex transform: latest PCRE doesn't like regex generated by mod_rayo. It requires the group name not to start with a digit. --- src/mod/event_handlers/mod_rayo/srgs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/event_handlers/mod_rayo/srgs.c b/src/mod/event_handlers/mod_rayo/srgs.c index 5eff43f0a4..eaa32a9992 100644 --- a/src/mod/event_handlers/mod_rayo/srgs.c +++ b/src/mod/event_handlers/mod_rayo/srgs.c @@ -1,6 +1,6 @@ /* * mod_rayo for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application - * Copyright (C) 2013-2014, Grasshopper + * Copyright (C) 2013-2015, Grasshopper * * Version: MPL 1.1 * @@ -1005,7 +1005,7 @@ static int create_regexes(struct srgs_grammar *grammar, struct srgs_node *node, struct srgs_node *item = node->child; if (node->value.item.repeat_min != 1 || node->value.item.repeat_max != 1 || node->value.item.tag) { if (node->value.item.tag) { - stream->write_function(stream, "(?P<%d>", node->value.item.tag); + stream->write_function(stream, "(?P", node->value.item.tag); } else { stream->write_function(stream, "%s", "(?:"); } @@ -1310,7 +1310,7 @@ enum srgs_match_type srgs_grammar_match(struct srgs_grammar *grammar, const char for (i = 1; i <= grammar->tag_count; i++) { char substring_name[16] = { 0 }; buffer[0] = '\0'; - snprintf(substring_name, 16, "%d", i); + snprintf(substring_name, 16, "tag%d", i); if (pcre_copy_named_substring(compiled_regex, input, ovector, result, substring_name, buffer, MAX_INPUT_SIZE) != PCRE_ERROR_NOSUBSTRING && !zstr_buf(buffer)) { *interpretation = grammar->tags[i]; break; From 4bd9cdf4232ecb0845ae79d96b6d23fc331683d8 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 28 Apr 2015 16:18:46 -0400 Subject: [PATCH 66/97] FS-7491 #resolve #comment [mod_graylog2] send timestamp with millisecond precision instead of microsecond as required by GELF. --- src/mod/loggers/mod_graylog2/mod_graylog2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/loggers/mod_graylog2/mod_graylog2.c b/src/mod/loggers/mod_graylog2/mod_graylog2.c index 3db5c1fd2f..e27157a689 100644 --- a/src/mod/loggers/mod_graylog2/mod_graylog2.c +++ b/src/mod/loggers/mod_graylog2/mod_graylog2.c @@ -1,6 +1,6 @@ /* * mod_graylog2 for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application - * Copyright (C) 2014, Grasshopper + * Copyright (C) 2014-2015, Grasshopper * * Version: MPL 1.1 * @@ -101,7 +101,7 @@ static char *to_gelf(const switch_log_node_t *node, switch_log_level_t log_level } else if ((hostname = switch_core_get_variable("local_ip_v4")) && !zstr(hostname)) { cJSON_AddItemToObject(gelf, "host", cJSON_CreateString(hostname)); } - switch_snprintf(timestamp, 32, "%"SWITCH_UINT64_T_FMT".%d", (uint64_t)(node->timestamp / 1000000), node->timestamp % 1000000); + switch_snprintf(timestamp, 32, "%"SWITCH_UINT64_T_FMT".%d", (uint64_t)(node->timestamp / 1000000), (node->timestamp % 1000000) / 1000); cJSON_AddItemToObject(gelf, "timestamp", cJSON_CreateString(timestamp)); cJSON_AddItemToObject(gelf, "_microtimestamp", cJSON_CreateNumber(node->timestamp)); cJSON_AddItemToObject(gelf, "level", cJSON_CreateNumber(to_graylog2_level(log_level))); From c143ef1b3d6aa7be62339fb44d427375d4ed6146 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 29 Apr 2015 19:18:59 -0500 Subject: [PATCH 67/97] FS-7466 --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index a3f2e2e95c..81f98585fc 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -5876,10 +5876,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ } } } else { - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_DEBUG, "Correct ip/port confirmed.\n"); if ((rtp_session->rtp_bugs & RTP_BUG_ALWAYS_AUTO_ADJUST)) { switch_rtp_set_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ); } else { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_DEBUG, "Correct ip/port confirmed.\n"); switch_rtp_clear_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ); } rtp_session->auto_adj_used = 0; From 518d74a4bc3ac868bdef25028d851391c4d44286 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 30 Apr 2015 07:35:23 -0500 Subject: [PATCH 68/97] FS-7492 fix copy paste typo --- src/mod/endpoints/mod_sofia/sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index f8ccbd6f67..78a0b58646 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -4303,9 +4303,9 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) } } else if (!strcasecmp(var, "tls-always-nat")) { if (switch_true(val)) { - sofia_set_pflag(profile, PFLAG_TCP_ALWAYS_NAT); + sofia_set_pflag(profile, PFLAG_TLS_ALWAYS_NAT); } else { - sofia_clear_pflag(profile, PFLAG_TCP_ALWAYS_NAT); + sofia_clear_pflag(profile, PFLAG_TLS_ALWAYS_NAT); } } else if (!strcasecmp(var, "presence-proto-lookup")) { if (switch_true(val)) { From b28f7acac166473765ada420988a929961028f86 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 30 Apr 2015 14:24:41 -0400 Subject: [PATCH 69/97] FS-7496 Updated mime.types, added switch_core_mime_type2ext function and used it in mod_httapi. Now, file extensions defined in mime.types will be applied if mod_httapi downloads a file without one. --- conf/curl/mime.types | 1650 ++++++++++++------ conf/insideout/mime.types | 1650 ++++++++++++------ conf/rayo/mime.types | 1650 ++++++++++++------ conf/sbc/mime.types | 1650 ++++++++++++------ conf/vanilla/mime.types | 1650 ++++++++++++------ src/include/private/switch_core_pvt.h | 1 + src/include/switch_core.h | 1 + src/mod/applications/mod_httapi/mod_httapi.c | 7 +- src/switch_core.c | 49 +- 9 files changed, 5724 insertions(+), 2584 deletions(-) diff --git a/conf/curl/mime.types b/conf/curl/mime.types index 34d5fc9055..b680b3327d 100644 --- a/conf/curl/mime.types +++ b/conf/curl/mime.types @@ -1,204 +1,343 @@ -# This is a comment. I love comments. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at . - -# MIME type Extensions -application/activemessage +# +# MIME type configs overriden by the FreeSWITCH project. +# +audio/mpeg mp3 mpga mp2 mp2a m2a m3a +image/jpeg jpg jpeg jpe +# +# Additional MIME types added by the FreeSWITCH project. Any duplicate file extensions listed here will only be +# used to map from MIME -> extension and not extension -> MIME +audio/x-mpeg mp3 +audio/mp3 mp3 +audio/x-mp3 mp3 +audio/mpeg3 mp3 +audio/x-mpeg3 mp3 +audio/mpg mp3 +audio/x-mpegaudio mp3 +audio/x-wave wav +audio/wave wav +# +# The section below was taken from Apache httpd Project at +# +# +# This file maps Internet media types to unique file extension(s). +# Although created for httpd, this file is used by many software systems +# and has been placed in the public domain for unlimited redisribution. +# +# The table below contains both registered and (common) unregistered types. +# A type that has no unique extension can be ignored -- they are listed +# here to guide configurations toward known types and to make it easier to +# identify "new" types. File extensions are also commonly used to indicate +# content languages and encodings, so choose them carefully. +# +# Internet media types should be registered as described in RFC 4288. +# The registry is at . +# +# MIME type (lowercased) Extensions +# ============================================ ========== +# application/1d-interleaved-parityfec +# application/3gpp-ims+xml +# application/activemessage application/andrew-inset ez -application/applefile +# application/applefile +application/applixware aw application/atom+xml atom application/atomcat+xml atomcat -application/atomicmail +# application/atomicmail application/atomsvc+xml atomsvc -application/auth-policy+xml -application/batch-smtp -application/beep+xml -application/cals-1840 +# application/auth-policy+xml +# application/batch-smtp +# application/beep+xml +# application/calendar+xml +# application/cals-1840 +# application/ccmp+xml application/ccxml+xml ccxml -application/cellml+xml -application/cnrp+xml -application/commonground -application/conference-info+xml -application/cpl+xml -application/csta+xml -application/cstadata+xml -application/cybercash +application/cdmi-capability cdmia +application/cdmi-container cdmic +application/cdmi-domain cdmid +application/cdmi-object cdmio +application/cdmi-queue cdmiq +# application/cea-2018+xml +# application/cellml+xml +# application/cfw +# application/cnrp+xml +# application/commonground +# application/conference-info+xml +# application/cpl+xml +# application/csta+xml +# application/cstadata+xml +application/cu-seeme cu +# application/cybercash application/davmount+xml davmount -application/dca-rft -application/dec-dx -application/dialog-info+xml -application/dicom -application/dns -application/dvcs +# application/dca-rft +# application/dec-dx +# application/dialog-info+xml +# application/dicom +# application/dns +application/docbook+xml dbk +# application/dskpp+xml +application/dssc+der dssc +application/dssc+xml xdssc +# application/dvcs application/ecmascript ecma -application/edi-consent -application/edi-x12 -application/edifact -application/epp+xml -application/eshop -application/fastinfoset -application/fastsoap -application/fits +# application/edi-consent +# application/edi-x12 +# application/edifact +application/emma+xml emma +# application/epp+xml +application/epub+zip epub +# application/eshop +# application/example +application/exi exi +# application/fastinfoset +# application/fastsoap +# application/fits application/font-tdpfr pfr -application/h224 -application/http +# application/framework-attributes+xml +application/gml+xml gml +application/gpx+xml gpx +application/gxf gxf +# application/h224 +# application/held+xml +# application/http application/hyperstudio stk -application/iges -application/im-iscomposing+xml -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup +# application/ibe-key-request+xml +# application/ibe-pkg-reply+xml +# application/ibe-pp-data +# application/iges +# application/im-iscomposing+xml +# application/index +# application/index.cmd +# application/index.obj +# application/index.response +# application/index.vnd +application/inkml+xml ink inkml +# application/iotp +application/ipfix ipfix +# application/ipp +# application/isup +application/java-archive jar +application/java-serialized-object ser +application/java-vm class application/javascript js application/json json -application/kpml-request+xml -application/kpml-response+xml +application/jsonml+json jsonml +# application/kpml-request+xml +# application/kpml-response+xml +application/lost+xml lostxml application/mac-binhex40 hqx application/mac-compactpro cpt -application/macwriteii +# application/macwriteii +application/mads+xml mads application/marc mrc +application/marcxml+xml mrcx application/mathematica ma nb mb +# application/mathml-content+xml +# application/mathml-presentation+xml application/mathml+xml mathml -application/mbms-associated-procedure-description+xml -application/mbms-deregister+xml -application/mbms-envelope+xml -application/mbms-msk+xml -application/mbms-msk-response+xml -application/mbms-protection-description+xml -application/mbms-reception-report+xml -application/mbms-register+xml -application/mbms-register-response+xml -application/mbms-user-service-description+xml +# application/mbms-associated-procedure-description+xml +# application/mbms-deregister+xml +# application/mbms-envelope+xml +# application/mbms-msk+xml +# application/mbms-msk-response+xml +# application/mbms-protection-description+xml +# application/mbms-reception-report+xml +# application/mbms-register+xml +# application/mbms-register-response+xml +# application/mbms-user-service-description+xml application/mbox mbox +# application/media_control+xml application/mediaservercontrol+xml mscml -application/mikey +application/metalink+xml metalink +application/metalink4+xml meta4 +application/mets+xml mets +# application/mikey +application/mods+xml mods +# application/moss-keys +# application/moss-signature +# application/mosskey-data +# application/mosskey-request +application/mp21 m21 mp21 application/mp4 mp4s -application/mpeg4-generic -application/mpeg4-iod -application/mpeg4-iod-xmt +# application/mpeg4-generic +# application/mpeg4-iod +# application/mpeg4-iod-xmt +# application/msc-ivr+xml +# application/msc-mixer+xml application/msword doc dot application/mxf mxf -application/nasdata -application/news-message-id -application/news-transmission -application/nss -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc +# application/nasdata +# application/news-checkgroups +# application/news-groupinfo +# application/news-transmission +# application/nss +# application/ocsp-request +# application/ocsp-response +application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy application/oda oda -application/oebps-package+xml -application/ogg ogg -application/parityfec +application/oebps-package+xml opf +application/ogg ogx +application/omdoc+xml omdoc +application/onenote onetoc onetoc2 onetmp onepkg +application/oxps oxps +# application/parityfec +application/patch-ops-error+xml xer application/pdf pdf application/pgp-encrypted pgp -application/pgp-keys +# application/pgp-keys application/pgp-signature asc sig application/pics-rules prf -application/pidf+xml +# application/pidf+xml +# application/pidf-diff+xml application/pkcs10 p10 application/pkcs7-mime p7m p7c application/pkcs7-signature p7s +application/pkcs8 p8 +application/pkix-attr-cert ac application/pkix-cert cer application/pkix-crl crl application/pkix-pkipath pkipath application/pkixcmp pki application/pls+xml pls -application/poc-settings+xml +# application/poc-settings+xml application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet +# application/prs.alvestrand.titrax-sheet application/prs.cww cww -application/prs.nprend -application/prs.plucker -application/qsig +# application/prs.nprend +# application/prs.plucker +# application/prs.rdf-xml-crypt +# application/prs.xsf+xml +application/pskc+xml pskcxml +# application/qsig application/rdf+xml rdf application/reginfo+xml rif application/relax-ng-compact-syntax rnc -application/remote-printing +# application/remote-printing application/resource-lists+xml rl -application/riscos -application/rlmi+xml +application/resource-lists-diff+xml rld +# application/riscos +# application/rlmi+xml application/rls-services+xml rs +application/rpki-ghostbusters gbr +application/rpki-manifest mft +application/rpki-roa roa +# application/rpki-updown application/rsd+xml rsd application/rss+xml rss application/rtf rtf -application/rtx -application/samlassertion+xml -application/samlmetadata+xml +# application/rtx +# application/samlassertion+xml +# application/samlmetadata+xml application/sbml+xml sbml +application/scvp-cv-request scq +application/scvp-cv-response scs +application/scvp-vp-request spq +application/scvp-vp-response spp application/sdp sdp -application/set-payment +# application/set-payment application/set-payment-initiation setpay -application/set-registration +# application/set-registration application/set-registration-initiation setreg -application/sgml -application/sgml-open-catalog +# application/sgml +# application/sgml-open-catalog application/shf+xml shf -application/sieve -application/simple-filter+xml -application/simple-message-summary -application/simplesymbolcontainer -application/slate -application/smil +# application/sieve +# application/simple-filter+xml +# application/simple-message-summary +# application/simplesymbolcontainer +# application/slate +# application/smil application/smil+xml smi smil -application/soap+fastinfoset -application/soap+xml -application/spirits-event+xml +# application/soap+fastinfoset +# application/soap+xml +application/sparql-query rq +application/sparql-results+xml srx +# application/spirits-event+xml application/srgs gram application/srgs+xml grxml +application/sru+xml sru +application/ssdl+xml ssdl application/ssml+xml ssml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vividence.scriptfile -application/vnd.3gpp.bsf+xml +# application/tamp-apex-update +# application/tamp-apex-update-confirm +# application/tamp-community-update +# application/tamp-community-update-confirm +# application/tamp-error +# application/tamp-sequence-adjust +# application/tamp-sequence-adjust-confirm +# application/tamp-status-query +# application/tamp-status-response +# application/tamp-update +# application/tamp-update-confirm +application/tei+xml tei teicorpus +application/thraud+xml tfi +# application/timestamp-query +# application/timestamp-reply +application/timestamped-data tsd +# application/tve-trigger +# application/ulpfec +# application/vcard+xml +# application/vemmi +# application/vividence.scriptfile +# application/vnd.3gpp.bsf+xml application/vnd.3gpp.pic-bw-large plb application/vnd.3gpp.pic-bw-small psb application/vnd.3gpp.pic-bw-var pvb -application/vnd.3gpp.sms -application/vnd.3gpp2.bcmcsinfo+xml -application/vnd.3gpp2.sms +# application/vnd.3gpp.sms +# application/vnd.3gpp2.bcmcsinfo+xml +# application/vnd.3gpp2.sms +application/vnd.3gpp2.tcap tcap application/vnd.3m.post-it-notes pwn application/vnd.accpac.simply.aso aso application/vnd.accpac.simply.imp imp application/vnd.acucobol acu application/vnd.acucorp atc acutc +application/vnd.adobe.air-application-installer-package+zip air +application/vnd.adobe.formscentral.fcdt fcdt +application/vnd.adobe.fxp fxp fxpl +# application/vnd.adobe.partial-upload application/vnd.adobe.xdp+xml xdp application/vnd.adobe.xfdf xfdf -application/vnd.aether.imp +# application/vnd.aether.imp +# application/vnd.ah-barcode +application/vnd.ahead.space ahead +application/vnd.airzip.filesecure.azf azf +application/vnd.airzip.filesecure.azs azs +application/vnd.amazon.ebook azw +application/vnd.americandynamics.acc acc application/vnd.amiga.ami ami +# application/vnd.amundsen.maze+xml +application/vnd.android.package-archive apk application/vnd.anser-web-certificate-issue-initiation cii application/vnd.anser-web-funds-transfer-initiation fti application/vnd.antix.game-component atx application/vnd.apple.installer+xml mpkg +application/vnd.apple.mpegurl m3u8 +# application/vnd.arastra.swi +application/vnd.aristanetworks.swi swi +application/vnd.astraea-software.iota iota application/vnd.audiograph aep -application/vnd.autopackage -application/vnd.avistar+xml +# application/vnd.autopackage +# application/vnd.avistar+xml application/vnd.blueice.multipass mpm +# application/vnd.bluetooth.ep.oob application/vnd.bmi bmi application/vnd.businessobjects rep -application/vnd.cab-jscript -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cendio.thinlinc.clientconf +# application/vnd.cab-jscript +# application/vnd.canon-cpdl +# application/vnd.canon-lips +# application/vnd.cendio.thinlinc.clientconf application/vnd.chemdraw+xml cdxml application/vnd.chipnuts.karaoke-mmd mmd application/vnd.cinderella cdy -application/vnd.cirpack.isdn-ext +# application/vnd.cirpack.isdn-ext application/vnd.claymore cla +application/vnd.cloanto.rp9 rp9 application/vnd.clonk.c4group c4g c4d c4f c4p c4u -application/vnd.commerce-battelle -application/vnd.commonspace csp cst +application/vnd.cluetrust.cartomobile-config c11amc +application/vnd.cluetrust.cartomobile-config-pkg c11amz +# application/vnd.collection+json +# application/vnd.commerce-battelle +application/vnd.commonspace csp application/vnd.contact.cmsg cdbcmsg application/vnd.cosmocaller cmc application/vnd.crick.clicker clkx @@ -208,46 +347,100 @@ application/vnd.crick.clicker.template clkt application/vnd.crick.clicker.wordbank clkw application/vnd.criticaltools.wbs+xml wbs application/vnd.ctc-posml pml -application/vnd.cups-pdf -application/vnd.cups-postscript +# application/vnd.ctct.ws+xml +# application/vnd.cups-pdf +# application/vnd.cups-postscript application/vnd.cups-ppd ppd -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl curl -application/vnd.cybank +# application/vnd.cups-raster +# application/vnd.cups-raw +# application/vnd.curl +application/vnd.curl.car car +application/vnd.curl.pcurl pcurl +# application/vnd.cybank +application/vnd.dart dart application/vnd.data-vision.rdz rdz +application/vnd.dece.data uvf uvvf uvd uvvd +application/vnd.dece.ttml+xml uvt uvvt +application/vnd.dece.unspecified uvx uvvx +application/vnd.dece.zip uvz uvvz application/vnd.denovo.fcselayout-link fe_launch +# application/vnd.dir-bi.plate-dl-nosuffix application/vnd.dna dna application/vnd.dolby.mlp mlp +# application/vnd.dolby.mobile.1 +# application/vnd.dolby.mobile.2 application/vnd.dpgraph dpg application/vnd.dreamfactory dfac -application/vnd.dvb.esgcontainer -application/vnd.dvb.ipdcesgaccess -application/vnd.dxr -application/vnd.ecdis-update +application/vnd.ds-keypoint kpxx +application/vnd.dvb.ait ait +# application/vnd.dvb.dvbj +# application/vnd.dvb.esgcontainer +# application/vnd.dvb.ipdcdftnotifaccess +# application/vnd.dvb.ipdcesgaccess +# application/vnd.dvb.ipdcesgaccess2 +# application/vnd.dvb.ipdcesgpdd +# application/vnd.dvb.ipdcroaming +# application/vnd.dvb.iptv.alfec-base +# application/vnd.dvb.iptv.alfec-enhancement +# application/vnd.dvb.notif-aggregate-root+xml +# application/vnd.dvb.notif-container+xml +# application/vnd.dvb.notif-generic+xml +# application/vnd.dvb.notif-ia-msglist+xml +# application/vnd.dvb.notif-ia-registration-request+xml +# application/vnd.dvb.notif-ia-registration-response+xml +# application/vnd.dvb.notif-init+xml +# application/vnd.dvb.pfr +application/vnd.dvb.service svc +# application/vnd.dxr +application/vnd.dynageo geo +# application/vnd.easykaraoke.cdgdownload +# application/vnd.ecdis-update application/vnd.ecowin.chart mag -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate +# application/vnd.ecowin.filerequest +# application/vnd.ecowin.fileupdate +# application/vnd.ecowin.series +# application/vnd.ecowin.seriesrequest +# application/vnd.ecowin.seriesupdate +# application/vnd.emclient.accessrequest+xml application/vnd.enliven nml +# application/vnd.eprints.data+xml application/vnd.epson.esf esf application/vnd.epson.msf msf application/vnd.epson.quickanime qam application/vnd.epson.salt slt application/vnd.epson.ssf ssf -application/vnd.ericsson.quickcall +# application/vnd.ericsson.quickcall application/vnd.eszigno3+xml es3 et3 -application/vnd.eudora.data +# application/vnd.etsi.aoc+xml +# application/vnd.etsi.cug+xml +# application/vnd.etsi.iptvcommand+xml +# application/vnd.etsi.iptvdiscovery+xml +# application/vnd.etsi.iptvprofile+xml +# application/vnd.etsi.iptvsad-bc+xml +# application/vnd.etsi.iptvsad-cod+xml +# application/vnd.etsi.iptvsad-npvr+xml +# application/vnd.etsi.iptvservice+xml +# application/vnd.etsi.iptvsync+xml +# application/vnd.etsi.iptvueprofile+xml +# application/vnd.etsi.mcid+xml +# application/vnd.etsi.overload-control-policy-dataset+xml +# application/vnd.etsi.sci+xml +# application/vnd.etsi.simservs+xml +# application/vnd.etsi.tsl+xml +# application/vnd.etsi.tsl.der +# application/vnd.eudora.data application/vnd.ezpix-album ez2 application/vnd.ezpix-package ez3 +# application/vnd.f-secure.mobile application/vnd.fdf fdf -application/vnd.ffsns -application/vnd.fints +application/vnd.fdsn.mseed mseed +application/vnd.fdsn.seed seed dataless +# application/vnd.ffsns +# application/vnd.fints application/vnd.flographit gph application/vnd.fluxtime.clip ftc -application/vnd.framemaker fm frame maker +# application/vnd.font-fontforge-sfd +application/vnd.framemaker fm frame maker book application/vnd.frogans.fnc fnc application/vnd.frogans.ltf ltf application/vnd.fsc.weblaunch fsc @@ -256,19 +449,29 @@ application/vnd.fujitsu.oasys2 oa2 application/vnd.fujitsu.oasys3 oa3 application/vnd.fujitsu.oasysgp fg5 application/vnd.fujitsu.oasysprs bh2 -application/vnd.fujixerox.art-ex -application/vnd.fujixerox.art4 -application/vnd.fujixerox.hbpl +# application/vnd.fujixerox.art-ex +# application/vnd.fujixerox.art4 +# application/vnd.fujixerox.hbpl application/vnd.fujixerox.ddd ddd application/vnd.fujixerox.docuworks xdw application/vnd.fujixerox.docuworks.binder xbd -application/vnd.fut-misnet +# application/vnd.fut-misnet application/vnd.fuzzysheet fzs application/vnd.genomatix.tuxedo txd +# application/vnd.geocube+xml +application/vnd.geogebra.file ggb +application/vnd.geogebra.tool ggt +application/vnd.geometry-explorer gex gre +application/vnd.geonext gxt +application/vnd.geoplan g2w +application/vnd.geospace g3w +# application/vnd.globalplatform.card-content-mgt +# application/vnd.globalplatform.card-content-mgt-response +application/vnd.gmx gmx application/vnd.google-earth.kml+xml kml application/vnd.google-earth.kmz kmz application/vnd.grafeq gqf gqs -application/vnd.gridmp +# application/vnd.gridmp application/vnd.groove-account gac application/vnd.groove-help ghf application/vnd.groove-identity-message gim @@ -276,9 +479,11 @@ application/vnd.groove-injector grv application/vnd.groove-tool-message gtm application/vnd.groove-tool-template tpl application/vnd.groove-vcard vcg +# application/vnd.hal+json +application/vnd.hal+xml hal application/vnd.handheld-entertainment+xml zmm application/vnd.hbci hbci -application/vnd.hcl-bireports +# application/vnd.hcl-bireports application/vnd.hhe.lesson-player les application/vnd.hp-hpgl hpgl application/vnd.hp-hpid hpid @@ -286,37 +491,53 @@ application/vnd.hp-hps hps application/vnd.hp-jlyt jlt application/vnd.hp-pcl pcl application/vnd.hp-pclxl pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword x3d -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media +# application/vnd.httphone +application/vnd.hydrostatix.sof-data sfd-hdstx +# application/vnd.hzn-3d-crossword +# application/vnd.ibm.afplinedata +# application/vnd.ibm.electronic-media application/vnd.ibm.minipay mpy application/vnd.ibm.modcap afp listafp list3820 application/vnd.ibm.rights-management irm application/vnd.ibm.secure-container sc +application/vnd.iccprofile icc icm application/vnd.igloader igl application/vnd.immervision-ivp ivp application/vnd.immervision-ivu ivu -application/vnd.informedcontrol.rms+xml +# application/vnd.informedcontrol.rms+xml +# application/vnd.informix-visionary +# application/vnd.infotech.project +# application/vnd.infotech.project+xml +# application/vnd.innopath.wamp.notification +application/vnd.insors.igm igm application/vnd.intercon.formnet xpw xpx -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp +application/vnd.intergeo i2g +# application/vnd.intertrust.digibox +# application/vnd.intertrust.nncp application/vnd.intu.qbo qbo application/vnd.intu.qfx qfx +# application/vnd.iptc.g2.conceptitem+xml +# application/vnd.iptc.g2.knowledgeitem+xml +# application/vnd.iptc.g2.newsitem+xml +# application/vnd.iptc.g2.newsmessage+xml +# application/vnd.iptc.g2.packageitem+xml +# application/vnd.iptc.g2.planningitem+xml application/vnd.ipunplugged.rcprofile rcprofile application/vnd.irepository.package+xml irp application/vnd.is-xpr xpr +application/vnd.isac.fcs fcs application/vnd.jam jam -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup +# application/vnd.japannet-directory-service +# application/vnd.japannet-jpnstore-wakeup +# application/vnd.japannet-payment-wakeup +# application/vnd.japannet-registration +# application/vnd.japannet-registration-wakeup +# application/vnd.japannet-setstore-wakeup +# application/vnd.japannet-verification +# application/vnd.japannet-verification-wakeup application/vnd.jcp.javame.midlet-rms rms application/vnd.jisp jisp +application/vnd.joost.joda-archive joda application/vnd.kahootz ktz ktr application/vnd.kde.karbon karbon application/vnd.kde.kchart chrt @@ -330,7 +551,9 @@ application/vnd.kenameaapp htke application/vnd.kidspiration kia application/vnd.kinar kne knp application/vnd.koan skp skd skt skm -application/vnd.liberty-request+xml +application/vnd.kodak-descriptor sse +application/vnd.las.las+xml lasxml +# application/vnd.liberty-request+xml application/vnd.llamagraphics.life-balance.desktop lbd application/vnd.llamagraphics.life-balance.exchange+xml lbe application/vnd.lotus-1-2-3 123 @@ -341,20 +564,21 @@ application/vnd.lotus-organizer org application/vnd.lotus-screencam scm application/vnd.lotus-wordpro lwp application/vnd.macports.portpkg portpkg -application/vnd.marlin.drm.actiontoken+xml -application/vnd.marlin.drm.conftoken+xml -application/vnd.marlin.drm.mdcf +# application/vnd.marlin.drm.actiontoken+xml +# application/vnd.marlin.drm.conftoken+xml +# application/vnd.marlin.drm.license+xml +# application/vnd.marlin.drm.mdcf application/vnd.mcd mcd application/vnd.medcalcdata mc1 application/vnd.mediastation.cdkey cdkey -application/vnd.meridian-slingshot +# application/vnd.meridian-slingshot application/vnd.mfer mwf application/vnd.mfmp mfm application/vnd.micrografx.flo flo application/vnd.micrografx.igx igx application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb +# application/vnd.minisoft-hp3000-save +# application/vnd.mitsubishi.misty-guard.trustweb application/vnd.mobius.daf daf application/vnd.mobius.dis dis application/vnd.mobius.mbk mbk @@ -364,149 +588,312 @@ application/vnd.mobius.plc plc application/vnd.mobius.txf txf application/vnd.mophun.application mpn application/vnd.mophun.certificate mpc -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul +# application/vnd.motorola.flexsuite +# application/vnd.motorola.flexsuite.adsi +# application/vnd.motorola.flexsuite.fis +# application/vnd.motorola.flexsuite.gotap +# application/vnd.motorola.flexsuite.kmr +# application/vnd.motorola.flexsuite.ttc +# application/vnd.motorola.flexsuite.wem +# application/vnd.motorola.iprm +application/vnd.mozilla.xul+xml xul application/vnd.ms-artgalry cil -application/vnd.ms-asf asf +# application/vnd.ms-asf application/vnd.ms-cab-compressed cab +# application/vnd.ms-color.iccprofile application/vnd.ms-excel xls xlm xla xlc xlt xlw +application/vnd.ms-excel.addin.macroenabled.12 xlam +application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb +application/vnd.ms-excel.sheet.macroenabled.12 xlsm +application/vnd.ms-excel.template.macroenabled.12 xltm application/vnd.ms-fontobject eot application/vnd.ms-htmlhelp chm application/vnd.ms-ims ims application/vnd.ms-lrm lrm -application/vnd.ms-playready.initiator+xml +# application/vnd.ms-office.activex+xml +application/vnd.ms-officetheme thmx +# application/vnd.ms-opentype +# application/vnd.ms-package.obfuscated-opentype +application/vnd.ms-pki.seccat cat +application/vnd.ms-pki.stl stl +# application/vnd.ms-playready.initiator+xml application/vnd.ms-powerpoint ppt pps pot +application/vnd.ms-powerpoint.addin.macroenabled.12 ppam +application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm +application/vnd.ms-powerpoint.slide.macroenabled.12 sldm +application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm +application/vnd.ms-powerpoint.template.macroenabled.12 potm +# application/vnd.ms-printing.printticket+xml application/vnd.ms-project mpp mpt -application/vnd.ms-tnef -application/vnd.ms-wmdrm.lic-chlg-req -application/vnd.ms-wmdrm.lic-resp -application/vnd.ms-wmdrm.meter-chlg-req -application/vnd.ms-wmdrm.meter-resp +# application/vnd.ms-tnef +# application/vnd.ms-wmdrm.lic-chlg-req +# application/vnd.ms-wmdrm.lic-resp +# application/vnd.ms-wmdrm.meter-chlg-req +# application/vnd.ms-wmdrm.meter-resp +application/vnd.ms-word.document.macroenabled.12 docm +application/vnd.ms-word.template.macroenabled.12 dotm application/vnd.ms-works wps wks wcm wdb application/vnd.ms-wpl wpl application/vnd.ms-xpsdocument xps application/vnd.mseq mseq -application/vnd.msign -application/vnd.music-niff +# application/vnd.msign +# application/vnd.multiad.creator +# application/vnd.multiad.creator.cif +# application/vnd.music-niff application/vnd.musician mus -application/vnd.ncd.control -application/vnd.nervana -application/vnd.netfpx +application/vnd.muvee.style msty +application/vnd.mynfc taglet +# application/vnd.ncd.control +# application/vnd.ncd.reference +# application/vnd.nervana +# application/vnd.netfpx application/vnd.neurolanguage.nlu nlu +application/vnd.nitf ntf nitf application/vnd.noblenet-directory nnd application/vnd.noblenet-sealer nns application/vnd.noblenet-web nnw -application/vnd.nokia.catalogs -application/vnd.nokia.conml+wbxml -application/vnd.nokia.conml+xml -application/vnd.nokia.isds-radio-presets -application/vnd.nokia.iptv.config+xml -application/vnd.nokia.landmark+wbxml -application/vnd.nokia.landmark+xml -application/vnd.nokia.landmarkcollection+xml -application/vnd.nokia.n-gage.ac+xml +# application/vnd.nokia.catalogs +# application/vnd.nokia.conml+wbxml +# application/vnd.nokia.conml+xml +# application/vnd.nokia.isds-radio-presets +# application/vnd.nokia.iptv.config+xml +# application/vnd.nokia.landmark+wbxml +# application/vnd.nokia.landmark+xml +# application/vnd.nokia.landmarkcollection+xml +# application/vnd.nokia.n-gage.ac+xml application/vnd.nokia.n-gage.data ngdat application/vnd.nokia.n-gage.symbian.install n-gage -application/vnd.nokia.ncd -application/vnd.nokia.pcd+wbxml -application/vnd.nokia.pcd+xml +# application/vnd.nokia.ncd +# application/vnd.nokia.pcd+wbxml +# application/vnd.nokia.pcd+xml application/vnd.nokia.radio-preset rpst application/vnd.nokia.radio-presets rpss application/vnd.novadigm.edm edm application/vnd.novadigm.edx edx application/vnd.novadigm.ext ext +# application/vnd.ntt-local.file-transfer +# application/vnd.ntt-local.sip-ta_remote +# application/vnd.ntt-local.sip-ta_tcp_stream application/vnd.oasis.opendocument.chart odc application/vnd.oasis.opendocument.chart-template otc +application/vnd.oasis.opendocument.database odb application/vnd.oasis.opendocument.formula odf -application/vnd.oasis.opendocument.formula-template otf +application/vnd.oasis.opendocument.formula-template odft application/vnd.oasis.opendocument.graphics odg application/vnd.oasis.opendocument.graphics-template otg application/vnd.oasis.opendocument.image odi application/vnd.oasis.opendocument.image-template oti application/vnd.oasis.opendocument.presentation odp -application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.presentation-template otp application/vnd.oasis.opendocument.spreadsheet ods application/vnd.oasis.opendocument.spreadsheet-template ots application/vnd.oasis.opendocument.text odt -application/vnd.oasis.opendocument.text-master otm +application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth -application/vnd.obn +# application/vnd.obn +# application/vnd.oftn.l10n+json +# application/vnd.oipf.contentaccessdownload+xml +# application/vnd.oipf.contentaccessstreaming+xml +# application/vnd.oipf.cspg-hexbinary +# application/vnd.oipf.dae.svg+xml +# application/vnd.oipf.dae.xhtml+xml +# application/vnd.oipf.mippvcontrolmessage+xml +# application/vnd.oipf.pae.gem +# application/vnd.oipf.spdiscovery+xml +# application/vnd.oipf.spdlist+xml +# application/vnd.oipf.ueprofile+xml +# application/vnd.oipf.userprofile+xml application/vnd.olpc-sugar xo -application/vnd.oma-scws-config -application/vnd.oma-scws-http-request -application/vnd.oma-scws-http-response -application/vnd.oma.bcast.associated-procedure-parameter+xml -application/vnd.oma.bcast.drm-trigger+xml -application/vnd.oma.bcast.imd+xml -application/vnd.oma.bcast.notification+xml -application/vnd.oma.bcast.sgboot -application/vnd.oma.bcast.sgdd+xml -application/vnd.oma.bcast.sgdu -application/vnd.oma.bcast.simple-symbol-container -application/vnd.oma.bcast.smartcard-trigger+xml -application/vnd.oma.bcast.sprov+xml +# application/vnd.oma-scws-config +# application/vnd.oma-scws-http-request +# application/vnd.oma-scws-http-response +# application/vnd.oma.bcast.associated-procedure-parameter+xml +# application/vnd.oma.bcast.drm-trigger+xml +# application/vnd.oma.bcast.imd+xml +# application/vnd.oma.bcast.ltkm +# application/vnd.oma.bcast.notification+xml +# application/vnd.oma.bcast.provisioningtrigger +# application/vnd.oma.bcast.sgboot +# application/vnd.oma.bcast.sgdd+xml +# application/vnd.oma.bcast.sgdu +# application/vnd.oma.bcast.simple-symbol-container +# application/vnd.oma.bcast.smartcard-trigger+xml +# application/vnd.oma.bcast.sprov+xml +# application/vnd.oma.bcast.stkm +# application/vnd.oma.cab-address-book+xml +# application/vnd.oma.cab-feature-handler+xml +# application/vnd.oma.cab-pcc+xml +# application/vnd.oma.cab-user-prefs+xml +# application/vnd.oma.dcd +# application/vnd.oma.dcdc application/vnd.oma.dd2+xml dd2 -application/vnd.oma.drm.risd+xml -application/vnd.oma.group-usage-list+xml -application/vnd.oma.poc.groups+xml -application/vnd.oma.xcap-directory+xml -application/vnd.omads-email+xml -application/vnd.omads-file+xml -application/vnd.omads-folder+xml -application/vnd.omaloc-supl-init +# application/vnd.oma.drm.risd+xml +# application/vnd.oma.group-usage-list+xml +# application/vnd.oma.pal+xml +# application/vnd.oma.poc.detailed-progress-report+xml +# application/vnd.oma.poc.final-report+xml +# application/vnd.oma.poc.groups+xml +# application/vnd.oma.poc.invocation-descriptor+xml +# application/vnd.oma.poc.optimized-progress-report+xml +# application/vnd.oma.push +# application/vnd.oma.scidm.messages+xml +# application/vnd.oma.xcap-directory+xml +# application/vnd.omads-email+xml +# application/vnd.omads-file+xml +# application/vnd.omads-folder+xml +# application/vnd.omaloc-supl-init application/vnd.openofficeorg.extension oxt -application/vnd.osa.netdeploy +# application/vnd.openxmlformats-officedocument.custom-properties+xml +# application/vnd.openxmlformats-officedocument.customxmlproperties+xml +# application/vnd.openxmlformats-officedocument.drawing+xml +# application/vnd.openxmlformats-officedocument.drawingml.chart+xml +# application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml +# application/vnd.openxmlformats-officedocument.extended-properties+xml +# application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml +# application/vnd.openxmlformats-officedocument.presentationml.comments+xml +# application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx +# application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.presprops+xml +application/vnd.openxmlformats-officedocument.presentationml.slide sldx +# application/vnd.openxmlformats-officedocument.presentationml.slide+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx +# application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml +# application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml +# application/vnd.openxmlformats-officedocument.presentationml.tags+xml +application/vnd.openxmlformats-officedocument.presentationml.template potx +# application/vnd.openxmlformats-officedocument.presentationml.template.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx +# application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml +# application/vnd.openxmlformats-officedocument.theme+xml +# application/vnd.openxmlformats-officedocument.themeoverride+xml +# application/vnd.openxmlformats-officedocument.vmldrawing +# application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx +# application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml +# application/vnd.openxmlformats-package.core-properties+xml +# application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml +# application/vnd.openxmlformats-package.relationships+xml +# application/vnd.quobject-quoxdocument +# application/vnd.osa.netdeploy +application/vnd.osgeo.mapguide.package mgp +# application/vnd.osgi.bundle application/vnd.osgi.dp dp -application/vnd.otps.ct-kip+xml -application/vnd.palm prc pdb pqa oprc -application/vnd.paos.xml +application/vnd.osgi.subsystem esa +# application/vnd.otps.ct-kip+xml +application/vnd.palm pdb pqa oprc +# application/vnd.paos.xml +application/vnd.pawaafile paw application/vnd.pg.format str application/vnd.pg.osasli ei6 -application/vnd.piaccess.application-licence +# application/vnd.piaccess.application-licence application/vnd.picsel efif -application/vnd.poc.group-advertisement+xml +application/vnd.pmi.widget wg +# application/vnd.poc.group-advertisement+xml application/vnd.pocketlearn plf application/vnd.powerbuilder6 pbd -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.preminet +# application/vnd.powerbuilder6-s +# application/vnd.powerbuilder7 +# application/vnd.powerbuilder7-s +# application/vnd.powerbuilder75 +# application/vnd.powerbuilder75-s +# application/vnd.preminet application/vnd.previewsystems.box box application/vnd.proteus.magazine mgz application/vnd.publishare-delta-tree qps application/vnd.pvi.ptid1 ptid -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.qualcomm.brew-app-res +# application/vnd.pwg-multiplexed +# application/vnd.pwg-xhtml-print+xml +# application/vnd.qualcomm.brew-app-res application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb -application/vnd.rapid +# application/vnd.radisys.moml+xml +# application/vnd.radisys.msml+xml +# application/vnd.radisys.msml-audit+xml +# application/vnd.radisys.msml-audit-conf+xml +# application/vnd.radisys.msml-audit-conn+xml +# application/vnd.radisys.msml-audit-dialog+xml +# application/vnd.radisys.msml-audit-stream+xml +# application/vnd.radisys.msml-conf+xml +# application/vnd.radisys.msml-dialog+xml +# application/vnd.radisys.msml-dialog-base+xml +# application/vnd.radisys.msml-dialog-fax-detect+xml +# application/vnd.radisys.msml-dialog-fax-sendrecv+xml +# application/vnd.radisys.msml-dialog-group+xml +# application/vnd.radisys.msml-dialog-speech+xml +# application/vnd.radisys.msml-dialog-transform+xml +# application/vnd.rainstor.data +# application/vnd.rapid +application/vnd.realvnc.bed bed application/vnd.recordare.musicxml mxl -application/vnd.recordare.musicxml+xml -application/vnd.renlearn.rlprint +application/vnd.recordare.musicxml+xml musicxml +# application/vnd.renlearn.rlprint +application/vnd.rig.cryptonote cryptonote +application/vnd.rim.cod cod application/vnd.rn-realmedia rm -application/vnd.ruckus.download -application/vnd.s3sms -application/vnd.scribus -application/vnd.sealed.3df -application/vnd.sealed.csf -application/vnd.sealed.doc -application/vnd.sealed.eml -application/vnd.sealed.mht -application/vnd.sealed.net -application/vnd.sealed.ppt -application/vnd.sealed.tiff -application/vnd.sealed.xls -application/vnd.sealedmedia.softseal.html -application/vnd.sealedmedia.softseal.pdf +application/vnd.rn-realmedia-vbr rmvb +application/vnd.route66.link66+xml link66 +# application/vnd.rs-274x +# application/vnd.ruckus.download +# application/vnd.s3sms +application/vnd.sailingtracker.track st +# application/vnd.sbm.cid +# application/vnd.sbm.mid2 +# application/vnd.scribus +# application/vnd.sealed.3df +# application/vnd.sealed.csf +# application/vnd.sealed.doc +# application/vnd.sealed.eml +# application/vnd.sealed.mht +# application/vnd.sealed.net +# application/vnd.sealed.ppt +# application/vnd.sealed.tiff +# application/vnd.sealed.xls +# application/vnd.sealedmedia.softseal.html +# application/vnd.sealedmedia.softseal.pdf application/vnd.seemail see application/vnd.sema sema application/vnd.semd semd @@ -517,292 +904,456 @@ application/vnd.shana.informed.interchange iif application/vnd.shana.informed.package ipk application/vnd.simtech-mindmapper twd twds application/vnd.smaf mmf +# application/vnd.smart.notebook +application/vnd.smart.teacher teacher +# application/vnd.software602.filler.form+xml +# application/vnd.software602.filler.form-xml-zip application/vnd.solent.sdkm+xml sdkm sdkd application/vnd.spotfire.dxp dxp application/vnd.spotfire.sfs sfs -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.sun.wadl+xml +# application/vnd.sss-cod +# application/vnd.sss-dtf +# application/vnd.sss-ntf +application/vnd.stardivision.calc sdc +application/vnd.stardivision.draw sda +application/vnd.stardivision.impress sdd +application/vnd.stardivision.math smf +application/vnd.stardivision.writer sdw vor +application/vnd.stardivision.writer-global sgl +application/vnd.stepmania.package smzip +application/vnd.stepmania.stepchart sm +# application/vnd.street-stream +application/vnd.sun.xml.calc sxc +application/vnd.sun.xml.calc.template stc +application/vnd.sun.xml.draw sxd +application/vnd.sun.xml.draw.template std +application/vnd.sun.xml.impress sxi +application/vnd.sun.xml.impress.template sti +application/vnd.sun.xml.math sxm +application/vnd.sun.xml.writer sxw +application/vnd.sun.xml.writer.global sxg +application/vnd.sun.xml.writer.template stw +# application/vnd.sun.wadl+xml application/vnd.sus-calendar sus susp application/vnd.svd svd -application/vnd.swiftview-ics +# application/vnd.swiftview-ics +application/vnd.symbian.install sis sisx application/vnd.syncml+xml xsm application/vnd.syncml.dm+wbxml bdm application/vnd.syncml.dm+xml xdm -application/vnd.syncml.ds.notification +# application/vnd.syncml.dm.notification +# application/vnd.syncml.ds.notification application/vnd.tao.intent-module-archive tao +application/vnd.tcpdump.pcap pcap cap dmp application/vnd.tmobile-livetv tmo application/vnd.trid.tpt tpt application/vnd.triscape.mxs mxs application/vnd.trueapp tra -application/vnd.truedoc +# application/vnd.truedoc +# application/vnd.ubisoft.webplayer application/vnd.ufdl ufd ufdl application/vnd.uiq.theme utz application/vnd.umajin umj application/vnd.unity unityweb application/vnd.uoml+xml uoml -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal +# application/vnd.uplanet.alert +# application/vnd.uplanet.alert-wbxml +# application/vnd.uplanet.bearer-choice +# application/vnd.uplanet.bearer-choice-wbxml +# application/vnd.uplanet.cacheop +# application/vnd.uplanet.cacheop-wbxml +# application/vnd.uplanet.channel +# application/vnd.uplanet.channel-wbxml +# application/vnd.uplanet.list +# application/vnd.uplanet.list-wbxml +# application/vnd.uplanet.listcmd +# application/vnd.uplanet.listcmd-wbxml +# application/vnd.uplanet.signal application/vnd.vcx vcx -application/vnd.vd-study -application/vnd.vectorworks -application/vnd.vidsoft.vidconference +# application/vnd.vd-study +# application/vnd.vectorworks +# application/vnd.verimatrix.vcas +# application/vnd.vidsoft.vidconference application/vnd.visio vsd vst vss vsw application/vnd.visionary vis -application/vnd.vividence.scriptfile +# application/vnd.vividence.scriptfile application/vnd.vsf vsf -application/vnd.wap.sic -application/vnd.wap.slc +# application/vnd.wap.sic +# application/vnd.wap.slc application/vnd.wap.wbxml wbxml application/vnd.wap.wmlc wmlc application/vnd.wap.wmlscriptc wmlsc application/vnd.webturbo wtb -application/vnd.wfa.wsc +# application/vnd.wfa.wsc +# application/vnd.wmc +# application/vnd.wmf.bootstrap +# application/vnd.wolfram.mathematica +# application/vnd.wolfram.mathematica.package +application/vnd.wolfram.player nbp application/vnd.wordperfect wpd application/vnd.wqd wqd -application/vnd.wrq-hp3000-labelled +# application/vnd.wrq-hp3000-labelled application/vnd.wt.stf stf -application/vnd.wv.csp+wbxml -application/vnd.wv.csp+xml -application/vnd.wv.ssp+xml +# application/vnd.wv.csp+wbxml +# application/vnd.wv.csp+xml +# application/vnd.wv.ssp+xml application/vnd.xara xar application/vnd.xfdl xfdl -application/vnd.xmpie.cpkg -application/vnd.xmpie.dpkg -application/vnd.xmpie.plan -application/vnd.xmpie.ppkg -application/vnd.xmpie.xlim +# application/vnd.xfdl.webform +# application/vnd.xmi+xml +# application/vnd.xmpie.cpkg +# application/vnd.xmpie.dpkg +# application/vnd.xmpie.plan +# application/vnd.xmpie.ppkg +# application/vnd.xmpie.xlim application/vnd.yamaha.hv-dic hvd application/vnd.yamaha.hv-script hvs application/vnd.yamaha.hv-voice hvp +application/vnd.yamaha.openscoreformat osf +application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg +# application/vnd.yamaha.remote-setup application/vnd.yamaha.smaf-audio saf application/vnd.yamaha.smaf-phrase spf +# application/vnd.yamaha.through-ngn +# application/vnd.yamaha.tunnel-udpencap application/vnd.yellowriver-custom-menu cmp +application/vnd.zul zir zirz application/vnd.zzazz.deck+xml zaz application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response +# application/vq-rtcpxr +# application/watcherinfo+xml +# application/whoispp-query +# application/whoispp-response +application/widget wgt application/winhlp hlp -application/wita -application/wordperfect5.1 +# application/wita +# application/wordperfect5.1 application/wsdl+xml wsdl application/wspolicy+xml wspolicy +application/x-7z-compressed 7z +application/x-abiword abw application/x-ace-compressed ace +# application/x-amf +application/x-apple-diskimage dmg +application/x-authorware-bin aab x32 u32 vox +application/x-authorware-map aam +application/x-authorware-seg aas application/x-bcpio bcpio application/x-bittorrent torrent +application/x-blorb blb blorb application/x-bzip bz application/x-bzip2 bz2 boz +application/x-cbr cbr cba cbt cbz cb7 application/x-cdlink vcd +application/x-cfs-compressed cfs application/x-chat chat application/x-chess-pgn pgn -application/x-compress +application/x-conference nsc +# application/x-compress application/x-cpio cpio application/x-csh csh -application/x-director dcr dir dxr fgd +application/x-debian-package deb udeb +application/x-dgc-compressed dgc +application/x-director dir dcr dxr cst cct cxt w3d fgd swa +application/x-doom wad +application/x-dtbncx+xml ncx +application/x-dtbook+xml dtb +application/x-dtbresource+xml res application/x-dvi dvi +application/x-envoy evy +application/x-eva eva +application/x-font-bdf bdf +# application/x-font-dos +# application/x-font-framemaker +application/x-font-ghostscript gsf +# application/x-font-libgrx +application/x-font-linux-psf psf +application/x-font-otf otf +application/x-font-pcf pcf +application/x-font-snf snf +# application/x-font-speedo +# application/x-font-sunos-news +application/x-font-ttf ttf ttc +application/x-font-type1 pfa pfb pfm afm +application/font-woff woff +# application/x-font-vfont +application/x-freearc arc application/x-futuresplash spl +application/x-gca-compressed gca +application/x-glulx ulx +application/x-gnumeric gnumeric +application/x-gramps-xml gramps application/x-gtar gtar -application/x-gzip +# application/x-gzip application/x-hdf hdf +application/x-install-instructions install +application/x-iso9660-image iso +application/x-java-jnlp-file jnlp application/x-latex latex +application/x-lzh-compressed lzh lha +application/x-mie mie +application/x-mobipocket-ebook prc mobi +application/x-ms-application application +application/x-ms-shortcut lnk application/x-ms-wmd wmd application/x-ms-wmz wmz +application/x-ms-xbap xbap application/x-msaccess mdb application/x-msbinder obd application/x-mscardfile crd application/x-msclip clp application/x-msdownload exe dll com bat msi application/x-msmediaview mvb m13 m14 -application/x-msmetafile wmf +application/x-msmetafile wmf wmz emf emz application/x-msmoney mny application/x-mspublisher pub application/x-msschedule scd application/x-msterminal trm application/x-mswrite wri application/x-netcdf nc cdf +application/x-nzb nzb application/x-pkcs12 p12 pfx application/x-pkcs7-certificates p7b spc application/x-pkcs7-certreqresp p7r application/x-rar-compressed rar +application/x-research-info-systems ris application/x-sh sh application/x-shar shar application/x-shockwave-flash swf +application/x-silverlight-app xap +application/x-sql sql application/x-stuffit sit application/x-stuffitx sitx +application/x-subrip srt application/x-sv4cpio sv4cpio application/x-sv4crc sv4crc +application/x-t3vm-image t3 +application/x-tads gam application/x-tar tar application/x-tcl tcl application/x-tex tex +application/x-tex-tfm tfm application/x-texinfo texinfo texi +application/x-tgif obj application/x-ustar ustar application/x-wais-source src application/x-x509-ca-cert der crt -application/x400-bp -application/xcap-att+xml -application/xcap-caps+xml -application/xcap-el+xml -application/xcap-error+xml -application/xcap-ns+xml +application/x-xfig fig +application/x-xliff+xml xlf +application/x-xpinstall xpi +application/x-xz xz +application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8 +# application/x400-bp +application/xaml+xml xaml +# application/xcap-att+xml +# application/xcap-caps+xml +application/xcap-diff+xml xdf +# application/xcap-el+xml +# application/xcap-error+xml +# application/xcap-ns+xml +# application/xcon-conference-info-diff+xml +# application/xcon-conference-info+xml application/xenc+xml xenc application/xhtml+xml xhtml xht +# application/xhtml-voice+xml application/xml xml xsl application/xml-dtd dtd -application/xml-external-parsed-entity -application/xmpp+xml +# application/xml-external-parsed-entity +# application/xmpp+xml application/xop+xml xop +application/xproc+xml xpl application/xslt+xml xslt application/xspf+xml xspf application/xv+xml mxml xhvml xvml xvm +application/yang yang +application/yin+xml yin application/zip zip -audio/32kadpcm -audio/3gpp -audio/3gpp2 -audio/ac3 -audio/amr -audio/amr-wb -audio/amr-wb+ -audio/asc +# audio/1d-interleaved-parityfec +# audio/32kadpcm +# audio/3gpp +# audio/3gpp2 +# audio/ac3 +audio/adpcm adp +# audio/amr +# audio/amr-wb +# audio/amr-wb+ +# audio/asc +# audio/atrac-advanced-lossless +# audio/atrac-x +# audio/atrac3 audio/basic au snd -audio/bv16 -audio/bv32 -audio/clearmode -audio/cn -audio/dat12 -audio/dls -audio/dsr-es201108 -audio/dsr-es202050 -audio/dsr-es202211 -audio/dsr-es202212 -audio/dvi4 -audio/eac3 -audio/evrc -audio/evrc-qcp -audio/evrc0 -audio/evrc1 -audio/evrcb -audio/evrcb0 -audio/evrcb1 -audio/g722 -audio/g7221 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g7291 -audio/g729d -audio/g729e -audio/gsm -audio/gsm-efr -audio/ilbc -audio/l16 -audio/l20 -audio/l24 -audio/l8 -audio/lpc +# audio/bv16 +# audio/bv32 +# audio/clearmode +# audio/cn +# audio/dat12 +# audio/dls +# audio/dsr-es201108 +# audio/dsr-es202050 +# audio/dsr-es202211 +# audio/dsr-es202212 +# audio/dv +# audio/dvi4 +# audio/eac3 +# audio/evrc +# audio/evrc-qcp +# audio/evrc0 +# audio/evrc1 +# audio/evrcb +# audio/evrcb0 +# audio/evrcb1 +# audio/evrcwb +# audio/evrcwb0 +# audio/evrcwb1 +# audio/example +# audio/fwdred +# audio/g719 +# audio/g722 +# audio/g7221 +# audio/g723 +# audio/g726-16 +# audio/g726-24 +# audio/g726-32 +# audio/g726-40 +# audio/g728 +# audio/g729 +# audio/g7291 +# audio/g729d +# audio/g729e +# audio/gsm +# audio/gsm-efr +# audio/gsm-hr-08 +# audio/ilbc +# audio/ip-mr_v2.5 +# audio/isac +# audio/l16 +# audio/l20 +# audio/l24 +# audio/l8 +# audio/lpc audio/midi mid midi kar rmi -audio/mobile-xmf +# audio/mobile-xmf audio/mp4 mp4a -audio/mp4a-latm -audio/mpa -audio/mpa-robust +# audio/mp4a-latm +# audio/mpa +# audio/mpa-robust audio/mpeg mpga mp2 mp2a mp3 m2a m3a -audio/mpeg4-generic -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/rtp-enc-aescm128 -audio/rtp-midi -audio/rtx -audio/smv -audio/smv0 -audio/smv-qcp -audio/sp-midi -audio/t140c -audio/t38 -audio/telephone-event -audio/tone -audio/vdvi -audio/vmr-wb -audio/vnd.3gpp.iufp -audio/vnd.4sb -audio/vnd.audiokoz -audio/vnd.celp -audio/vnd.cisco.nse -audio/vnd.cmles.radio-events -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 +# audio/mpeg4-generic +# audio/musepack +audio/ogg oga ogg spx +# audio/opus +# audio/parityfec +# audio/pcma +# audio/pcma-wb +# audio/pcmu-wb +# audio/pcmu +# audio/prs.sid +# audio/qcelp +# audio/red +# audio/rtp-enc-aescm128 +# audio/rtp-midi +# audio/rtx +audio/s3m s3m +audio/silk sil +# audio/smv +# audio/smv0 +# audio/smv-qcp +# audio/sp-midi +# audio/speex +# audio/t140c +# audio/t38 +# audio/telephone-event +# audio/tone +# audio/uemclip +# audio/ulpfec +# audio/vdvi +# audio/vmr-wb +# audio/vnd.3gpp.iufp +# audio/vnd.4sb +# audio/vnd.audiokoz +# audio/vnd.celp +# audio/vnd.cisco.nse +# audio/vnd.cmles.radio-events +# audio/vnd.cns.anp1 +# audio/vnd.cns.inf1 +audio/vnd.dece.audio uva uvva audio/vnd.digital-winds eol -audio/vnd.dlna.adts -audio/vnd.dolby.mlp -audio/vnd.everad.plj -audio/vnd.hns.audio +# audio/vnd.dlna.adts +# audio/vnd.dolby.heaac.1 +# audio/vnd.dolby.heaac.2 +# audio/vnd.dolby.mlp +# audio/vnd.dolby.mps +# audio/vnd.dolby.pl2 +# audio/vnd.dolby.pl2x +# audio/vnd.dolby.pl2z +# audio/vnd.dolby.pulse.1 +audio/vnd.dra dra +audio/vnd.dts dts +audio/vnd.dts.hd dtshd +# audio/vnd.dvb.file +# audio/vnd.everad.plj +# audio/vnd.hns.audio audio/vnd.lucent.voice lvp -audio/vnd.nokia.mobile-xmf -audio/vnd.nortel.vbk +audio/vnd.ms-playready.media.pya pya +# audio/vnd.nokia.mobile-xmf +# audio/vnd.nortel.vbk audio/vnd.nuera.ecelp4800 ecelp4800 audio/vnd.nuera.ecelp7470 ecelp7470 audio/vnd.nuera.ecelp9600 ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.sealedmedia.softseal.mpeg -audio/vnd.vmx.cvsd -audio/wav wav +# audio/vnd.octel.sbc +# audio/vnd.qcelp +# audio/vnd.rhetorex.32kadpcm +audio/vnd.rip rip +# audio/vnd.sealedmedia.softseal.mpeg +# audio/vnd.vmx.cvsd +# audio/vorbis +# audio/vorbis-config +audio/webm weba +audio/x-aac aac audio/x-aiff aif aiff aifc +audio/x-caf caf +audio/x-flac flac +audio/x-matroska mka audio/x-mpegurl m3u audio/x-ms-wax wax audio/x-ms-wma wma audio/x-pn-realaudio ram ra audio/x-pn-realaudio-plugin rmp +# audio/x-tta audio/x-wav wav +audio/xm xm chemical/x-cdx cdx chemical/x-cif cif chemical/x-cmdf cmdf chemical/x-cml cml chemical/x-csml csml -chemical/x-pdb pdb +# chemical/x-pdb chemical/x-xyz xyz image/bmp bmp image/cgm cgm -image/fits +# image/example +# image/fits image/g3fax g3 image/gif gif image/ief ief -image/jp2 +# image/jp2 image/jpeg jpeg jpg jpe -image/jpm -image/jpx -image/naplps +# image/jpm +# image/jpx +image/ktx ktx +# image/naplps image/png png image/prs.btif btif -image/prs.pti +# image/prs.pti +image/sgi sgi image/svg+xml svg svgz -image/t38 +# image/t38 image/tiff tiff tif -image/tiff-fx +# image/tiff-fx image/vnd.adobe.photoshop psd -image/vnd.cns.inf2 +# image/vnd.cns.inf2 +image/vnd.dece.graphic uvi uvvi uvg uvvg +image/vnd.dvb.subtitle sub image/vnd.djvu djvu djv image/vnd.dwg dwg image/vnd.dxf dxf @@ -811,20 +1362,26 @@ image/vnd.fpx fpx image/vnd.fst fst image/vnd.fujixerox.edmics-mmr mmr image/vnd.fujixerox.edmics-rlc rlc -image/vnd.globalgraphics.pgb -image/vnd.microsoft.icon ico -image/vnd.mix +# image/vnd.globalgraphics.pgb +# image/vnd.microsoft.icon +# image/vnd.mix image/vnd.ms-modi mdi +image/vnd.ms-photo wdp image/vnd.net-fpx npx -image/vnd.sealed.png -image/vnd.sealedmedia.softseal.gif -image/vnd.sealedmedia.softseal.jpg -image/vnd.svf +# image/vnd.radiance +# image/vnd.sealed.png +# image/vnd.sealedmedia.softseal.gif +# image/vnd.sealedmedia.softseal.jpg +# image/vnd.svf image/vnd.wap.wbmp wbmp image/vnd.xiff xif +image/webp webp +image/x-3ds 3ds image/x-cmu-raster ras image/x-cmx cmx -image/x-icon +image/x-freehand fh fhc fh4 fh5 fh7 +image/x-icon ico +image/x-mrsid-image sid image/x-pcx pcx image/x-pict pic pct image/x-portable-anymap pnm @@ -832,152 +1389,221 @@ image/x-portable-bitmap pbm image/x-portable-graymap pgm image/x-portable-pixmap ppm image/x-rgb rgb +image/x-tga tga image/x-xbitmap xbm image/x-xpixmap xpm image/x-xwindowdump xwd -message/cpim -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial +# message/cpim +# message/delivery-status +# message/disposition-notification +# message/example +# message/external-body +# message/feedback-report +# message/global +# message/global-delivery-status +# message/global-disposition-notification +# message/global-headers +# message/http +# message/imdn+xml +# message/news +# message/partial message/rfc822 eml mime -message/s-http -message/sip -message/sipfrag -message/tracking-status +# message/s-http +# message/sip +# message/sipfrag +# message/tracking-status +# message/vnd.si.simp +# model/example model/iges igs iges model/mesh msh mesh silo +model/vnd.collada+xml dae model/vnd.dwf dwf -model/vnd.flatland.3dml +# model/vnd.flatland.3dml model/vnd.gdl gdl -model/vnd.gs.gdl +# model/vnd.gs-gdl +# model/vnd.gs.gdl model/vnd.gtw gtw -model/vnd.moml+xml +# model/vnd.moml+xml model/vnd.mts mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text +# model/vnd.parasolid.transmit.binary +# model/vnd.parasolid.transmit.text model/vnd.vtu vtu model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message +model/x3d+binary x3db x3dbz +model/x3d+vrml x3dv x3dvz +model/x3d+xml x3d x3dz +# multipart/alternative +# multipart/appledouble +# multipart/byteranges +# multipart/digest +# multipart/encrypted +# multipart/example +# multipart/form-data +# multipart/header-set +# multipart/mixed +# multipart/parallel +# multipart/related +# multipart/report +# multipart/signed +# multipart/voice-message +# text/1d-interleaved-parityfec +text/cache-manifest appcache text/calendar ics ifb text/css css text/csv csv -text/directory -text/dns -text/enriched +# text/directory +# text/dns +# text/ecmascript +# text/enriched +# text/example +# text/fwdred text/html html htm -text/parityfec +# text/javascript +text/n3 n3 +# text/parityfec text/plain txt text conf def list log in -text/prs.fallenstein.rst +# text/prs.fallenstein.rst text/prs.lines.tag dsc -text/red -text/rfc822-headers +# text/vnd.radisys.msml-basic-layout +# text/red +# text/rfc822-headers text/richtext rtx -text/rtf -text/rtp-enc-aescm128 -text/rtx +# text/rtf +# text/rtp-enc-aescm128 +# text/rtx text/sgml sgml sgm -text/t140 +# text/t140 text/tab-separated-values tsv text/troff t tr roff man me ms +text/turtle ttl +# text/ulpfec text/uri-list uri uris urls -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.esmertec.theme-descriptor +text/vcard vcard +# text/vnd.abc +text/vnd.curl curl +text/vnd.curl.dcurl dcurl +text/vnd.curl.scurl scurl +text/vnd.curl.mcurl mcurl +# text/vnd.dmclientscript +text/vnd.dvb.subtitle sub +# text/vnd.esmertec.theme-descriptor text/vnd.fly fly text/vnd.fmi.flexstor flx +text/vnd.graphviz gv text/vnd.in3d.3dml 3dml text/vnd.in3d.spot spot -text/vnd.iptc.newsml -text/vnd.iptc.nitf -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command +# text/vnd.iptc.newsml +# text/vnd.iptc.nitf +# text/vnd.latex-z +# text/vnd.motorola.reflex +# text/vnd.ms-mediapackage +# text/vnd.net2phone.commcenter.command +# text/vnd.si.uricatalogue text/vnd.sun.j2me.app-descriptor jad -text/vnd.trolltech.linguist -text/vnd.wap.si -text/vnd.wap.sl +# text/vnd.trolltech.linguist +# text/vnd.wap.si +# text/vnd.wap.sl text/vnd.wap.wml wml text/vnd.wap.wmlscript wmls text/x-asm s asm text/x-c c cc cxx cpp h hh dic text/x-fortran f for f77 f90 -text/x-pascal p pas text/x-java-source java +text/x-opml opml +text/x-pascal p pas +text/x-nfo nfo text/x-setext etx +text/x-sfv sfv text/x-uuencode uu text/x-vcalendar vcs text/x-vcard vcf -text/xml -text/xml-external-parsed-entity +# text/xml +# text/xml-external-parsed-entity +# video/1d-interleaved-parityfec video/3gpp 3gp -video/3gpp-tt +# video/3gpp-tt video/3gpp2 3g2 -video/bmpeg -video/bt656 -video/celb -video/dv +# video/bmpeg +# video/bt656 +# video/celb +# video/dv +# video/example video/h261 h261 video/h263 h263 -video/h263-1998 -video/h263-2000 +# video/h263-1998 +# video/h263-2000 video/h264 h264 +# video/h264-rcdo +# video/h264-svc video/jpeg jpgv +# video/jpeg2000 video/jpm jpm jpgm video/mj2 mj2 mjp2 -video/mp1s -video/mp2p -video/mp2t +# video/mp1s +# video/mp2p +# video/mp2t video/mp4 mp4 mp4v mpg4 -video/mp4v-es +# video/mp4v-es video/mpeg mpeg mpg mpe m1v m2v -video/mpeg4-generic -video/mpv -video/nv -video/parityfec -video/pointer +# video/mpeg4-generic +# video/mpv +# video/nv +video/ogg ogv +# video/parityfec +# video/pointer video/quicktime qt mov -video/raw -video/rtp-enc-aescm128 -video/rtx -video/smpte292m -video/vc1 -video/vnd.dlna.mpeg-tts +# video/raw +# video/rtp-enc-aescm128 +# video/rtx +# video/smpte292m +# video/ulpfec +# video/vc1 +# video/vnd.cctv +video/vnd.dece.hd uvh uvvh +video/vnd.dece.mobile uvm uvvm +# video/vnd.dece.mp4 +video/vnd.dece.pd uvp uvvp +video/vnd.dece.sd uvs uvvs +video/vnd.dece.video uvv uvvv +# video/vnd.directv.mpeg +# video/vnd.directv.mpeg-tts +# video/vnd.dlna.mpeg-tts +video/vnd.dvb.file dvb video/vnd.fvt fvt -video/vnd.hns.video -video/vnd.motorola.video -video/vnd.motorola.videop +# video/vnd.hns.video +# video/vnd.iptvforum.1dparityfec-1010 +# video/vnd.iptvforum.1dparityfec-2005 +# video/vnd.iptvforum.2dparityfec-1010 +# video/vnd.iptvforum.2dparityfec-2005 +# video/vnd.iptvforum.ttsavc +# video/vnd.iptvforum.ttsmpeg2 +# video/vnd.motorola.video +# video/vnd.motorola.videop video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.nokia.videovoip -video/vnd.objectvideo -video/vnd.sealed.mpeg1 -video/vnd.sealed.mpeg4 -video/vnd.sealed.swf -video/vnd.sealedmedia.softseal.mov +video/vnd.ms-playready.media.pyv pyv +# video/vnd.nokia.interleaved-multimedia +# video/vnd.nokia.videovoip +# video/vnd.objectvideo +# video/vnd.sealed.mpeg1 +# video/vnd.sealed.mpeg4 +# video/vnd.sealed.swf +# video/vnd.sealedmedia.softseal.mov +video/vnd.uvvu.mp4 uvu uvvu video/vnd.vivo viv +video/webm webm +video/x-f4v f4v video/x-fli fli +video/x-flv flv +video/x-m4v m4v +video/x-matroska mkv mk3d mks +video/x-mng mng video/x-ms-asf asf asx +video/x-ms-vob vob video/x-ms-wm wm video/x-ms-wmv wmv video/x-ms-wmx wmx video/x-ms-wvx wvx video/x-msvideo avi video/x-sgi-movie movie +video/x-smv smv x-conference/x-cooltalk ice diff --git a/conf/insideout/mime.types b/conf/insideout/mime.types index 34d5fc9055..b680b3327d 100644 --- a/conf/insideout/mime.types +++ b/conf/insideout/mime.types @@ -1,204 +1,343 @@ -# This is a comment. I love comments. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at . - -# MIME type Extensions -application/activemessage +# +# MIME type configs overriden by the FreeSWITCH project. +# +audio/mpeg mp3 mpga mp2 mp2a m2a m3a +image/jpeg jpg jpeg jpe +# +# Additional MIME types added by the FreeSWITCH project. Any duplicate file extensions listed here will only be +# used to map from MIME -> extension and not extension -> MIME +audio/x-mpeg mp3 +audio/mp3 mp3 +audio/x-mp3 mp3 +audio/mpeg3 mp3 +audio/x-mpeg3 mp3 +audio/mpg mp3 +audio/x-mpegaudio mp3 +audio/x-wave wav +audio/wave wav +# +# The section below was taken from Apache httpd Project at +# +# +# This file maps Internet media types to unique file extension(s). +# Although created for httpd, this file is used by many software systems +# and has been placed in the public domain for unlimited redisribution. +# +# The table below contains both registered and (common) unregistered types. +# A type that has no unique extension can be ignored -- they are listed +# here to guide configurations toward known types and to make it easier to +# identify "new" types. File extensions are also commonly used to indicate +# content languages and encodings, so choose them carefully. +# +# Internet media types should be registered as described in RFC 4288. +# The registry is at . +# +# MIME type (lowercased) Extensions +# ============================================ ========== +# application/1d-interleaved-parityfec +# application/3gpp-ims+xml +# application/activemessage application/andrew-inset ez -application/applefile +# application/applefile +application/applixware aw application/atom+xml atom application/atomcat+xml atomcat -application/atomicmail +# application/atomicmail application/atomsvc+xml atomsvc -application/auth-policy+xml -application/batch-smtp -application/beep+xml -application/cals-1840 +# application/auth-policy+xml +# application/batch-smtp +# application/beep+xml +# application/calendar+xml +# application/cals-1840 +# application/ccmp+xml application/ccxml+xml ccxml -application/cellml+xml -application/cnrp+xml -application/commonground -application/conference-info+xml -application/cpl+xml -application/csta+xml -application/cstadata+xml -application/cybercash +application/cdmi-capability cdmia +application/cdmi-container cdmic +application/cdmi-domain cdmid +application/cdmi-object cdmio +application/cdmi-queue cdmiq +# application/cea-2018+xml +# application/cellml+xml +# application/cfw +# application/cnrp+xml +# application/commonground +# application/conference-info+xml +# application/cpl+xml +# application/csta+xml +# application/cstadata+xml +application/cu-seeme cu +# application/cybercash application/davmount+xml davmount -application/dca-rft -application/dec-dx -application/dialog-info+xml -application/dicom -application/dns -application/dvcs +# application/dca-rft +# application/dec-dx +# application/dialog-info+xml +# application/dicom +# application/dns +application/docbook+xml dbk +# application/dskpp+xml +application/dssc+der dssc +application/dssc+xml xdssc +# application/dvcs application/ecmascript ecma -application/edi-consent -application/edi-x12 -application/edifact -application/epp+xml -application/eshop -application/fastinfoset -application/fastsoap -application/fits +# application/edi-consent +# application/edi-x12 +# application/edifact +application/emma+xml emma +# application/epp+xml +application/epub+zip epub +# application/eshop +# application/example +application/exi exi +# application/fastinfoset +# application/fastsoap +# application/fits application/font-tdpfr pfr -application/h224 -application/http +# application/framework-attributes+xml +application/gml+xml gml +application/gpx+xml gpx +application/gxf gxf +# application/h224 +# application/held+xml +# application/http application/hyperstudio stk -application/iges -application/im-iscomposing+xml -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup +# application/ibe-key-request+xml +# application/ibe-pkg-reply+xml +# application/ibe-pp-data +# application/iges +# application/im-iscomposing+xml +# application/index +# application/index.cmd +# application/index.obj +# application/index.response +# application/index.vnd +application/inkml+xml ink inkml +# application/iotp +application/ipfix ipfix +# application/ipp +# application/isup +application/java-archive jar +application/java-serialized-object ser +application/java-vm class application/javascript js application/json json -application/kpml-request+xml -application/kpml-response+xml +application/jsonml+json jsonml +# application/kpml-request+xml +# application/kpml-response+xml +application/lost+xml lostxml application/mac-binhex40 hqx application/mac-compactpro cpt -application/macwriteii +# application/macwriteii +application/mads+xml mads application/marc mrc +application/marcxml+xml mrcx application/mathematica ma nb mb +# application/mathml-content+xml +# application/mathml-presentation+xml application/mathml+xml mathml -application/mbms-associated-procedure-description+xml -application/mbms-deregister+xml -application/mbms-envelope+xml -application/mbms-msk+xml -application/mbms-msk-response+xml -application/mbms-protection-description+xml -application/mbms-reception-report+xml -application/mbms-register+xml -application/mbms-register-response+xml -application/mbms-user-service-description+xml +# application/mbms-associated-procedure-description+xml +# application/mbms-deregister+xml +# application/mbms-envelope+xml +# application/mbms-msk+xml +# application/mbms-msk-response+xml +# application/mbms-protection-description+xml +# application/mbms-reception-report+xml +# application/mbms-register+xml +# application/mbms-register-response+xml +# application/mbms-user-service-description+xml application/mbox mbox +# application/media_control+xml application/mediaservercontrol+xml mscml -application/mikey +application/metalink+xml metalink +application/metalink4+xml meta4 +application/mets+xml mets +# application/mikey +application/mods+xml mods +# application/moss-keys +# application/moss-signature +# application/mosskey-data +# application/mosskey-request +application/mp21 m21 mp21 application/mp4 mp4s -application/mpeg4-generic -application/mpeg4-iod -application/mpeg4-iod-xmt +# application/mpeg4-generic +# application/mpeg4-iod +# application/mpeg4-iod-xmt +# application/msc-ivr+xml +# application/msc-mixer+xml application/msword doc dot application/mxf mxf -application/nasdata -application/news-message-id -application/news-transmission -application/nss -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc +# application/nasdata +# application/news-checkgroups +# application/news-groupinfo +# application/news-transmission +# application/nss +# application/ocsp-request +# application/ocsp-response +application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy application/oda oda -application/oebps-package+xml -application/ogg ogg -application/parityfec +application/oebps-package+xml opf +application/ogg ogx +application/omdoc+xml omdoc +application/onenote onetoc onetoc2 onetmp onepkg +application/oxps oxps +# application/parityfec +application/patch-ops-error+xml xer application/pdf pdf application/pgp-encrypted pgp -application/pgp-keys +# application/pgp-keys application/pgp-signature asc sig application/pics-rules prf -application/pidf+xml +# application/pidf+xml +# application/pidf-diff+xml application/pkcs10 p10 application/pkcs7-mime p7m p7c application/pkcs7-signature p7s +application/pkcs8 p8 +application/pkix-attr-cert ac application/pkix-cert cer application/pkix-crl crl application/pkix-pkipath pkipath application/pkixcmp pki application/pls+xml pls -application/poc-settings+xml +# application/poc-settings+xml application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet +# application/prs.alvestrand.titrax-sheet application/prs.cww cww -application/prs.nprend -application/prs.plucker -application/qsig +# application/prs.nprend +# application/prs.plucker +# application/prs.rdf-xml-crypt +# application/prs.xsf+xml +application/pskc+xml pskcxml +# application/qsig application/rdf+xml rdf application/reginfo+xml rif application/relax-ng-compact-syntax rnc -application/remote-printing +# application/remote-printing application/resource-lists+xml rl -application/riscos -application/rlmi+xml +application/resource-lists-diff+xml rld +# application/riscos +# application/rlmi+xml application/rls-services+xml rs +application/rpki-ghostbusters gbr +application/rpki-manifest mft +application/rpki-roa roa +# application/rpki-updown application/rsd+xml rsd application/rss+xml rss application/rtf rtf -application/rtx -application/samlassertion+xml -application/samlmetadata+xml +# application/rtx +# application/samlassertion+xml +# application/samlmetadata+xml application/sbml+xml sbml +application/scvp-cv-request scq +application/scvp-cv-response scs +application/scvp-vp-request spq +application/scvp-vp-response spp application/sdp sdp -application/set-payment +# application/set-payment application/set-payment-initiation setpay -application/set-registration +# application/set-registration application/set-registration-initiation setreg -application/sgml -application/sgml-open-catalog +# application/sgml +# application/sgml-open-catalog application/shf+xml shf -application/sieve -application/simple-filter+xml -application/simple-message-summary -application/simplesymbolcontainer -application/slate -application/smil +# application/sieve +# application/simple-filter+xml +# application/simple-message-summary +# application/simplesymbolcontainer +# application/slate +# application/smil application/smil+xml smi smil -application/soap+fastinfoset -application/soap+xml -application/spirits-event+xml +# application/soap+fastinfoset +# application/soap+xml +application/sparql-query rq +application/sparql-results+xml srx +# application/spirits-event+xml application/srgs gram application/srgs+xml grxml +application/sru+xml sru +application/ssdl+xml ssdl application/ssml+xml ssml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vividence.scriptfile -application/vnd.3gpp.bsf+xml +# application/tamp-apex-update +# application/tamp-apex-update-confirm +# application/tamp-community-update +# application/tamp-community-update-confirm +# application/tamp-error +# application/tamp-sequence-adjust +# application/tamp-sequence-adjust-confirm +# application/tamp-status-query +# application/tamp-status-response +# application/tamp-update +# application/tamp-update-confirm +application/tei+xml tei teicorpus +application/thraud+xml tfi +# application/timestamp-query +# application/timestamp-reply +application/timestamped-data tsd +# application/tve-trigger +# application/ulpfec +# application/vcard+xml +# application/vemmi +# application/vividence.scriptfile +# application/vnd.3gpp.bsf+xml application/vnd.3gpp.pic-bw-large plb application/vnd.3gpp.pic-bw-small psb application/vnd.3gpp.pic-bw-var pvb -application/vnd.3gpp.sms -application/vnd.3gpp2.bcmcsinfo+xml -application/vnd.3gpp2.sms +# application/vnd.3gpp.sms +# application/vnd.3gpp2.bcmcsinfo+xml +# application/vnd.3gpp2.sms +application/vnd.3gpp2.tcap tcap application/vnd.3m.post-it-notes pwn application/vnd.accpac.simply.aso aso application/vnd.accpac.simply.imp imp application/vnd.acucobol acu application/vnd.acucorp atc acutc +application/vnd.adobe.air-application-installer-package+zip air +application/vnd.adobe.formscentral.fcdt fcdt +application/vnd.adobe.fxp fxp fxpl +# application/vnd.adobe.partial-upload application/vnd.adobe.xdp+xml xdp application/vnd.adobe.xfdf xfdf -application/vnd.aether.imp +# application/vnd.aether.imp +# application/vnd.ah-barcode +application/vnd.ahead.space ahead +application/vnd.airzip.filesecure.azf azf +application/vnd.airzip.filesecure.azs azs +application/vnd.amazon.ebook azw +application/vnd.americandynamics.acc acc application/vnd.amiga.ami ami +# application/vnd.amundsen.maze+xml +application/vnd.android.package-archive apk application/vnd.anser-web-certificate-issue-initiation cii application/vnd.anser-web-funds-transfer-initiation fti application/vnd.antix.game-component atx application/vnd.apple.installer+xml mpkg +application/vnd.apple.mpegurl m3u8 +# application/vnd.arastra.swi +application/vnd.aristanetworks.swi swi +application/vnd.astraea-software.iota iota application/vnd.audiograph aep -application/vnd.autopackage -application/vnd.avistar+xml +# application/vnd.autopackage +# application/vnd.avistar+xml application/vnd.blueice.multipass mpm +# application/vnd.bluetooth.ep.oob application/vnd.bmi bmi application/vnd.businessobjects rep -application/vnd.cab-jscript -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cendio.thinlinc.clientconf +# application/vnd.cab-jscript +# application/vnd.canon-cpdl +# application/vnd.canon-lips +# application/vnd.cendio.thinlinc.clientconf application/vnd.chemdraw+xml cdxml application/vnd.chipnuts.karaoke-mmd mmd application/vnd.cinderella cdy -application/vnd.cirpack.isdn-ext +# application/vnd.cirpack.isdn-ext application/vnd.claymore cla +application/vnd.cloanto.rp9 rp9 application/vnd.clonk.c4group c4g c4d c4f c4p c4u -application/vnd.commerce-battelle -application/vnd.commonspace csp cst +application/vnd.cluetrust.cartomobile-config c11amc +application/vnd.cluetrust.cartomobile-config-pkg c11amz +# application/vnd.collection+json +# application/vnd.commerce-battelle +application/vnd.commonspace csp application/vnd.contact.cmsg cdbcmsg application/vnd.cosmocaller cmc application/vnd.crick.clicker clkx @@ -208,46 +347,100 @@ application/vnd.crick.clicker.template clkt application/vnd.crick.clicker.wordbank clkw application/vnd.criticaltools.wbs+xml wbs application/vnd.ctc-posml pml -application/vnd.cups-pdf -application/vnd.cups-postscript +# application/vnd.ctct.ws+xml +# application/vnd.cups-pdf +# application/vnd.cups-postscript application/vnd.cups-ppd ppd -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl curl -application/vnd.cybank +# application/vnd.cups-raster +# application/vnd.cups-raw +# application/vnd.curl +application/vnd.curl.car car +application/vnd.curl.pcurl pcurl +# application/vnd.cybank +application/vnd.dart dart application/vnd.data-vision.rdz rdz +application/vnd.dece.data uvf uvvf uvd uvvd +application/vnd.dece.ttml+xml uvt uvvt +application/vnd.dece.unspecified uvx uvvx +application/vnd.dece.zip uvz uvvz application/vnd.denovo.fcselayout-link fe_launch +# application/vnd.dir-bi.plate-dl-nosuffix application/vnd.dna dna application/vnd.dolby.mlp mlp +# application/vnd.dolby.mobile.1 +# application/vnd.dolby.mobile.2 application/vnd.dpgraph dpg application/vnd.dreamfactory dfac -application/vnd.dvb.esgcontainer -application/vnd.dvb.ipdcesgaccess -application/vnd.dxr -application/vnd.ecdis-update +application/vnd.ds-keypoint kpxx +application/vnd.dvb.ait ait +# application/vnd.dvb.dvbj +# application/vnd.dvb.esgcontainer +# application/vnd.dvb.ipdcdftnotifaccess +# application/vnd.dvb.ipdcesgaccess +# application/vnd.dvb.ipdcesgaccess2 +# application/vnd.dvb.ipdcesgpdd +# application/vnd.dvb.ipdcroaming +# application/vnd.dvb.iptv.alfec-base +# application/vnd.dvb.iptv.alfec-enhancement +# application/vnd.dvb.notif-aggregate-root+xml +# application/vnd.dvb.notif-container+xml +# application/vnd.dvb.notif-generic+xml +# application/vnd.dvb.notif-ia-msglist+xml +# application/vnd.dvb.notif-ia-registration-request+xml +# application/vnd.dvb.notif-ia-registration-response+xml +# application/vnd.dvb.notif-init+xml +# application/vnd.dvb.pfr +application/vnd.dvb.service svc +# application/vnd.dxr +application/vnd.dynageo geo +# application/vnd.easykaraoke.cdgdownload +# application/vnd.ecdis-update application/vnd.ecowin.chart mag -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate +# application/vnd.ecowin.filerequest +# application/vnd.ecowin.fileupdate +# application/vnd.ecowin.series +# application/vnd.ecowin.seriesrequest +# application/vnd.ecowin.seriesupdate +# application/vnd.emclient.accessrequest+xml application/vnd.enliven nml +# application/vnd.eprints.data+xml application/vnd.epson.esf esf application/vnd.epson.msf msf application/vnd.epson.quickanime qam application/vnd.epson.salt slt application/vnd.epson.ssf ssf -application/vnd.ericsson.quickcall +# application/vnd.ericsson.quickcall application/vnd.eszigno3+xml es3 et3 -application/vnd.eudora.data +# application/vnd.etsi.aoc+xml +# application/vnd.etsi.cug+xml +# application/vnd.etsi.iptvcommand+xml +# application/vnd.etsi.iptvdiscovery+xml +# application/vnd.etsi.iptvprofile+xml +# application/vnd.etsi.iptvsad-bc+xml +# application/vnd.etsi.iptvsad-cod+xml +# application/vnd.etsi.iptvsad-npvr+xml +# application/vnd.etsi.iptvservice+xml +# application/vnd.etsi.iptvsync+xml +# application/vnd.etsi.iptvueprofile+xml +# application/vnd.etsi.mcid+xml +# application/vnd.etsi.overload-control-policy-dataset+xml +# application/vnd.etsi.sci+xml +# application/vnd.etsi.simservs+xml +# application/vnd.etsi.tsl+xml +# application/vnd.etsi.tsl.der +# application/vnd.eudora.data application/vnd.ezpix-album ez2 application/vnd.ezpix-package ez3 +# application/vnd.f-secure.mobile application/vnd.fdf fdf -application/vnd.ffsns -application/vnd.fints +application/vnd.fdsn.mseed mseed +application/vnd.fdsn.seed seed dataless +# application/vnd.ffsns +# application/vnd.fints application/vnd.flographit gph application/vnd.fluxtime.clip ftc -application/vnd.framemaker fm frame maker +# application/vnd.font-fontforge-sfd +application/vnd.framemaker fm frame maker book application/vnd.frogans.fnc fnc application/vnd.frogans.ltf ltf application/vnd.fsc.weblaunch fsc @@ -256,19 +449,29 @@ application/vnd.fujitsu.oasys2 oa2 application/vnd.fujitsu.oasys3 oa3 application/vnd.fujitsu.oasysgp fg5 application/vnd.fujitsu.oasysprs bh2 -application/vnd.fujixerox.art-ex -application/vnd.fujixerox.art4 -application/vnd.fujixerox.hbpl +# application/vnd.fujixerox.art-ex +# application/vnd.fujixerox.art4 +# application/vnd.fujixerox.hbpl application/vnd.fujixerox.ddd ddd application/vnd.fujixerox.docuworks xdw application/vnd.fujixerox.docuworks.binder xbd -application/vnd.fut-misnet +# application/vnd.fut-misnet application/vnd.fuzzysheet fzs application/vnd.genomatix.tuxedo txd +# application/vnd.geocube+xml +application/vnd.geogebra.file ggb +application/vnd.geogebra.tool ggt +application/vnd.geometry-explorer gex gre +application/vnd.geonext gxt +application/vnd.geoplan g2w +application/vnd.geospace g3w +# application/vnd.globalplatform.card-content-mgt +# application/vnd.globalplatform.card-content-mgt-response +application/vnd.gmx gmx application/vnd.google-earth.kml+xml kml application/vnd.google-earth.kmz kmz application/vnd.grafeq gqf gqs -application/vnd.gridmp +# application/vnd.gridmp application/vnd.groove-account gac application/vnd.groove-help ghf application/vnd.groove-identity-message gim @@ -276,9 +479,11 @@ application/vnd.groove-injector grv application/vnd.groove-tool-message gtm application/vnd.groove-tool-template tpl application/vnd.groove-vcard vcg +# application/vnd.hal+json +application/vnd.hal+xml hal application/vnd.handheld-entertainment+xml zmm application/vnd.hbci hbci -application/vnd.hcl-bireports +# application/vnd.hcl-bireports application/vnd.hhe.lesson-player les application/vnd.hp-hpgl hpgl application/vnd.hp-hpid hpid @@ -286,37 +491,53 @@ application/vnd.hp-hps hps application/vnd.hp-jlyt jlt application/vnd.hp-pcl pcl application/vnd.hp-pclxl pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword x3d -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media +# application/vnd.httphone +application/vnd.hydrostatix.sof-data sfd-hdstx +# application/vnd.hzn-3d-crossword +# application/vnd.ibm.afplinedata +# application/vnd.ibm.electronic-media application/vnd.ibm.minipay mpy application/vnd.ibm.modcap afp listafp list3820 application/vnd.ibm.rights-management irm application/vnd.ibm.secure-container sc +application/vnd.iccprofile icc icm application/vnd.igloader igl application/vnd.immervision-ivp ivp application/vnd.immervision-ivu ivu -application/vnd.informedcontrol.rms+xml +# application/vnd.informedcontrol.rms+xml +# application/vnd.informix-visionary +# application/vnd.infotech.project +# application/vnd.infotech.project+xml +# application/vnd.innopath.wamp.notification +application/vnd.insors.igm igm application/vnd.intercon.formnet xpw xpx -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp +application/vnd.intergeo i2g +# application/vnd.intertrust.digibox +# application/vnd.intertrust.nncp application/vnd.intu.qbo qbo application/vnd.intu.qfx qfx +# application/vnd.iptc.g2.conceptitem+xml +# application/vnd.iptc.g2.knowledgeitem+xml +# application/vnd.iptc.g2.newsitem+xml +# application/vnd.iptc.g2.newsmessage+xml +# application/vnd.iptc.g2.packageitem+xml +# application/vnd.iptc.g2.planningitem+xml application/vnd.ipunplugged.rcprofile rcprofile application/vnd.irepository.package+xml irp application/vnd.is-xpr xpr +application/vnd.isac.fcs fcs application/vnd.jam jam -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup +# application/vnd.japannet-directory-service +# application/vnd.japannet-jpnstore-wakeup +# application/vnd.japannet-payment-wakeup +# application/vnd.japannet-registration +# application/vnd.japannet-registration-wakeup +# application/vnd.japannet-setstore-wakeup +# application/vnd.japannet-verification +# application/vnd.japannet-verification-wakeup application/vnd.jcp.javame.midlet-rms rms application/vnd.jisp jisp +application/vnd.joost.joda-archive joda application/vnd.kahootz ktz ktr application/vnd.kde.karbon karbon application/vnd.kde.kchart chrt @@ -330,7 +551,9 @@ application/vnd.kenameaapp htke application/vnd.kidspiration kia application/vnd.kinar kne knp application/vnd.koan skp skd skt skm -application/vnd.liberty-request+xml +application/vnd.kodak-descriptor sse +application/vnd.las.las+xml lasxml +# application/vnd.liberty-request+xml application/vnd.llamagraphics.life-balance.desktop lbd application/vnd.llamagraphics.life-balance.exchange+xml lbe application/vnd.lotus-1-2-3 123 @@ -341,20 +564,21 @@ application/vnd.lotus-organizer org application/vnd.lotus-screencam scm application/vnd.lotus-wordpro lwp application/vnd.macports.portpkg portpkg -application/vnd.marlin.drm.actiontoken+xml -application/vnd.marlin.drm.conftoken+xml -application/vnd.marlin.drm.mdcf +# application/vnd.marlin.drm.actiontoken+xml +# application/vnd.marlin.drm.conftoken+xml +# application/vnd.marlin.drm.license+xml +# application/vnd.marlin.drm.mdcf application/vnd.mcd mcd application/vnd.medcalcdata mc1 application/vnd.mediastation.cdkey cdkey -application/vnd.meridian-slingshot +# application/vnd.meridian-slingshot application/vnd.mfer mwf application/vnd.mfmp mfm application/vnd.micrografx.flo flo application/vnd.micrografx.igx igx application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb +# application/vnd.minisoft-hp3000-save +# application/vnd.mitsubishi.misty-guard.trustweb application/vnd.mobius.daf daf application/vnd.mobius.dis dis application/vnd.mobius.mbk mbk @@ -364,149 +588,312 @@ application/vnd.mobius.plc plc application/vnd.mobius.txf txf application/vnd.mophun.application mpn application/vnd.mophun.certificate mpc -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul +# application/vnd.motorola.flexsuite +# application/vnd.motorola.flexsuite.adsi +# application/vnd.motorola.flexsuite.fis +# application/vnd.motorola.flexsuite.gotap +# application/vnd.motorola.flexsuite.kmr +# application/vnd.motorola.flexsuite.ttc +# application/vnd.motorola.flexsuite.wem +# application/vnd.motorola.iprm +application/vnd.mozilla.xul+xml xul application/vnd.ms-artgalry cil -application/vnd.ms-asf asf +# application/vnd.ms-asf application/vnd.ms-cab-compressed cab +# application/vnd.ms-color.iccprofile application/vnd.ms-excel xls xlm xla xlc xlt xlw +application/vnd.ms-excel.addin.macroenabled.12 xlam +application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb +application/vnd.ms-excel.sheet.macroenabled.12 xlsm +application/vnd.ms-excel.template.macroenabled.12 xltm application/vnd.ms-fontobject eot application/vnd.ms-htmlhelp chm application/vnd.ms-ims ims application/vnd.ms-lrm lrm -application/vnd.ms-playready.initiator+xml +# application/vnd.ms-office.activex+xml +application/vnd.ms-officetheme thmx +# application/vnd.ms-opentype +# application/vnd.ms-package.obfuscated-opentype +application/vnd.ms-pki.seccat cat +application/vnd.ms-pki.stl stl +# application/vnd.ms-playready.initiator+xml application/vnd.ms-powerpoint ppt pps pot +application/vnd.ms-powerpoint.addin.macroenabled.12 ppam +application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm +application/vnd.ms-powerpoint.slide.macroenabled.12 sldm +application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm +application/vnd.ms-powerpoint.template.macroenabled.12 potm +# application/vnd.ms-printing.printticket+xml application/vnd.ms-project mpp mpt -application/vnd.ms-tnef -application/vnd.ms-wmdrm.lic-chlg-req -application/vnd.ms-wmdrm.lic-resp -application/vnd.ms-wmdrm.meter-chlg-req -application/vnd.ms-wmdrm.meter-resp +# application/vnd.ms-tnef +# application/vnd.ms-wmdrm.lic-chlg-req +# application/vnd.ms-wmdrm.lic-resp +# application/vnd.ms-wmdrm.meter-chlg-req +# application/vnd.ms-wmdrm.meter-resp +application/vnd.ms-word.document.macroenabled.12 docm +application/vnd.ms-word.template.macroenabled.12 dotm application/vnd.ms-works wps wks wcm wdb application/vnd.ms-wpl wpl application/vnd.ms-xpsdocument xps application/vnd.mseq mseq -application/vnd.msign -application/vnd.music-niff +# application/vnd.msign +# application/vnd.multiad.creator +# application/vnd.multiad.creator.cif +# application/vnd.music-niff application/vnd.musician mus -application/vnd.ncd.control -application/vnd.nervana -application/vnd.netfpx +application/vnd.muvee.style msty +application/vnd.mynfc taglet +# application/vnd.ncd.control +# application/vnd.ncd.reference +# application/vnd.nervana +# application/vnd.netfpx application/vnd.neurolanguage.nlu nlu +application/vnd.nitf ntf nitf application/vnd.noblenet-directory nnd application/vnd.noblenet-sealer nns application/vnd.noblenet-web nnw -application/vnd.nokia.catalogs -application/vnd.nokia.conml+wbxml -application/vnd.nokia.conml+xml -application/vnd.nokia.isds-radio-presets -application/vnd.nokia.iptv.config+xml -application/vnd.nokia.landmark+wbxml -application/vnd.nokia.landmark+xml -application/vnd.nokia.landmarkcollection+xml -application/vnd.nokia.n-gage.ac+xml +# application/vnd.nokia.catalogs +# application/vnd.nokia.conml+wbxml +# application/vnd.nokia.conml+xml +# application/vnd.nokia.isds-radio-presets +# application/vnd.nokia.iptv.config+xml +# application/vnd.nokia.landmark+wbxml +# application/vnd.nokia.landmark+xml +# application/vnd.nokia.landmarkcollection+xml +# application/vnd.nokia.n-gage.ac+xml application/vnd.nokia.n-gage.data ngdat application/vnd.nokia.n-gage.symbian.install n-gage -application/vnd.nokia.ncd -application/vnd.nokia.pcd+wbxml -application/vnd.nokia.pcd+xml +# application/vnd.nokia.ncd +# application/vnd.nokia.pcd+wbxml +# application/vnd.nokia.pcd+xml application/vnd.nokia.radio-preset rpst application/vnd.nokia.radio-presets rpss application/vnd.novadigm.edm edm application/vnd.novadigm.edx edx application/vnd.novadigm.ext ext +# application/vnd.ntt-local.file-transfer +# application/vnd.ntt-local.sip-ta_remote +# application/vnd.ntt-local.sip-ta_tcp_stream application/vnd.oasis.opendocument.chart odc application/vnd.oasis.opendocument.chart-template otc +application/vnd.oasis.opendocument.database odb application/vnd.oasis.opendocument.formula odf -application/vnd.oasis.opendocument.formula-template otf +application/vnd.oasis.opendocument.formula-template odft application/vnd.oasis.opendocument.graphics odg application/vnd.oasis.opendocument.graphics-template otg application/vnd.oasis.opendocument.image odi application/vnd.oasis.opendocument.image-template oti application/vnd.oasis.opendocument.presentation odp -application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.presentation-template otp application/vnd.oasis.opendocument.spreadsheet ods application/vnd.oasis.opendocument.spreadsheet-template ots application/vnd.oasis.opendocument.text odt -application/vnd.oasis.opendocument.text-master otm +application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth -application/vnd.obn +# application/vnd.obn +# application/vnd.oftn.l10n+json +# application/vnd.oipf.contentaccessdownload+xml +# application/vnd.oipf.contentaccessstreaming+xml +# application/vnd.oipf.cspg-hexbinary +# application/vnd.oipf.dae.svg+xml +# application/vnd.oipf.dae.xhtml+xml +# application/vnd.oipf.mippvcontrolmessage+xml +# application/vnd.oipf.pae.gem +# application/vnd.oipf.spdiscovery+xml +# application/vnd.oipf.spdlist+xml +# application/vnd.oipf.ueprofile+xml +# application/vnd.oipf.userprofile+xml application/vnd.olpc-sugar xo -application/vnd.oma-scws-config -application/vnd.oma-scws-http-request -application/vnd.oma-scws-http-response -application/vnd.oma.bcast.associated-procedure-parameter+xml -application/vnd.oma.bcast.drm-trigger+xml -application/vnd.oma.bcast.imd+xml -application/vnd.oma.bcast.notification+xml -application/vnd.oma.bcast.sgboot -application/vnd.oma.bcast.sgdd+xml -application/vnd.oma.bcast.sgdu -application/vnd.oma.bcast.simple-symbol-container -application/vnd.oma.bcast.smartcard-trigger+xml -application/vnd.oma.bcast.sprov+xml +# application/vnd.oma-scws-config +# application/vnd.oma-scws-http-request +# application/vnd.oma-scws-http-response +# application/vnd.oma.bcast.associated-procedure-parameter+xml +# application/vnd.oma.bcast.drm-trigger+xml +# application/vnd.oma.bcast.imd+xml +# application/vnd.oma.bcast.ltkm +# application/vnd.oma.bcast.notification+xml +# application/vnd.oma.bcast.provisioningtrigger +# application/vnd.oma.bcast.sgboot +# application/vnd.oma.bcast.sgdd+xml +# application/vnd.oma.bcast.sgdu +# application/vnd.oma.bcast.simple-symbol-container +# application/vnd.oma.bcast.smartcard-trigger+xml +# application/vnd.oma.bcast.sprov+xml +# application/vnd.oma.bcast.stkm +# application/vnd.oma.cab-address-book+xml +# application/vnd.oma.cab-feature-handler+xml +# application/vnd.oma.cab-pcc+xml +# application/vnd.oma.cab-user-prefs+xml +# application/vnd.oma.dcd +# application/vnd.oma.dcdc application/vnd.oma.dd2+xml dd2 -application/vnd.oma.drm.risd+xml -application/vnd.oma.group-usage-list+xml -application/vnd.oma.poc.groups+xml -application/vnd.oma.xcap-directory+xml -application/vnd.omads-email+xml -application/vnd.omads-file+xml -application/vnd.omads-folder+xml -application/vnd.omaloc-supl-init +# application/vnd.oma.drm.risd+xml +# application/vnd.oma.group-usage-list+xml +# application/vnd.oma.pal+xml +# application/vnd.oma.poc.detailed-progress-report+xml +# application/vnd.oma.poc.final-report+xml +# application/vnd.oma.poc.groups+xml +# application/vnd.oma.poc.invocation-descriptor+xml +# application/vnd.oma.poc.optimized-progress-report+xml +# application/vnd.oma.push +# application/vnd.oma.scidm.messages+xml +# application/vnd.oma.xcap-directory+xml +# application/vnd.omads-email+xml +# application/vnd.omads-file+xml +# application/vnd.omads-folder+xml +# application/vnd.omaloc-supl-init application/vnd.openofficeorg.extension oxt -application/vnd.osa.netdeploy +# application/vnd.openxmlformats-officedocument.custom-properties+xml +# application/vnd.openxmlformats-officedocument.customxmlproperties+xml +# application/vnd.openxmlformats-officedocument.drawing+xml +# application/vnd.openxmlformats-officedocument.drawingml.chart+xml +# application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml +# application/vnd.openxmlformats-officedocument.extended-properties+xml +# application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml +# application/vnd.openxmlformats-officedocument.presentationml.comments+xml +# application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx +# application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.presprops+xml +application/vnd.openxmlformats-officedocument.presentationml.slide sldx +# application/vnd.openxmlformats-officedocument.presentationml.slide+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx +# application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml +# application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml +# application/vnd.openxmlformats-officedocument.presentationml.tags+xml +application/vnd.openxmlformats-officedocument.presentationml.template potx +# application/vnd.openxmlformats-officedocument.presentationml.template.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx +# application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml +# application/vnd.openxmlformats-officedocument.theme+xml +# application/vnd.openxmlformats-officedocument.themeoverride+xml +# application/vnd.openxmlformats-officedocument.vmldrawing +# application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx +# application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml +# application/vnd.openxmlformats-package.core-properties+xml +# application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml +# application/vnd.openxmlformats-package.relationships+xml +# application/vnd.quobject-quoxdocument +# application/vnd.osa.netdeploy +application/vnd.osgeo.mapguide.package mgp +# application/vnd.osgi.bundle application/vnd.osgi.dp dp -application/vnd.otps.ct-kip+xml -application/vnd.palm prc pdb pqa oprc -application/vnd.paos.xml +application/vnd.osgi.subsystem esa +# application/vnd.otps.ct-kip+xml +application/vnd.palm pdb pqa oprc +# application/vnd.paos.xml +application/vnd.pawaafile paw application/vnd.pg.format str application/vnd.pg.osasli ei6 -application/vnd.piaccess.application-licence +# application/vnd.piaccess.application-licence application/vnd.picsel efif -application/vnd.poc.group-advertisement+xml +application/vnd.pmi.widget wg +# application/vnd.poc.group-advertisement+xml application/vnd.pocketlearn plf application/vnd.powerbuilder6 pbd -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.preminet +# application/vnd.powerbuilder6-s +# application/vnd.powerbuilder7 +# application/vnd.powerbuilder7-s +# application/vnd.powerbuilder75 +# application/vnd.powerbuilder75-s +# application/vnd.preminet application/vnd.previewsystems.box box application/vnd.proteus.magazine mgz application/vnd.publishare-delta-tree qps application/vnd.pvi.ptid1 ptid -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.qualcomm.brew-app-res +# application/vnd.pwg-multiplexed +# application/vnd.pwg-xhtml-print+xml +# application/vnd.qualcomm.brew-app-res application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb -application/vnd.rapid +# application/vnd.radisys.moml+xml +# application/vnd.radisys.msml+xml +# application/vnd.radisys.msml-audit+xml +# application/vnd.radisys.msml-audit-conf+xml +# application/vnd.radisys.msml-audit-conn+xml +# application/vnd.radisys.msml-audit-dialog+xml +# application/vnd.radisys.msml-audit-stream+xml +# application/vnd.radisys.msml-conf+xml +# application/vnd.radisys.msml-dialog+xml +# application/vnd.radisys.msml-dialog-base+xml +# application/vnd.radisys.msml-dialog-fax-detect+xml +# application/vnd.radisys.msml-dialog-fax-sendrecv+xml +# application/vnd.radisys.msml-dialog-group+xml +# application/vnd.radisys.msml-dialog-speech+xml +# application/vnd.radisys.msml-dialog-transform+xml +# application/vnd.rainstor.data +# application/vnd.rapid +application/vnd.realvnc.bed bed application/vnd.recordare.musicxml mxl -application/vnd.recordare.musicxml+xml -application/vnd.renlearn.rlprint +application/vnd.recordare.musicxml+xml musicxml +# application/vnd.renlearn.rlprint +application/vnd.rig.cryptonote cryptonote +application/vnd.rim.cod cod application/vnd.rn-realmedia rm -application/vnd.ruckus.download -application/vnd.s3sms -application/vnd.scribus -application/vnd.sealed.3df -application/vnd.sealed.csf -application/vnd.sealed.doc -application/vnd.sealed.eml -application/vnd.sealed.mht -application/vnd.sealed.net -application/vnd.sealed.ppt -application/vnd.sealed.tiff -application/vnd.sealed.xls -application/vnd.sealedmedia.softseal.html -application/vnd.sealedmedia.softseal.pdf +application/vnd.rn-realmedia-vbr rmvb +application/vnd.route66.link66+xml link66 +# application/vnd.rs-274x +# application/vnd.ruckus.download +# application/vnd.s3sms +application/vnd.sailingtracker.track st +# application/vnd.sbm.cid +# application/vnd.sbm.mid2 +# application/vnd.scribus +# application/vnd.sealed.3df +# application/vnd.sealed.csf +# application/vnd.sealed.doc +# application/vnd.sealed.eml +# application/vnd.sealed.mht +# application/vnd.sealed.net +# application/vnd.sealed.ppt +# application/vnd.sealed.tiff +# application/vnd.sealed.xls +# application/vnd.sealedmedia.softseal.html +# application/vnd.sealedmedia.softseal.pdf application/vnd.seemail see application/vnd.sema sema application/vnd.semd semd @@ -517,292 +904,456 @@ application/vnd.shana.informed.interchange iif application/vnd.shana.informed.package ipk application/vnd.simtech-mindmapper twd twds application/vnd.smaf mmf +# application/vnd.smart.notebook +application/vnd.smart.teacher teacher +# application/vnd.software602.filler.form+xml +# application/vnd.software602.filler.form-xml-zip application/vnd.solent.sdkm+xml sdkm sdkd application/vnd.spotfire.dxp dxp application/vnd.spotfire.sfs sfs -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.sun.wadl+xml +# application/vnd.sss-cod +# application/vnd.sss-dtf +# application/vnd.sss-ntf +application/vnd.stardivision.calc sdc +application/vnd.stardivision.draw sda +application/vnd.stardivision.impress sdd +application/vnd.stardivision.math smf +application/vnd.stardivision.writer sdw vor +application/vnd.stardivision.writer-global sgl +application/vnd.stepmania.package smzip +application/vnd.stepmania.stepchart sm +# application/vnd.street-stream +application/vnd.sun.xml.calc sxc +application/vnd.sun.xml.calc.template stc +application/vnd.sun.xml.draw sxd +application/vnd.sun.xml.draw.template std +application/vnd.sun.xml.impress sxi +application/vnd.sun.xml.impress.template sti +application/vnd.sun.xml.math sxm +application/vnd.sun.xml.writer sxw +application/vnd.sun.xml.writer.global sxg +application/vnd.sun.xml.writer.template stw +# application/vnd.sun.wadl+xml application/vnd.sus-calendar sus susp application/vnd.svd svd -application/vnd.swiftview-ics +# application/vnd.swiftview-ics +application/vnd.symbian.install sis sisx application/vnd.syncml+xml xsm application/vnd.syncml.dm+wbxml bdm application/vnd.syncml.dm+xml xdm -application/vnd.syncml.ds.notification +# application/vnd.syncml.dm.notification +# application/vnd.syncml.ds.notification application/vnd.tao.intent-module-archive tao +application/vnd.tcpdump.pcap pcap cap dmp application/vnd.tmobile-livetv tmo application/vnd.trid.tpt tpt application/vnd.triscape.mxs mxs application/vnd.trueapp tra -application/vnd.truedoc +# application/vnd.truedoc +# application/vnd.ubisoft.webplayer application/vnd.ufdl ufd ufdl application/vnd.uiq.theme utz application/vnd.umajin umj application/vnd.unity unityweb application/vnd.uoml+xml uoml -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal +# application/vnd.uplanet.alert +# application/vnd.uplanet.alert-wbxml +# application/vnd.uplanet.bearer-choice +# application/vnd.uplanet.bearer-choice-wbxml +# application/vnd.uplanet.cacheop +# application/vnd.uplanet.cacheop-wbxml +# application/vnd.uplanet.channel +# application/vnd.uplanet.channel-wbxml +# application/vnd.uplanet.list +# application/vnd.uplanet.list-wbxml +# application/vnd.uplanet.listcmd +# application/vnd.uplanet.listcmd-wbxml +# application/vnd.uplanet.signal application/vnd.vcx vcx -application/vnd.vd-study -application/vnd.vectorworks -application/vnd.vidsoft.vidconference +# application/vnd.vd-study +# application/vnd.vectorworks +# application/vnd.verimatrix.vcas +# application/vnd.vidsoft.vidconference application/vnd.visio vsd vst vss vsw application/vnd.visionary vis -application/vnd.vividence.scriptfile +# application/vnd.vividence.scriptfile application/vnd.vsf vsf -application/vnd.wap.sic -application/vnd.wap.slc +# application/vnd.wap.sic +# application/vnd.wap.slc application/vnd.wap.wbxml wbxml application/vnd.wap.wmlc wmlc application/vnd.wap.wmlscriptc wmlsc application/vnd.webturbo wtb -application/vnd.wfa.wsc +# application/vnd.wfa.wsc +# application/vnd.wmc +# application/vnd.wmf.bootstrap +# application/vnd.wolfram.mathematica +# application/vnd.wolfram.mathematica.package +application/vnd.wolfram.player nbp application/vnd.wordperfect wpd application/vnd.wqd wqd -application/vnd.wrq-hp3000-labelled +# application/vnd.wrq-hp3000-labelled application/vnd.wt.stf stf -application/vnd.wv.csp+wbxml -application/vnd.wv.csp+xml -application/vnd.wv.ssp+xml +# application/vnd.wv.csp+wbxml +# application/vnd.wv.csp+xml +# application/vnd.wv.ssp+xml application/vnd.xara xar application/vnd.xfdl xfdl -application/vnd.xmpie.cpkg -application/vnd.xmpie.dpkg -application/vnd.xmpie.plan -application/vnd.xmpie.ppkg -application/vnd.xmpie.xlim +# application/vnd.xfdl.webform +# application/vnd.xmi+xml +# application/vnd.xmpie.cpkg +# application/vnd.xmpie.dpkg +# application/vnd.xmpie.plan +# application/vnd.xmpie.ppkg +# application/vnd.xmpie.xlim application/vnd.yamaha.hv-dic hvd application/vnd.yamaha.hv-script hvs application/vnd.yamaha.hv-voice hvp +application/vnd.yamaha.openscoreformat osf +application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg +# application/vnd.yamaha.remote-setup application/vnd.yamaha.smaf-audio saf application/vnd.yamaha.smaf-phrase spf +# application/vnd.yamaha.through-ngn +# application/vnd.yamaha.tunnel-udpencap application/vnd.yellowriver-custom-menu cmp +application/vnd.zul zir zirz application/vnd.zzazz.deck+xml zaz application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response +# application/vq-rtcpxr +# application/watcherinfo+xml +# application/whoispp-query +# application/whoispp-response +application/widget wgt application/winhlp hlp -application/wita -application/wordperfect5.1 +# application/wita +# application/wordperfect5.1 application/wsdl+xml wsdl application/wspolicy+xml wspolicy +application/x-7z-compressed 7z +application/x-abiword abw application/x-ace-compressed ace +# application/x-amf +application/x-apple-diskimage dmg +application/x-authorware-bin aab x32 u32 vox +application/x-authorware-map aam +application/x-authorware-seg aas application/x-bcpio bcpio application/x-bittorrent torrent +application/x-blorb blb blorb application/x-bzip bz application/x-bzip2 bz2 boz +application/x-cbr cbr cba cbt cbz cb7 application/x-cdlink vcd +application/x-cfs-compressed cfs application/x-chat chat application/x-chess-pgn pgn -application/x-compress +application/x-conference nsc +# application/x-compress application/x-cpio cpio application/x-csh csh -application/x-director dcr dir dxr fgd +application/x-debian-package deb udeb +application/x-dgc-compressed dgc +application/x-director dir dcr dxr cst cct cxt w3d fgd swa +application/x-doom wad +application/x-dtbncx+xml ncx +application/x-dtbook+xml dtb +application/x-dtbresource+xml res application/x-dvi dvi +application/x-envoy evy +application/x-eva eva +application/x-font-bdf bdf +# application/x-font-dos +# application/x-font-framemaker +application/x-font-ghostscript gsf +# application/x-font-libgrx +application/x-font-linux-psf psf +application/x-font-otf otf +application/x-font-pcf pcf +application/x-font-snf snf +# application/x-font-speedo +# application/x-font-sunos-news +application/x-font-ttf ttf ttc +application/x-font-type1 pfa pfb pfm afm +application/font-woff woff +# application/x-font-vfont +application/x-freearc arc application/x-futuresplash spl +application/x-gca-compressed gca +application/x-glulx ulx +application/x-gnumeric gnumeric +application/x-gramps-xml gramps application/x-gtar gtar -application/x-gzip +# application/x-gzip application/x-hdf hdf +application/x-install-instructions install +application/x-iso9660-image iso +application/x-java-jnlp-file jnlp application/x-latex latex +application/x-lzh-compressed lzh lha +application/x-mie mie +application/x-mobipocket-ebook prc mobi +application/x-ms-application application +application/x-ms-shortcut lnk application/x-ms-wmd wmd application/x-ms-wmz wmz +application/x-ms-xbap xbap application/x-msaccess mdb application/x-msbinder obd application/x-mscardfile crd application/x-msclip clp application/x-msdownload exe dll com bat msi application/x-msmediaview mvb m13 m14 -application/x-msmetafile wmf +application/x-msmetafile wmf wmz emf emz application/x-msmoney mny application/x-mspublisher pub application/x-msschedule scd application/x-msterminal trm application/x-mswrite wri application/x-netcdf nc cdf +application/x-nzb nzb application/x-pkcs12 p12 pfx application/x-pkcs7-certificates p7b spc application/x-pkcs7-certreqresp p7r application/x-rar-compressed rar +application/x-research-info-systems ris application/x-sh sh application/x-shar shar application/x-shockwave-flash swf +application/x-silverlight-app xap +application/x-sql sql application/x-stuffit sit application/x-stuffitx sitx +application/x-subrip srt application/x-sv4cpio sv4cpio application/x-sv4crc sv4crc +application/x-t3vm-image t3 +application/x-tads gam application/x-tar tar application/x-tcl tcl application/x-tex tex +application/x-tex-tfm tfm application/x-texinfo texinfo texi +application/x-tgif obj application/x-ustar ustar application/x-wais-source src application/x-x509-ca-cert der crt -application/x400-bp -application/xcap-att+xml -application/xcap-caps+xml -application/xcap-el+xml -application/xcap-error+xml -application/xcap-ns+xml +application/x-xfig fig +application/x-xliff+xml xlf +application/x-xpinstall xpi +application/x-xz xz +application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8 +# application/x400-bp +application/xaml+xml xaml +# application/xcap-att+xml +# application/xcap-caps+xml +application/xcap-diff+xml xdf +# application/xcap-el+xml +# application/xcap-error+xml +# application/xcap-ns+xml +# application/xcon-conference-info-diff+xml +# application/xcon-conference-info+xml application/xenc+xml xenc application/xhtml+xml xhtml xht +# application/xhtml-voice+xml application/xml xml xsl application/xml-dtd dtd -application/xml-external-parsed-entity -application/xmpp+xml +# application/xml-external-parsed-entity +# application/xmpp+xml application/xop+xml xop +application/xproc+xml xpl application/xslt+xml xslt application/xspf+xml xspf application/xv+xml mxml xhvml xvml xvm +application/yang yang +application/yin+xml yin application/zip zip -audio/32kadpcm -audio/3gpp -audio/3gpp2 -audio/ac3 -audio/amr -audio/amr-wb -audio/amr-wb+ -audio/asc +# audio/1d-interleaved-parityfec +# audio/32kadpcm +# audio/3gpp +# audio/3gpp2 +# audio/ac3 +audio/adpcm adp +# audio/amr +# audio/amr-wb +# audio/amr-wb+ +# audio/asc +# audio/atrac-advanced-lossless +# audio/atrac-x +# audio/atrac3 audio/basic au snd -audio/bv16 -audio/bv32 -audio/clearmode -audio/cn -audio/dat12 -audio/dls -audio/dsr-es201108 -audio/dsr-es202050 -audio/dsr-es202211 -audio/dsr-es202212 -audio/dvi4 -audio/eac3 -audio/evrc -audio/evrc-qcp -audio/evrc0 -audio/evrc1 -audio/evrcb -audio/evrcb0 -audio/evrcb1 -audio/g722 -audio/g7221 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g7291 -audio/g729d -audio/g729e -audio/gsm -audio/gsm-efr -audio/ilbc -audio/l16 -audio/l20 -audio/l24 -audio/l8 -audio/lpc +# audio/bv16 +# audio/bv32 +# audio/clearmode +# audio/cn +# audio/dat12 +# audio/dls +# audio/dsr-es201108 +# audio/dsr-es202050 +# audio/dsr-es202211 +# audio/dsr-es202212 +# audio/dv +# audio/dvi4 +# audio/eac3 +# audio/evrc +# audio/evrc-qcp +# audio/evrc0 +# audio/evrc1 +# audio/evrcb +# audio/evrcb0 +# audio/evrcb1 +# audio/evrcwb +# audio/evrcwb0 +# audio/evrcwb1 +# audio/example +# audio/fwdred +# audio/g719 +# audio/g722 +# audio/g7221 +# audio/g723 +# audio/g726-16 +# audio/g726-24 +# audio/g726-32 +# audio/g726-40 +# audio/g728 +# audio/g729 +# audio/g7291 +# audio/g729d +# audio/g729e +# audio/gsm +# audio/gsm-efr +# audio/gsm-hr-08 +# audio/ilbc +# audio/ip-mr_v2.5 +# audio/isac +# audio/l16 +# audio/l20 +# audio/l24 +# audio/l8 +# audio/lpc audio/midi mid midi kar rmi -audio/mobile-xmf +# audio/mobile-xmf audio/mp4 mp4a -audio/mp4a-latm -audio/mpa -audio/mpa-robust +# audio/mp4a-latm +# audio/mpa +# audio/mpa-robust audio/mpeg mpga mp2 mp2a mp3 m2a m3a -audio/mpeg4-generic -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/rtp-enc-aescm128 -audio/rtp-midi -audio/rtx -audio/smv -audio/smv0 -audio/smv-qcp -audio/sp-midi -audio/t140c -audio/t38 -audio/telephone-event -audio/tone -audio/vdvi -audio/vmr-wb -audio/vnd.3gpp.iufp -audio/vnd.4sb -audio/vnd.audiokoz -audio/vnd.celp -audio/vnd.cisco.nse -audio/vnd.cmles.radio-events -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 +# audio/mpeg4-generic +# audio/musepack +audio/ogg oga ogg spx +# audio/opus +# audio/parityfec +# audio/pcma +# audio/pcma-wb +# audio/pcmu-wb +# audio/pcmu +# audio/prs.sid +# audio/qcelp +# audio/red +# audio/rtp-enc-aescm128 +# audio/rtp-midi +# audio/rtx +audio/s3m s3m +audio/silk sil +# audio/smv +# audio/smv0 +# audio/smv-qcp +# audio/sp-midi +# audio/speex +# audio/t140c +# audio/t38 +# audio/telephone-event +# audio/tone +# audio/uemclip +# audio/ulpfec +# audio/vdvi +# audio/vmr-wb +# audio/vnd.3gpp.iufp +# audio/vnd.4sb +# audio/vnd.audiokoz +# audio/vnd.celp +# audio/vnd.cisco.nse +# audio/vnd.cmles.radio-events +# audio/vnd.cns.anp1 +# audio/vnd.cns.inf1 +audio/vnd.dece.audio uva uvva audio/vnd.digital-winds eol -audio/vnd.dlna.adts -audio/vnd.dolby.mlp -audio/vnd.everad.plj -audio/vnd.hns.audio +# audio/vnd.dlna.adts +# audio/vnd.dolby.heaac.1 +# audio/vnd.dolby.heaac.2 +# audio/vnd.dolby.mlp +# audio/vnd.dolby.mps +# audio/vnd.dolby.pl2 +# audio/vnd.dolby.pl2x +# audio/vnd.dolby.pl2z +# audio/vnd.dolby.pulse.1 +audio/vnd.dra dra +audio/vnd.dts dts +audio/vnd.dts.hd dtshd +# audio/vnd.dvb.file +# audio/vnd.everad.plj +# audio/vnd.hns.audio audio/vnd.lucent.voice lvp -audio/vnd.nokia.mobile-xmf -audio/vnd.nortel.vbk +audio/vnd.ms-playready.media.pya pya +# audio/vnd.nokia.mobile-xmf +# audio/vnd.nortel.vbk audio/vnd.nuera.ecelp4800 ecelp4800 audio/vnd.nuera.ecelp7470 ecelp7470 audio/vnd.nuera.ecelp9600 ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.sealedmedia.softseal.mpeg -audio/vnd.vmx.cvsd -audio/wav wav +# audio/vnd.octel.sbc +# audio/vnd.qcelp +# audio/vnd.rhetorex.32kadpcm +audio/vnd.rip rip +# audio/vnd.sealedmedia.softseal.mpeg +# audio/vnd.vmx.cvsd +# audio/vorbis +# audio/vorbis-config +audio/webm weba +audio/x-aac aac audio/x-aiff aif aiff aifc +audio/x-caf caf +audio/x-flac flac +audio/x-matroska mka audio/x-mpegurl m3u audio/x-ms-wax wax audio/x-ms-wma wma audio/x-pn-realaudio ram ra audio/x-pn-realaudio-plugin rmp +# audio/x-tta audio/x-wav wav +audio/xm xm chemical/x-cdx cdx chemical/x-cif cif chemical/x-cmdf cmdf chemical/x-cml cml chemical/x-csml csml -chemical/x-pdb pdb +# chemical/x-pdb chemical/x-xyz xyz image/bmp bmp image/cgm cgm -image/fits +# image/example +# image/fits image/g3fax g3 image/gif gif image/ief ief -image/jp2 +# image/jp2 image/jpeg jpeg jpg jpe -image/jpm -image/jpx -image/naplps +# image/jpm +# image/jpx +image/ktx ktx +# image/naplps image/png png image/prs.btif btif -image/prs.pti +# image/prs.pti +image/sgi sgi image/svg+xml svg svgz -image/t38 +# image/t38 image/tiff tiff tif -image/tiff-fx +# image/tiff-fx image/vnd.adobe.photoshop psd -image/vnd.cns.inf2 +# image/vnd.cns.inf2 +image/vnd.dece.graphic uvi uvvi uvg uvvg +image/vnd.dvb.subtitle sub image/vnd.djvu djvu djv image/vnd.dwg dwg image/vnd.dxf dxf @@ -811,20 +1362,26 @@ image/vnd.fpx fpx image/vnd.fst fst image/vnd.fujixerox.edmics-mmr mmr image/vnd.fujixerox.edmics-rlc rlc -image/vnd.globalgraphics.pgb -image/vnd.microsoft.icon ico -image/vnd.mix +# image/vnd.globalgraphics.pgb +# image/vnd.microsoft.icon +# image/vnd.mix image/vnd.ms-modi mdi +image/vnd.ms-photo wdp image/vnd.net-fpx npx -image/vnd.sealed.png -image/vnd.sealedmedia.softseal.gif -image/vnd.sealedmedia.softseal.jpg -image/vnd.svf +# image/vnd.radiance +# image/vnd.sealed.png +# image/vnd.sealedmedia.softseal.gif +# image/vnd.sealedmedia.softseal.jpg +# image/vnd.svf image/vnd.wap.wbmp wbmp image/vnd.xiff xif +image/webp webp +image/x-3ds 3ds image/x-cmu-raster ras image/x-cmx cmx -image/x-icon +image/x-freehand fh fhc fh4 fh5 fh7 +image/x-icon ico +image/x-mrsid-image sid image/x-pcx pcx image/x-pict pic pct image/x-portable-anymap pnm @@ -832,152 +1389,221 @@ image/x-portable-bitmap pbm image/x-portable-graymap pgm image/x-portable-pixmap ppm image/x-rgb rgb +image/x-tga tga image/x-xbitmap xbm image/x-xpixmap xpm image/x-xwindowdump xwd -message/cpim -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial +# message/cpim +# message/delivery-status +# message/disposition-notification +# message/example +# message/external-body +# message/feedback-report +# message/global +# message/global-delivery-status +# message/global-disposition-notification +# message/global-headers +# message/http +# message/imdn+xml +# message/news +# message/partial message/rfc822 eml mime -message/s-http -message/sip -message/sipfrag -message/tracking-status +# message/s-http +# message/sip +# message/sipfrag +# message/tracking-status +# message/vnd.si.simp +# model/example model/iges igs iges model/mesh msh mesh silo +model/vnd.collada+xml dae model/vnd.dwf dwf -model/vnd.flatland.3dml +# model/vnd.flatland.3dml model/vnd.gdl gdl -model/vnd.gs.gdl +# model/vnd.gs-gdl +# model/vnd.gs.gdl model/vnd.gtw gtw -model/vnd.moml+xml +# model/vnd.moml+xml model/vnd.mts mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text +# model/vnd.parasolid.transmit.binary +# model/vnd.parasolid.transmit.text model/vnd.vtu vtu model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message +model/x3d+binary x3db x3dbz +model/x3d+vrml x3dv x3dvz +model/x3d+xml x3d x3dz +# multipart/alternative +# multipart/appledouble +# multipart/byteranges +# multipart/digest +# multipart/encrypted +# multipart/example +# multipart/form-data +# multipart/header-set +# multipart/mixed +# multipart/parallel +# multipart/related +# multipart/report +# multipart/signed +# multipart/voice-message +# text/1d-interleaved-parityfec +text/cache-manifest appcache text/calendar ics ifb text/css css text/csv csv -text/directory -text/dns -text/enriched +# text/directory +# text/dns +# text/ecmascript +# text/enriched +# text/example +# text/fwdred text/html html htm -text/parityfec +# text/javascript +text/n3 n3 +# text/parityfec text/plain txt text conf def list log in -text/prs.fallenstein.rst +# text/prs.fallenstein.rst text/prs.lines.tag dsc -text/red -text/rfc822-headers +# text/vnd.radisys.msml-basic-layout +# text/red +# text/rfc822-headers text/richtext rtx -text/rtf -text/rtp-enc-aescm128 -text/rtx +# text/rtf +# text/rtp-enc-aescm128 +# text/rtx text/sgml sgml sgm -text/t140 +# text/t140 text/tab-separated-values tsv text/troff t tr roff man me ms +text/turtle ttl +# text/ulpfec text/uri-list uri uris urls -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.esmertec.theme-descriptor +text/vcard vcard +# text/vnd.abc +text/vnd.curl curl +text/vnd.curl.dcurl dcurl +text/vnd.curl.scurl scurl +text/vnd.curl.mcurl mcurl +# text/vnd.dmclientscript +text/vnd.dvb.subtitle sub +# text/vnd.esmertec.theme-descriptor text/vnd.fly fly text/vnd.fmi.flexstor flx +text/vnd.graphviz gv text/vnd.in3d.3dml 3dml text/vnd.in3d.spot spot -text/vnd.iptc.newsml -text/vnd.iptc.nitf -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command +# text/vnd.iptc.newsml +# text/vnd.iptc.nitf +# text/vnd.latex-z +# text/vnd.motorola.reflex +# text/vnd.ms-mediapackage +# text/vnd.net2phone.commcenter.command +# text/vnd.si.uricatalogue text/vnd.sun.j2me.app-descriptor jad -text/vnd.trolltech.linguist -text/vnd.wap.si -text/vnd.wap.sl +# text/vnd.trolltech.linguist +# text/vnd.wap.si +# text/vnd.wap.sl text/vnd.wap.wml wml text/vnd.wap.wmlscript wmls text/x-asm s asm text/x-c c cc cxx cpp h hh dic text/x-fortran f for f77 f90 -text/x-pascal p pas text/x-java-source java +text/x-opml opml +text/x-pascal p pas +text/x-nfo nfo text/x-setext etx +text/x-sfv sfv text/x-uuencode uu text/x-vcalendar vcs text/x-vcard vcf -text/xml -text/xml-external-parsed-entity +# text/xml +# text/xml-external-parsed-entity +# video/1d-interleaved-parityfec video/3gpp 3gp -video/3gpp-tt +# video/3gpp-tt video/3gpp2 3g2 -video/bmpeg -video/bt656 -video/celb -video/dv +# video/bmpeg +# video/bt656 +# video/celb +# video/dv +# video/example video/h261 h261 video/h263 h263 -video/h263-1998 -video/h263-2000 +# video/h263-1998 +# video/h263-2000 video/h264 h264 +# video/h264-rcdo +# video/h264-svc video/jpeg jpgv +# video/jpeg2000 video/jpm jpm jpgm video/mj2 mj2 mjp2 -video/mp1s -video/mp2p -video/mp2t +# video/mp1s +# video/mp2p +# video/mp2t video/mp4 mp4 mp4v mpg4 -video/mp4v-es +# video/mp4v-es video/mpeg mpeg mpg mpe m1v m2v -video/mpeg4-generic -video/mpv -video/nv -video/parityfec -video/pointer +# video/mpeg4-generic +# video/mpv +# video/nv +video/ogg ogv +# video/parityfec +# video/pointer video/quicktime qt mov -video/raw -video/rtp-enc-aescm128 -video/rtx -video/smpte292m -video/vc1 -video/vnd.dlna.mpeg-tts +# video/raw +# video/rtp-enc-aescm128 +# video/rtx +# video/smpte292m +# video/ulpfec +# video/vc1 +# video/vnd.cctv +video/vnd.dece.hd uvh uvvh +video/vnd.dece.mobile uvm uvvm +# video/vnd.dece.mp4 +video/vnd.dece.pd uvp uvvp +video/vnd.dece.sd uvs uvvs +video/vnd.dece.video uvv uvvv +# video/vnd.directv.mpeg +# video/vnd.directv.mpeg-tts +# video/vnd.dlna.mpeg-tts +video/vnd.dvb.file dvb video/vnd.fvt fvt -video/vnd.hns.video -video/vnd.motorola.video -video/vnd.motorola.videop +# video/vnd.hns.video +# video/vnd.iptvforum.1dparityfec-1010 +# video/vnd.iptvforum.1dparityfec-2005 +# video/vnd.iptvforum.2dparityfec-1010 +# video/vnd.iptvforum.2dparityfec-2005 +# video/vnd.iptvforum.ttsavc +# video/vnd.iptvforum.ttsmpeg2 +# video/vnd.motorola.video +# video/vnd.motorola.videop video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.nokia.videovoip -video/vnd.objectvideo -video/vnd.sealed.mpeg1 -video/vnd.sealed.mpeg4 -video/vnd.sealed.swf -video/vnd.sealedmedia.softseal.mov +video/vnd.ms-playready.media.pyv pyv +# video/vnd.nokia.interleaved-multimedia +# video/vnd.nokia.videovoip +# video/vnd.objectvideo +# video/vnd.sealed.mpeg1 +# video/vnd.sealed.mpeg4 +# video/vnd.sealed.swf +# video/vnd.sealedmedia.softseal.mov +video/vnd.uvvu.mp4 uvu uvvu video/vnd.vivo viv +video/webm webm +video/x-f4v f4v video/x-fli fli +video/x-flv flv +video/x-m4v m4v +video/x-matroska mkv mk3d mks +video/x-mng mng video/x-ms-asf asf asx +video/x-ms-vob vob video/x-ms-wm wm video/x-ms-wmv wmv video/x-ms-wmx wmx video/x-ms-wvx wvx video/x-msvideo avi video/x-sgi-movie movie +video/x-smv smv x-conference/x-cooltalk ice diff --git a/conf/rayo/mime.types b/conf/rayo/mime.types index 34d5fc9055..b680b3327d 100644 --- a/conf/rayo/mime.types +++ b/conf/rayo/mime.types @@ -1,204 +1,343 @@ -# This is a comment. I love comments. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at . - -# MIME type Extensions -application/activemessage +# +# MIME type configs overriden by the FreeSWITCH project. +# +audio/mpeg mp3 mpga mp2 mp2a m2a m3a +image/jpeg jpg jpeg jpe +# +# Additional MIME types added by the FreeSWITCH project. Any duplicate file extensions listed here will only be +# used to map from MIME -> extension and not extension -> MIME +audio/x-mpeg mp3 +audio/mp3 mp3 +audio/x-mp3 mp3 +audio/mpeg3 mp3 +audio/x-mpeg3 mp3 +audio/mpg mp3 +audio/x-mpegaudio mp3 +audio/x-wave wav +audio/wave wav +# +# The section below was taken from Apache httpd Project at +# +# +# This file maps Internet media types to unique file extension(s). +# Although created for httpd, this file is used by many software systems +# and has been placed in the public domain for unlimited redisribution. +# +# The table below contains both registered and (common) unregistered types. +# A type that has no unique extension can be ignored -- they are listed +# here to guide configurations toward known types and to make it easier to +# identify "new" types. File extensions are also commonly used to indicate +# content languages and encodings, so choose them carefully. +# +# Internet media types should be registered as described in RFC 4288. +# The registry is at . +# +# MIME type (lowercased) Extensions +# ============================================ ========== +# application/1d-interleaved-parityfec +# application/3gpp-ims+xml +# application/activemessage application/andrew-inset ez -application/applefile +# application/applefile +application/applixware aw application/atom+xml atom application/atomcat+xml atomcat -application/atomicmail +# application/atomicmail application/atomsvc+xml atomsvc -application/auth-policy+xml -application/batch-smtp -application/beep+xml -application/cals-1840 +# application/auth-policy+xml +# application/batch-smtp +# application/beep+xml +# application/calendar+xml +# application/cals-1840 +# application/ccmp+xml application/ccxml+xml ccxml -application/cellml+xml -application/cnrp+xml -application/commonground -application/conference-info+xml -application/cpl+xml -application/csta+xml -application/cstadata+xml -application/cybercash +application/cdmi-capability cdmia +application/cdmi-container cdmic +application/cdmi-domain cdmid +application/cdmi-object cdmio +application/cdmi-queue cdmiq +# application/cea-2018+xml +# application/cellml+xml +# application/cfw +# application/cnrp+xml +# application/commonground +# application/conference-info+xml +# application/cpl+xml +# application/csta+xml +# application/cstadata+xml +application/cu-seeme cu +# application/cybercash application/davmount+xml davmount -application/dca-rft -application/dec-dx -application/dialog-info+xml -application/dicom -application/dns -application/dvcs +# application/dca-rft +# application/dec-dx +# application/dialog-info+xml +# application/dicom +# application/dns +application/docbook+xml dbk +# application/dskpp+xml +application/dssc+der dssc +application/dssc+xml xdssc +# application/dvcs application/ecmascript ecma -application/edi-consent -application/edi-x12 -application/edifact -application/epp+xml -application/eshop -application/fastinfoset -application/fastsoap -application/fits +# application/edi-consent +# application/edi-x12 +# application/edifact +application/emma+xml emma +# application/epp+xml +application/epub+zip epub +# application/eshop +# application/example +application/exi exi +# application/fastinfoset +# application/fastsoap +# application/fits application/font-tdpfr pfr -application/h224 -application/http +# application/framework-attributes+xml +application/gml+xml gml +application/gpx+xml gpx +application/gxf gxf +# application/h224 +# application/held+xml +# application/http application/hyperstudio stk -application/iges -application/im-iscomposing+xml -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup +# application/ibe-key-request+xml +# application/ibe-pkg-reply+xml +# application/ibe-pp-data +# application/iges +# application/im-iscomposing+xml +# application/index +# application/index.cmd +# application/index.obj +# application/index.response +# application/index.vnd +application/inkml+xml ink inkml +# application/iotp +application/ipfix ipfix +# application/ipp +# application/isup +application/java-archive jar +application/java-serialized-object ser +application/java-vm class application/javascript js application/json json -application/kpml-request+xml -application/kpml-response+xml +application/jsonml+json jsonml +# application/kpml-request+xml +# application/kpml-response+xml +application/lost+xml lostxml application/mac-binhex40 hqx application/mac-compactpro cpt -application/macwriteii +# application/macwriteii +application/mads+xml mads application/marc mrc +application/marcxml+xml mrcx application/mathematica ma nb mb +# application/mathml-content+xml +# application/mathml-presentation+xml application/mathml+xml mathml -application/mbms-associated-procedure-description+xml -application/mbms-deregister+xml -application/mbms-envelope+xml -application/mbms-msk+xml -application/mbms-msk-response+xml -application/mbms-protection-description+xml -application/mbms-reception-report+xml -application/mbms-register+xml -application/mbms-register-response+xml -application/mbms-user-service-description+xml +# application/mbms-associated-procedure-description+xml +# application/mbms-deregister+xml +# application/mbms-envelope+xml +# application/mbms-msk+xml +# application/mbms-msk-response+xml +# application/mbms-protection-description+xml +# application/mbms-reception-report+xml +# application/mbms-register+xml +# application/mbms-register-response+xml +# application/mbms-user-service-description+xml application/mbox mbox +# application/media_control+xml application/mediaservercontrol+xml mscml -application/mikey +application/metalink+xml metalink +application/metalink4+xml meta4 +application/mets+xml mets +# application/mikey +application/mods+xml mods +# application/moss-keys +# application/moss-signature +# application/mosskey-data +# application/mosskey-request +application/mp21 m21 mp21 application/mp4 mp4s -application/mpeg4-generic -application/mpeg4-iod -application/mpeg4-iod-xmt +# application/mpeg4-generic +# application/mpeg4-iod +# application/mpeg4-iod-xmt +# application/msc-ivr+xml +# application/msc-mixer+xml application/msword doc dot application/mxf mxf -application/nasdata -application/news-message-id -application/news-transmission -application/nss -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc +# application/nasdata +# application/news-checkgroups +# application/news-groupinfo +# application/news-transmission +# application/nss +# application/ocsp-request +# application/ocsp-response +application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy application/oda oda -application/oebps-package+xml -application/ogg ogg -application/parityfec +application/oebps-package+xml opf +application/ogg ogx +application/omdoc+xml omdoc +application/onenote onetoc onetoc2 onetmp onepkg +application/oxps oxps +# application/parityfec +application/patch-ops-error+xml xer application/pdf pdf application/pgp-encrypted pgp -application/pgp-keys +# application/pgp-keys application/pgp-signature asc sig application/pics-rules prf -application/pidf+xml +# application/pidf+xml +# application/pidf-diff+xml application/pkcs10 p10 application/pkcs7-mime p7m p7c application/pkcs7-signature p7s +application/pkcs8 p8 +application/pkix-attr-cert ac application/pkix-cert cer application/pkix-crl crl application/pkix-pkipath pkipath application/pkixcmp pki application/pls+xml pls -application/poc-settings+xml +# application/poc-settings+xml application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet +# application/prs.alvestrand.titrax-sheet application/prs.cww cww -application/prs.nprend -application/prs.plucker -application/qsig +# application/prs.nprend +# application/prs.plucker +# application/prs.rdf-xml-crypt +# application/prs.xsf+xml +application/pskc+xml pskcxml +# application/qsig application/rdf+xml rdf application/reginfo+xml rif application/relax-ng-compact-syntax rnc -application/remote-printing +# application/remote-printing application/resource-lists+xml rl -application/riscos -application/rlmi+xml +application/resource-lists-diff+xml rld +# application/riscos +# application/rlmi+xml application/rls-services+xml rs +application/rpki-ghostbusters gbr +application/rpki-manifest mft +application/rpki-roa roa +# application/rpki-updown application/rsd+xml rsd application/rss+xml rss application/rtf rtf -application/rtx -application/samlassertion+xml -application/samlmetadata+xml +# application/rtx +# application/samlassertion+xml +# application/samlmetadata+xml application/sbml+xml sbml +application/scvp-cv-request scq +application/scvp-cv-response scs +application/scvp-vp-request spq +application/scvp-vp-response spp application/sdp sdp -application/set-payment +# application/set-payment application/set-payment-initiation setpay -application/set-registration +# application/set-registration application/set-registration-initiation setreg -application/sgml -application/sgml-open-catalog +# application/sgml +# application/sgml-open-catalog application/shf+xml shf -application/sieve -application/simple-filter+xml -application/simple-message-summary -application/simplesymbolcontainer -application/slate -application/smil +# application/sieve +# application/simple-filter+xml +# application/simple-message-summary +# application/simplesymbolcontainer +# application/slate +# application/smil application/smil+xml smi smil -application/soap+fastinfoset -application/soap+xml -application/spirits-event+xml +# application/soap+fastinfoset +# application/soap+xml +application/sparql-query rq +application/sparql-results+xml srx +# application/spirits-event+xml application/srgs gram application/srgs+xml grxml +application/sru+xml sru +application/ssdl+xml ssdl application/ssml+xml ssml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vividence.scriptfile -application/vnd.3gpp.bsf+xml +# application/tamp-apex-update +# application/tamp-apex-update-confirm +# application/tamp-community-update +# application/tamp-community-update-confirm +# application/tamp-error +# application/tamp-sequence-adjust +# application/tamp-sequence-adjust-confirm +# application/tamp-status-query +# application/tamp-status-response +# application/tamp-update +# application/tamp-update-confirm +application/tei+xml tei teicorpus +application/thraud+xml tfi +# application/timestamp-query +# application/timestamp-reply +application/timestamped-data tsd +# application/tve-trigger +# application/ulpfec +# application/vcard+xml +# application/vemmi +# application/vividence.scriptfile +# application/vnd.3gpp.bsf+xml application/vnd.3gpp.pic-bw-large plb application/vnd.3gpp.pic-bw-small psb application/vnd.3gpp.pic-bw-var pvb -application/vnd.3gpp.sms -application/vnd.3gpp2.bcmcsinfo+xml -application/vnd.3gpp2.sms +# application/vnd.3gpp.sms +# application/vnd.3gpp2.bcmcsinfo+xml +# application/vnd.3gpp2.sms +application/vnd.3gpp2.tcap tcap application/vnd.3m.post-it-notes pwn application/vnd.accpac.simply.aso aso application/vnd.accpac.simply.imp imp application/vnd.acucobol acu application/vnd.acucorp atc acutc +application/vnd.adobe.air-application-installer-package+zip air +application/vnd.adobe.formscentral.fcdt fcdt +application/vnd.adobe.fxp fxp fxpl +# application/vnd.adobe.partial-upload application/vnd.adobe.xdp+xml xdp application/vnd.adobe.xfdf xfdf -application/vnd.aether.imp +# application/vnd.aether.imp +# application/vnd.ah-barcode +application/vnd.ahead.space ahead +application/vnd.airzip.filesecure.azf azf +application/vnd.airzip.filesecure.azs azs +application/vnd.amazon.ebook azw +application/vnd.americandynamics.acc acc application/vnd.amiga.ami ami +# application/vnd.amundsen.maze+xml +application/vnd.android.package-archive apk application/vnd.anser-web-certificate-issue-initiation cii application/vnd.anser-web-funds-transfer-initiation fti application/vnd.antix.game-component atx application/vnd.apple.installer+xml mpkg +application/vnd.apple.mpegurl m3u8 +# application/vnd.arastra.swi +application/vnd.aristanetworks.swi swi +application/vnd.astraea-software.iota iota application/vnd.audiograph aep -application/vnd.autopackage -application/vnd.avistar+xml +# application/vnd.autopackage +# application/vnd.avistar+xml application/vnd.blueice.multipass mpm +# application/vnd.bluetooth.ep.oob application/vnd.bmi bmi application/vnd.businessobjects rep -application/vnd.cab-jscript -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cendio.thinlinc.clientconf +# application/vnd.cab-jscript +# application/vnd.canon-cpdl +# application/vnd.canon-lips +# application/vnd.cendio.thinlinc.clientconf application/vnd.chemdraw+xml cdxml application/vnd.chipnuts.karaoke-mmd mmd application/vnd.cinderella cdy -application/vnd.cirpack.isdn-ext +# application/vnd.cirpack.isdn-ext application/vnd.claymore cla +application/vnd.cloanto.rp9 rp9 application/vnd.clonk.c4group c4g c4d c4f c4p c4u -application/vnd.commerce-battelle -application/vnd.commonspace csp cst +application/vnd.cluetrust.cartomobile-config c11amc +application/vnd.cluetrust.cartomobile-config-pkg c11amz +# application/vnd.collection+json +# application/vnd.commerce-battelle +application/vnd.commonspace csp application/vnd.contact.cmsg cdbcmsg application/vnd.cosmocaller cmc application/vnd.crick.clicker clkx @@ -208,46 +347,100 @@ application/vnd.crick.clicker.template clkt application/vnd.crick.clicker.wordbank clkw application/vnd.criticaltools.wbs+xml wbs application/vnd.ctc-posml pml -application/vnd.cups-pdf -application/vnd.cups-postscript +# application/vnd.ctct.ws+xml +# application/vnd.cups-pdf +# application/vnd.cups-postscript application/vnd.cups-ppd ppd -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl curl -application/vnd.cybank +# application/vnd.cups-raster +# application/vnd.cups-raw +# application/vnd.curl +application/vnd.curl.car car +application/vnd.curl.pcurl pcurl +# application/vnd.cybank +application/vnd.dart dart application/vnd.data-vision.rdz rdz +application/vnd.dece.data uvf uvvf uvd uvvd +application/vnd.dece.ttml+xml uvt uvvt +application/vnd.dece.unspecified uvx uvvx +application/vnd.dece.zip uvz uvvz application/vnd.denovo.fcselayout-link fe_launch +# application/vnd.dir-bi.plate-dl-nosuffix application/vnd.dna dna application/vnd.dolby.mlp mlp +# application/vnd.dolby.mobile.1 +# application/vnd.dolby.mobile.2 application/vnd.dpgraph dpg application/vnd.dreamfactory dfac -application/vnd.dvb.esgcontainer -application/vnd.dvb.ipdcesgaccess -application/vnd.dxr -application/vnd.ecdis-update +application/vnd.ds-keypoint kpxx +application/vnd.dvb.ait ait +# application/vnd.dvb.dvbj +# application/vnd.dvb.esgcontainer +# application/vnd.dvb.ipdcdftnotifaccess +# application/vnd.dvb.ipdcesgaccess +# application/vnd.dvb.ipdcesgaccess2 +# application/vnd.dvb.ipdcesgpdd +# application/vnd.dvb.ipdcroaming +# application/vnd.dvb.iptv.alfec-base +# application/vnd.dvb.iptv.alfec-enhancement +# application/vnd.dvb.notif-aggregate-root+xml +# application/vnd.dvb.notif-container+xml +# application/vnd.dvb.notif-generic+xml +# application/vnd.dvb.notif-ia-msglist+xml +# application/vnd.dvb.notif-ia-registration-request+xml +# application/vnd.dvb.notif-ia-registration-response+xml +# application/vnd.dvb.notif-init+xml +# application/vnd.dvb.pfr +application/vnd.dvb.service svc +# application/vnd.dxr +application/vnd.dynageo geo +# application/vnd.easykaraoke.cdgdownload +# application/vnd.ecdis-update application/vnd.ecowin.chart mag -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate +# application/vnd.ecowin.filerequest +# application/vnd.ecowin.fileupdate +# application/vnd.ecowin.series +# application/vnd.ecowin.seriesrequest +# application/vnd.ecowin.seriesupdate +# application/vnd.emclient.accessrequest+xml application/vnd.enliven nml +# application/vnd.eprints.data+xml application/vnd.epson.esf esf application/vnd.epson.msf msf application/vnd.epson.quickanime qam application/vnd.epson.salt slt application/vnd.epson.ssf ssf -application/vnd.ericsson.quickcall +# application/vnd.ericsson.quickcall application/vnd.eszigno3+xml es3 et3 -application/vnd.eudora.data +# application/vnd.etsi.aoc+xml +# application/vnd.etsi.cug+xml +# application/vnd.etsi.iptvcommand+xml +# application/vnd.etsi.iptvdiscovery+xml +# application/vnd.etsi.iptvprofile+xml +# application/vnd.etsi.iptvsad-bc+xml +# application/vnd.etsi.iptvsad-cod+xml +# application/vnd.etsi.iptvsad-npvr+xml +# application/vnd.etsi.iptvservice+xml +# application/vnd.etsi.iptvsync+xml +# application/vnd.etsi.iptvueprofile+xml +# application/vnd.etsi.mcid+xml +# application/vnd.etsi.overload-control-policy-dataset+xml +# application/vnd.etsi.sci+xml +# application/vnd.etsi.simservs+xml +# application/vnd.etsi.tsl+xml +# application/vnd.etsi.tsl.der +# application/vnd.eudora.data application/vnd.ezpix-album ez2 application/vnd.ezpix-package ez3 +# application/vnd.f-secure.mobile application/vnd.fdf fdf -application/vnd.ffsns -application/vnd.fints +application/vnd.fdsn.mseed mseed +application/vnd.fdsn.seed seed dataless +# application/vnd.ffsns +# application/vnd.fints application/vnd.flographit gph application/vnd.fluxtime.clip ftc -application/vnd.framemaker fm frame maker +# application/vnd.font-fontforge-sfd +application/vnd.framemaker fm frame maker book application/vnd.frogans.fnc fnc application/vnd.frogans.ltf ltf application/vnd.fsc.weblaunch fsc @@ -256,19 +449,29 @@ application/vnd.fujitsu.oasys2 oa2 application/vnd.fujitsu.oasys3 oa3 application/vnd.fujitsu.oasysgp fg5 application/vnd.fujitsu.oasysprs bh2 -application/vnd.fujixerox.art-ex -application/vnd.fujixerox.art4 -application/vnd.fujixerox.hbpl +# application/vnd.fujixerox.art-ex +# application/vnd.fujixerox.art4 +# application/vnd.fujixerox.hbpl application/vnd.fujixerox.ddd ddd application/vnd.fujixerox.docuworks xdw application/vnd.fujixerox.docuworks.binder xbd -application/vnd.fut-misnet +# application/vnd.fut-misnet application/vnd.fuzzysheet fzs application/vnd.genomatix.tuxedo txd +# application/vnd.geocube+xml +application/vnd.geogebra.file ggb +application/vnd.geogebra.tool ggt +application/vnd.geometry-explorer gex gre +application/vnd.geonext gxt +application/vnd.geoplan g2w +application/vnd.geospace g3w +# application/vnd.globalplatform.card-content-mgt +# application/vnd.globalplatform.card-content-mgt-response +application/vnd.gmx gmx application/vnd.google-earth.kml+xml kml application/vnd.google-earth.kmz kmz application/vnd.grafeq gqf gqs -application/vnd.gridmp +# application/vnd.gridmp application/vnd.groove-account gac application/vnd.groove-help ghf application/vnd.groove-identity-message gim @@ -276,9 +479,11 @@ application/vnd.groove-injector grv application/vnd.groove-tool-message gtm application/vnd.groove-tool-template tpl application/vnd.groove-vcard vcg +# application/vnd.hal+json +application/vnd.hal+xml hal application/vnd.handheld-entertainment+xml zmm application/vnd.hbci hbci -application/vnd.hcl-bireports +# application/vnd.hcl-bireports application/vnd.hhe.lesson-player les application/vnd.hp-hpgl hpgl application/vnd.hp-hpid hpid @@ -286,37 +491,53 @@ application/vnd.hp-hps hps application/vnd.hp-jlyt jlt application/vnd.hp-pcl pcl application/vnd.hp-pclxl pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword x3d -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media +# application/vnd.httphone +application/vnd.hydrostatix.sof-data sfd-hdstx +# application/vnd.hzn-3d-crossword +# application/vnd.ibm.afplinedata +# application/vnd.ibm.electronic-media application/vnd.ibm.minipay mpy application/vnd.ibm.modcap afp listafp list3820 application/vnd.ibm.rights-management irm application/vnd.ibm.secure-container sc +application/vnd.iccprofile icc icm application/vnd.igloader igl application/vnd.immervision-ivp ivp application/vnd.immervision-ivu ivu -application/vnd.informedcontrol.rms+xml +# application/vnd.informedcontrol.rms+xml +# application/vnd.informix-visionary +# application/vnd.infotech.project +# application/vnd.infotech.project+xml +# application/vnd.innopath.wamp.notification +application/vnd.insors.igm igm application/vnd.intercon.formnet xpw xpx -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp +application/vnd.intergeo i2g +# application/vnd.intertrust.digibox +# application/vnd.intertrust.nncp application/vnd.intu.qbo qbo application/vnd.intu.qfx qfx +# application/vnd.iptc.g2.conceptitem+xml +# application/vnd.iptc.g2.knowledgeitem+xml +# application/vnd.iptc.g2.newsitem+xml +# application/vnd.iptc.g2.newsmessage+xml +# application/vnd.iptc.g2.packageitem+xml +# application/vnd.iptc.g2.planningitem+xml application/vnd.ipunplugged.rcprofile rcprofile application/vnd.irepository.package+xml irp application/vnd.is-xpr xpr +application/vnd.isac.fcs fcs application/vnd.jam jam -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup +# application/vnd.japannet-directory-service +# application/vnd.japannet-jpnstore-wakeup +# application/vnd.japannet-payment-wakeup +# application/vnd.japannet-registration +# application/vnd.japannet-registration-wakeup +# application/vnd.japannet-setstore-wakeup +# application/vnd.japannet-verification +# application/vnd.japannet-verification-wakeup application/vnd.jcp.javame.midlet-rms rms application/vnd.jisp jisp +application/vnd.joost.joda-archive joda application/vnd.kahootz ktz ktr application/vnd.kde.karbon karbon application/vnd.kde.kchart chrt @@ -330,7 +551,9 @@ application/vnd.kenameaapp htke application/vnd.kidspiration kia application/vnd.kinar kne knp application/vnd.koan skp skd skt skm -application/vnd.liberty-request+xml +application/vnd.kodak-descriptor sse +application/vnd.las.las+xml lasxml +# application/vnd.liberty-request+xml application/vnd.llamagraphics.life-balance.desktop lbd application/vnd.llamagraphics.life-balance.exchange+xml lbe application/vnd.lotus-1-2-3 123 @@ -341,20 +564,21 @@ application/vnd.lotus-organizer org application/vnd.lotus-screencam scm application/vnd.lotus-wordpro lwp application/vnd.macports.portpkg portpkg -application/vnd.marlin.drm.actiontoken+xml -application/vnd.marlin.drm.conftoken+xml -application/vnd.marlin.drm.mdcf +# application/vnd.marlin.drm.actiontoken+xml +# application/vnd.marlin.drm.conftoken+xml +# application/vnd.marlin.drm.license+xml +# application/vnd.marlin.drm.mdcf application/vnd.mcd mcd application/vnd.medcalcdata mc1 application/vnd.mediastation.cdkey cdkey -application/vnd.meridian-slingshot +# application/vnd.meridian-slingshot application/vnd.mfer mwf application/vnd.mfmp mfm application/vnd.micrografx.flo flo application/vnd.micrografx.igx igx application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb +# application/vnd.minisoft-hp3000-save +# application/vnd.mitsubishi.misty-guard.trustweb application/vnd.mobius.daf daf application/vnd.mobius.dis dis application/vnd.mobius.mbk mbk @@ -364,149 +588,312 @@ application/vnd.mobius.plc plc application/vnd.mobius.txf txf application/vnd.mophun.application mpn application/vnd.mophun.certificate mpc -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul +# application/vnd.motorola.flexsuite +# application/vnd.motorola.flexsuite.adsi +# application/vnd.motorola.flexsuite.fis +# application/vnd.motorola.flexsuite.gotap +# application/vnd.motorola.flexsuite.kmr +# application/vnd.motorola.flexsuite.ttc +# application/vnd.motorola.flexsuite.wem +# application/vnd.motorola.iprm +application/vnd.mozilla.xul+xml xul application/vnd.ms-artgalry cil -application/vnd.ms-asf asf +# application/vnd.ms-asf application/vnd.ms-cab-compressed cab +# application/vnd.ms-color.iccprofile application/vnd.ms-excel xls xlm xla xlc xlt xlw +application/vnd.ms-excel.addin.macroenabled.12 xlam +application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb +application/vnd.ms-excel.sheet.macroenabled.12 xlsm +application/vnd.ms-excel.template.macroenabled.12 xltm application/vnd.ms-fontobject eot application/vnd.ms-htmlhelp chm application/vnd.ms-ims ims application/vnd.ms-lrm lrm -application/vnd.ms-playready.initiator+xml +# application/vnd.ms-office.activex+xml +application/vnd.ms-officetheme thmx +# application/vnd.ms-opentype +# application/vnd.ms-package.obfuscated-opentype +application/vnd.ms-pki.seccat cat +application/vnd.ms-pki.stl stl +# application/vnd.ms-playready.initiator+xml application/vnd.ms-powerpoint ppt pps pot +application/vnd.ms-powerpoint.addin.macroenabled.12 ppam +application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm +application/vnd.ms-powerpoint.slide.macroenabled.12 sldm +application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm +application/vnd.ms-powerpoint.template.macroenabled.12 potm +# application/vnd.ms-printing.printticket+xml application/vnd.ms-project mpp mpt -application/vnd.ms-tnef -application/vnd.ms-wmdrm.lic-chlg-req -application/vnd.ms-wmdrm.lic-resp -application/vnd.ms-wmdrm.meter-chlg-req -application/vnd.ms-wmdrm.meter-resp +# application/vnd.ms-tnef +# application/vnd.ms-wmdrm.lic-chlg-req +# application/vnd.ms-wmdrm.lic-resp +# application/vnd.ms-wmdrm.meter-chlg-req +# application/vnd.ms-wmdrm.meter-resp +application/vnd.ms-word.document.macroenabled.12 docm +application/vnd.ms-word.template.macroenabled.12 dotm application/vnd.ms-works wps wks wcm wdb application/vnd.ms-wpl wpl application/vnd.ms-xpsdocument xps application/vnd.mseq mseq -application/vnd.msign -application/vnd.music-niff +# application/vnd.msign +# application/vnd.multiad.creator +# application/vnd.multiad.creator.cif +# application/vnd.music-niff application/vnd.musician mus -application/vnd.ncd.control -application/vnd.nervana -application/vnd.netfpx +application/vnd.muvee.style msty +application/vnd.mynfc taglet +# application/vnd.ncd.control +# application/vnd.ncd.reference +# application/vnd.nervana +# application/vnd.netfpx application/vnd.neurolanguage.nlu nlu +application/vnd.nitf ntf nitf application/vnd.noblenet-directory nnd application/vnd.noblenet-sealer nns application/vnd.noblenet-web nnw -application/vnd.nokia.catalogs -application/vnd.nokia.conml+wbxml -application/vnd.nokia.conml+xml -application/vnd.nokia.isds-radio-presets -application/vnd.nokia.iptv.config+xml -application/vnd.nokia.landmark+wbxml -application/vnd.nokia.landmark+xml -application/vnd.nokia.landmarkcollection+xml -application/vnd.nokia.n-gage.ac+xml +# application/vnd.nokia.catalogs +# application/vnd.nokia.conml+wbxml +# application/vnd.nokia.conml+xml +# application/vnd.nokia.isds-radio-presets +# application/vnd.nokia.iptv.config+xml +# application/vnd.nokia.landmark+wbxml +# application/vnd.nokia.landmark+xml +# application/vnd.nokia.landmarkcollection+xml +# application/vnd.nokia.n-gage.ac+xml application/vnd.nokia.n-gage.data ngdat application/vnd.nokia.n-gage.symbian.install n-gage -application/vnd.nokia.ncd -application/vnd.nokia.pcd+wbxml -application/vnd.nokia.pcd+xml +# application/vnd.nokia.ncd +# application/vnd.nokia.pcd+wbxml +# application/vnd.nokia.pcd+xml application/vnd.nokia.radio-preset rpst application/vnd.nokia.radio-presets rpss application/vnd.novadigm.edm edm application/vnd.novadigm.edx edx application/vnd.novadigm.ext ext +# application/vnd.ntt-local.file-transfer +# application/vnd.ntt-local.sip-ta_remote +# application/vnd.ntt-local.sip-ta_tcp_stream application/vnd.oasis.opendocument.chart odc application/vnd.oasis.opendocument.chart-template otc +application/vnd.oasis.opendocument.database odb application/vnd.oasis.opendocument.formula odf -application/vnd.oasis.opendocument.formula-template otf +application/vnd.oasis.opendocument.formula-template odft application/vnd.oasis.opendocument.graphics odg application/vnd.oasis.opendocument.graphics-template otg application/vnd.oasis.opendocument.image odi application/vnd.oasis.opendocument.image-template oti application/vnd.oasis.opendocument.presentation odp -application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.presentation-template otp application/vnd.oasis.opendocument.spreadsheet ods application/vnd.oasis.opendocument.spreadsheet-template ots application/vnd.oasis.opendocument.text odt -application/vnd.oasis.opendocument.text-master otm +application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth -application/vnd.obn +# application/vnd.obn +# application/vnd.oftn.l10n+json +# application/vnd.oipf.contentaccessdownload+xml +# application/vnd.oipf.contentaccessstreaming+xml +# application/vnd.oipf.cspg-hexbinary +# application/vnd.oipf.dae.svg+xml +# application/vnd.oipf.dae.xhtml+xml +# application/vnd.oipf.mippvcontrolmessage+xml +# application/vnd.oipf.pae.gem +# application/vnd.oipf.spdiscovery+xml +# application/vnd.oipf.spdlist+xml +# application/vnd.oipf.ueprofile+xml +# application/vnd.oipf.userprofile+xml application/vnd.olpc-sugar xo -application/vnd.oma-scws-config -application/vnd.oma-scws-http-request -application/vnd.oma-scws-http-response -application/vnd.oma.bcast.associated-procedure-parameter+xml -application/vnd.oma.bcast.drm-trigger+xml -application/vnd.oma.bcast.imd+xml -application/vnd.oma.bcast.notification+xml -application/vnd.oma.bcast.sgboot -application/vnd.oma.bcast.sgdd+xml -application/vnd.oma.bcast.sgdu -application/vnd.oma.bcast.simple-symbol-container -application/vnd.oma.bcast.smartcard-trigger+xml -application/vnd.oma.bcast.sprov+xml +# application/vnd.oma-scws-config +# application/vnd.oma-scws-http-request +# application/vnd.oma-scws-http-response +# application/vnd.oma.bcast.associated-procedure-parameter+xml +# application/vnd.oma.bcast.drm-trigger+xml +# application/vnd.oma.bcast.imd+xml +# application/vnd.oma.bcast.ltkm +# application/vnd.oma.bcast.notification+xml +# application/vnd.oma.bcast.provisioningtrigger +# application/vnd.oma.bcast.sgboot +# application/vnd.oma.bcast.sgdd+xml +# application/vnd.oma.bcast.sgdu +# application/vnd.oma.bcast.simple-symbol-container +# application/vnd.oma.bcast.smartcard-trigger+xml +# application/vnd.oma.bcast.sprov+xml +# application/vnd.oma.bcast.stkm +# application/vnd.oma.cab-address-book+xml +# application/vnd.oma.cab-feature-handler+xml +# application/vnd.oma.cab-pcc+xml +# application/vnd.oma.cab-user-prefs+xml +# application/vnd.oma.dcd +# application/vnd.oma.dcdc application/vnd.oma.dd2+xml dd2 -application/vnd.oma.drm.risd+xml -application/vnd.oma.group-usage-list+xml -application/vnd.oma.poc.groups+xml -application/vnd.oma.xcap-directory+xml -application/vnd.omads-email+xml -application/vnd.omads-file+xml -application/vnd.omads-folder+xml -application/vnd.omaloc-supl-init +# application/vnd.oma.drm.risd+xml +# application/vnd.oma.group-usage-list+xml +# application/vnd.oma.pal+xml +# application/vnd.oma.poc.detailed-progress-report+xml +# application/vnd.oma.poc.final-report+xml +# application/vnd.oma.poc.groups+xml +# application/vnd.oma.poc.invocation-descriptor+xml +# application/vnd.oma.poc.optimized-progress-report+xml +# application/vnd.oma.push +# application/vnd.oma.scidm.messages+xml +# application/vnd.oma.xcap-directory+xml +# application/vnd.omads-email+xml +# application/vnd.omads-file+xml +# application/vnd.omads-folder+xml +# application/vnd.omaloc-supl-init application/vnd.openofficeorg.extension oxt -application/vnd.osa.netdeploy +# application/vnd.openxmlformats-officedocument.custom-properties+xml +# application/vnd.openxmlformats-officedocument.customxmlproperties+xml +# application/vnd.openxmlformats-officedocument.drawing+xml +# application/vnd.openxmlformats-officedocument.drawingml.chart+xml +# application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml +# application/vnd.openxmlformats-officedocument.extended-properties+xml +# application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml +# application/vnd.openxmlformats-officedocument.presentationml.comments+xml +# application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx +# application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.presprops+xml +application/vnd.openxmlformats-officedocument.presentationml.slide sldx +# application/vnd.openxmlformats-officedocument.presentationml.slide+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx +# application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml +# application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml +# application/vnd.openxmlformats-officedocument.presentationml.tags+xml +application/vnd.openxmlformats-officedocument.presentationml.template potx +# application/vnd.openxmlformats-officedocument.presentationml.template.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx +# application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml +# application/vnd.openxmlformats-officedocument.theme+xml +# application/vnd.openxmlformats-officedocument.themeoverride+xml +# application/vnd.openxmlformats-officedocument.vmldrawing +# application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx +# application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml +# application/vnd.openxmlformats-package.core-properties+xml +# application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml +# application/vnd.openxmlformats-package.relationships+xml +# application/vnd.quobject-quoxdocument +# application/vnd.osa.netdeploy +application/vnd.osgeo.mapguide.package mgp +# application/vnd.osgi.bundle application/vnd.osgi.dp dp -application/vnd.otps.ct-kip+xml -application/vnd.palm prc pdb pqa oprc -application/vnd.paos.xml +application/vnd.osgi.subsystem esa +# application/vnd.otps.ct-kip+xml +application/vnd.palm pdb pqa oprc +# application/vnd.paos.xml +application/vnd.pawaafile paw application/vnd.pg.format str application/vnd.pg.osasli ei6 -application/vnd.piaccess.application-licence +# application/vnd.piaccess.application-licence application/vnd.picsel efif -application/vnd.poc.group-advertisement+xml +application/vnd.pmi.widget wg +# application/vnd.poc.group-advertisement+xml application/vnd.pocketlearn plf application/vnd.powerbuilder6 pbd -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.preminet +# application/vnd.powerbuilder6-s +# application/vnd.powerbuilder7 +# application/vnd.powerbuilder7-s +# application/vnd.powerbuilder75 +# application/vnd.powerbuilder75-s +# application/vnd.preminet application/vnd.previewsystems.box box application/vnd.proteus.magazine mgz application/vnd.publishare-delta-tree qps application/vnd.pvi.ptid1 ptid -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.qualcomm.brew-app-res +# application/vnd.pwg-multiplexed +# application/vnd.pwg-xhtml-print+xml +# application/vnd.qualcomm.brew-app-res application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb -application/vnd.rapid +# application/vnd.radisys.moml+xml +# application/vnd.radisys.msml+xml +# application/vnd.radisys.msml-audit+xml +# application/vnd.radisys.msml-audit-conf+xml +# application/vnd.radisys.msml-audit-conn+xml +# application/vnd.radisys.msml-audit-dialog+xml +# application/vnd.radisys.msml-audit-stream+xml +# application/vnd.radisys.msml-conf+xml +# application/vnd.radisys.msml-dialog+xml +# application/vnd.radisys.msml-dialog-base+xml +# application/vnd.radisys.msml-dialog-fax-detect+xml +# application/vnd.radisys.msml-dialog-fax-sendrecv+xml +# application/vnd.radisys.msml-dialog-group+xml +# application/vnd.radisys.msml-dialog-speech+xml +# application/vnd.radisys.msml-dialog-transform+xml +# application/vnd.rainstor.data +# application/vnd.rapid +application/vnd.realvnc.bed bed application/vnd.recordare.musicxml mxl -application/vnd.recordare.musicxml+xml -application/vnd.renlearn.rlprint +application/vnd.recordare.musicxml+xml musicxml +# application/vnd.renlearn.rlprint +application/vnd.rig.cryptonote cryptonote +application/vnd.rim.cod cod application/vnd.rn-realmedia rm -application/vnd.ruckus.download -application/vnd.s3sms -application/vnd.scribus -application/vnd.sealed.3df -application/vnd.sealed.csf -application/vnd.sealed.doc -application/vnd.sealed.eml -application/vnd.sealed.mht -application/vnd.sealed.net -application/vnd.sealed.ppt -application/vnd.sealed.tiff -application/vnd.sealed.xls -application/vnd.sealedmedia.softseal.html -application/vnd.sealedmedia.softseal.pdf +application/vnd.rn-realmedia-vbr rmvb +application/vnd.route66.link66+xml link66 +# application/vnd.rs-274x +# application/vnd.ruckus.download +# application/vnd.s3sms +application/vnd.sailingtracker.track st +# application/vnd.sbm.cid +# application/vnd.sbm.mid2 +# application/vnd.scribus +# application/vnd.sealed.3df +# application/vnd.sealed.csf +# application/vnd.sealed.doc +# application/vnd.sealed.eml +# application/vnd.sealed.mht +# application/vnd.sealed.net +# application/vnd.sealed.ppt +# application/vnd.sealed.tiff +# application/vnd.sealed.xls +# application/vnd.sealedmedia.softseal.html +# application/vnd.sealedmedia.softseal.pdf application/vnd.seemail see application/vnd.sema sema application/vnd.semd semd @@ -517,292 +904,456 @@ application/vnd.shana.informed.interchange iif application/vnd.shana.informed.package ipk application/vnd.simtech-mindmapper twd twds application/vnd.smaf mmf +# application/vnd.smart.notebook +application/vnd.smart.teacher teacher +# application/vnd.software602.filler.form+xml +# application/vnd.software602.filler.form-xml-zip application/vnd.solent.sdkm+xml sdkm sdkd application/vnd.spotfire.dxp dxp application/vnd.spotfire.sfs sfs -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.sun.wadl+xml +# application/vnd.sss-cod +# application/vnd.sss-dtf +# application/vnd.sss-ntf +application/vnd.stardivision.calc sdc +application/vnd.stardivision.draw sda +application/vnd.stardivision.impress sdd +application/vnd.stardivision.math smf +application/vnd.stardivision.writer sdw vor +application/vnd.stardivision.writer-global sgl +application/vnd.stepmania.package smzip +application/vnd.stepmania.stepchart sm +# application/vnd.street-stream +application/vnd.sun.xml.calc sxc +application/vnd.sun.xml.calc.template stc +application/vnd.sun.xml.draw sxd +application/vnd.sun.xml.draw.template std +application/vnd.sun.xml.impress sxi +application/vnd.sun.xml.impress.template sti +application/vnd.sun.xml.math sxm +application/vnd.sun.xml.writer sxw +application/vnd.sun.xml.writer.global sxg +application/vnd.sun.xml.writer.template stw +# application/vnd.sun.wadl+xml application/vnd.sus-calendar sus susp application/vnd.svd svd -application/vnd.swiftview-ics +# application/vnd.swiftview-ics +application/vnd.symbian.install sis sisx application/vnd.syncml+xml xsm application/vnd.syncml.dm+wbxml bdm application/vnd.syncml.dm+xml xdm -application/vnd.syncml.ds.notification +# application/vnd.syncml.dm.notification +# application/vnd.syncml.ds.notification application/vnd.tao.intent-module-archive tao +application/vnd.tcpdump.pcap pcap cap dmp application/vnd.tmobile-livetv tmo application/vnd.trid.tpt tpt application/vnd.triscape.mxs mxs application/vnd.trueapp tra -application/vnd.truedoc +# application/vnd.truedoc +# application/vnd.ubisoft.webplayer application/vnd.ufdl ufd ufdl application/vnd.uiq.theme utz application/vnd.umajin umj application/vnd.unity unityweb application/vnd.uoml+xml uoml -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal +# application/vnd.uplanet.alert +# application/vnd.uplanet.alert-wbxml +# application/vnd.uplanet.bearer-choice +# application/vnd.uplanet.bearer-choice-wbxml +# application/vnd.uplanet.cacheop +# application/vnd.uplanet.cacheop-wbxml +# application/vnd.uplanet.channel +# application/vnd.uplanet.channel-wbxml +# application/vnd.uplanet.list +# application/vnd.uplanet.list-wbxml +# application/vnd.uplanet.listcmd +# application/vnd.uplanet.listcmd-wbxml +# application/vnd.uplanet.signal application/vnd.vcx vcx -application/vnd.vd-study -application/vnd.vectorworks -application/vnd.vidsoft.vidconference +# application/vnd.vd-study +# application/vnd.vectorworks +# application/vnd.verimatrix.vcas +# application/vnd.vidsoft.vidconference application/vnd.visio vsd vst vss vsw application/vnd.visionary vis -application/vnd.vividence.scriptfile +# application/vnd.vividence.scriptfile application/vnd.vsf vsf -application/vnd.wap.sic -application/vnd.wap.slc +# application/vnd.wap.sic +# application/vnd.wap.slc application/vnd.wap.wbxml wbxml application/vnd.wap.wmlc wmlc application/vnd.wap.wmlscriptc wmlsc application/vnd.webturbo wtb -application/vnd.wfa.wsc +# application/vnd.wfa.wsc +# application/vnd.wmc +# application/vnd.wmf.bootstrap +# application/vnd.wolfram.mathematica +# application/vnd.wolfram.mathematica.package +application/vnd.wolfram.player nbp application/vnd.wordperfect wpd application/vnd.wqd wqd -application/vnd.wrq-hp3000-labelled +# application/vnd.wrq-hp3000-labelled application/vnd.wt.stf stf -application/vnd.wv.csp+wbxml -application/vnd.wv.csp+xml -application/vnd.wv.ssp+xml +# application/vnd.wv.csp+wbxml +# application/vnd.wv.csp+xml +# application/vnd.wv.ssp+xml application/vnd.xara xar application/vnd.xfdl xfdl -application/vnd.xmpie.cpkg -application/vnd.xmpie.dpkg -application/vnd.xmpie.plan -application/vnd.xmpie.ppkg -application/vnd.xmpie.xlim +# application/vnd.xfdl.webform +# application/vnd.xmi+xml +# application/vnd.xmpie.cpkg +# application/vnd.xmpie.dpkg +# application/vnd.xmpie.plan +# application/vnd.xmpie.ppkg +# application/vnd.xmpie.xlim application/vnd.yamaha.hv-dic hvd application/vnd.yamaha.hv-script hvs application/vnd.yamaha.hv-voice hvp +application/vnd.yamaha.openscoreformat osf +application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg +# application/vnd.yamaha.remote-setup application/vnd.yamaha.smaf-audio saf application/vnd.yamaha.smaf-phrase spf +# application/vnd.yamaha.through-ngn +# application/vnd.yamaha.tunnel-udpencap application/vnd.yellowriver-custom-menu cmp +application/vnd.zul zir zirz application/vnd.zzazz.deck+xml zaz application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response +# application/vq-rtcpxr +# application/watcherinfo+xml +# application/whoispp-query +# application/whoispp-response +application/widget wgt application/winhlp hlp -application/wita -application/wordperfect5.1 +# application/wita +# application/wordperfect5.1 application/wsdl+xml wsdl application/wspolicy+xml wspolicy +application/x-7z-compressed 7z +application/x-abiword abw application/x-ace-compressed ace +# application/x-amf +application/x-apple-diskimage dmg +application/x-authorware-bin aab x32 u32 vox +application/x-authorware-map aam +application/x-authorware-seg aas application/x-bcpio bcpio application/x-bittorrent torrent +application/x-blorb blb blorb application/x-bzip bz application/x-bzip2 bz2 boz +application/x-cbr cbr cba cbt cbz cb7 application/x-cdlink vcd +application/x-cfs-compressed cfs application/x-chat chat application/x-chess-pgn pgn -application/x-compress +application/x-conference nsc +# application/x-compress application/x-cpio cpio application/x-csh csh -application/x-director dcr dir dxr fgd +application/x-debian-package deb udeb +application/x-dgc-compressed dgc +application/x-director dir dcr dxr cst cct cxt w3d fgd swa +application/x-doom wad +application/x-dtbncx+xml ncx +application/x-dtbook+xml dtb +application/x-dtbresource+xml res application/x-dvi dvi +application/x-envoy evy +application/x-eva eva +application/x-font-bdf bdf +# application/x-font-dos +# application/x-font-framemaker +application/x-font-ghostscript gsf +# application/x-font-libgrx +application/x-font-linux-psf psf +application/x-font-otf otf +application/x-font-pcf pcf +application/x-font-snf snf +# application/x-font-speedo +# application/x-font-sunos-news +application/x-font-ttf ttf ttc +application/x-font-type1 pfa pfb pfm afm +application/font-woff woff +# application/x-font-vfont +application/x-freearc arc application/x-futuresplash spl +application/x-gca-compressed gca +application/x-glulx ulx +application/x-gnumeric gnumeric +application/x-gramps-xml gramps application/x-gtar gtar -application/x-gzip +# application/x-gzip application/x-hdf hdf +application/x-install-instructions install +application/x-iso9660-image iso +application/x-java-jnlp-file jnlp application/x-latex latex +application/x-lzh-compressed lzh lha +application/x-mie mie +application/x-mobipocket-ebook prc mobi +application/x-ms-application application +application/x-ms-shortcut lnk application/x-ms-wmd wmd application/x-ms-wmz wmz +application/x-ms-xbap xbap application/x-msaccess mdb application/x-msbinder obd application/x-mscardfile crd application/x-msclip clp application/x-msdownload exe dll com bat msi application/x-msmediaview mvb m13 m14 -application/x-msmetafile wmf +application/x-msmetafile wmf wmz emf emz application/x-msmoney mny application/x-mspublisher pub application/x-msschedule scd application/x-msterminal trm application/x-mswrite wri application/x-netcdf nc cdf +application/x-nzb nzb application/x-pkcs12 p12 pfx application/x-pkcs7-certificates p7b spc application/x-pkcs7-certreqresp p7r application/x-rar-compressed rar +application/x-research-info-systems ris application/x-sh sh application/x-shar shar application/x-shockwave-flash swf +application/x-silverlight-app xap +application/x-sql sql application/x-stuffit sit application/x-stuffitx sitx +application/x-subrip srt application/x-sv4cpio sv4cpio application/x-sv4crc sv4crc +application/x-t3vm-image t3 +application/x-tads gam application/x-tar tar application/x-tcl tcl application/x-tex tex +application/x-tex-tfm tfm application/x-texinfo texinfo texi +application/x-tgif obj application/x-ustar ustar application/x-wais-source src application/x-x509-ca-cert der crt -application/x400-bp -application/xcap-att+xml -application/xcap-caps+xml -application/xcap-el+xml -application/xcap-error+xml -application/xcap-ns+xml +application/x-xfig fig +application/x-xliff+xml xlf +application/x-xpinstall xpi +application/x-xz xz +application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8 +# application/x400-bp +application/xaml+xml xaml +# application/xcap-att+xml +# application/xcap-caps+xml +application/xcap-diff+xml xdf +# application/xcap-el+xml +# application/xcap-error+xml +# application/xcap-ns+xml +# application/xcon-conference-info-diff+xml +# application/xcon-conference-info+xml application/xenc+xml xenc application/xhtml+xml xhtml xht +# application/xhtml-voice+xml application/xml xml xsl application/xml-dtd dtd -application/xml-external-parsed-entity -application/xmpp+xml +# application/xml-external-parsed-entity +# application/xmpp+xml application/xop+xml xop +application/xproc+xml xpl application/xslt+xml xslt application/xspf+xml xspf application/xv+xml mxml xhvml xvml xvm +application/yang yang +application/yin+xml yin application/zip zip -audio/32kadpcm -audio/3gpp -audio/3gpp2 -audio/ac3 -audio/amr -audio/amr-wb -audio/amr-wb+ -audio/asc +# audio/1d-interleaved-parityfec +# audio/32kadpcm +# audio/3gpp +# audio/3gpp2 +# audio/ac3 +audio/adpcm adp +# audio/amr +# audio/amr-wb +# audio/amr-wb+ +# audio/asc +# audio/atrac-advanced-lossless +# audio/atrac-x +# audio/atrac3 audio/basic au snd -audio/bv16 -audio/bv32 -audio/clearmode -audio/cn -audio/dat12 -audio/dls -audio/dsr-es201108 -audio/dsr-es202050 -audio/dsr-es202211 -audio/dsr-es202212 -audio/dvi4 -audio/eac3 -audio/evrc -audio/evrc-qcp -audio/evrc0 -audio/evrc1 -audio/evrcb -audio/evrcb0 -audio/evrcb1 -audio/g722 -audio/g7221 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g7291 -audio/g729d -audio/g729e -audio/gsm -audio/gsm-efr -audio/ilbc -audio/l16 -audio/l20 -audio/l24 -audio/l8 -audio/lpc +# audio/bv16 +# audio/bv32 +# audio/clearmode +# audio/cn +# audio/dat12 +# audio/dls +# audio/dsr-es201108 +# audio/dsr-es202050 +# audio/dsr-es202211 +# audio/dsr-es202212 +# audio/dv +# audio/dvi4 +# audio/eac3 +# audio/evrc +# audio/evrc-qcp +# audio/evrc0 +# audio/evrc1 +# audio/evrcb +# audio/evrcb0 +# audio/evrcb1 +# audio/evrcwb +# audio/evrcwb0 +# audio/evrcwb1 +# audio/example +# audio/fwdred +# audio/g719 +# audio/g722 +# audio/g7221 +# audio/g723 +# audio/g726-16 +# audio/g726-24 +# audio/g726-32 +# audio/g726-40 +# audio/g728 +# audio/g729 +# audio/g7291 +# audio/g729d +# audio/g729e +# audio/gsm +# audio/gsm-efr +# audio/gsm-hr-08 +# audio/ilbc +# audio/ip-mr_v2.5 +# audio/isac +# audio/l16 +# audio/l20 +# audio/l24 +# audio/l8 +# audio/lpc audio/midi mid midi kar rmi -audio/mobile-xmf +# audio/mobile-xmf audio/mp4 mp4a -audio/mp4a-latm -audio/mpa -audio/mpa-robust +# audio/mp4a-latm +# audio/mpa +# audio/mpa-robust audio/mpeg mpga mp2 mp2a mp3 m2a m3a -audio/mpeg4-generic -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/rtp-enc-aescm128 -audio/rtp-midi -audio/rtx -audio/smv -audio/smv0 -audio/smv-qcp -audio/sp-midi -audio/t140c -audio/t38 -audio/telephone-event -audio/tone -audio/vdvi -audio/vmr-wb -audio/vnd.3gpp.iufp -audio/vnd.4sb -audio/vnd.audiokoz -audio/vnd.celp -audio/vnd.cisco.nse -audio/vnd.cmles.radio-events -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 +# audio/mpeg4-generic +# audio/musepack +audio/ogg oga ogg spx +# audio/opus +# audio/parityfec +# audio/pcma +# audio/pcma-wb +# audio/pcmu-wb +# audio/pcmu +# audio/prs.sid +# audio/qcelp +# audio/red +# audio/rtp-enc-aescm128 +# audio/rtp-midi +# audio/rtx +audio/s3m s3m +audio/silk sil +# audio/smv +# audio/smv0 +# audio/smv-qcp +# audio/sp-midi +# audio/speex +# audio/t140c +# audio/t38 +# audio/telephone-event +# audio/tone +# audio/uemclip +# audio/ulpfec +# audio/vdvi +# audio/vmr-wb +# audio/vnd.3gpp.iufp +# audio/vnd.4sb +# audio/vnd.audiokoz +# audio/vnd.celp +# audio/vnd.cisco.nse +# audio/vnd.cmles.radio-events +# audio/vnd.cns.anp1 +# audio/vnd.cns.inf1 +audio/vnd.dece.audio uva uvva audio/vnd.digital-winds eol -audio/vnd.dlna.adts -audio/vnd.dolby.mlp -audio/vnd.everad.plj -audio/vnd.hns.audio +# audio/vnd.dlna.adts +# audio/vnd.dolby.heaac.1 +# audio/vnd.dolby.heaac.2 +# audio/vnd.dolby.mlp +# audio/vnd.dolby.mps +# audio/vnd.dolby.pl2 +# audio/vnd.dolby.pl2x +# audio/vnd.dolby.pl2z +# audio/vnd.dolby.pulse.1 +audio/vnd.dra dra +audio/vnd.dts dts +audio/vnd.dts.hd dtshd +# audio/vnd.dvb.file +# audio/vnd.everad.plj +# audio/vnd.hns.audio audio/vnd.lucent.voice lvp -audio/vnd.nokia.mobile-xmf -audio/vnd.nortel.vbk +audio/vnd.ms-playready.media.pya pya +# audio/vnd.nokia.mobile-xmf +# audio/vnd.nortel.vbk audio/vnd.nuera.ecelp4800 ecelp4800 audio/vnd.nuera.ecelp7470 ecelp7470 audio/vnd.nuera.ecelp9600 ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.sealedmedia.softseal.mpeg -audio/vnd.vmx.cvsd -audio/wav wav +# audio/vnd.octel.sbc +# audio/vnd.qcelp +# audio/vnd.rhetorex.32kadpcm +audio/vnd.rip rip +# audio/vnd.sealedmedia.softseal.mpeg +# audio/vnd.vmx.cvsd +# audio/vorbis +# audio/vorbis-config +audio/webm weba +audio/x-aac aac audio/x-aiff aif aiff aifc +audio/x-caf caf +audio/x-flac flac +audio/x-matroska mka audio/x-mpegurl m3u audio/x-ms-wax wax audio/x-ms-wma wma audio/x-pn-realaudio ram ra audio/x-pn-realaudio-plugin rmp +# audio/x-tta audio/x-wav wav +audio/xm xm chemical/x-cdx cdx chemical/x-cif cif chemical/x-cmdf cmdf chemical/x-cml cml chemical/x-csml csml -chemical/x-pdb pdb +# chemical/x-pdb chemical/x-xyz xyz image/bmp bmp image/cgm cgm -image/fits +# image/example +# image/fits image/g3fax g3 image/gif gif image/ief ief -image/jp2 +# image/jp2 image/jpeg jpeg jpg jpe -image/jpm -image/jpx -image/naplps +# image/jpm +# image/jpx +image/ktx ktx +# image/naplps image/png png image/prs.btif btif -image/prs.pti +# image/prs.pti +image/sgi sgi image/svg+xml svg svgz -image/t38 +# image/t38 image/tiff tiff tif -image/tiff-fx +# image/tiff-fx image/vnd.adobe.photoshop psd -image/vnd.cns.inf2 +# image/vnd.cns.inf2 +image/vnd.dece.graphic uvi uvvi uvg uvvg +image/vnd.dvb.subtitle sub image/vnd.djvu djvu djv image/vnd.dwg dwg image/vnd.dxf dxf @@ -811,20 +1362,26 @@ image/vnd.fpx fpx image/vnd.fst fst image/vnd.fujixerox.edmics-mmr mmr image/vnd.fujixerox.edmics-rlc rlc -image/vnd.globalgraphics.pgb -image/vnd.microsoft.icon ico -image/vnd.mix +# image/vnd.globalgraphics.pgb +# image/vnd.microsoft.icon +# image/vnd.mix image/vnd.ms-modi mdi +image/vnd.ms-photo wdp image/vnd.net-fpx npx -image/vnd.sealed.png -image/vnd.sealedmedia.softseal.gif -image/vnd.sealedmedia.softseal.jpg -image/vnd.svf +# image/vnd.radiance +# image/vnd.sealed.png +# image/vnd.sealedmedia.softseal.gif +# image/vnd.sealedmedia.softseal.jpg +# image/vnd.svf image/vnd.wap.wbmp wbmp image/vnd.xiff xif +image/webp webp +image/x-3ds 3ds image/x-cmu-raster ras image/x-cmx cmx -image/x-icon +image/x-freehand fh fhc fh4 fh5 fh7 +image/x-icon ico +image/x-mrsid-image sid image/x-pcx pcx image/x-pict pic pct image/x-portable-anymap pnm @@ -832,152 +1389,221 @@ image/x-portable-bitmap pbm image/x-portable-graymap pgm image/x-portable-pixmap ppm image/x-rgb rgb +image/x-tga tga image/x-xbitmap xbm image/x-xpixmap xpm image/x-xwindowdump xwd -message/cpim -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial +# message/cpim +# message/delivery-status +# message/disposition-notification +# message/example +# message/external-body +# message/feedback-report +# message/global +# message/global-delivery-status +# message/global-disposition-notification +# message/global-headers +# message/http +# message/imdn+xml +# message/news +# message/partial message/rfc822 eml mime -message/s-http -message/sip -message/sipfrag -message/tracking-status +# message/s-http +# message/sip +# message/sipfrag +# message/tracking-status +# message/vnd.si.simp +# model/example model/iges igs iges model/mesh msh mesh silo +model/vnd.collada+xml dae model/vnd.dwf dwf -model/vnd.flatland.3dml +# model/vnd.flatland.3dml model/vnd.gdl gdl -model/vnd.gs.gdl +# model/vnd.gs-gdl +# model/vnd.gs.gdl model/vnd.gtw gtw -model/vnd.moml+xml +# model/vnd.moml+xml model/vnd.mts mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text +# model/vnd.parasolid.transmit.binary +# model/vnd.parasolid.transmit.text model/vnd.vtu vtu model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message +model/x3d+binary x3db x3dbz +model/x3d+vrml x3dv x3dvz +model/x3d+xml x3d x3dz +# multipart/alternative +# multipart/appledouble +# multipart/byteranges +# multipart/digest +# multipart/encrypted +# multipart/example +# multipart/form-data +# multipart/header-set +# multipart/mixed +# multipart/parallel +# multipart/related +# multipart/report +# multipart/signed +# multipart/voice-message +# text/1d-interleaved-parityfec +text/cache-manifest appcache text/calendar ics ifb text/css css text/csv csv -text/directory -text/dns -text/enriched +# text/directory +# text/dns +# text/ecmascript +# text/enriched +# text/example +# text/fwdred text/html html htm -text/parityfec +# text/javascript +text/n3 n3 +# text/parityfec text/plain txt text conf def list log in -text/prs.fallenstein.rst +# text/prs.fallenstein.rst text/prs.lines.tag dsc -text/red -text/rfc822-headers +# text/vnd.radisys.msml-basic-layout +# text/red +# text/rfc822-headers text/richtext rtx -text/rtf -text/rtp-enc-aescm128 -text/rtx +# text/rtf +# text/rtp-enc-aescm128 +# text/rtx text/sgml sgml sgm -text/t140 +# text/t140 text/tab-separated-values tsv text/troff t tr roff man me ms +text/turtle ttl +# text/ulpfec text/uri-list uri uris urls -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.esmertec.theme-descriptor +text/vcard vcard +# text/vnd.abc +text/vnd.curl curl +text/vnd.curl.dcurl dcurl +text/vnd.curl.scurl scurl +text/vnd.curl.mcurl mcurl +# text/vnd.dmclientscript +text/vnd.dvb.subtitle sub +# text/vnd.esmertec.theme-descriptor text/vnd.fly fly text/vnd.fmi.flexstor flx +text/vnd.graphviz gv text/vnd.in3d.3dml 3dml text/vnd.in3d.spot spot -text/vnd.iptc.newsml -text/vnd.iptc.nitf -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command +# text/vnd.iptc.newsml +# text/vnd.iptc.nitf +# text/vnd.latex-z +# text/vnd.motorola.reflex +# text/vnd.ms-mediapackage +# text/vnd.net2phone.commcenter.command +# text/vnd.si.uricatalogue text/vnd.sun.j2me.app-descriptor jad -text/vnd.trolltech.linguist -text/vnd.wap.si -text/vnd.wap.sl +# text/vnd.trolltech.linguist +# text/vnd.wap.si +# text/vnd.wap.sl text/vnd.wap.wml wml text/vnd.wap.wmlscript wmls text/x-asm s asm text/x-c c cc cxx cpp h hh dic text/x-fortran f for f77 f90 -text/x-pascal p pas text/x-java-source java +text/x-opml opml +text/x-pascal p pas +text/x-nfo nfo text/x-setext etx +text/x-sfv sfv text/x-uuencode uu text/x-vcalendar vcs text/x-vcard vcf -text/xml -text/xml-external-parsed-entity +# text/xml +# text/xml-external-parsed-entity +# video/1d-interleaved-parityfec video/3gpp 3gp -video/3gpp-tt +# video/3gpp-tt video/3gpp2 3g2 -video/bmpeg -video/bt656 -video/celb -video/dv +# video/bmpeg +# video/bt656 +# video/celb +# video/dv +# video/example video/h261 h261 video/h263 h263 -video/h263-1998 -video/h263-2000 +# video/h263-1998 +# video/h263-2000 video/h264 h264 +# video/h264-rcdo +# video/h264-svc video/jpeg jpgv +# video/jpeg2000 video/jpm jpm jpgm video/mj2 mj2 mjp2 -video/mp1s -video/mp2p -video/mp2t +# video/mp1s +# video/mp2p +# video/mp2t video/mp4 mp4 mp4v mpg4 -video/mp4v-es +# video/mp4v-es video/mpeg mpeg mpg mpe m1v m2v -video/mpeg4-generic -video/mpv -video/nv -video/parityfec -video/pointer +# video/mpeg4-generic +# video/mpv +# video/nv +video/ogg ogv +# video/parityfec +# video/pointer video/quicktime qt mov -video/raw -video/rtp-enc-aescm128 -video/rtx -video/smpte292m -video/vc1 -video/vnd.dlna.mpeg-tts +# video/raw +# video/rtp-enc-aescm128 +# video/rtx +# video/smpte292m +# video/ulpfec +# video/vc1 +# video/vnd.cctv +video/vnd.dece.hd uvh uvvh +video/vnd.dece.mobile uvm uvvm +# video/vnd.dece.mp4 +video/vnd.dece.pd uvp uvvp +video/vnd.dece.sd uvs uvvs +video/vnd.dece.video uvv uvvv +# video/vnd.directv.mpeg +# video/vnd.directv.mpeg-tts +# video/vnd.dlna.mpeg-tts +video/vnd.dvb.file dvb video/vnd.fvt fvt -video/vnd.hns.video -video/vnd.motorola.video -video/vnd.motorola.videop +# video/vnd.hns.video +# video/vnd.iptvforum.1dparityfec-1010 +# video/vnd.iptvforum.1dparityfec-2005 +# video/vnd.iptvforum.2dparityfec-1010 +# video/vnd.iptvforum.2dparityfec-2005 +# video/vnd.iptvforum.ttsavc +# video/vnd.iptvforum.ttsmpeg2 +# video/vnd.motorola.video +# video/vnd.motorola.videop video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.nokia.videovoip -video/vnd.objectvideo -video/vnd.sealed.mpeg1 -video/vnd.sealed.mpeg4 -video/vnd.sealed.swf -video/vnd.sealedmedia.softseal.mov +video/vnd.ms-playready.media.pyv pyv +# video/vnd.nokia.interleaved-multimedia +# video/vnd.nokia.videovoip +# video/vnd.objectvideo +# video/vnd.sealed.mpeg1 +# video/vnd.sealed.mpeg4 +# video/vnd.sealed.swf +# video/vnd.sealedmedia.softseal.mov +video/vnd.uvvu.mp4 uvu uvvu video/vnd.vivo viv +video/webm webm +video/x-f4v f4v video/x-fli fli +video/x-flv flv +video/x-m4v m4v +video/x-matroska mkv mk3d mks +video/x-mng mng video/x-ms-asf asf asx +video/x-ms-vob vob video/x-ms-wm wm video/x-ms-wmv wmv video/x-ms-wmx wmx video/x-ms-wvx wvx video/x-msvideo avi video/x-sgi-movie movie +video/x-smv smv x-conference/x-cooltalk ice diff --git a/conf/sbc/mime.types b/conf/sbc/mime.types index 34d5fc9055..b680b3327d 100644 --- a/conf/sbc/mime.types +++ b/conf/sbc/mime.types @@ -1,204 +1,343 @@ -# This is a comment. I love comments. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at . - -# MIME type Extensions -application/activemessage +# +# MIME type configs overriden by the FreeSWITCH project. +# +audio/mpeg mp3 mpga mp2 mp2a m2a m3a +image/jpeg jpg jpeg jpe +# +# Additional MIME types added by the FreeSWITCH project. Any duplicate file extensions listed here will only be +# used to map from MIME -> extension and not extension -> MIME +audio/x-mpeg mp3 +audio/mp3 mp3 +audio/x-mp3 mp3 +audio/mpeg3 mp3 +audio/x-mpeg3 mp3 +audio/mpg mp3 +audio/x-mpegaudio mp3 +audio/x-wave wav +audio/wave wav +# +# The section below was taken from Apache httpd Project at +# +# +# This file maps Internet media types to unique file extension(s). +# Although created for httpd, this file is used by many software systems +# and has been placed in the public domain for unlimited redisribution. +# +# The table below contains both registered and (common) unregistered types. +# A type that has no unique extension can be ignored -- they are listed +# here to guide configurations toward known types and to make it easier to +# identify "new" types. File extensions are also commonly used to indicate +# content languages and encodings, so choose them carefully. +# +# Internet media types should be registered as described in RFC 4288. +# The registry is at . +# +# MIME type (lowercased) Extensions +# ============================================ ========== +# application/1d-interleaved-parityfec +# application/3gpp-ims+xml +# application/activemessage application/andrew-inset ez -application/applefile +# application/applefile +application/applixware aw application/atom+xml atom application/atomcat+xml atomcat -application/atomicmail +# application/atomicmail application/atomsvc+xml atomsvc -application/auth-policy+xml -application/batch-smtp -application/beep+xml -application/cals-1840 +# application/auth-policy+xml +# application/batch-smtp +# application/beep+xml +# application/calendar+xml +# application/cals-1840 +# application/ccmp+xml application/ccxml+xml ccxml -application/cellml+xml -application/cnrp+xml -application/commonground -application/conference-info+xml -application/cpl+xml -application/csta+xml -application/cstadata+xml -application/cybercash +application/cdmi-capability cdmia +application/cdmi-container cdmic +application/cdmi-domain cdmid +application/cdmi-object cdmio +application/cdmi-queue cdmiq +# application/cea-2018+xml +# application/cellml+xml +# application/cfw +# application/cnrp+xml +# application/commonground +# application/conference-info+xml +# application/cpl+xml +# application/csta+xml +# application/cstadata+xml +application/cu-seeme cu +# application/cybercash application/davmount+xml davmount -application/dca-rft -application/dec-dx -application/dialog-info+xml -application/dicom -application/dns -application/dvcs +# application/dca-rft +# application/dec-dx +# application/dialog-info+xml +# application/dicom +# application/dns +application/docbook+xml dbk +# application/dskpp+xml +application/dssc+der dssc +application/dssc+xml xdssc +# application/dvcs application/ecmascript ecma -application/edi-consent -application/edi-x12 -application/edifact -application/epp+xml -application/eshop -application/fastinfoset -application/fastsoap -application/fits +# application/edi-consent +# application/edi-x12 +# application/edifact +application/emma+xml emma +# application/epp+xml +application/epub+zip epub +# application/eshop +# application/example +application/exi exi +# application/fastinfoset +# application/fastsoap +# application/fits application/font-tdpfr pfr -application/h224 -application/http +# application/framework-attributes+xml +application/gml+xml gml +application/gpx+xml gpx +application/gxf gxf +# application/h224 +# application/held+xml +# application/http application/hyperstudio stk -application/iges -application/im-iscomposing+xml -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup +# application/ibe-key-request+xml +# application/ibe-pkg-reply+xml +# application/ibe-pp-data +# application/iges +# application/im-iscomposing+xml +# application/index +# application/index.cmd +# application/index.obj +# application/index.response +# application/index.vnd +application/inkml+xml ink inkml +# application/iotp +application/ipfix ipfix +# application/ipp +# application/isup +application/java-archive jar +application/java-serialized-object ser +application/java-vm class application/javascript js application/json json -application/kpml-request+xml -application/kpml-response+xml +application/jsonml+json jsonml +# application/kpml-request+xml +# application/kpml-response+xml +application/lost+xml lostxml application/mac-binhex40 hqx application/mac-compactpro cpt -application/macwriteii +# application/macwriteii +application/mads+xml mads application/marc mrc +application/marcxml+xml mrcx application/mathematica ma nb mb +# application/mathml-content+xml +# application/mathml-presentation+xml application/mathml+xml mathml -application/mbms-associated-procedure-description+xml -application/mbms-deregister+xml -application/mbms-envelope+xml -application/mbms-msk+xml -application/mbms-msk-response+xml -application/mbms-protection-description+xml -application/mbms-reception-report+xml -application/mbms-register+xml -application/mbms-register-response+xml -application/mbms-user-service-description+xml +# application/mbms-associated-procedure-description+xml +# application/mbms-deregister+xml +# application/mbms-envelope+xml +# application/mbms-msk+xml +# application/mbms-msk-response+xml +# application/mbms-protection-description+xml +# application/mbms-reception-report+xml +# application/mbms-register+xml +# application/mbms-register-response+xml +# application/mbms-user-service-description+xml application/mbox mbox +# application/media_control+xml application/mediaservercontrol+xml mscml -application/mikey +application/metalink+xml metalink +application/metalink4+xml meta4 +application/mets+xml mets +# application/mikey +application/mods+xml mods +# application/moss-keys +# application/moss-signature +# application/mosskey-data +# application/mosskey-request +application/mp21 m21 mp21 application/mp4 mp4s -application/mpeg4-generic -application/mpeg4-iod -application/mpeg4-iod-xmt +# application/mpeg4-generic +# application/mpeg4-iod +# application/mpeg4-iod-xmt +# application/msc-ivr+xml +# application/msc-mixer+xml application/msword doc dot application/mxf mxf -application/nasdata -application/news-message-id -application/news-transmission -application/nss -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc +# application/nasdata +# application/news-checkgroups +# application/news-groupinfo +# application/news-transmission +# application/nss +# application/ocsp-request +# application/ocsp-response +application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy application/oda oda -application/oebps-package+xml -application/ogg ogg -application/parityfec +application/oebps-package+xml opf +application/ogg ogx +application/omdoc+xml omdoc +application/onenote onetoc onetoc2 onetmp onepkg +application/oxps oxps +# application/parityfec +application/patch-ops-error+xml xer application/pdf pdf application/pgp-encrypted pgp -application/pgp-keys +# application/pgp-keys application/pgp-signature asc sig application/pics-rules prf -application/pidf+xml +# application/pidf+xml +# application/pidf-diff+xml application/pkcs10 p10 application/pkcs7-mime p7m p7c application/pkcs7-signature p7s +application/pkcs8 p8 +application/pkix-attr-cert ac application/pkix-cert cer application/pkix-crl crl application/pkix-pkipath pkipath application/pkixcmp pki application/pls+xml pls -application/poc-settings+xml +# application/poc-settings+xml application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet +# application/prs.alvestrand.titrax-sheet application/prs.cww cww -application/prs.nprend -application/prs.plucker -application/qsig +# application/prs.nprend +# application/prs.plucker +# application/prs.rdf-xml-crypt +# application/prs.xsf+xml +application/pskc+xml pskcxml +# application/qsig application/rdf+xml rdf application/reginfo+xml rif application/relax-ng-compact-syntax rnc -application/remote-printing +# application/remote-printing application/resource-lists+xml rl -application/riscos -application/rlmi+xml +application/resource-lists-diff+xml rld +# application/riscos +# application/rlmi+xml application/rls-services+xml rs +application/rpki-ghostbusters gbr +application/rpki-manifest mft +application/rpki-roa roa +# application/rpki-updown application/rsd+xml rsd application/rss+xml rss application/rtf rtf -application/rtx -application/samlassertion+xml -application/samlmetadata+xml +# application/rtx +# application/samlassertion+xml +# application/samlmetadata+xml application/sbml+xml sbml +application/scvp-cv-request scq +application/scvp-cv-response scs +application/scvp-vp-request spq +application/scvp-vp-response spp application/sdp sdp -application/set-payment +# application/set-payment application/set-payment-initiation setpay -application/set-registration +# application/set-registration application/set-registration-initiation setreg -application/sgml -application/sgml-open-catalog +# application/sgml +# application/sgml-open-catalog application/shf+xml shf -application/sieve -application/simple-filter+xml -application/simple-message-summary -application/simplesymbolcontainer -application/slate -application/smil +# application/sieve +# application/simple-filter+xml +# application/simple-message-summary +# application/simplesymbolcontainer +# application/slate +# application/smil application/smil+xml smi smil -application/soap+fastinfoset -application/soap+xml -application/spirits-event+xml +# application/soap+fastinfoset +# application/soap+xml +application/sparql-query rq +application/sparql-results+xml srx +# application/spirits-event+xml application/srgs gram application/srgs+xml grxml +application/sru+xml sru +application/ssdl+xml ssdl application/ssml+xml ssml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vividence.scriptfile -application/vnd.3gpp.bsf+xml +# application/tamp-apex-update +# application/tamp-apex-update-confirm +# application/tamp-community-update +# application/tamp-community-update-confirm +# application/tamp-error +# application/tamp-sequence-adjust +# application/tamp-sequence-adjust-confirm +# application/tamp-status-query +# application/tamp-status-response +# application/tamp-update +# application/tamp-update-confirm +application/tei+xml tei teicorpus +application/thraud+xml tfi +# application/timestamp-query +# application/timestamp-reply +application/timestamped-data tsd +# application/tve-trigger +# application/ulpfec +# application/vcard+xml +# application/vemmi +# application/vividence.scriptfile +# application/vnd.3gpp.bsf+xml application/vnd.3gpp.pic-bw-large plb application/vnd.3gpp.pic-bw-small psb application/vnd.3gpp.pic-bw-var pvb -application/vnd.3gpp.sms -application/vnd.3gpp2.bcmcsinfo+xml -application/vnd.3gpp2.sms +# application/vnd.3gpp.sms +# application/vnd.3gpp2.bcmcsinfo+xml +# application/vnd.3gpp2.sms +application/vnd.3gpp2.tcap tcap application/vnd.3m.post-it-notes pwn application/vnd.accpac.simply.aso aso application/vnd.accpac.simply.imp imp application/vnd.acucobol acu application/vnd.acucorp atc acutc +application/vnd.adobe.air-application-installer-package+zip air +application/vnd.adobe.formscentral.fcdt fcdt +application/vnd.adobe.fxp fxp fxpl +# application/vnd.adobe.partial-upload application/vnd.adobe.xdp+xml xdp application/vnd.adobe.xfdf xfdf -application/vnd.aether.imp +# application/vnd.aether.imp +# application/vnd.ah-barcode +application/vnd.ahead.space ahead +application/vnd.airzip.filesecure.azf azf +application/vnd.airzip.filesecure.azs azs +application/vnd.amazon.ebook azw +application/vnd.americandynamics.acc acc application/vnd.amiga.ami ami +# application/vnd.amundsen.maze+xml +application/vnd.android.package-archive apk application/vnd.anser-web-certificate-issue-initiation cii application/vnd.anser-web-funds-transfer-initiation fti application/vnd.antix.game-component atx application/vnd.apple.installer+xml mpkg +application/vnd.apple.mpegurl m3u8 +# application/vnd.arastra.swi +application/vnd.aristanetworks.swi swi +application/vnd.astraea-software.iota iota application/vnd.audiograph aep -application/vnd.autopackage -application/vnd.avistar+xml +# application/vnd.autopackage +# application/vnd.avistar+xml application/vnd.blueice.multipass mpm +# application/vnd.bluetooth.ep.oob application/vnd.bmi bmi application/vnd.businessobjects rep -application/vnd.cab-jscript -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cendio.thinlinc.clientconf +# application/vnd.cab-jscript +# application/vnd.canon-cpdl +# application/vnd.canon-lips +# application/vnd.cendio.thinlinc.clientconf application/vnd.chemdraw+xml cdxml application/vnd.chipnuts.karaoke-mmd mmd application/vnd.cinderella cdy -application/vnd.cirpack.isdn-ext +# application/vnd.cirpack.isdn-ext application/vnd.claymore cla +application/vnd.cloanto.rp9 rp9 application/vnd.clonk.c4group c4g c4d c4f c4p c4u -application/vnd.commerce-battelle -application/vnd.commonspace csp cst +application/vnd.cluetrust.cartomobile-config c11amc +application/vnd.cluetrust.cartomobile-config-pkg c11amz +# application/vnd.collection+json +# application/vnd.commerce-battelle +application/vnd.commonspace csp application/vnd.contact.cmsg cdbcmsg application/vnd.cosmocaller cmc application/vnd.crick.clicker clkx @@ -208,46 +347,100 @@ application/vnd.crick.clicker.template clkt application/vnd.crick.clicker.wordbank clkw application/vnd.criticaltools.wbs+xml wbs application/vnd.ctc-posml pml -application/vnd.cups-pdf -application/vnd.cups-postscript +# application/vnd.ctct.ws+xml +# application/vnd.cups-pdf +# application/vnd.cups-postscript application/vnd.cups-ppd ppd -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl curl -application/vnd.cybank +# application/vnd.cups-raster +# application/vnd.cups-raw +# application/vnd.curl +application/vnd.curl.car car +application/vnd.curl.pcurl pcurl +# application/vnd.cybank +application/vnd.dart dart application/vnd.data-vision.rdz rdz +application/vnd.dece.data uvf uvvf uvd uvvd +application/vnd.dece.ttml+xml uvt uvvt +application/vnd.dece.unspecified uvx uvvx +application/vnd.dece.zip uvz uvvz application/vnd.denovo.fcselayout-link fe_launch +# application/vnd.dir-bi.plate-dl-nosuffix application/vnd.dna dna application/vnd.dolby.mlp mlp +# application/vnd.dolby.mobile.1 +# application/vnd.dolby.mobile.2 application/vnd.dpgraph dpg application/vnd.dreamfactory dfac -application/vnd.dvb.esgcontainer -application/vnd.dvb.ipdcesgaccess -application/vnd.dxr -application/vnd.ecdis-update +application/vnd.ds-keypoint kpxx +application/vnd.dvb.ait ait +# application/vnd.dvb.dvbj +# application/vnd.dvb.esgcontainer +# application/vnd.dvb.ipdcdftnotifaccess +# application/vnd.dvb.ipdcesgaccess +# application/vnd.dvb.ipdcesgaccess2 +# application/vnd.dvb.ipdcesgpdd +# application/vnd.dvb.ipdcroaming +# application/vnd.dvb.iptv.alfec-base +# application/vnd.dvb.iptv.alfec-enhancement +# application/vnd.dvb.notif-aggregate-root+xml +# application/vnd.dvb.notif-container+xml +# application/vnd.dvb.notif-generic+xml +# application/vnd.dvb.notif-ia-msglist+xml +# application/vnd.dvb.notif-ia-registration-request+xml +# application/vnd.dvb.notif-ia-registration-response+xml +# application/vnd.dvb.notif-init+xml +# application/vnd.dvb.pfr +application/vnd.dvb.service svc +# application/vnd.dxr +application/vnd.dynageo geo +# application/vnd.easykaraoke.cdgdownload +# application/vnd.ecdis-update application/vnd.ecowin.chart mag -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate +# application/vnd.ecowin.filerequest +# application/vnd.ecowin.fileupdate +# application/vnd.ecowin.series +# application/vnd.ecowin.seriesrequest +# application/vnd.ecowin.seriesupdate +# application/vnd.emclient.accessrequest+xml application/vnd.enliven nml +# application/vnd.eprints.data+xml application/vnd.epson.esf esf application/vnd.epson.msf msf application/vnd.epson.quickanime qam application/vnd.epson.salt slt application/vnd.epson.ssf ssf -application/vnd.ericsson.quickcall +# application/vnd.ericsson.quickcall application/vnd.eszigno3+xml es3 et3 -application/vnd.eudora.data +# application/vnd.etsi.aoc+xml +# application/vnd.etsi.cug+xml +# application/vnd.etsi.iptvcommand+xml +# application/vnd.etsi.iptvdiscovery+xml +# application/vnd.etsi.iptvprofile+xml +# application/vnd.etsi.iptvsad-bc+xml +# application/vnd.etsi.iptvsad-cod+xml +# application/vnd.etsi.iptvsad-npvr+xml +# application/vnd.etsi.iptvservice+xml +# application/vnd.etsi.iptvsync+xml +# application/vnd.etsi.iptvueprofile+xml +# application/vnd.etsi.mcid+xml +# application/vnd.etsi.overload-control-policy-dataset+xml +# application/vnd.etsi.sci+xml +# application/vnd.etsi.simservs+xml +# application/vnd.etsi.tsl+xml +# application/vnd.etsi.tsl.der +# application/vnd.eudora.data application/vnd.ezpix-album ez2 application/vnd.ezpix-package ez3 +# application/vnd.f-secure.mobile application/vnd.fdf fdf -application/vnd.ffsns -application/vnd.fints +application/vnd.fdsn.mseed mseed +application/vnd.fdsn.seed seed dataless +# application/vnd.ffsns +# application/vnd.fints application/vnd.flographit gph application/vnd.fluxtime.clip ftc -application/vnd.framemaker fm frame maker +# application/vnd.font-fontforge-sfd +application/vnd.framemaker fm frame maker book application/vnd.frogans.fnc fnc application/vnd.frogans.ltf ltf application/vnd.fsc.weblaunch fsc @@ -256,19 +449,29 @@ application/vnd.fujitsu.oasys2 oa2 application/vnd.fujitsu.oasys3 oa3 application/vnd.fujitsu.oasysgp fg5 application/vnd.fujitsu.oasysprs bh2 -application/vnd.fujixerox.art-ex -application/vnd.fujixerox.art4 -application/vnd.fujixerox.hbpl +# application/vnd.fujixerox.art-ex +# application/vnd.fujixerox.art4 +# application/vnd.fujixerox.hbpl application/vnd.fujixerox.ddd ddd application/vnd.fujixerox.docuworks xdw application/vnd.fujixerox.docuworks.binder xbd -application/vnd.fut-misnet +# application/vnd.fut-misnet application/vnd.fuzzysheet fzs application/vnd.genomatix.tuxedo txd +# application/vnd.geocube+xml +application/vnd.geogebra.file ggb +application/vnd.geogebra.tool ggt +application/vnd.geometry-explorer gex gre +application/vnd.geonext gxt +application/vnd.geoplan g2w +application/vnd.geospace g3w +# application/vnd.globalplatform.card-content-mgt +# application/vnd.globalplatform.card-content-mgt-response +application/vnd.gmx gmx application/vnd.google-earth.kml+xml kml application/vnd.google-earth.kmz kmz application/vnd.grafeq gqf gqs -application/vnd.gridmp +# application/vnd.gridmp application/vnd.groove-account gac application/vnd.groove-help ghf application/vnd.groove-identity-message gim @@ -276,9 +479,11 @@ application/vnd.groove-injector grv application/vnd.groove-tool-message gtm application/vnd.groove-tool-template tpl application/vnd.groove-vcard vcg +# application/vnd.hal+json +application/vnd.hal+xml hal application/vnd.handheld-entertainment+xml zmm application/vnd.hbci hbci -application/vnd.hcl-bireports +# application/vnd.hcl-bireports application/vnd.hhe.lesson-player les application/vnd.hp-hpgl hpgl application/vnd.hp-hpid hpid @@ -286,37 +491,53 @@ application/vnd.hp-hps hps application/vnd.hp-jlyt jlt application/vnd.hp-pcl pcl application/vnd.hp-pclxl pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword x3d -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media +# application/vnd.httphone +application/vnd.hydrostatix.sof-data sfd-hdstx +# application/vnd.hzn-3d-crossword +# application/vnd.ibm.afplinedata +# application/vnd.ibm.electronic-media application/vnd.ibm.minipay mpy application/vnd.ibm.modcap afp listafp list3820 application/vnd.ibm.rights-management irm application/vnd.ibm.secure-container sc +application/vnd.iccprofile icc icm application/vnd.igloader igl application/vnd.immervision-ivp ivp application/vnd.immervision-ivu ivu -application/vnd.informedcontrol.rms+xml +# application/vnd.informedcontrol.rms+xml +# application/vnd.informix-visionary +# application/vnd.infotech.project +# application/vnd.infotech.project+xml +# application/vnd.innopath.wamp.notification +application/vnd.insors.igm igm application/vnd.intercon.formnet xpw xpx -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp +application/vnd.intergeo i2g +# application/vnd.intertrust.digibox +# application/vnd.intertrust.nncp application/vnd.intu.qbo qbo application/vnd.intu.qfx qfx +# application/vnd.iptc.g2.conceptitem+xml +# application/vnd.iptc.g2.knowledgeitem+xml +# application/vnd.iptc.g2.newsitem+xml +# application/vnd.iptc.g2.newsmessage+xml +# application/vnd.iptc.g2.packageitem+xml +# application/vnd.iptc.g2.planningitem+xml application/vnd.ipunplugged.rcprofile rcprofile application/vnd.irepository.package+xml irp application/vnd.is-xpr xpr +application/vnd.isac.fcs fcs application/vnd.jam jam -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup +# application/vnd.japannet-directory-service +# application/vnd.japannet-jpnstore-wakeup +# application/vnd.japannet-payment-wakeup +# application/vnd.japannet-registration +# application/vnd.japannet-registration-wakeup +# application/vnd.japannet-setstore-wakeup +# application/vnd.japannet-verification +# application/vnd.japannet-verification-wakeup application/vnd.jcp.javame.midlet-rms rms application/vnd.jisp jisp +application/vnd.joost.joda-archive joda application/vnd.kahootz ktz ktr application/vnd.kde.karbon karbon application/vnd.kde.kchart chrt @@ -330,7 +551,9 @@ application/vnd.kenameaapp htke application/vnd.kidspiration kia application/vnd.kinar kne knp application/vnd.koan skp skd skt skm -application/vnd.liberty-request+xml +application/vnd.kodak-descriptor sse +application/vnd.las.las+xml lasxml +# application/vnd.liberty-request+xml application/vnd.llamagraphics.life-balance.desktop lbd application/vnd.llamagraphics.life-balance.exchange+xml lbe application/vnd.lotus-1-2-3 123 @@ -341,20 +564,21 @@ application/vnd.lotus-organizer org application/vnd.lotus-screencam scm application/vnd.lotus-wordpro lwp application/vnd.macports.portpkg portpkg -application/vnd.marlin.drm.actiontoken+xml -application/vnd.marlin.drm.conftoken+xml -application/vnd.marlin.drm.mdcf +# application/vnd.marlin.drm.actiontoken+xml +# application/vnd.marlin.drm.conftoken+xml +# application/vnd.marlin.drm.license+xml +# application/vnd.marlin.drm.mdcf application/vnd.mcd mcd application/vnd.medcalcdata mc1 application/vnd.mediastation.cdkey cdkey -application/vnd.meridian-slingshot +# application/vnd.meridian-slingshot application/vnd.mfer mwf application/vnd.mfmp mfm application/vnd.micrografx.flo flo application/vnd.micrografx.igx igx application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb +# application/vnd.minisoft-hp3000-save +# application/vnd.mitsubishi.misty-guard.trustweb application/vnd.mobius.daf daf application/vnd.mobius.dis dis application/vnd.mobius.mbk mbk @@ -364,149 +588,312 @@ application/vnd.mobius.plc plc application/vnd.mobius.txf txf application/vnd.mophun.application mpn application/vnd.mophun.certificate mpc -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul +# application/vnd.motorola.flexsuite +# application/vnd.motorola.flexsuite.adsi +# application/vnd.motorola.flexsuite.fis +# application/vnd.motorola.flexsuite.gotap +# application/vnd.motorola.flexsuite.kmr +# application/vnd.motorola.flexsuite.ttc +# application/vnd.motorola.flexsuite.wem +# application/vnd.motorola.iprm +application/vnd.mozilla.xul+xml xul application/vnd.ms-artgalry cil -application/vnd.ms-asf asf +# application/vnd.ms-asf application/vnd.ms-cab-compressed cab +# application/vnd.ms-color.iccprofile application/vnd.ms-excel xls xlm xla xlc xlt xlw +application/vnd.ms-excel.addin.macroenabled.12 xlam +application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb +application/vnd.ms-excel.sheet.macroenabled.12 xlsm +application/vnd.ms-excel.template.macroenabled.12 xltm application/vnd.ms-fontobject eot application/vnd.ms-htmlhelp chm application/vnd.ms-ims ims application/vnd.ms-lrm lrm -application/vnd.ms-playready.initiator+xml +# application/vnd.ms-office.activex+xml +application/vnd.ms-officetheme thmx +# application/vnd.ms-opentype +# application/vnd.ms-package.obfuscated-opentype +application/vnd.ms-pki.seccat cat +application/vnd.ms-pki.stl stl +# application/vnd.ms-playready.initiator+xml application/vnd.ms-powerpoint ppt pps pot +application/vnd.ms-powerpoint.addin.macroenabled.12 ppam +application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm +application/vnd.ms-powerpoint.slide.macroenabled.12 sldm +application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm +application/vnd.ms-powerpoint.template.macroenabled.12 potm +# application/vnd.ms-printing.printticket+xml application/vnd.ms-project mpp mpt -application/vnd.ms-tnef -application/vnd.ms-wmdrm.lic-chlg-req -application/vnd.ms-wmdrm.lic-resp -application/vnd.ms-wmdrm.meter-chlg-req -application/vnd.ms-wmdrm.meter-resp +# application/vnd.ms-tnef +# application/vnd.ms-wmdrm.lic-chlg-req +# application/vnd.ms-wmdrm.lic-resp +# application/vnd.ms-wmdrm.meter-chlg-req +# application/vnd.ms-wmdrm.meter-resp +application/vnd.ms-word.document.macroenabled.12 docm +application/vnd.ms-word.template.macroenabled.12 dotm application/vnd.ms-works wps wks wcm wdb application/vnd.ms-wpl wpl application/vnd.ms-xpsdocument xps application/vnd.mseq mseq -application/vnd.msign -application/vnd.music-niff +# application/vnd.msign +# application/vnd.multiad.creator +# application/vnd.multiad.creator.cif +# application/vnd.music-niff application/vnd.musician mus -application/vnd.ncd.control -application/vnd.nervana -application/vnd.netfpx +application/vnd.muvee.style msty +application/vnd.mynfc taglet +# application/vnd.ncd.control +# application/vnd.ncd.reference +# application/vnd.nervana +# application/vnd.netfpx application/vnd.neurolanguage.nlu nlu +application/vnd.nitf ntf nitf application/vnd.noblenet-directory nnd application/vnd.noblenet-sealer nns application/vnd.noblenet-web nnw -application/vnd.nokia.catalogs -application/vnd.nokia.conml+wbxml -application/vnd.nokia.conml+xml -application/vnd.nokia.isds-radio-presets -application/vnd.nokia.iptv.config+xml -application/vnd.nokia.landmark+wbxml -application/vnd.nokia.landmark+xml -application/vnd.nokia.landmarkcollection+xml -application/vnd.nokia.n-gage.ac+xml +# application/vnd.nokia.catalogs +# application/vnd.nokia.conml+wbxml +# application/vnd.nokia.conml+xml +# application/vnd.nokia.isds-radio-presets +# application/vnd.nokia.iptv.config+xml +# application/vnd.nokia.landmark+wbxml +# application/vnd.nokia.landmark+xml +# application/vnd.nokia.landmarkcollection+xml +# application/vnd.nokia.n-gage.ac+xml application/vnd.nokia.n-gage.data ngdat application/vnd.nokia.n-gage.symbian.install n-gage -application/vnd.nokia.ncd -application/vnd.nokia.pcd+wbxml -application/vnd.nokia.pcd+xml +# application/vnd.nokia.ncd +# application/vnd.nokia.pcd+wbxml +# application/vnd.nokia.pcd+xml application/vnd.nokia.radio-preset rpst application/vnd.nokia.radio-presets rpss application/vnd.novadigm.edm edm application/vnd.novadigm.edx edx application/vnd.novadigm.ext ext +# application/vnd.ntt-local.file-transfer +# application/vnd.ntt-local.sip-ta_remote +# application/vnd.ntt-local.sip-ta_tcp_stream application/vnd.oasis.opendocument.chart odc application/vnd.oasis.opendocument.chart-template otc +application/vnd.oasis.opendocument.database odb application/vnd.oasis.opendocument.formula odf -application/vnd.oasis.opendocument.formula-template otf +application/vnd.oasis.opendocument.formula-template odft application/vnd.oasis.opendocument.graphics odg application/vnd.oasis.opendocument.graphics-template otg application/vnd.oasis.opendocument.image odi application/vnd.oasis.opendocument.image-template oti application/vnd.oasis.opendocument.presentation odp -application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.presentation-template otp application/vnd.oasis.opendocument.spreadsheet ods application/vnd.oasis.opendocument.spreadsheet-template ots application/vnd.oasis.opendocument.text odt -application/vnd.oasis.opendocument.text-master otm +application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth -application/vnd.obn +# application/vnd.obn +# application/vnd.oftn.l10n+json +# application/vnd.oipf.contentaccessdownload+xml +# application/vnd.oipf.contentaccessstreaming+xml +# application/vnd.oipf.cspg-hexbinary +# application/vnd.oipf.dae.svg+xml +# application/vnd.oipf.dae.xhtml+xml +# application/vnd.oipf.mippvcontrolmessage+xml +# application/vnd.oipf.pae.gem +# application/vnd.oipf.spdiscovery+xml +# application/vnd.oipf.spdlist+xml +# application/vnd.oipf.ueprofile+xml +# application/vnd.oipf.userprofile+xml application/vnd.olpc-sugar xo -application/vnd.oma-scws-config -application/vnd.oma-scws-http-request -application/vnd.oma-scws-http-response -application/vnd.oma.bcast.associated-procedure-parameter+xml -application/vnd.oma.bcast.drm-trigger+xml -application/vnd.oma.bcast.imd+xml -application/vnd.oma.bcast.notification+xml -application/vnd.oma.bcast.sgboot -application/vnd.oma.bcast.sgdd+xml -application/vnd.oma.bcast.sgdu -application/vnd.oma.bcast.simple-symbol-container -application/vnd.oma.bcast.smartcard-trigger+xml -application/vnd.oma.bcast.sprov+xml +# application/vnd.oma-scws-config +# application/vnd.oma-scws-http-request +# application/vnd.oma-scws-http-response +# application/vnd.oma.bcast.associated-procedure-parameter+xml +# application/vnd.oma.bcast.drm-trigger+xml +# application/vnd.oma.bcast.imd+xml +# application/vnd.oma.bcast.ltkm +# application/vnd.oma.bcast.notification+xml +# application/vnd.oma.bcast.provisioningtrigger +# application/vnd.oma.bcast.sgboot +# application/vnd.oma.bcast.sgdd+xml +# application/vnd.oma.bcast.sgdu +# application/vnd.oma.bcast.simple-symbol-container +# application/vnd.oma.bcast.smartcard-trigger+xml +# application/vnd.oma.bcast.sprov+xml +# application/vnd.oma.bcast.stkm +# application/vnd.oma.cab-address-book+xml +# application/vnd.oma.cab-feature-handler+xml +# application/vnd.oma.cab-pcc+xml +# application/vnd.oma.cab-user-prefs+xml +# application/vnd.oma.dcd +# application/vnd.oma.dcdc application/vnd.oma.dd2+xml dd2 -application/vnd.oma.drm.risd+xml -application/vnd.oma.group-usage-list+xml -application/vnd.oma.poc.groups+xml -application/vnd.oma.xcap-directory+xml -application/vnd.omads-email+xml -application/vnd.omads-file+xml -application/vnd.omads-folder+xml -application/vnd.omaloc-supl-init +# application/vnd.oma.drm.risd+xml +# application/vnd.oma.group-usage-list+xml +# application/vnd.oma.pal+xml +# application/vnd.oma.poc.detailed-progress-report+xml +# application/vnd.oma.poc.final-report+xml +# application/vnd.oma.poc.groups+xml +# application/vnd.oma.poc.invocation-descriptor+xml +# application/vnd.oma.poc.optimized-progress-report+xml +# application/vnd.oma.push +# application/vnd.oma.scidm.messages+xml +# application/vnd.oma.xcap-directory+xml +# application/vnd.omads-email+xml +# application/vnd.omads-file+xml +# application/vnd.omads-folder+xml +# application/vnd.omaloc-supl-init application/vnd.openofficeorg.extension oxt -application/vnd.osa.netdeploy +# application/vnd.openxmlformats-officedocument.custom-properties+xml +# application/vnd.openxmlformats-officedocument.customxmlproperties+xml +# application/vnd.openxmlformats-officedocument.drawing+xml +# application/vnd.openxmlformats-officedocument.drawingml.chart+xml +# application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml +# application/vnd.openxmlformats-officedocument.extended-properties+xml +# application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml +# application/vnd.openxmlformats-officedocument.presentationml.comments+xml +# application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx +# application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.presprops+xml +application/vnd.openxmlformats-officedocument.presentationml.slide sldx +# application/vnd.openxmlformats-officedocument.presentationml.slide+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx +# application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml +# application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml +# application/vnd.openxmlformats-officedocument.presentationml.tags+xml +application/vnd.openxmlformats-officedocument.presentationml.template potx +# application/vnd.openxmlformats-officedocument.presentationml.template.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx +# application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml +# application/vnd.openxmlformats-officedocument.theme+xml +# application/vnd.openxmlformats-officedocument.themeoverride+xml +# application/vnd.openxmlformats-officedocument.vmldrawing +# application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx +# application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml +# application/vnd.openxmlformats-package.core-properties+xml +# application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml +# application/vnd.openxmlformats-package.relationships+xml +# application/vnd.quobject-quoxdocument +# application/vnd.osa.netdeploy +application/vnd.osgeo.mapguide.package mgp +# application/vnd.osgi.bundle application/vnd.osgi.dp dp -application/vnd.otps.ct-kip+xml -application/vnd.palm prc pdb pqa oprc -application/vnd.paos.xml +application/vnd.osgi.subsystem esa +# application/vnd.otps.ct-kip+xml +application/vnd.palm pdb pqa oprc +# application/vnd.paos.xml +application/vnd.pawaafile paw application/vnd.pg.format str application/vnd.pg.osasli ei6 -application/vnd.piaccess.application-licence +# application/vnd.piaccess.application-licence application/vnd.picsel efif -application/vnd.poc.group-advertisement+xml +application/vnd.pmi.widget wg +# application/vnd.poc.group-advertisement+xml application/vnd.pocketlearn plf application/vnd.powerbuilder6 pbd -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.preminet +# application/vnd.powerbuilder6-s +# application/vnd.powerbuilder7 +# application/vnd.powerbuilder7-s +# application/vnd.powerbuilder75 +# application/vnd.powerbuilder75-s +# application/vnd.preminet application/vnd.previewsystems.box box application/vnd.proteus.magazine mgz application/vnd.publishare-delta-tree qps application/vnd.pvi.ptid1 ptid -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.qualcomm.brew-app-res +# application/vnd.pwg-multiplexed +# application/vnd.pwg-xhtml-print+xml +# application/vnd.qualcomm.brew-app-res application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb -application/vnd.rapid +# application/vnd.radisys.moml+xml +# application/vnd.radisys.msml+xml +# application/vnd.radisys.msml-audit+xml +# application/vnd.radisys.msml-audit-conf+xml +# application/vnd.radisys.msml-audit-conn+xml +# application/vnd.radisys.msml-audit-dialog+xml +# application/vnd.radisys.msml-audit-stream+xml +# application/vnd.radisys.msml-conf+xml +# application/vnd.radisys.msml-dialog+xml +# application/vnd.radisys.msml-dialog-base+xml +# application/vnd.radisys.msml-dialog-fax-detect+xml +# application/vnd.radisys.msml-dialog-fax-sendrecv+xml +# application/vnd.radisys.msml-dialog-group+xml +# application/vnd.radisys.msml-dialog-speech+xml +# application/vnd.radisys.msml-dialog-transform+xml +# application/vnd.rainstor.data +# application/vnd.rapid +application/vnd.realvnc.bed bed application/vnd.recordare.musicxml mxl -application/vnd.recordare.musicxml+xml -application/vnd.renlearn.rlprint +application/vnd.recordare.musicxml+xml musicxml +# application/vnd.renlearn.rlprint +application/vnd.rig.cryptonote cryptonote +application/vnd.rim.cod cod application/vnd.rn-realmedia rm -application/vnd.ruckus.download -application/vnd.s3sms -application/vnd.scribus -application/vnd.sealed.3df -application/vnd.sealed.csf -application/vnd.sealed.doc -application/vnd.sealed.eml -application/vnd.sealed.mht -application/vnd.sealed.net -application/vnd.sealed.ppt -application/vnd.sealed.tiff -application/vnd.sealed.xls -application/vnd.sealedmedia.softseal.html -application/vnd.sealedmedia.softseal.pdf +application/vnd.rn-realmedia-vbr rmvb +application/vnd.route66.link66+xml link66 +# application/vnd.rs-274x +# application/vnd.ruckus.download +# application/vnd.s3sms +application/vnd.sailingtracker.track st +# application/vnd.sbm.cid +# application/vnd.sbm.mid2 +# application/vnd.scribus +# application/vnd.sealed.3df +# application/vnd.sealed.csf +# application/vnd.sealed.doc +# application/vnd.sealed.eml +# application/vnd.sealed.mht +# application/vnd.sealed.net +# application/vnd.sealed.ppt +# application/vnd.sealed.tiff +# application/vnd.sealed.xls +# application/vnd.sealedmedia.softseal.html +# application/vnd.sealedmedia.softseal.pdf application/vnd.seemail see application/vnd.sema sema application/vnd.semd semd @@ -517,292 +904,456 @@ application/vnd.shana.informed.interchange iif application/vnd.shana.informed.package ipk application/vnd.simtech-mindmapper twd twds application/vnd.smaf mmf +# application/vnd.smart.notebook +application/vnd.smart.teacher teacher +# application/vnd.software602.filler.form+xml +# application/vnd.software602.filler.form-xml-zip application/vnd.solent.sdkm+xml sdkm sdkd application/vnd.spotfire.dxp dxp application/vnd.spotfire.sfs sfs -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.sun.wadl+xml +# application/vnd.sss-cod +# application/vnd.sss-dtf +# application/vnd.sss-ntf +application/vnd.stardivision.calc sdc +application/vnd.stardivision.draw sda +application/vnd.stardivision.impress sdd +application/vnd.stardivision.math smf +application/vnd.stardivision.writer sdw vor +application/vnd.stardivision.writer-global sgl +application/vnd.stepmania.package smzip +application/vnd.stepmania.stepchart sm +# application/vnd.street-stream +application/vnd.sun.xml.calc sxc +application/vnd.sun.xml.calc.template stc +application/vnd.sun.xml.draw sxd +application/vnd.sun.xml.draw.template std +application/vnd.sun.xml.impress sxi +application/vnd.sun.xml.impress.template sti +application/vnd.sun.xml.math sxm +application/vnd.sun.xml.writer sxw +application/vnd.sun.xml.writer.global sxg +application/vnd.sun.xml.writer.template stw +# application/vnd.sun.wadl+xml application/vnd.sus-calendar sus susp application/vnd.svd svd -application/vnd.swiftview-ics +# application/vnd.swiftview-ics +application/vnd.symbian.install sis sisx application/vnd.syncml+xml xsm application/vnd.syncml.dm+wbxml bdm application/vnd.syncml.dm+xml xdm -application/vnd.syncml.ds.notification +# application/vnd.syncml.dm.notification +# application/vnd.syncml.ds.notification application/vnd.tao.intent-module-archive tao +application/vnd.tcpdump.pcap pcap cap dmp application/vnd.tmobile-livetv tmo application/vnd.trid.tpt tpt application/vnd.triscape.mxs mxs application/vnd.trueapp tra -application/vnd.truedoc +# application/vnd.truedoc +# application/vnd.ubisoft.webplayer application/vnd.ufdl ufd ufdl application/vnd.uiq.theme utz application/vnd.umajin umj application/vnd.unity unityweb application/vnd.uoml+xml uoml -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal +# application/vnd.uplanet.alert +# application/vnd.uplanet.alert-wbxml +# application/vnd.uplanet.bearer-choice +# application/vnd.uplanet.bearer-choice-wbxml +# application/vnd.uplanet.cacheop +# application/vnd.uplanet.cacheop-wbxml +# application/vnd.uplanet.channel +# application/vnd.uplanet.channel-wbxml +# application/vnd.uplanet.list +# application/vnd.uplanet.list-wbxml +# application/vnd.uplanet.listcmd +# application/vnd.uplanet.listcmd-wbxml +# application/vnd.uplanet.signal application/vnd.vcx vcx -application/vnd.vd-study -application/vnd.vectorworks -application/vnd.vidsoft.vidconference +# application/vnd.vd-study +# application/vnd.vectorworks +# application/vnd.verimatrix.vcas +# application/vnd.vidsoft.vidconference application/vnd.visio vsd vst vss vsw application/vnd.visionary vis -application/vnd.vividence.scriptfile +# application/vnd.vividence.scriptfile application/vnd.vsf vsf -application/vnd.wap.sic -application/vnd.wap.slc +# application/vnd.wap.sic +# application/vnd.wap.slc application/vnd.wap.wbxml wbxml application/vnd.wap.wmlc wmlc application/vnd.wap.wmlscriptc wmlsc application/vnd.webturbo wtb -application/vnd.wfa.wsc +# application/vnd.wfa.wsc +# application/vnd.wmc +# application/vnd.wmf.bootstrap +# application/vnd.wolfram.mathematica +# application/vnd.wolfram.mathematica.package +application/vnd.wolfram.player nbp application/vnd.wordperfect wpd application/vnd.wqd wqd -application/vnd.wrq-hp3000-labelled +# application/vnd.wrq-hp3000-labelled application/vnd.wt.stf stf -application/vnd.wv.csp+wbxml -application/vnd.wv.csp+xml -application/vnd.wv.ssp+xml +# application/vnd.wv.csp+wbxml +# application/vnd.wv.csp+xml +# application/vnd.wv.ssp+xml application/vnd.xara xar application/vnd.xfdl xfdl -application/vnd.xmpie.cpkg -application/vnd.xmpie.dpkg -application/vnd.xmpie.plan -application/vnd.xmpie.ppkg -application/vnd.xmpie.xlim +# application/vnd.xfdl.webform +# application/vnd.xmi+xml +# application/vnd.xmpie.cpkg +# application/vnd.xmpie.dpkg +# application/vnd.xmpie.plan +# application/vnd.xmpie.ppkg +# application/vnd.xmpie.xlim application/vnd.yamaha.hv-dic hvd application/vnd.yamaha.hv-script hvs application/vnd.yamaha.hv-voice hvp +application/vnd.yamaha.openscoreformat osf +application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg +# application/vnd.yamaha.remote-setup application/vnd.yamaha.smaf-audio saf application/vnd.yamaha.smaf-phrase spf +# application/vnd.yamaha.through-ngn +# application/vnd.yamaha.tunnel-udpencap application/vnd.yellowriver-custom-menu cmp +application/vnd.zul zir zirz application/vnd.zzazz.deck+xml zaz application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response +# application/vq-rtcpxr +# application/watcherinfo+xml +# application/whoispp-query +# application/whoispp-response +application/widget wgt application/winhlp hlp -application/wita -application/wordperfect5.1 +# application/wita +# application/wordperfect5.1 application/wsdl+xml wsdl application/wspolicy+xml wspolicy +application/x-7z-compressed 7z +application/x-abiword abw application/x-ace-compressed ace +# application/x-amf +application/x-apple-diskimage dmg +application/x-authorware-bin aab x32 u32 vox +application/x-authorware-map aam +application/x-authorware-seg aas application/x-bcpio bcpio application/x-bittorrent torrent +application/x-blorb blb blorb application/x-bzip bz application/x-bzip2 bz2 boz +application/x-cbr cbr cba cbt cbz cb7 application/x-cdlink vcd +application/x-cfs-compressed cfs application/x-chat chat application/x-chess-pgn pgn -application/x-compress +application/x-conference nsc +# application/x-compress application/x-cpio cpio application/x-csh csh -application/x-director dcr dir dxr fgd +application/x-debian-package deb udeb +application/x-dgc-compressed dgc +application/x-director dir dcr dxr cst cct cxt w3d fgd swa +application/x-doom wad +application/x-dtbncx+xml ncx +application/x-dtbook+xml dtb +application/x-dtbresource+xml res application/x-dvi dvi +application/x-envoy evy +application/x-eva eva +application/x-font-bdf bdf +# application/x-font-dos +# application/x-font-framemaker +application/x-font-ghostscript gsf +# application/x-font-libgrx +application/x-font-linux-psf psf +application/x-font-otf otf +application/x-font-pcf pcf +application/x-font-snf snf +# application/x-font-speedo +# application/x-font-sunos-news +application/x-font-ttf ttf ttc +application/x-font-type1 pfa pfb pfm afm +application/font-woff woff +# application/x-font-vfont +application/x-freearc arc application/x-futuresplash spl +application/x-gca-compressed gca +application/x-glulx ulx +application/x-gnumeric gnumeric +application/x-gramps-xml gramps application/x-gtar gtar -application/x-gzip +# application/x-gzip application/x-hdf hdf +application/x-install-instructions install +application/x-iso9660-image iso +application/x-java-jnlp-file jnlp application/x-latex latex +application/x-lzh-compressed lzh lha +application/x-mie mie +application/x-mobipocket-ebook prc mobi +application/x-ms-application application +application/x-ms-shortcut lnk application/x-ms-wmd wmd application/x-ms-wmz wmz +application/x-ms-xbap xbap application/x-msaccess mdb application/x-msbinder obd application/x-mscardfile crd application/x-msclip clp application/x-msdownload exe dll com bat msi application/x-msmediaview mvb m13 m14 -application/x-msmetafile wmf +application/x-msmetafile wmf wmz emf emz application/x-msmoney mny application/x-mspublisher pub application/x-msschedule scd application/x-msterminal trm application/x-mswrite wri application/x-netcdf nc cdf +application/x-nzb nzb application/x-pkcs12 p12 pfx application/x-pkcs7-certificates p7b spc application/x-pkcs7-certreqresp p7r application/x-rar-compressed rar +application/x-research-info-systems ris application/x-sh sh application/x-shar shar application/x-shockwave-flash swf +application/x-silverlight-app xap +application/x-sql sql application/x-stuffit sit application/x-stuffitx sitx +application/x-subrip srt application/x-sv4cpio sv4cpio application/x-sv4crc sv4crc +application/x-t3vm-image t3 +application/x-tads gam application/x-tar tar application/x-tcl tcl application/x-tex tex +application/x-tex-tfm tfm application/x-texinfo texinfo texi +application/x-tgif obj application/x-ustar ustar application/x-wais-source src application/x-x509-ca-cert der crt -application/x400-bp -application/xcap-att+xml -application/xcap-caps+xml -application/xcap-el+xml -application/xcap-error+xml -application/xcap-ns+xml +application/x-xfig fig +application/x-xliff+xml xlf +application/x-xpinstall xpi +application/x-xz xz +application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8 +# application/x400-bp +application/xaml+xml xaml +# application/xcap-att+xml +# application/xcap-caps+xml +application/xcap-diff+xml xdf +# application/xcap-el+xml +# application/xcap-error+xml +# application/xcap-ns+xml +# application/xcon-conference-info-diff+xml +# application/xcon-conference-info+xml application/xenc+xml xenc application/xhtml+xml xhtml xht +# application/xhtml-voice+xml application/xml xml xsl application/xml-dtd dtd -application/xml-external-parsed-entity -application/xmpp+xml +# application/xml-external-parsed-entity +# application/xmpp+xml application/xop+xml xop +application/xproc+xml xpl application/xslt+xml xslt application/xspf+xml xspf application/xv+xml mxml xhvml xvml xvm +application/yang yang +application/yin+xml yin application/zip zip -audio/32kadpcm -audio/3gpp -audio/3gpp2 -audio/ac3 -audio/amr -audio/amr-wb -audio/amr-wb+ -audio/asc +# audio/1d-interleaved-parityfec +# audio/32kadpcm +# audio/3gpp +# audio/3gpp2 +# audio/ac3 +audio/adpcm adp +# audio/amr +# audio/amr-wb +# audio/amr-wb+ +# audio/asc +# audio/atrac-advanced-lossless +# audio/atrac-x +# audio/atrac3 audio/basic au snd -audio/bv16 -audio/bv32 -audio/clearmode -audio/cn -audio/dat12 -audio/dls -audio/dsr-es201108 -audio/dsr-es202050 -audio/dsr-es202211 -audio/dsr-es202212 -audio/dvi4 -audio/eac3 -audio/evrc -audio/evrc-qcp -audio/evrc0 -audio/evrc1 -audio/evrcb -audio/evrcb0 -audio/evrcb1 -audio/g722 -audio/g7221 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g7291 -audio/g729d -audio/g729e -audio/gsm -audio/gsm-efr -audio/ilbc -audio/l16 -audio/l20 -audio/l24 -audio/l8 -audio/lpc +# audio/bv16 +# audio/bv32 +# audio/clearmode +# audio/cn +# audio/dat12 +# audio/dls +# audio/dsr-es201108 +# audio/dsr-es202050 +# audio/dsr-es202211 +# audio/dsr-es202212 +# audio/dv +# audio/dvi4 +# audio/eac3 +# audio/evrc +# audio/evrc-qcp +# audio/evrc0 +# audio/evrc1 +# audio/evrcb +# audio/evrcb0 +# audio/evrcb1 +# audio/evrcwb +# audio/evrcwb0 +# audio/evrcwb1 +# audio/example +# audio/fwdred +# audio/g719 +# audio/g722 +# audio/g7221 +# audio/g723 +# audio/g726-16 +# audio/g726-24 +# audio/g726-32 +# audio/g726-40 +# audio/g728 +# audio/g729 +# audio/g7291 +# audio/g729d +# audio/g729e +# audio/gsm +# audio/gsm-efr +# audio/gsm-hr-08 +# audio/ilbc +# audio/ip-mr_v2.5 +# audio/isac +# audio/l16 +# audio/l20 +# audio/l24 +# audio/l8 +# audio/lpc audio/midi mid midi kar rmi -audio/mobile-xmf +# audio/mobile-xmf audio/mp4 mp4a -audio/mp4a-latm -audio/mpa -audio/mpa-robust +# audio/mp4a-latm +# audio/mpa +# audio/mpa-robust audio/mpeg mpga mp2 mp2a mp3 m2a m3a -audio/mpeg4-generic -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/rtp-enc-aescm128 -audio/rtp-midi -audio/rtx -audio/smv -audio/smv0 -audio/smv-qcp -audio/sp-midi -audio/t140c -audio/t38 -audio/telephone-event -audio/tone -audio/vdvi -audio/vmr-wb -audio/vnd.3gpp.iufp -audio/vnd.4sb -audio/vnd.audiokoz -audio/vnd.celp -audio/vnd.cisco.nse -audio/vnd.cmles.radio-events -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 +# audio/mpeg4-generic +# audio/musepack +audio/ogg oga ogg spx +# audio/opus +# audio/parityfec +# audio/pcma +# audio/pcma-wb +# audio/pcmu-wb +# audio/pcmu +# audio/prs.sid +# audio/qcelp +# audio/red +# audio/rtp-enc-aescm128 +# audio/rtp-midi +# audio/rtx +audio/s3m s3m +audio/silk sil +# audio/smv +# audio/smv0 +# audio/smv-qcp +# audio/sp-midi +# audio/speex +# audio/t140c +# audio/t38 +# audio/telephone-event +# audio/tone +# audio/uemclip +# audio/ulpfec +# audio/vdvi +# audio/vmr-wb +# audio/vnd.3gpp.iufp +# audio/vnd.4sb +# audio/vnd.audiokoz +# audio/vnd.celp +# audio/vnd.cisco.nse +# audio/vnd.cmles.radio-events +# audio/vnd.cns.anp1 +# audio/vnd.cns.inf1 +audio/vnd.dece.audio uva uvva audio/vnd.digital-winds eol -audio/vnd.dlna.adts -audio/vnd.dolby.mlp -audio/vnd.everad.plj -audio/vnd.hns.audio +# audio/vnd.dlna.adts +# audio/vnd.dolby.heaac.1 +# audio/vnd.dolby.heaac.2 +# audio/vnd.dolby.mlp +# audio/vnd.dolby.mps +# audio/vnd.dolby.pl2 +# audio/vnd.dolby.pl2x +# audio/vnd.dolby.pl2z +# audio/vnd.dolby.pulse.1 +audio/vnd.dra dra +audio/vnd.dts dts +audio/vnd.dts.hd dtshd +# audio/vnd.dvb.file +# audio/vnd.everad.plj +# audio/vnd.hns.audio audio/vnd.lucent.voice lvp -audio/vnd.nokia.mobile-xmf -audio/vnd.nortel.vbk +audio/vnd.ms-playready.media.pya pya +# audio/vnd.nokia.mobile-xmf +# audio/vnd.nortel.vbk audio/vnd.nuera.ecelp4800 ecelp4800 audio/vnd.nuera.ecelp7470 ecelp7470 audio/vnd.nuera.ecelp9600 ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.sealedmedia.softseal.mpeg -audio/vnd.vmx.cvsd -audio/wav wav +# audio/vnd.octel.sbc +# audio/vnd.qcelp +# audio/vnd.rhetorex.32kadpcm +audio/vnd.rip rip +# audio/vnd.sealedmedia.softseal.mpeg +# audio/vnd.vmx.cvsd +# audio/vorbis +# audio/vorbis-config +audio/webm weba +audio/x-aac aac audio/x-aiff aif aiff aifc +audio/x-caf caf +audio/x-flac flac +audio/x-matroska mka audio/x-mpegurl m3u audio/x-ms-wax wax audio/x-ms-wma wma audio/x-pn-realaudio ram ra audio/x-pn-realaudio-plugin rmp +# audio/x-tta audio/x-wav wav +audio/xm xm chemical/x-cdx cdx chemical/x-cif cif chemical/x-cmdf cmdf chemical/x-cml cml chemical/x-csml csml -chemical/x-pdb pdb +# chemical/x-pdb chemical/x-xyz xyz image/bmp bmp image/cgm cgm -image/fits +# image/example +# image/fits image/g3fax g3 image/gif gif image/ief ief -image/jp2 +# image/jp2 image/jpeg jpeg jpg jpe -image/jpm -image/jpx -image/naplps +# image/jpm +# image/jpx +image/ktx ktx +# image/naplps image/png png image/prs.btif btif -image/prs.pti +# image/prs.pti +image/sgi sgi image/svg+xml svg svgz -image/t38 +# image/t38 image/tiff tiff tif -image/tiff-fx +# image/tiff-fx image/vnd.adobe.photoshop psd -image/vnd.cns.inf2 +# image/vnd.cns.inf2 +image/vnd.dece.graphic uvi uvvi uvg uvvg +image/vnd.dvb.subtitle sub image/vnd.djvu djvu djv image/vnd.dwg dwg image/vnd.dxf dxf @@ -811,20 +1362,26 @@ image/vnd.fpx fpx image/vnd.fst fst image/vnd.fujixerox.edmics-mmr mmr image/vnd.fujixerox.edmics-rlc rlc -image/vnd.globalgraphics.pgb -image/vnd.microsoft.icon ico -image/vnd.mix +# image/vnd.globalgraphics.pgb +# image/vnd.microsoft.icon +# image/vnd.mix image/vnd.ms-modi mdi +image/vnd.ms-photo wdp image/vnd.net-fpx npx -image/vnd.sealed.png -image/vnd.sealedmedia.softseal.gif -image/vnd.sealedmedia.softseal.jpg -image/vnd.svf +# image/vnd.radiance +# image/vnd.sealed.png +# image/vnd.sealedmedia.softseal.gif +# image/vnd.sealedmedia.softseal.jpg +# image/vnd.svf image/vnd.wap.wbmp wbmp image/vnd.xiff xif +image/webp webp +image/x-3ds 3ds image/x-cmu-raster ras image/x-cmx cmx -image/x-icon +image/x-freehand fh fhc fh4 fh5 fh7 +image/x-icon ico +image/x-mrsid-image sid image/x-pcx pcx image/x-pict pic pct image/x-portable-anymap pnm @@ -832,152 +1389,221 @@ image/x-portable-bitmap pbm image/x-portable-graymap pgm image/x-portable-pixmap ppm image/x-rgb rgb +image/x-tga tga image/x-xbitmap xbm image/x-xpixmap xpm image/x-xwindowdump xwd -message/cpim -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial +# message/cpim +# message/delivery-status +# message/disposition-notification +# message/example +# message/external-body +# message/feedback-report +# message/global +# message/global-delivery-status +# message/global-disposition-notification +# message/global-headers +# message/http +# message/imdn+xml +# message/news +# message/partial message/rfc822 eml mime -message/s-http -message/sip -message/sipfrag -message/tracking-status +# message/s-http +# message/sip +# message/sipfrag +# message/tracking-status +# message/vnd.si.simp +# model/example model/iges igs iges model/mesh msh mesh silo +model/vnd.collada+xml dae model/vnd.dwf dwf -model/vnd.flatland.3dml +# model/vnd.flatland.3dml model/vnd.gdl gdl -model/vnd.gs.gdl +# model/vnd.gs-gdl +# model/vnd.gs.gdl model/vnd.gtw gtw -model/vnd.moml+xml +# model/vnd.moml+xml model/vnd.mts mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text +# model/vnd.parasolid.transmit.binary +# model/vnd.parasolid.transmit.text model/vnd.vtu vtu model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message +model/x3d+binary x3db x3dbz +model/x3d+vrml x3dv x3dvz +model/x3d+xml x3d x3dz +# multipart/alternative +# multipart/appledouble +# multipart/byteranges +# multipart/digest +# multipart/encrypted +# multipart/example +# multipart/form-data +# multipart/header-set +# multipart/mixed +# multipart/parallel +# multipart/related +# multipart/report +# multipart/signed +# multipart/voice-message +# text/1d-interleaved-parityfec +text/cache-manifest appcache text/calendar ics ifb text/css css text/csv csv -text/directory -text/dns -text/enriched +# text/directory +# text/dns +# text/ecmascript +# text/enriched +# text/example +# text/fwdred text/html html htm -text/parityfec +# text/javascript +text/n3 n3 +# text/parityfec text/plain txt text conf def list log in -text/prs.fallenstein.rst +# text/prs.fallenstein.rst text/prs.lines.tag dsc -text/red -text/rfc822-headers +# text/vnd.radisys.msml-basic-layout +# text/red +# text/rfc822-headers text/richtext rtx -text/rtf -text/rtp-enc-aescm128 -text/rtx +# text/rtf +# text/rtp-enc-aescm128 +# text/rtx text/sgml sgml sgm -text/t140 +# text/t140 text/tab-separated-values tsv text/troff t tr roff man me ms +text/turtle ttl +# text/ulpfec text/uri-list uri uris urls -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.esmertec.theme-descriptor +text/vcard vcard +# text/vnd.abc +text/vnd.curl curl +text/vnd.curl.dcurl dcurl +text/vnd.curl.scurl scurl +text/vnd.curl.mcurl mcurl +# text/vnd.dmclientscript +text/vnd.dvb.subtitle sub +# text/vnd.esmertec.theme-descriptor text/vnd.fly fly text/vnd.fmi.flexstor flx +text/vnd.graphviz gv text/vnd.in3d.3dml 3dml text/vnd.in3d.spot spot -text/vnd.iptc.newsml -text/vnd.iptc.nitf -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command +# text/vnd.iptc.newsml +# text/vnd.iptc.nitf +# text/vnd.latex-z +# text/vnd.motorola.reflex +# text/vnd.ms-mediapackage +# text/vnd.net2phone.commcenter.command +# text/vnd.si.uricatalogue text/vnd.sun.j2me.app-descriptor jad -text/vnd.trolltech.linguist -text/vnd.wap.si -text/vnd.wap.sl +# text/vnd.trolltech.linguist +# text/vnd.wap.si +# text/vnd.wap.sl text/vnd.wap.wml wml text/vnd.wap.wmlscript wmls text/x-asm s asm text/x-c c cc cxx cpp h hh dic text/x-fortran f for f77 f90 -text/x-pascal p pas text/x-java-source java +text/x-opml opml +text/x-pascal p pas +text/x-nfo nfo text/x-setext etx +text/x-sfv sfv text/x-uuencode uu text/x-vcalendar vcs text/x-vcard vcf -text/xml -text/xml-external-parsed-entity +# text/xml +# text/xml-external-parsed-entity +# video/1d-interleaved-parityfec video/3gpp 3gp -video/3gpp-tt +# video/3gpp-tt video/3gpp2 3g2 -video/bmpeg -video/bt656 -video/celb -video/dv +# video/bmpeg +# video/bt656 +# video/celb +# video/dv +# video/example video/h261 h261 video/h263 h263 -video/h263-1998 -video/h263-2000 +# video/h263-1998 +# video/h263-2000 video/h264 h264 +# video/h264-rcdo +# video/h264-svc video/jpeg jpgv +# video/jpeg2000 video/jpm jpm jpgm video/mj2 mj2 mjp2 -video/mp1s -video/mp2p -video/mp2t +# video/mp1s +# video/mp2p +# video/mp2t video/mp4 mp4 mp4v mpg4 -video/mp4v-es +# video/mp4v-es video/mpeg mpeg mpg mpe m1v m2v -video/mpeg4-generic -video/mpv -video/nv -video/parityfec -video/pointer +# video/mpeg4-generic +# video/mpv +# video/nv +video/ogg ogv +# video/parityfec +# video/pointer video/quicktime qt mov -video/raw -video/rtp-enc-aescm128 -video/rtx -video/smpte292m -video/vc1 -video/vnd.dlna.mpeg-tts +# video/raw +# video/rtp-enc-aescm128 +# video/rtx +# video/smpte292m +# video/ulpfec +# video/vc1 +# video/vnd.cctv +video/vnd.dece.hd uvh uvvh +video/vnd.dece.mobile uvm uvvm +# video/vnd.dece.mp4 +video/vnd.dece.pd uvp uvvp +video/vnd.dece.sd uvs uvvs +video/vnd.dece.video uvv uvvv +# video/vnd.directv.mpeg +# video/vnd.directv.mpeg-tts +# video/vnd.dlna.mpeg-tts +video/vnd.dvb.file dvb video/vnd.fvt fvt -video/vnd.hns.video -video/vnd.motorola.video -video/vnd.motorola.videop +# video/vnd.hns.video +# video/vnd.iptvforum.1dparityfec-1010 +# video/vnd.iptvforum.1dparityfec-2005 +# video/vnd.iptvforum.2dparityfec-1010 +# video/vnd.iptvforum.2dparityfec-2005 +# video/vnd.iptvforum.ttsavc +# video/vnd.iptvforum.ttsmpeg2 +# video/vnd.motorola.video +# video/vnd.motorola.videop video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.nokia.videovoip -video/vnd.objectvideo -video/vnd.sealed.mpeg1 -video/vnd.sealed.mpeg4 -video/vnd.sealed.swf -video/vnd.sealedmedia.softseal.mov +video/vnd.ms-playready.media.pyv pyv +# video/vnd.nokia.interleaved-multimedia +# video/vnd.nokia.videovoip +# video/vnd.objectvideo +# video/vnd.sealed.mpeg1 +# video/vnd.sealed.mpeg4 +# video/vnd.sealed.swf +# video/vnd.sealedmedia.softseal.mov +video/vnd.uvvu.mp4 uvu uvvu video/vnd.vivo viv +video/webm webm +video/x-f4v f4v video/x-fli fli +video/x-flv flv +video/x-m4v m4v +video/x-matroska mkv mk3d mks +video/x-mng mng video/x-ms-asf asf asx +video/x-ms-vob vob video/x-ms-wm wm video/x-ms-wmv wmv video/x-ms-wmx wmx video/x-ms-wvx wvx video/x-msvideo avi video/x-sgi-movie movie +video/x-smv smv x-conference/x-cooltalk ice diff --git a/conf/vanilla/mime.types b/conf/vanilla/mime.types index 34d5fc9055..b680b3327d 100644 --- a/conf/vanilla/mime.types +++ b/conf/vanilla/mime.types @@ -1,204 +1,343 @@ -# This is a comment. I love comments. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at . - -# MIME type Extensions -application/activemessage +# +# MIME type configs overriden by the FreeSWITCH project. +# +audio/mpeg mp3 mpga mp2 mp2a m2a m3a +image/jpeg jpg jpeg jpe +# +# Additional MIME types added by the FreeSWITCH project. Any duplicate file extensions listed here will only be +# used to map from MIME -> extension and not extension -> MIME +audio/x-mpeg mp3 +audio/mp3 mp3 +audio/x-mp3 mp3 +audio/mpeg3 mp3 +audio/x-mpeg3 mp3 +audio/mpg mp3 +audio/x-mpegaudio mp3 +audio/x-wave wav +audio/wave wav +# +# The section below was taken from Apache httpd Project at +# +# +# This file maps Internet media types to unique file extension(s). +# Although created for httpd, this file is used by many software systems +# and has been placed in the public domain for unlimited redisribution. +# +# The table below contains both registered and (common) unregistered types. +# A type that has no unique extension can be ignored -- they are listed +# here to guide configurations toward known types and to make it easier to +# identify "new" types. File extensions are also commonly used to indicate +# content languages and encodings, so choose them carefully. +# +# Internet media types should be registered as described in RFC 4288. +# The registry is at . +# +# MIME type (lowercased) Extensions +# ============================================ ========== +# application/1d-interleaved-parityfec +# application/3gpp-ims+xml +# application/activemessage application/andrew-inset ez -application/applefile +# application/applefile +application/applixware aw application/atom+xml atom application/atomcat+xml atomcat -application/atomicmail +# application/atomicmail application/atomsvc+xml atomsvc -application/auth-policy+xml -application/batch-smtp -application/beep+xml -application/cals-1840 +# application/auth-policy+xml +# application/batch-smtp +# application/beep+xml +# application/calendar+xml +# application/cals-1840 +# application/ccmp+xml application/ccxml+xml ccxml -application/cellml+xml -application/cnrp+xml -application/commonground -application/conference-info+xml -application/cpl+xml -application/csta+xml -application/cstadata+xml -application/cybercash +application/cdmi-capability cdmia +application/cdmi-container cdmic +application/cdmi-domain cdmid +application/cdmi-object cdmio +application/cdmi-queue cdmiq +# application/cea-2018+xml +# application/cellml+xml +# application/cfw +# application/cnrp+xml +# application/commonground +# application/conference-info+xml +# application/cpl+xml +# application/csta+xml +# application/cstadata+xml +application/cu-seeme cu +# application/cybercash application/davmount+xml davmount -application/dca-rft -application/dec-dx -application/dialog-info+xml -application/dicom -application/dns -application/dvcs +# application/dca-rft +# application/dec-dx +# application/dialog-info+xml +# application/dicom +# application/dns +application/docbook+xml dbk +# application/dskpp+xml +application/dssc+der dssc +application/dssc+xml xdssc +# application/dvcs application/ecmascript ecma -application/edi-consent -application/edi-x12 -application/edifact -application/epp+xml -application/eshop -application/fastinfoset -application/fastsoap -application/fits +# application/edi-consent +# application/edi-x12 +# application/edifact +application/emma+xml emma +# application/epp+xml +application/epub+zip epub +# application/eshop +# application/example +application/exi exi +# application/fastinfoset +# application/fastsoap +# application/fits application/font-tdpfr pfr -application/h224 -application/http +# application/framework-attributes+xml +application/gml+xml gml +application/gpx+xml gpx +application/gxf gxf +# application/h224 +# application/held+xml +# application/http application/hyperstudio stk -application/iges -application/im-iscomposing+xml -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup +# application/ibe-key-request+xml +# application/ibe-pkg-reply+xml +# application/ibe-pp-data +# application/iges +# application/im-iscomposing+xml +# application/index +# application/index.cmd +# application/index.obj +# application/index.response +# application/index.vnd +application/inkml+xml ink inkml +# application/iotp +application/ipfix ipfix +# application/ipp +# application/isup +application/java-archive jar +application/java-serialized-object ser +application/java-vm class application/javascript js application/json json -application/kpml-request+xml -application/kpml-response+xml +application/jsonml+json jsonml +# application/kpml-request+xml +# application/kpml-response+xml +application/lost+xml lostxml application/mac-binhex40 hqx application/mac-compactpro cpt -application/macwriteii +# application/macwriteii +application/mads+xml mads application/marc mrc +application/marcxml+xml mrcx application/mathematica ma nb mb +# application/mathml-content+xml +# application/mathml-presentation+xml application/mathml+xml mathml -application/mbms-associated-procedure-description+xml -application/mbms-deregister+xml -application/mbms-envelope+xml -application/mbms-msk+xml -application/mbms-msk-response+xml -application/mbms-protection-description+xml -application/mbms-reception-report+xml -application/mbms-register+xml -application/mbms-register-response+xml -application/mbms-user-service-description+xml +# application/mbms-associated-procedure-description+xml +# application/mbms-deregister+xml +# application/mbms-envelope+xml +# application/mbms-msk+xml +# application/mbms-msk-response+xml +# application/mbms-protection-description+xml +# application/mbms-reception-report+xml +# application/mbms-register+xml +# application/mbms-register-response+xml +# application/mbms-user-service-description+xml application/mbox mbox +# application/media_control+xml application/mediaservercontrol+xml mscml -application/mikey +application/metalink+xml metalink +application/metalink4+xml meta4 +application/mets+xml mets +# application/mikey +application/mods+xml mods +# application/moss-keys +# application/moss-signature +# application/mosskey-data +# application/mosskey-request +application/mp21 m21 mp21 application/mp4 mp4s -application/mpeg4-generic -application/mpeg4-iod -application/mpeg4-iod-xmt +# application/mpeg4-generic +# application/mpeg4-iod +# application/mpeg4-iod-xmt +# application/msc-ivr+xml +# application/msc-mixer+xml application/msword doc dot application/mxf mxf -application/nasdata -application/news-message-id -application/news-transmission -application/nss -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc +# application/nasdata +# application/news-checkgroups +# application/news-groupinfo +# application/news-transmission +# application/nss +# application/ocsp-request +# application/ocsp-response +application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy application/oda oda -application/oebps-package+xml -application/ogg ogg -application/parityfec +application/oebps-package+xml opf +application/ogg ogx +application/omdoc+xml omdoc +application/onenote onetoc onetoc2 onetmp onepkg +application/oxps oxps +# application/parityfec +application/patch-ops-error+xml xer application/pdf pdf application/pgp-encrypted pgp -application/pgp-keys +# application/pgp-keys application/pgp-signature asc sig application/pics-rules prf -application/pidf+xml +# application/pidf+xml +# application/pidf-diff+xml application/pkcs10 p10 application/pkcs7-mime p7m p7c application/pkcs7-signature p7s +application/pkcs8 p8 +application/pkix-attr-cert ac application/pkix-cert cer application/pkix-crl crl application/pkix-pkipath pkipath application/pkixcmp pki application/pls+xml pls -application/poc-settings+xml +# application/poc-settings+xml application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet +# application/prs.alvestrand.titrax-sheet application/prs.cww cww -application/prs.nprend -application/prs.plucker -application/qsig +# application/prs.nprend +# application/prs.plucker +# application/prs.rdf-xml-crypt +# application/prs.xsf+xml +application/pskc+xml pskcxml +# application/qsig application/rdf+xml rdf application/reginfo+xml rif application/relax-ng-compact-syntax rnc -application/remote-printing +# application/remote-printing application/resource-lists+xml rl -application/riscos -application/rlmi+xml +application/resource-lists-diff+xml rld +# application/riscos +# application/rlmi+xml application/rls-services+xml rs +application/rpki-ghostbusters gbr +application/rpki-manifest mft +application/rpki-roa roa +# application/rpki-updown application/rsd+xml rsd application/rss+xml rss application/rtf rtf -application/rtx -application/samlassertion+xml -application/samlmetadata+xml +# application/rtx +# application/samlassertion+xml +# application/samlmetadata+xml application/sbml+xml sbml +application/scvp-cv-request scq +application/scvp-cv-response scs +application/scvp-vp-request spq +application/scvp-vp-response spp application/sdp sdp -application/set-payment +# application/set-payment application/set-payment-initiation setpay -application/set-registration +# application/set-registration application/set-registration-initiation setreg -application/sgml -application/sgml-open-catalog +# application/sgml +# application/sgml-open-catalog application/shf+xml shf -application/sieve -application/simple-filter+xml -application/simple-message-summary -application/simplesymbolcontainer -application/slate -application/smil +# application/sieve +# application/simple-filter+xml +# application/simple-message-summary +# application/simplesymbolcontainer +# application/slate +# application/smil application/smil+xml smi smil -application/soap+fastinfoset -application/soap+xml -application/spirits-event+xml +# application/soap+fastinfoset +# application/soap+xml +application/sparql-query rq +application/sparql-results+xml srx +# application/spirits-event+xml application/srgs gram application/srgs+xml grxml +application/sru+xml sru +application/ssdl+xml ssdl application/ssml+xml ssml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vividence.scriptfile -application/vnd.3gpp.bsf+xml +# application/tamp-apex-update +# application/tamp-apex-update-confirm +# application/tamp-community-update +# application/tamp-community-update-confirm +# application/tamp-error +# application/tamp-sequence-adjust +# application/tamp-sequence-adjust-confirm +# application/tamp-status-query +# application/tamp-status-response +# application/tamp-update +# application/tamp-update-confirm +application/tei+xml tei teicorpus +application/thraud+xml tfi +# application/timestamp-query +# application/timestamp-reply +application/timestamped-data tsd +# application/tve-trigger +# application/ulpfec +# application/vcard+xml +# application/vemmi +# application/vividence.scriptfile +# application/vnd.3gpp.bsf+xml application/vnd.3gpp.pic-bw-large plb application/vnd.3gpp.pic-bw-small psb application/vnd.3gpp.pic-bw-var pvb -application/vnd.3gpp.sms -application/vnd.3gpp2.bcmcsinfo+xml -application/vnd.3gpp2.sms +# application/vnd.3gpp.sms +# application/vnd.3gpp2.bcmcsinfo+xml +# application/vnd.3gpp2.sms +application/vnd.3gpp2.tcap tcap application/vnd.3m.post-it-notes pwn application/vnd.accpac.simply.aso aso application/vnd.accpac.simply.imp imp application/vnd.acucobol acu application/vnd.acucorp atc acutc +application/vnd.adobe.air-application-installer-package+zip air +application/vnd.adobe.formscentral.fcdt fcdt +application/vnd.adobe.fxp fxp fxpl +# application/vnd.adobe.partial-upload application/vnd.adobe.xdp+xml xdp application/vnd.adobe.xfdf xfdf -application/vnd.aether.imp +# application/vnd.aether.imp +# application/vnd.ah-barcode +application/vnd.ahead.space ahead +application/vnd.airzip.filesecure.azf azf +application/vnd.airzip.filesecure.azs azs +application/vnd.amazon.ebook azw +application/vnd.americandynamics.acc acc application/vnd.amiga.ami ami +# application/vnd.amundsen.maze+xml +application/vnd.android.package-archive apk application/vnd.anser-web-certificate-issue-initiation cii application/vnd.anser-web-funds-transfer-initiation fti application/vnd.antix.game-component atx application/vnd.apple.installer+xml mpkg +application/vnd.apple.mpegurl m3u8 +# application/vnd.arastra.swi +application/vnd.aristanetworks.swi swi +application/vnd.astraea-software.iota iota application/vnd.audiograph aep -application/vnd.autopackage -application/vnd.avistar+xml +# application/vnd.autopackage +# application/vnd.avistar+xml application/vnd.blueice.multipass mpm +# application/vnd.bluetooth.ep.oob application/vnd.bmi bmi application/vnd.businessobjects rep -application/vnd.cab-jscript -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cendio.thinlinc.clientconf +# application/vnd.cab-jscript +# application/vnd.canon-cpdl +# application/vnd.canon-lips +# application/vnd.cendio.thinlinc.clientconf application/vnd.chemdraw+xml cdxml application/vnd.chipnuts.karaoke-mmd mmd application/vnd.cinderella cdy -application/vnd.cirpack.isdn-ext +# application/vnd.cirpack.isdn-ext application/vnd.claymore cla +application/vnd.cloanto.rp9 rp9 application/vnd.clonk.c4group c4g c4d c4f c4p c4u -application/vnd.commerce-battelle -application/vnd.commonspace csp cst +application/vnd.cluetrust.cartomobile-config c11amc +application/vnd.cluetrust.cartomobile-config-pkg c11amz +# application/vnd.collection+json +# application/vnd.commerce-battelle +application/vnd.commonspace csp application/vnd.contact.cmsg cdbcmsg application/vnd.cosmocaller cmc application/vnd.crick.clicker clkx @@ -208,46 +347,100 @@ application/vnd.crick.clicker.template clkt application/vnd.crick.clicker.wordbank clkw application/vnd.criticaltools.wbs+xml wbs application/vnd.ctc-posml pml -application/vnd.cups-pdf -application/vnd.cups-postscript +# application/vnd.ctct.ws+xml +# application/vnd.cups-pdf +# application/vnd.cups-postscript application/vnd.cups-ppd ppd -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl curl -application/vnd.cybank +# application/vnd.cups-raster +# application/vnd.cups-raw +# application/vnd.curl +application/vnd.curl.car car +application/vnd.curl.pcurl pcurl +# application/vnd.cybank +application/vnd.dart dart application/vnd.data-vision.rdz rdz +application/vnd.dece.data uvf uvvf uvd uvvd +application/vnd.dece.ttml+xml uvt uvvt +application/vnd.dece.unspecified uvx uvvx +application/vnd.dece.zip uvz uvvz application/vnd.denovo.fcselayout-link fe_launch +# application/vnd.dir-bi.plate-dl-nosuffix application/vnd.dna dna application/vnd.dolby.mlp mlp +# application/vnd.dolby.mobile.1 +# application/vnd.dolby.mobile.2 application/vnd.dpgraph dpg application/vnd.dreamfactory dfac -application/vnd.dvb.esgcontainer -application/vnd.dvb.ipdcesgaccess -application/vnd.dxr -application/vnd.ecdis-update +application/vnd.ds-keypoint kpxx +application/vnd.dvb.ait ait +# application/vnd.dvb.dvbj +# application/vnd.dvb.esgcontainer +# application/vnd.dvb.ipdcdftnotifaccess +# application/vnd.dvb.ipdcesgaccess +# application/vnd.dvb.ipdcesgaccess2 +# application/vnd.dvb.ipdcesgpdd +# application/vnd.dvb.ipdcroaming +# application/vnd.dvb.iptv.alfec-base +# application/vnd.dvb.iptv.alfec-enhancement +# application/vnd.dvb.notif-aggregate-root+xml +# application/vnd.dvb.notif-container+xml +# application/vnd.dvb.notif-generic+xml +# application/vnd.dvb.notif-ia-msglist+xml +# application/vnd.dvb.notif-ia-registration-request+xml +# application/vnd.dvb.notif-ia-registration-response+xml +# application/vnd.dvb.notif-init+xml +# application/vnd.dvb.pfr +application/vnd.dvb.service svc +# application/vnd.dxr +application/vnd.dynageo geo +# application/vnd.easykaraoke.cdgdownload +# application/vnd.ecdis-update application/vnd.ecowin.chart mag -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate +# application/vnd.ecowin.filerequest +# application/vnd.ecowin.fileupdate +# application/vnd.ecowin.series +# application/vnd.ecowin.seriesrequest +# application/vnd.ecowin.seriesupdate +# application/vnd.emclient.accessrequest+xml application/vnd.enliven nml +# application/vnd.eprints.data+xml application/vnd.epson.esf esf application/vnd.epson.msf msf application/vnd.epson.quickanime qam application/vnd.epson.salt slt application/vnd.epson.ssf ssf -application/vnd.ericsson.quickcall +# application/vnd.ericsson.quickcall application/vnd.eszigno3+xml es3 et3 -application/vnd.eudora.data +# application/vnd.etsi.aoc+xml +# application/vnd.etsi.cug+xml +# application/vnd.etsi.iptvcommand+xml +# application/vnd.etsi.iptvdiscovery+xml +# application/vnd.etsi.iptvprofile+xml +# application/vnd.etsi.iptvsad-bc+xml +# application/vnd.etsi.iptvsad-cod+xml +# application/vnd.etsi.iptvsad-npvr+xml +# application/vnd.etsi.iptvservice+xml +# application/vnd.etsi.iptvsync+xml +# application/vnd.etsi.iptvueprofile+xml +# application/vnd.etsi.mcid+xml +# application/vnd.etsi.overload-control-policy-dataset+xml +# application/vnd.etsi.sci+xml +# application/vnd.etsi.simservs+xml +# application/vnd.etsi.tsl+xml +# application/vnd.etsi.tsl.der +# application/vnd.eudora.data application/vnd.ezpix-album ez2 application/vnd.ezpix-package ez3 +# application/vnd.f-secure.mobile application/vnd.fdf fdf -application/vnd.ffsns -application/vnd.fints +application/vnd.fdsn.mseed mseed +application/vnd.fdsn.seed seed dataless +# application/vnd.ffsns +# application/vnd.fints application/vnd.flographit gph application/vnd.fluxtime.clip ftc -application/vnd.framemaker fm frame maker +# application/vnd.font-fontforge-sfd +application/vnd.framemaker fm frame maker book application/vnd.frogans.fnc fnc application/vnd.frogans.ltf ltf application/vnd.fsc.weblaunch fsc @@ -256,19 +449,29 @@ application/vnd.fujitsu.oasys2 oa2 application/vnd.fujitsu.oasys3 oa3 application/vnd.fujitsu.oasysgp fg5 application/vnd.fujitsu.oasysprs bh2 -application/vnd.fujixerox.art-ex -application/vnd.fujixerox.art4 -application/vnd.fujixerox.hbpl +# application/vnd.fujixerox.art-ex +# application/vnd.fujixerox.art4 +# application/vnd.fujixerox.hbpl application/vnd.fujixerox.ddd ddd application/vnd.fujixerox.docuworks xdw application/vnd.fujixerox.docuworks.binder xbd -application/vnd.fut-misnet +# application/vnd.fut-misnet application/vnd.fuzzysheet fzs application/vnd.genomatix.tuxedo txd +# application/vnd.geocube+xml +application/vnd.geogebra.file ggb +application/vnd.geogebra.tool ggt +application/vnd.geometry-explorer gex gre +application/vnd.geonext gxt +application/vnd.geoplan g2w +application/vnd.geospace g3w +# application/vnd.globalplatform.card-content-mgt +# application/vnd.globalplatform.card-content-mgt-response +application/vnd.gmx gmx application/vnd.google-earth.kml+xml kml application/vnd.google-earth.kmz kmz application/vnd.grafeq gqf gqs -application/vnd.gridmp +# application/vnd.gridmp application/vnd.groove-account gac application/vnd.groove-help ghf application/vnd.groove-identity-message gim @@ -276,9 +479,11 @@ application/vnd.groove-injector grv application/vnd.groove-tool-message gtm application/vnd.groove-tool-template tpl application/vnd.groove-vcard vcg +# application/vnd.hal+json +application/vnd.hal+xml hal application/vnd.handheld-entertainment+xml zmm application/vnd.hbci hbci -application/vnd.hcl-bireports +# application/vnd.hcl-bireports application/vnd.hhe.lesson-player les application/vnd.hp-hpgl hpgl application/vnd.hp-hpid hpid @@ -286,37 +491,53 @@ application/vnd.hp-hps hps application/vnd.hp-jlyt jlt application/vnd.hp-pcl pcl application/vnd.hp-pclxl pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword x3d -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media +# application/vnd.httphone +application/vnd.hydrostatix.sof-data sfd-hdstx +# application/vnd.hzn-3d-crossword +# application/vnd.ibm.afplinedata +# application/vnd.ibm.electronic-media application/vnd.ibm.minipay mpy application/vnd.ibm.modcap afp listafp list3820 application/vnd.ibm.rights-management irm application/vnd.ibm.secure-container sc +application/vnd.iccprofile icc icm application/vnd.igloader igl application/vnd.immervision-ivp ivp application/vnd.immervision-ivu ivu -application/vnd.informedcontrol.rms+xml +# application/vnd.informedcontrol.rms+xml +# application/vnd.informix-visionary +# application/vnd.infotech.project +# application/vnd.infotech.project+xml +# application/vnd.innopath.wamp.notification +application/vnd.insors.igm igm application/vnd.intercon.formnet xpw xpx -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp +application/vnd.intergeo i2g +# application/vnd.intertrust.digibox +# application/vnd.intertrust.nncp application/vnd.intu.qbo qbo application/vnd.intu.qfx qfx +# application/vnd.iptc.g2.conceptitem+xml +# application/vnd.iptc.g2.knowledgeitem+xml +# application/vnd.iptc.g2.newsitem+xml +# application/vnd.iptc.g2.newsmessage+xml +# application/vnd.iptc.g2.packageitem+xml +# application/vnd.iptc.g2.planningitem+xml application/vnd.ipunplugged.rcprofile rcprofile application/vnd.irepository.package+xml irp application/vnd.is-xpr xpr +application/vnd.isac.fcs fcs application/vnd.jam jam -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup +# application/vnd.japannet-directory-service +# application/vnd.japannet-jpnstore-wakeup +# application/vnd.japannet-payment-wakeup +# application/vnd.japannet-registration +# application/vnd.japannet-registration-wakeup +# application/vnd.japannet-setstore-wakeup +# application/vnd.japannet-verification +# application/vnd.japannet-verification-wakeup application/vnd.jcp.javame.midlet-rms rms application/vnd.jisp jisp +application/vnd.joost.joda-archive joda application/vnd.kahootz ktz ktr application/vnd.kde.karbon karbon application/vnd.kde.kchart chrt @@ -330,7 +551,9 @@ application/vnd.kenameaapp htke application/vnd.kidspiration kia application/vnd.kinar kne knp application/vnd.koan skp skd skt skm -application/vnd.liberty-request+xml +application/vnd.kodak-descriptor sse +application/vnd.las.las+xml lasxml +# application/vnd.liberty-request+xml application/vnd.llamagraphics.life-balance.desktop lbd application/vnd.llamagraphics.life-balance.exchange+xml lbe application/vnd.lotus-1-2-3 123 @@ -341,20 +564,21 @@ application/vnd.lotus-organizer org application/vnd.lotus-screencam scm application/vnd.lotus-wordpro lwp application/vnd.macports.portpkg portpkg -application/vnd.marlin.drm.actiontoken+xml -application/vnd.marlin.drm.conftoken+xml -application/vnd.marlin.drm.mdcf +# application/vnd.marlin.drm.actiontoken+xml +# application/vnd.marlin.drm.conftoken+xml +# application/vnd.marlin.drm.license+xml +# application/vnd.marlin.drm.mdcf application/vnd.mcd mcd application/vnd.medcalcdata mc1 application/vnd.mediastation.cdkey cdkey -application/vnd.meridian-slingshot +# application/vnd.meridian-slingshot application/vnd.mfer mwf application/vnd.mfmp mfm application/vnd.micrografx.flo flo application/vnd.micrografx.igx igx application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb +# application/vnd.minisoft-hp3000-save +# application/vnd.mitsubishi.misty-guard.trustweb application/vnd.mobius.daf daf application/vnd.mobius.dis dis application/vnd.mobius.mbk mbk @@ -364,149 +588,312 @@ application/vnd.mobius.plc plc application/vnd.mobius.txf txf application/vnd.mophun.application mpn application/vnd.mophun.certificate mpc -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul +# application/vnd.motorola.flexsuite +# application/vnd.motorola.flexsuite.adsi +# application/vnd.motorola.flexsuite.fis +# application/vnd.motorola.flexsuite.gotap +# application/vnd.motorola.flexsuite.kmr +# application/vnd.motorola.flexsuite.ttc +# application/vnd.motorola.flexsuite.wem +# application/vnd.motorola.iprm +application/vnd.mozilla.xul+xml xul application/vnd.ms-artgalry cil -application/vnd.ms-asf asf +# application/vnd.ms-asf application/vnd.ms-cab-compressed cab +# application/vnd.ms-color.iccprofile application/vnd.ms-excel xls xlm xla xlc xlt xlw +application/vnd.ms-excel.addin.macroenabled.12 xlam +application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb +application/vnd.ms-excel.sheet.macroenabled.12 xlsm +application/vnd.ms-excel.template.macroenabled.12 xltm application/vnd.ms-fontobject eot application/vnd.ms-htmlhelp chm application/vnd.ms-ims ims application/vnd.ms-lrm lrm -application/vnd.ms-playready.initiator+xml +# application/vnd.ms-office.activex+xml +application/vnd.ms-officetheme thmx +# application/vnd.ms-opentype +# application/vnd.ms-package.obfuscated-opentype +application/vnd.ms-pki.seccat cat +application/vnd.ms-pki.stl stl +# application/vnd.ms-playready.initiator+xml application/vnd.ms-powerpoint ppt pps pot +application/vnd.ms-powerpoint.addin.macroenabled.12 ppam +application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm +application/vnd.ms-powerpoint.slide.macroenabled.12 sldm +application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm +application/vnd.ms-powerpoint.template.macroenabled.12 potm +# application/vnd.ms-printing.printticket+xml application/vnd.ms-project mpp mpt -application/vnd.ms-tnef -application/vnd.ms-wmdrm.lic-chlg-req -application/vnd.ms-wmdrm.lic-resp -application/vnd.ms-wmdrm.meter-chlg-req -application/vnd.ms-wmdrm.meter-resp +# application/vnd.ms-tnef +# application/vnd.ms-wmdrm.lic-chlg-req +# application/vnd.ms-wmdrm.lic-resp +# application/vnd.ms-wmdrm.meter-chlg-req +# application/vnd.ms-wmdrm.meter-resp +application/vnd.ms-word.document.macroenabled.12 docm +application/vnd.ms-word.template.macroenabled.12 dotm application/vnd.ms-works wps wks wcm wdb application/vnd.ms-wpl wpl application/vnd.ms-xpsdocument xps application/vnd.mseq mseq -application/vnd.msign -application/vnd.music-niff +# application/vnd.msign +# application/vnd.multiad.creator +# application/vnd.multiad.creator.cif +# application/vnd.music-niff application/vnd.musician mus -application/vnd.ncd.control -application/vnd.nervana -application/vnd.netfpx +application/vnd.muvee.style msty +application/vnd.mynfc taglet +# application/vnd.ncd.control +# application/vnd.ncd.reference +# application/vnd.nervana +# application/vnd.netfpx application/vnd.neurolanguage.nlu nlu +application/vnd.nitf ntf nitf application/vnd.noblenet-directory nnd application/vnd.noblenet-sealer nns application/vnd.noblenet-web nnw -application/vnd.nokia.catalogs -application/vnd.nokia.conml+wbxml -application/vnd.nokia.conml+xml -application/vnd.nokia.isds-radio-presets -application/vnd.nokia.iptv.config+xml -application/vnd.nokia.landmark+wbxml -application/vnd.nokia.landmark+xml -application/vnd.nokia.landmarkcollection+xml -application/vnd.nokia.n-gage.ac+xml +# application/vnd.nokia.catalogs +# application/vnd.nokia.conml+wbxml +# application/vnd.nokia.conml+xml +# application/vnd.nokia.isds-radio-presets +# application/vnd.nokia.iptv.config+xml +# application/vnd.nokia.landmark+wbxml +# application/vnd.nokia.landmark+xml +# application/vnd.nokia.landmarkcollection+xml +# application/vnd.nokia.n-gage.ac+xml application/vnd.nokia.n-gage.data ngdat application/vnd.nokia.n-gage.symbian.install n-gage -application/vnd.nokia.ncd -application/vnd.nokia.pcd+wbxml -application/vnd.nokia.pcd+xml +# application/vnd.nokia.ncd +# application/vnd.nokia.pcd+wbxml +# application/vnd.nokia.pcd+xml application/vnd.nokia.radio-preset rpst application/vnd.nokia.radio-presets rpss application/vnd.novadigm.edm edm application/vnd.novadigm.edx edx application/vnd.novadigm.ext ext +# application/vnd.ntt-local.file-transfer +# application/vnd.ntt-local.sip-ta_remote +# application/vnd.ntt-local.sip-ta_tcp_stream application/vnd.oasis.opendocument.chart odc application/vnd.oasis.opendocument.chart-template otc +application/vnd.oasis.opendocument.database odb application/vnd.oasis.opendocument.formula odf -application/vnd.oasis.opendocument.formula-template otf +application/vnd.oasis.opendocument.formula-template odft application/vnd.oasis.opendocument.graphics odg application/vnd.oasis.opendocument.graphics-template otg application/vnd.oasis.opendocument.image odi application/vnd.oasis.opendocument.image-template oti application/vnd.oasis.opendocument.presentation odp -application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.presentation-template otp application/vnd.oasis.opendocument.spreadsheet ods application/vnd.oasis.opendocument.spreadsheet-template ots application/vnd.oasis.opendocument.text odt -application/vnd.oasis.opendocument.text-master otm +application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth -application/vnd.obn +# application/vnd.obn +# application/vnd.oftn.l10n+json +# application/vnd.oipf.contentaccessdownload+xml +# application/vnd.oipf.contentaccessstreaming+xml +# application/vnd.oipf.cspg-hexbinary +# application/vnd.oipf.dae.svg+xml +# application/vnd.oipf.dae.xhtml+xml +# application/vnd.oipf.mippvcontrolmessage+xml +# application/vnd.oipf.pae.gem +# application/vnd.oipf.spdiscovery+xml +# application/vnd.oipf.spdlist+xml +# application/vnd.oipf.ueprofile+xml +# application/vnd.oipf.userprofile+xml application/vnd.olpc-sugar xo -application/vnd.oma-scws-config -application/vnd.oma-scws-http-request -application/vnd.oma-scws-http-response -application/vnd.oma.bcast.associated-procedure-parameter+xml -application/vnd.oma.bcast.drm-trigger+xml -application/vnd.oma.bcast.imd+xml -application/vnd.oma.bcast.notification+xml -application/vnd.oma.bcast.sgboot -application/vnd.oma.bcast.sgdd+xml -application/vnd.oma.bcast.sgdu -application/vnd.oma.bcast.simple-symbol-container -application/vnd.oma.bcast.smartcard-trigger+xml -application/vnd.oma.bcast.sprov+xml +# application/vnd.oma-scws-config +# application/vnd.oma-scws-http-request +# application/vnd.oma-scws-http-response +# application/vnd.oma.bcast.associated-procedure-parameter+xml +# application/vnd.oma.bcast.drm-trigger+xml +# application/vnd.oma.bcast.imd+xml +# application/vnd.oma.bcast.ltkm +# application/vnd.oma.bcast.notification+xml +# application/vnd.oma.bcast.provisioningtrigger +# application/vnd.oma.bcast.sgboot +# application/vnd.oma.bcast.sgdd+xml +# application/vnd.oma.bcast.sgdu +# application/vnd.oma.bcast.simple-symbol-container +# application/vnd.oma.bcast.smartcard-trigger+xml +# application/vnd.oma.bcast.sprov+xml +# application/vnd.oma.bcast.stkm +# application/vnd.oma.cab-address-book+xml +# application/vnd.oma.cab-feature-handler+xml +# application/vnd.oma.cab-pcc+xml +# application/vnd.oma.cab-user-prefs+xml +# application/vnd.oma.dcd +# application/vnd.oma.dcdc application/vnd.oma.dd2+xml dd2 -application/vnd.oma.drm.risd+xml -application/vnd.oma.group-usage-list+xml -application/vnd.oma.poc.groups+xml -application/vnd.oma.xcap-directory+xml -application/vnd.omads-email+xml -application/vnd.omads-file+xml -application/vnd.omads-folder+xml -application/vnd.omaloc-supl-init +# application/vnd.oma.drm.risd+xml +# application/vnd.oma.group-usage-list+xml +# application/vnd.oma.pal+xml +# application/vnd.oma.poc.detailed-progress-report+xml +# application/vnd.oma.poc.final-report+xml +# application/vnd.oma.poc.groups+xml +# application/vnd.oma.poc.invocation-descriptor+xml +# application/vnd.oma.poc.optimized-progress-report+xml +# application/vnd.oma.push +# application/vnd.oma.scidm.messages+xml +# application/vnd.oma.xcap-directory+xml +# application/vnd.omads-email+xml +# application/vnd.omads-file+xml +# application/vnd.omads-folder+xml +# application/vnd.omaloc-supl-init application/vnd.openofficeorg.extension oxt -application/vnd.osa.netdeploy +# application/vnd.openxmlformats-officedocument.custom-properties+xml +# application/vnd.openxmlformats-officedocument.customxmlproperties+xml +# application/vnd.openxmlformats-officedocument.drawing+xml +# application/vnd.openxmlformats-officedocument.drawingml.chart+xml +# application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml +# application/vnd.openxmlformats-officedocument.extended-properties+xml +# application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml +# application/vnd.openxmlformats-officedocument.presentationml.comments+xml +# application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx +# application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.presprops+xml +application/vnd.openxmlformats-officedocument.presentationml.slide sldx +# application/vnd.openxmlformats-officedocument.presentationml.slide+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx +# application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml +# application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml +# application/vnd.openxmlformats-officedocument.presentationml.tags+xml +application/vnd.openxmlformats-officedocument.presentationml.template potx +# application/vnd.openxmlformats-officedocument.presentationml.template.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx +# application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml +# application/vnd.openxmlformats-officedocument.theme+xml +# application/vnd.openxmlformats-officedocument.themeoverride+xml +# application/vnd.openxmlformats-officedocument.vmldrawing +# application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx +# application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml +# application/vnd.openxmlformats-package.core-properties+xml +# application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml +# application/vnd.openxmlformats-package.relationships+xml +# application/vnd.quobject-quoxdocument +# application/vnd.osa.netdeploy +application/vnd.osgeo.mapguide.package mgp +# application/vnd.osgi.bundle application/vnd.osgi.dp dp -application/vnd.otps.ct-kip+xml -application/vnd.palm prc pdb pqa oprc -application/vnd.paos.xml +application/vnd.osgi.subsystem esa +# application/vnd.otps.ct-kip+xml +application/vnd.palm pdb pqa oprc +# application/vnd.paos.xml +application/vnd.pawaafile paw application/vnd.pg.format str application/vnd.pg.osasli ei6 -application/vnd.piaccess.application-licence +# application/vnd.piaccess.application-licence application/vnd.picsel efif -application/vnd.poc.group-advertisement+xml +application/vnd.pmi.widget wg +# application/vnd.poc.group-advertisement+xml application/vnd.pocketlearn plf application/vnd.powerbuilder6 pbd -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.preminet +# application/vnd.powerbuilder6-s +# application/vnd.powerbuilder7 +# application/vnd.powerbuilder7-s +# application/vnd.powerbuilder75 +# application/vnd.powerbuilder75-s +# application/vnd.preminet application/vnd.previewsystems.box box application/vnd.proteus.magazine mgz application/vnd.publishare-delta-tree qps application/vnd.pvi.ptid1 ptid -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.qualcomm.brew-app-res +# application/vnd.pwg-multiplexed +# application/vnd.pwg-xhtml-print+xml +# application/vnd.qualcomm.brew-app-res application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb -application/vnd.rapid +# application/vnd.radisys.moml+xml +# application/vnd.radisys.msml+xml +# application/vnd.radisys.msml-audit+xml +# application/vnd.radisys.msml-audit-conf+xml +# application/vnd.radisys.msml-audit-conn+xml +# application/vnd.radisys.msml-audit-dialog+xml +# application/vnd.radisys.msml-audit-stream+xml +# application/vnd.radisys.msml-conf+xml +# application/vnd.radisys.msml-dialog+xml +# application/vnd.radisys.msml-dialog-base+xml +# application/vnd.radisys.msml-dialog-fax-detect+xml +# application/vnd.radisys.msml-dialog-fax-sendrecv+xml +# application/vnd.radisys.msml-dialog-group+xml +# application/vnd.radisys.msml-dialog-speech+xml +# application/vnd.radisys.msml-dialog-transform+xml +# application/vnd.rainstor.data +# application/vnd.rapid +application/vnd.realvnc.bed bed application/vnd.recordare.musicxml mxl -application/vnd.recordare.musicxml+xml -application/vnd.renlearn.rlprint +application/vnd.recordare.musicxml+xml musicxml +# application/vnd.renlearn.rlprint +application/vnd.rig.cryptonote cryptonote +application/vnd.rim.cod cod application/vnd.rn-realmedia rm -application/vnd.ruckus.download -application/vnd.s3sms -application/vnd.scribus -application/vnd.sealed.3df -application/vnd.sealed.csf -application/vnd.sealed.doc -application/vnd.sealed.eml -application/vnd.sealed.mht -application/vnd.sealed.net -application/vnd.sealed.ppt -application/vnd.sealed.tiff -application/vnd.sealed.xls -application/vnd.sealedmedia.softseal.html -application/vnd.sealedmedia.softseal.pdf +application/vnd.rn-realmedia-vbr rmvb +application/vnd.route66.link66+xml link66 +# application/vnd.rs-274x +# application/vnd.ruckus.download +# application/vnd.s3sms +application/vnd.sailingtracker.track st +# application/vnd.sbm.cid +# application/vnd.sbm.mid2 +# application/vnd.scribus +# application/vnd.sealed.3df +# application/vnd.sealed.csf +# application/vnd.sealed.doc +# application/vnd.sealed.eml +# application/vnd.sealed.mht +# application/vnd.sealed.net +# application/vnd.sealed.ppt +# application/vnd.sealed.tiff +# application/vnd.sealed.xls +# application/vnd.sealedmedia.softseal.html +# application/vnd.sealedmedia.softseal.pdf application/vnd.seemail see application/vnd.sema sema application/vnd.semd semd @@ -517,292 +904,456 @@ application/vnd.shana.informed.interchange iif application/vnd.shana.informed.package ipk application/vnd.simtech-mindmapper twd twds application/vnd.smaf mmf +# application/vnd.smart.notebook +application/vnd.smart.teacher teacher +# application/vnd.software602.filler.form+xml +# application/vnd.software602.filler.form-xml-zip application/vnd.solent.sdkm+xml sdkm sdkd application/vnd.spotfire.dxp dxp application/vnd.spotfire.sfs sfs -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.sun.wadl+xml +# application/vnd.sss-cod +# application/vnd.sss-dtf +# application/vnd.sss-ntf +application/vnd.stardivision.calc sdc +application/vnd.stardivision.draw sda +application/vnd.stardivision.impress sdd +application/vnd.stardivision.math smf +application/vnd.stardivision.writer sdw vor +application/vnd.stardivision.writer-global sgl +application/vnd.stepmania.package smzip +application/vnd.stepmania.stepchart sm +# application/vnd.street-stream +application/vnd.sun.xml.calc sxc +application/vnd.sun.xml.calc.template stc +application/vnd.sun.xml.draw sxd +application/vnd.sun.xml.draw.template std +application/vnd.sun.xml.impress sxi +application/vnd.sun.xml.impress.template sti +application/vnd.sun.xml.math sxm +application/vnd.sun.xml.writer sxw +application/vnd.sun.xml.writer.global sxg +application/vnd.sun.xml.writer.template stw +# application/vnd.sun.wadl+xml application/vnd.sus-calendar sus susp application/vnd.svd svd -application/vnd.swiftview-ics +# application/vnd.swiftview-ics +application/vnd.symbian.install sis sisx application/vnd.syncml+xml xsm application/vnd.syncml.dm+wbxml bdm application/vnd.syncml.dm+xml xdm -application/vnd.syncml.ds.notification +# application/vnd.syncml.dm.notification +# application/vnd.syncml.ds.notification application/vnd.tao.intent-module-archive tao +application/vnd.tcpdump.pcap pcap cap dmp application/vnd.tmobile-livetv tmo application/vnd.trid.tpt tpt application/vnd.triscape.mxs mxs application/vnd.trueapp tra -application/vnd.truedoc +# application/vnd.truedoc +# application/vnd.ubisoft.webplayer application/vnd.ufdl ufd ufdl application/vnd.uiq.theme utz application/vnd.umajin umj application/vnd.unity unityweb application/vnd.uoml+xml uoml -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal +# application/vnd.uplanet.alert +# application/vnd.uplanet.alert-wbxml +# application/vnd.uplanet.bearer-choice +# application/vnd.uplanet.bearer-choice-wbxml +# application/vnd.uplanet.cacheop +# application/vnd.uplanet.cacheop-wbxml +# application/vnd.uplanet.channel +# application/vnd.uplanet.channel-wbxml +# application/vnd.uplanet.list +# application/vnd.uplanet.list-wbxml +# application/vnd.uplanet.listcmd +# application/vnd.uplanet.listcmd-wbxml +# application/vnd.uplanet.signal application/vnd.vcx vcx -application/vnd.vd-study -application/vnd.vectorworks -application/vnd.vidsoft.vidconference +# application/vnd.vd-study +# application/vnd.vectorworks +# application/vnd.verimatrix.vcas +# application/vnd.vidsoft.vidconference application/vnd.visio vsd vst vss vsw application/vnd.visionary vis -application/vnd.vividence.scriptfile +# application/vnd.vividence.scriptfile application/vnd.vsf vsf -application/vnd.wap.sic -application/vnd.wap.slc +# application/vnd.wap.sic +# application/vnd.wap.slc application/vnd.wap.wbxml wbxml application/vnd.wap.wmlc wmlc application/vnd.wap.wmlscriptc wmlsc application/vnd.webturbo wtb -application/vnd.wfa.wsc +# application/vnd.wfa.wsc +# application/vnd.wmc +# application/vnd.wmf.bootstrap +# application/vnd.wolfram.mathematica +# application/vnd.wolfram.mathematica.package +application/vnd.wolfram.player nbp application/vnd.wordperfect wpd application/vnd.wqd wqd -application/vnd.wrq-hp3000-labelled +# application/vnd.wrq-hp3000-labelled application/vnd.wt.stf stf -application/vnd.wv.csp+wbxml -application/vnd.wv.csp+xml -application/vnd.wv.ssp+xml +# application/vnd.wv.csp+wbxml +# application/vnd.wv.csp+xml +# application/vnd.wv.ssp+xml application/vnd.xara xar application/vnd.xfdl xfdl -application/vnd.xmpie.cpkg -application/vnd.xmpie.dpkg -application/vnd.xmpie.plan -application/vnd.xmpie.ppkg -application/vnd.xmpie.xlim +# application/vnd.xfdl.webform +# application/vnd.xmi+xml +# application/vnd.xmpie.cpkg +# application/vnd.xmpie.dpkg +# application/vnd.xmpie.plan +# application/vnd.xmpie.ppkg +# application/vnd.xmpie.xlim application/vnd.yamaha.hv-dic hvd application/vnd.yamaha.hv-script hvs application/vnd.yamaha.hv-voice hvp +application/vnd.yamaha.openscoreformat osf +application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg +# application/vnd.yamaha.remote-setup application/vnd.yamaha.smaf-audio saf application/vnd.yamaha.smaf-phrase spf +# application/vnd.yamaha.through-ngn +# application/vnd.yamaha.tunnel-udpencap application/vnd.yellowriver-custom-menu cmp +application/vnd.zul zir zirz application/vnd.zzazz.deck+xml zaz application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response +# application/vq-rtcpxr +# application/watcherinfo+xml +# application/whoispp-query +# application/whoispp-response +application/widget wgt application/winhlp hlp -application/wita -application/wordperfect5.1 +# application/wita +# application/wordperfect5.1 application/wsdl+xml wsdl application/wspolicy+xml wspolicy +application/x-7z-compressed 7z +application/x-abiword abw application/x-ace-compressed ace +# application/x-amf +application/x-apple-diskimage dmg +application/x-authorware-bin aab x32 u32 vox +application/x-authorware-map aam +application/x-authorware-seg aas application/x-bcpio bcpio application/x-bittorrent torrent +application/x-blorb blb blorb application/x-bzip bz application/x-bzip2 bz2 boz +application/x-cbr cbr cba cbt cbz cb7 application/x-cdlink vcd +application/x-cfs-compressed cfs application/x-chat chat application/x-chess-pgn pgn -application/x-compress +application/x-conference nsc +# application/x-compress application/x-cpio cpio application/x-csh csh -application/x-director dcr dir dxr fgd +application/x-debian-package deb udeb +application/x-dgc-compressed dgc +application/x-director dir dcr dxr cst cct cxt w3d fgd swa +application/x-doom wad +application/x-dtbncx+xml ncx +application/x-dtbook+xml dtb +application/x-dtbresource+xml res application/x-dvi dvi +application/x-envoy evy +application/x-eva eva +application/x-font-bdf bdf +# application/x-font-dos +# application/x-font-framemaker +application/x-font-ghostscript gsf +# application/x-font-libgrx +application/x-font-linux-psf psf +application/x-font-otf otf +application/x-font-pcf pcf +application/x-font-snf snf +# application/x-font-speedo +# application/x-font-sunos-news +application/x-font-ttf ttf ttc +application/x-font-type1 pfa pfb pfm afm +application/font-woff woff +# application/x-font-vfont +application/x-freearc arc application/x-futuresplash spl +application/x-gca-compressed gca +application/x-glulx ulx +application/x-gnumeric gnumeric +application/x-gramps-xml gramps application/x-gtar gtar -application/x-gzip +# application/x-gzip application/x-hdf hdf +application/x-install-instructions install +application/x-iso9660-image iso +application/x-java-jnlp-file jnlp application/x-latex latex +application/x-lzh-compressed lzh lha +application/x-mie mie +application/x-mobipocket-ebook prc mobi +application/x-ms-application application +application/x-ms-shortcut lnk application/x-ms-wmd wmd application/x-ms-wmz wmz +application/x-ms-xbap xbap application/x-msaccess mdb application/x-msbinder obd application/x-mscardfile crd application/x-msclip clp application/x-msdownload exe dll com bat msi application/x-msmediaview mvb m13 m14 -application/x-msmetafile wmf +application/x-msmetafile wmf wmz emf emz application/x-msmoney mny application/x-mspublisher pub application/x-msschedule scd application/x-msterminal trm application/x-mswrite wri application/x-netcdf nc cdf +application/x-nzb nzb application/x-pkcs12 p12 pfx application/x-pkcs7-certificates p7b spc application/x-pkcs7-certreqresp p7r application/x-rar-compressed rar +application/x-research-info-systems ris application/x-sh sh application/x-shar shar application/x-shockwave-flash swf +application/x-silverlight-app xap +application/x-sql sql application/x-stuffit sit application/x-stuffitx sitx +application/x-subrip srt application/x-sv4cpio sv4cpio application/x-sv4crc sv4crc +application/x-t3vm-image t3 +application/x-tads gam application/x-tar tar application/x-tcl tcl application/x-tex tex +application/x-tex-tfm tfm application/x-texinfo texinfo texi +application/x-tgif obj application/x-ustar ustar application/x-wais-source src application/x-x509-ca-cert der crt -application/x400-bp -application/xcap-att+xml -application/xcap-caps+xml -application/xcap-el+xml -application/xcap-error+xml -application/xcap-ns+xml +application/x-xfig fig +application/x-xliff+xml xlf +application/x-xpinstall xpi +application/x-xz xz +application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8 +# application/x400-bp +application/xaml+xml xaml +# application/xcap-att+xml +# application/xcap-caps+xml +application/xcap-diff+xml xdf +# application/xcap-el+xml +# application/xcap-error+xml +# application/xcap-ns+xml +# application/xcon-conference-info-diff+xml +# application/xcon-conference-info+xml application/xenc+xml xenc application/xhtml+xml xhtml xht +# application/xhtml-voice+xml application/xml xml xsl application/xml-dtd dtd -application/xml-external-parsed-entity -application/xmpp+xml +# application/xml-external-parsed-entity +# application/xmpp+xml application/xop+xml xop +application/xproc+xml xpl application/xslt+xml xslt application/xspf+xml xspf application/xv+xml mxml xhvml xvml xvm +application/yang yang +application/yin+xml yin application/zip zip -audio/32kadpcm -audio/3gpp -audio/3gpp2 -audio/ac3 -audio/amr -audio/amr-wb -audio/amr-wb+ -audio/asc +# audio/1d-interleaved-parityfec +# audio/32kadpcm +# audio/3gpp +# audio/3gpp2 +# audio/ac3 +audio/adpcm adp +# audio/amr +# audio/amr-wb +# audio/amr-wb+ +# audio/asc +# audio/atrac-advanced-lossless +# audio/atrac-x +# audio/atrac3 audio/basic au snd -audio/bv16 -audio/bv32 -audio/clearmode -audio/cn -audio/dat12 -audio/dls -audio/dsr-es201108 -audio/dsr-es202050 -audio/dsr-es202211 -audio/dsr-es202212 -audio/dvi4 -audio/eac3 -audio/evrc -audio/evrc-qcp -audio/evrc0 -audio/evrc1 -audio/evrcb -audio/evrcb0 -audio/evrcb1 -audio/g722 -audio/g7221 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g7291 -audio/g729d -audio/g729e -audio/gsm -audio/gsm-efr -audio/ilbc -audio/l16 -audio/l20 -audio/l24 -audio/l8 -audio/lpc +# audio/bv16 +# audio/bv32 +# audio/clearmode +# audio/cn +# audio/dat12 +# audio/dls +# audio/dsr-es201108 +# audio/dsr-es202050 +# audio/dsr-es202211 +# audio/dsr-es202212 +# audio/dv +# audio/dvi4 +# audio/eac3 +# audio/evrc +# audio/evrc-qcp +# audio/evrc0 +# audio/evrc1 +# audio/evrcb +# audio/evrcb0 +# audio/evrcb1 +# audio/evrcwb +# audio/evrcwb0 +# audio/evrcwb1 +# audio/example +# audio/fwdred +# audio/g719 +# audio/g722 +# audio/g7221 +# audio/g723 +# audio/g726-16 +# audio/g726-24 +# audio/g726-32 +# audio/g726-40 +# audio/g728 +# audio/g729 +# audio/g7291 +# audio/g729d +# audio/g729e +# audio/gsm +# audio/gsm-efr +# audio/gsm-hr-08 +# audio/ilbc +# audio/ip-mr_v2.5 +# audio/isac +# audio/l16 +# audio/l20 +# audio/l24 +# audio/l8 +# audio/lpc audio/midi mid midi kar rmi -audio/mobile-xmf +# audio/mobile-xmf audio/mp4 mp4a -audio/mp4a-latm -audio/mpa -audio/mpa-robust +# audio/mp4a-latm +# audio/mpa +# audio/mpa-robust audio/mpeg mpga mp2 mp2a mp3 m2a m3a -audio/mpeg4-generic -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/rtp-enc-aescm128 -audio/rtp-midi -audio/rtx -audio/smv -audio/smv0 -audio/smv-qcp -audio/sp-midi -audio/t140c -audio/t38 -audio/telephone-event -audio/tone -audio/vdvi -audio/vmr-wb -audio/vnd.3gpp.iufp -audio/vnd.4sb -audio/vnd.audiokoz -audio/vnd.celp -audio/vnd.cisco.nse -audio/vnd.cmles.radio-events -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 +# audio/mpeg4-generic +# audio/musepack +audio/ogg oga ogg spx +# audio/opus +# audio/parityfec +# audio/pcma +# audio/pcma-wb +# audio/pcmu-wb +# audio/pcmu +# audio/prs.sid +# audio/qcelp +# audio/red +# audio/rtp-enc-aescm128 +# audio/rtp-midi +# audio/rtx +audio/s3m s3m +audio/silk sil +# audio/smv +# audio/smv0 +# audio/smv-qcp +# audio/sp-midi +# audio/speex +# audio/t140c +# audio/t38 +# audio/telephone-event +# audio/tone +# audio/uemclip +# audio/ulpfec +# audio/vdvi +# audio/vmr-wb +# audio/vnd.3gpp.iufp +# audio/vnd.4sb +# audio/vnd.audiokoz +# audio/vnd.celp +# audio/vnd.cisco.nse +# audio/vnd.cmles.radio-events +# audio/vnd.cns.anp1 +# audio/vnd.cns.inf1 +audio/vnd.dece.audio uva uvva audio/vnd.digital-winds eol -audio/vnd.dlna.adts -audio/vnd.dolby.mlp -audio/vnd.everad.plj -audio/vnd.hns.audio +# audio/vnd.dlna.adts +# audio/vnd.dolby.heaac.1 +# audio/vnd.dolby.heaac.2 +# audio/vnd.dolby.mlp +# audio/vnd.dolby.mps +# audio/vnd.dolby.pl2 +# audio/vnd.dolby.pl2x +# audio/vnd.dolby.pl2z +# audio/vnd.dolby.pulse.1 +audio/vnd.dra dra +audio/vnd.dts dts +audio/vnd.dts.hd dtshd +# audio/vnd.dvb.file +# audio/vnd.everad.plj +# audio/vnd.hns.audio audio/vnd.lucent.voice lvp -audio/vnd.nokia.mobile-xmf -audio/vnd.nortel.vbk +audio/vnd.ms-playready.media.pya pya +# audio/vnd.nokia.mobile-xmf +# audio/vnd.nortel.vbk audio/vnd.nuera.ecelp4800 ecelp4800 audio/vnd.nuera.ecelp7470 ecelp7470 audio/vnd.nuera.ecelp9600 ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.sealedmedia.softseal.mpeg -audio/vnd.vmx.cvsd -audio/wav wav +# audio/vnd.octel.sbc +# audio/vnd.qcelp +# audio/vnd.rhetorex.32kadpcm +audio/vnd.rip rip +# audio/vnd.sealedmedia.softseal.mpeg +# audio/vnd.vmx.cvsd +# audio/vorbis +# audio/vorbis-config +audio/webm weba +audio/x-aac aac audio/x-aiff aif aiff aifc +audio/x-caf caf +audio/x-flac flac +audio/x-matroska mka audio/x-mpegurl m3u audio/x-ms-wax wax audio/x-ms-wma wma audio/x-pn-realaudio ram ra audio/x-pn-realaudio-plugin rmp +# audio/x-tta audio/x-wav wav +audio/xm xm chemical/x-cdx cdx chemical/x-cif cif chemical/x-cmdf cmdf chemical/x-cml cml chemical/x-csml csml -chemical/x-pdb pdb +# chemical/x-pdb chemical/x-xyz xyz image/bmp bmp image/cgm cgm -image/fits +# image/example +# image/fits image/g3fax g3 image/gif gif image/ief ief -image/jp2 +# image/jp2 image/jpeg jpeg jpg jpe -image/jpm -image/jpx -image/naplps +# image/jpm +# image/jpx +image/ktx ktx +# image/naplps image/png png image/prs.btif btif -image/prs.pti +# image/prs.pti +image/sgi sgi image/svg+xml svg svgz -image/t38 +# image/t38 image/tiff tiff tif -image/tiff-fx +# image/tiff-fx image/vnd.adobe.photoshop psd -image/vnd.cns.inf2 +# image/vnd.cns.inf2 +image/vnd.dece.graphic uvi uvvi uvg uvvg +image/vnd.dvb.subtitle sub image/vnd.djvu djvu djv image/vnd.dwg dwg image/vnd.dxf dxf @@ -811,20 +1362,26 @@ image/vnd.fpx fpx image/vnd.fst fst image/vnd.fujixerox.edmics-mmr mmr image/vnd.fujixerox.edmics-rlc rlc -image/vnd.globalgraphics.pgb -image/vnd.microsoft.icon ico -image/vnd.mix +# image/vnd.globalgraphics.pgb +# image/vnd.microsoft.icon +# image/vnd.mix image/vnd.ms-modi mdi +image/vnd.ms-photo wdp image/vnd.net-fpx npx -image/vnd.sealed.png -image/vnd.sealedmedia.softseal.gif -image/vnd.sealedmedia.softseal.jpg -image/vnd.svf +# image/vnd.radiance +# image/vnd.sealed.png +# image/vnd.sealedmedia.softseal.gif +# image/vnd.sealedmedia.softseal.jpg +# image/vnd.svf image/vnd.wap.wbmp wbmp image/vnd.xiff xif +image/webp webp +image/x-3ds 3ds image/x-cmu-raster ras image/x-cmx cmx -image/x-icon +image/x-freehand fh fhc fh4 fh5 fh7 +image/x-icon ico +image/x-mrsid-image sid image/x-pcx pcx image/x-pict pic pct image/x-portable-anymap pnm @@ -832,152 +1389,221 @@ image/x-portable-bitmap pbm image/x-portable-graymap pgm image/x-portable-pixmap ppm image/x-rgb rgb +image/x-tga tga image/x-xbitmap xbm image/x-xpixmap xpm image/x-xwindowdump xwd -message/cpim -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial +# message/cpim +# message/delivery-status +# message/disposition-notification +# message/example +# message/external-body +# message/feedback-report +# message/global +# message/global-delivery-status +# message/global-disposition-notification +# message/global-headers +# message/http +# message/imdn+xml +# message/news +# message/partial message/rfc822 eml mime -message/s-http -message/sip -message/sipfrag -message/tracking-status +# message/s-http +# message/sip +# message/sipfrag +# message/tracking-status +# message/vnd.si.simp +# model/example model/iges igs iges model/mesh msh mesh silo +model/vnd.collada+xml dae model/vnd.dwf dwf -model/vnd.flatland.3dml +# model/vnd.flatland.3dml model/vnd.gdl gdl -model/vnd.gs.gdl +# model/vnd.gs-gdl +# model/vnd.gs.gdl model/vnd.gtw gtw -model/vnd.moml+xml +# model/vnd.moml+xml model/vnd.mts mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text +# model/vnd.parasolid.transmit.binary +# model/vnd.parasolid.transmit.text model/vnd.vtu vtu model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message +model/x3d+binary x3db x3dbz +model/x3d+vrml x3dv x3dvz +model/x3d+xml x3d x3dz +# multipart/alternative +# multipart/appledouble +# multipart/byteranges +# multipart/digest +# multipart/encrypted +# multipart/example +# multipart/form-data +# multipart/header-set +# multipart/mixed +# multipart/parallel +# multipart/related +# multipart/report +# multipart/signed +# multipart/voice-message +# text/1d-interleaved-parityfec +text/cache-manifest appcache text/calendar ics ifb text/css css text/csv csv -text/directory -text/dns -text/enriched +# text/directory +# text/dns +# text/ecmascript +# text/enriched +# text/example +# text/fwdred text/html html htm -text/parityfec +# text/javascript +text/n3 n3 +# text/parityfec text/plain txt text conf def list log in -text/prs.fallenstein.rst +# text/prs.fallenstein.rst text/prs.lines.tag dsc -text/red -text/rfc822-headers +# text/vnd.radisys.msml-basic-layout +# text/red +# text/rfc822-headers text/richtext rtx -text/rtf -text/rtp-enc-aescm128 -text/rtx +# text/rtf +# text/rtp-enc-aescm128 +# text/rtx text/sgml sgml sgm -text/t140 +# text/t140 text/tab-separated-values tsv text/troff t tr roff man me ms +text/turtle ttl +# text/ulpfec text/uri-list uri uris urls -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.esmertec.theme-descriptor +text/vcard vcard +# text/vnd.abc +text/vnd.curl curl +text/vnd.curl.dcurl dcurl +text/vnd.curl.scurl scurl +text/vnd.curl.mcurl mcurl +# text/vnd.dmclientscript +text/vnd.dvb.subtitle sub +# text/vnd.esmertec.theme-descriptor text/vnd.fly fly text/vnd.fmi.flexstor flx +text/vnd.graphviz gv text/vnd.in3d.3dml 3dml text/vnd.in3d.spot spot -text/vnd.iptc.newsml -text/vnd.iptc.nitf -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command +# text/vnd.iptc.newsml +# text/vnd.iptc.nitf +# text/vnd.latex-z +# text/vnd.motorola.reflex +# text/vnd.ms-mediapackage +# text/vnd.net2phone.commcenter.command +# text/vnd.si.uricatalogue text/vnd.sun.j2me.app-descriptor jad -text/vnd.trolltech.linguist -text/vnd.wap.si -text/vnd.wap.sl +# text/vnd.trolltech.linguist +# text/vnd.wap.si +# text/vnd.wap.sl text/vnd.wap.wml wml text/vnd.wap.wmlscript wmls text/x-asm s asm text/x-c c cc cxx cpp h hh dic text/x-fortran f for f77 f90 -text/x-pascal p pas text/x-java-source java +text/x-opml opml +text/x-pascal p pas +text/x-nfo nfo text/x-setext etx +text/x-sfv sfv text/x-uuencode uu text/x-vcalendar vcs text/x-vcard vcf -text/xml -text/xml-external-parsed-entity +# text/xml +# text/xml-external-parsed-entity +# video/1d-interleaved-parityfec video/3gpp 3gp -video/3gpp-tt +# video/3gpp-tt video/3gpp2 3g2 -video/bmpeg -video/bt656 -video/celb -video/dv +# video/bmpeg +# video/bt656 +# video/celb +# video/dv +# video/example video/h261 h261 video/h263 h263 -video/h263-1998 -video/h263-2000 +# video/h263-1998 +# video/h263-2000 video/h264 h264 +# video/h264-rcdo +# video/h264-svc video/jpeg jpgv +# video/jpeg2000 video/jpm jpm jpgm video/mj2 mj2 mjp2 -video/mp1s -video/mp2p -video/mp2t +# video/mp1s +# video/mp2p +# video/mp2t video/mp4 mp4 mp4v mpg4 -video/mp4v-es +# video/mp4v-es video/mpeg mpeg mpg mpe m1v m2v -video/mpeg4-generic -video/mpv -video/nv -video/parityfec -video/pointer +# video/mpeg4-generic +# video/mpv +# video/nv +video/ogg ogv +# video/parityfec +# video/pointer video/quicktime qt mov -video/raw -video/rtp-enc-aescm128 -video/rtx -video/smpte292m -video/vc1 -video/vnd.dlna.mpeg-tts +# video/raw +# video/rtp-enc-aescm128 +# video/rtx +# video/smpte292m +# video/ulpfec +# video/vc1 +# video/vnd.cctv +video/vnd.dece.hd uvh uvvh +video/vnd.dece.mobile uvm uvvm +# video/vnd.dece.mp4 +video/vnd.dece.pd uvp uvvp +video/vnd.dece.sd uvs uvvs +video/vnd.dece.video uvv uvvv +# video/vnd.directv.mpeg +# video/vnd.directv.mpeg-tts +# video/vnd.dlna.mpeg-tts +video/vnd.dvb.file dvb video/vnd.fvt fvt -video/vnd.hns.video -video/vnd.motorola.video -video/vnd.motorola.videop +# video/vnd.hns.video +# video/vnd.iptvforum.1dparityfec-1010 +# video/vnd.iptvforum.1dparityfec-2005 +# video/vnd.iptvforum.2dparityfec-1010 +# video/vnd.iptvforum.2dparityfec-2005 +# video/vnd.iptvforum.ttsavc +# video/vnd.iptvforum.ttsmpeg2 +# video/vnd.motorola.video +# video/vnd.motorola.videop video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.nokia.videovoip -video/vnd.objectvideo -video/vnd.sealed.mpeg1 -video/vnd.sealed.mpeg4 -video/vnd.sealed.swf -video/vnd.sealedmedia.softseal.mov +video/vnd.ms-playready.media.pyv pyv +# video/vnd.nokia.interleaved-multimedia +# video/vnd.nokia.videovoip +# video/vnd.objectvideo +# video/vnd.sealed.mpeg1 +# video/vnd.sealed.mpeg4 +# video/vnd.sealed.swf +# video/vnd.sealedmedia.softseal.mov +video/vnd.uvvu.mp4 uvu uvvu video/vnd.vivo viv +video/webm webm +video/x-f4v f4v video/x-fli fli +video/x-flv flv +video/x-m4v m4v +video/x-matroska mkv mk3d mks +video/x-mng mng video/x-ms-asf asf asx +video/x-ms-vob vob video/x-ms-wm wm video/x-ms-wmv wmv video/x-ms-wmx wmx video/x-ms-wvx wvx video/x-msvideo avi video/x-sgi-movie movie +video/x-smv smv x-conference/x-cooltalk ice diff --git a/src/include/private/switch_core_pvt.h b/src/include/private/switch_core_pvt.h index 5411d26332..4b8be156b8 100644 --- a/src/include/private/switch_core_pvt.h +++ b/src/include/private/switch_core_pvt.h @@ -222,6 +222,7 @@ struct switch_runtime { int64_t offset; switch_event_t *global_vars; switch_hash_t *mime_types; + switch_hash_t *mime_type_exts; switch_hash_t *ptimes; switch_memory_pool_t *memory_pool; const switch_state_handler_table_t *state_handlers[SWITCH_MAX_STATE_HANDLERS]; diff --git a/src/include/switch_core.h b/src/include/switch_core.h index 6e384502ff..c3b31d42a2 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -2278,6 +2278,7 @@ SWITCH_DECLARE(uint8_t) switch_core_session_compare(switch_core_session_t *a, sw SWITCH_DECLARE(uint8_t) switch_core_session_check_interface(switch_core_session_t *session, const switch_endpoint_interface_t *endpoint_interface); SWITCH_DECLARE(switch_hash_index_t *) switch_core_mime_index(void); SWITCH_DECLARE(const char *) switch_core_mime_ext2type(const char *ext); +SWITCH_DECLARE(const char *) switch_core_mime_type2ext(const char *type); SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type, const char *ext); SWITCH_DECLARE(switch_loadable_module_interface_t *) switch_loadable_module_create_module_interface(switch_memory_pool_t *pool, const char *name); diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index b27790644b..844f1707dd 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -2780,12 +2780,7 @@ static switch_status_t locate_url_file(http_file_context_t *context, const char } if (zstr(ext) && headers && (ct = switch_event_get_header(headers, "content-type"))) { - if (switch_strcasecmp_any(ct, "audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/x-mp3", "audio/mpeg3", - "audio/x-mpeg3", "audio/mpg", "audio/x-mpg", "audio/x-mpegaudio", NULL)) { - newext = "mp3"; - } else if (switch_strcasecmp_any(ct, "audio/x-wav", "audio/x-wave", "audio/wav", "audio/wave", NULL)) { - newext = "wav"; - } + newext = switch_core_mime_type2ext(ct); } if (newext) { diff --git a/src/switch_core.c b/src/switch_core.c index 956beb0946..1c68d0d551 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1076,6 +1076,13 @@ SWITCH_DECLARE(const char *) switch_core_mime_ext2type(const char *ext) return (const char *) switch_core_hash_find(runtime.mime_types, ext); } +SWITCH_DECLARE(const char *) switch_core_mime_type2ext(const char *mime) +{ + if (!mime) { + return NULL; + } + return (const char *) switch_core_hash_find(runtime.mime_type_exts, mime); +} SWITCH_DECLARE(switch_hash_index_t *) switch_core_mime_index(void) { @@ -1084,37 +1091,41 @@ SWITCH_DECLARE(switch_hash_index_t *) switch_core_mime_index(void) SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type, const char *ext) { - const char *check; + char *ptype = NULL; + char *ext_list = NULL; + int argc = 0; + char *argv[20] = { 0 }; + int x; switch_status_t status = SWITCH_STATUS_FALSE; switch_assert(type); switch_assert(ext); - check = (const char *) switch_core_hash_find(runtime.mime_types, ext); + ptype = switch_core_permanent_strdup(type); + ext_list = strdup(ext); - if (!check) { - char *ptype = switch_core_permanent_strdup(type); - char *ext_list = strdup(ext); - int argc = 0; - char *argv[20] = { 0 }; - int x; + switch_assert(ext_list); - switch_assert(ext_list); - - if ((argc = switch_separate_string(ext_list, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) { - - for (x = 0; x < argc; x++) { - if (argv[x] && ptype) { + /* Map each file extension to this MIME type if not already mapped. Map the MIME type to the first file extension in the list if not already mapped. */ + if ((argc = switch_separate_string(ext_list, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) { + int is_mapped_type = switch_core_hash_find(runtime.mime_type_exts, ptype) != NULL; + for (x = 0; x < argc; x++) { + if (argv[x] && ptype) { + if (!switch_core_hash_find(runtime.mime_types, ext)) { switch_core_hash_insert(runtime.mime_types, argv[x], ptype); } + if (!is_mapped_type) { + switch_core_hash_insert(runtime.mime_type_exts, ptype, switch_core_permanent_strdup(argv[x])); + is_mapped_type = 1; + } } - - status = SWITCH_STATUS_SUCCESS; } - free(ext_list); + status = SWITCH_STATUS_SUCCESS; } + free(ext_list); + return status; } @@ -1719,7 +1730,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc switch_core_set_globals(); switch_core_session_init(runtime.memory_pool); switch_event_create_plain(&runtime.global_vars, SWITCH_EVENT_CHANNEL_DATA); - switch_core_hash_init(&runtime.mime_types); + switch_core_hash_init_case(&runtime.mime_types, SWITCH_FALSE); + switch_core_hash_init_case(&runtime.mime_type_exts, SWITCH_FALSE); switch_core_hash_init_case(&runtime.ptimes, SWITCH_FALSE); load_mime_types(); runtime.flags |= flags; @@ -2748,6 +2760,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void) switch_event_destroy(&runtime.global_vars); switch_core_hash_destroy(&runtime.ptimes); switch_core_hash_destroy(&runtime.mime_types); + switch_core_hash_destroy(&runtime.mime_type_exts); if (IP_LIST.hash) { switch_core_hash_destroy(&IP_LIST.hash); From d29c2d74b6968d44695a6692424997616d1e9c36 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 29 Apr 2015 11:39:59 -0500 Subject: [PATCH 70/97] FS-7496 #resolve strip url args after the file extension --- .../mod_http_cache/mod_http_cache.c | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/mod/applications/mod_http_cache/mod_http_cache.c b/src/mod/applications/mod_http_cache/mod_http_cache.c index 7f65d7704e..f948267271 100644 --- a/src/mod/applications/mod_http_cache/mod_http_cache.c +++ b/src/mod/applications/mod_http_cache/mod_http_cache.c @@ -844,14 +844,15 @@ static const char *find_extension(const char *url) * @param extension the filename extension * @return the cached URL filename. Free when done. */ -static char *cached_url_filename_create(url_cache_t *cache, const char *extension) +static char *cached_url_filename_create(url_cache_t *cache, const char *url) { char *filename; char *dirname; char uuid_dir[3] = { 0 }; switch_uuid_t uuid; char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1] = { 0 }; - + const char *extension = find_extension(url); + /* filename is constructed from UUID and is stored in cache dir (first 2 characters of UUID) */ switch_uuid_get(&uuid); switch_uuid_format(uuid_str, &uuid); @@ -861,9 +862,16 @@ static char *cached_url_filename_create(url_cache_t *cache, const char *extensio /* create sub-directory if it doesn't exist */ switch_dir_make_recursive(dirname, SWITCH_DEFAULT_DIR_PERMS, cache->pool); - if (!zstr(extension)) { + if (!zstr(extension)) { + char *p; filename = switch_mprintf("%s%s%s.%s", dirname, SWITCH_PATH_SEPARATOR, &uuid_str[2], extension); - } else { + if ((p = strchr(filename, '?'))) { + *p = '\0'; + } + if ((p = strchr(filename, '#'))) { + *p = '\0'; + } + } else { filename = switch_mprintf("%s%s%s", dirname, SWITCH_PATH_SEPARATOR, &uuid_str[2]); } free(dirname); @@ -889,7 +897,7 @@ static cached_url_t *cached_url_create(url_cache_t *cache, const char *url, cons /* intialize cached URL */ if (zstr(filename)) { - u->filename = cached_url_filename_create(cache, find_extension(url)); + u->filename = cached_url_filename_create(cache, url); } else { u->filename = strdup(filename); } @@ -1095,7 +1103,7 @@ SWITCH_STANDARD_API(http_cache_prefetch) #define HTTP_GET_SYNTAX "{param=val}" /** - * Get a file from the cache, download if it isn't cached + * Get a file from the cache, download if it isn' cached */ SWITCH_STANDARD_API(http_cache_get) { @@ -1564,7 +1572,7 @@ static switch_status_t http_cache_file_open(switch_file_handle_t *handle, const file_flags |= SWITCH_FILE_FLAG_WRITE; context->write_url = switch_core_strdup(handle->memory_pool, path); /* allocate local file in cache */ - context->local_path = cached_url_filename_create(&gcache, find_extension(context->write_url)); + context->local_path = cached_url_filename_create(&gcache, context->write_url); } else { /* READ = HTTP GET */ file_flags |= SWITCH_FILE_FLAG_READ; From d8d3db284c6f961a92787a96998b03c51553d64c Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 30 Apr 2015 16:06:19 -0400 Subject: [PATCH 71/97] FS-7496 [mod_http_cache] lookup file extension from content-type if missing in URL --- .../mod_http_cache/mod_http_cache.c | 115 +++++++++++++++--- 1 file changed, 95 insertions(+), 20 deletions(-) diff --git a/src/mod/applications/mod_http_cache/mod_http_cache.c b/src/mod/applications/mod_http_cache/mod_http_cache.c index f948267271..776a80312f 100644 --- a/src/mod/applications/mod_http_cache/mod_http_cache.c +++ b/src/mod/applications/mod_http_cache/mod_http_cache.c @@ -87,6 +87,12 @@ struct cached_url { char *url; /** The path and name of the cached URL */ char *filename; + /** File extension */ + char *extension; + /** Content-Type of this URL (audio/3gpp) */ + char *content_type; + /** Content-Type parameters (codecs=samr) */ + const char *content_type_params; /** The size of the cached URL, in bytes */ size_t size; /** URL use flag */ @@ -120,6 +126,7 @@ static switch_status_t http_get(url_cache_t *cache, http_profile_t *profile, cac static size_t get_file_callback(void *ptr, size_t size, size_t nmemb, void *get); static size_t get_header_callback(void *ptr, size_t size, size_t nmemb, void *url); static void process_cache_control_header(cached_url_t *url, char *data); +static void process_content_type_header(cached_url_t *url, char *data); static switch_status_t http_put(url_cache_t *cache, http_profile_t *profile, switch_core_session_t *session, const char *url, const char *filename, int cache_local_file); @@ -479,8 +486,32 @@ static void process_cache_control_header(cached_url_t *url, char *data) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "setting max age to %u seconds from now\n", (int)max_age); } +/** + * Content-Type: audio/mpeg; foo=bar + */ +static void process_content_type_header(cached_url_t *url, char *data) +{ + char *params; + + /* trim whitespace and check if empty */ + data = trim(data); + if (zstr(data)) { + return; + } + + /* copy header, removing any params */ + url->content_type = strdup(data); + params = strchr(url->content_type, ';'); + if (params) { + *params = '\0'; + url->content_type_params = trim(++params); + } +} + #define CACHE_CONTROL_HEADER "cache-control:" #define CACHE_CONTROL_HEADER_LEN (sizeof(CACHE_CONTROL_HEADER) - 1) +#define CONTENT_TYPE_HEADER "content-type:" +#define CONTENT_TYPE_HEADER_LEN (sizeof(CONTENT_TYPE_HEADER) - 1) /** * Called by libcurl to process headers from HTTP GET response * @param ptr the header data @@ -508,6 +539,8 @@ static size_t get_header_callback(void *ptr, size_t size, size_t nmemb, void *ge /* check which header this is and process it */ if (!strncasecmp(CACHE_CONTROL_HEADER, header, CACHE_CONTROL_HEADER_LEN)) { process_cache_control_header(url, header + CACHE_CONTROL_HEADER_LEN); + } else if (!strncasecmp(CONTENT_TYPE_HEADER, header, CONTENT_TYPE_HEADER_LEN)) { + process_content_type_header(url, header + CONTENT_TYPE_HEADER_LEN); } switch_safe_free(header); @@ -819,40 +852,52 @@ static http_profile_t *url_cache_http_profile_add(url_cache_t *cache, const char /** * Find file extension at end of URL. - * @return file extension or NULL if it doesn't exist + * @param url to search + * @param found_extension + * @param found_extension_len */ -static const char *find_extension(const char *url) +static void find_extension(const char *url, const char **found_extension, size_t *found_extension_len) { const char *ext; + size_t ext_len = 0; /* find extension on the end of URL */ for (ext = &url[strlen(url) - 1]; ext != url; ext--) { if (*ext == '/' || *ext == '\\') { break; } - if (*ext == '.') { + if (*ext == '?' || *ext == '#') { + ext_len = 0; + } else if (*ext == '.') { /* found it */ - return ++ext; + *found_extension_len = ext_len; + *found_extension = ++ext; + break; + } else { + ext_len++; } } - return NULL; } /** * Create a cached URL filename. - * @param cache the cache - * @param extension the filename extension + * @param cache + * @param url + * @param extension if set, extension is duplicated here * @return the cached URL filename. Free when done. */ -static char *cached_url_filename_create(url_cache_t *cache, const char *url) +static char *cached_url_filename_create(url_cache_t *cache, const char *url, char **extension) { char *filename; char *dirname; char uuid_dir[3] = { 0 }; switch_uuid_t uuid; char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1] = { 0 }; - const char *extension = find_extension(url); - + const char *found_extension = NULL; + size_t found_extension_len = 0; + + find_extension(url, &found_extension, &found_extension_len); + /* filename is constructed from UUID and is stored in cache dir (first 2 characters of UUID) */ switch_uuid_get(&uuid); switch_uuid_format(uuid_str, &uuid); @@ -862,22 +907,47 @@ static char *cached_url_filename_create(url_cache_t *cache, const char *url) /* create sub-directory if it doesn't exist */ switch_dir_make_recursive(dirname, SWITCH_DEFAULT_DIR_PERMS, cache->pool); - if (!zstr(extension)) { - char *p; - filename = switch_mprintf("%s%s%s.%s", dirname, SWITCH_PATH_SEPARATOR, &uuid_str[2], extension); - if ((p = strchr(filename, '?'))) { - *p = '\0'; - } - if ((p = strchr(filename, '#'))) { - *p = '\0'; + if (!zstr(found_extension) && found_extension_len > 0) { + char *found_extension_dup = strndup(found_extension, found_extension_len); + filename = switch_mprintf("%s%s%s.%s", dirname, SWITCH_PATH_SEPARATOR, &uuid_str[2], found_extension_dup); + if (extension) { + *extension = found_extension_dup; + } else { + free(found_extension_dup); } } else { filename = switch_mprintf("%s%s%s", dirname, SWITCH_PATH_SEPARATOR, &uuid_str[2]); + if (extension) { + *extension = NULL; + } } free(dirname); return filename; } +/** + * Rename cached URL with filename extension if one can be determined + * @param url the cached URL + */ +static void cached_url_set_extension_from_content_type(cached_url_t *url, switch_core_session_t *session) +{ + if (!url->extension && url->content_type) { + const char *new_extension = switch_core_mime_type2ext(url->content_type); + if (new_extension) { + char *new_filename = switch_mprintf("%s.%s", url->filename, new_extension); + if (rename(url->filename, new_filename) != -1) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "renamed cached URL to %s\n", new_filename); + free(url->filename); + url->filename = new_filename; + url->extension = strdup(new_extension); + } else { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "rename(%s): %s\n", new_filename, strerror(errno)); + free(new_filename); + } + } + } +} + /** * Create a cached URL entry * @param cache the cache @@ -897,7 +967,7 @@ static cached_url_t *cached_url_create(url_cache_t *cache, const char *url, cons /* intialize cached URL */ if (zstr(filename)) { - u->filename = cached_url_filename_create(cache, url); + u->filename = cached_url_filename_create(cache, url, &u->extension); } else { u->filename = strdup(filename); } @@ -922,6 +992,8 @@ static void cached_url_destroy(cached_url_t *url, switch_memory_pool_t *pool) switch_file_remove(url->filename, pool); } switch_safe_free(url->filename); + switch_safe_free(url->extension); + switch_safe_free(url->content_type); switch_safe_free(url->url); switch_safe_free(url); } @@ -1030,6 +1102,9 @@ static switch_status_t http_get(url_cache_t *cache, http_profile_t *profile, cac } else { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "URL %s downloaded in %d ms\n", url->url, duration_ms); } + if (!url->extension) { + cached_url_set_extension_from_content_type(url, session); + } } else { url->size = 0; // nothing downloaded or download interrupted switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Received HTTP error %ld trying to fetch %s\n", httpRes, url->url); @@ -1572,7 +1647,7 @@ static switch_status_t http_cache_file_open(switch_file_handle_t *handle, const file_flags |= SWITCH_FILE_FLAG_WRITE; context->write_url = switch_core_strdup(handle->memory_pool, path); /* allocate local file in cache */ - context->local_path = cached_url_filename_create(&gcache, context->write_url); + context->local_path = cached_url_filename_create(&gcache, context->write_url, NULL); } else { /* READ = HTTP GET */ file_flags |= SWITCH_FILE_FLAG_READ; From d3bac671d22be014e683e9c1650de421f8300ee9 Mon Sep 17 00:00:00 2001 From: William King Date: Sun, 3 May 2015 11:23:30 -0700 Subject: [PATCH 72/97] FS-7526: add enable_fallback_format_fields for mod_amqp producer profiles if the profile param is set. --- conf/vanilla/autoload_configs/amqp.conf.xml | 6 +++ src/mod/event_handlers/mod_amqp/mod_amqp.h | 4 +- .../mod_amqp/mod_amqp_producer.c | 51 +++++++++++++++---- 3 files changed, 50 insertions(+), 11 deletions(-) diff --git a/conf/vanilla/autoload_configs/amqp.conf.xml b/conf/vanilla/autoload_configs/amqp.conf.xml index ccc81f51fd..0d139169a9 100644 --- a/conf/vanilla/autoload_configs/amqp.conf.xml +++ b/conf/vanilla/autoload_configs/amqp.conf.xml @@ -25,10 +25,16 @@ + + + + diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.h b/src/mod/event_handlers/mod_amqp/mod_amqp.h index 07528b234e..f651a1a89b 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp.h +++ b/src/mod/event_handlers/mod_amqp/mod_amqp.h @@ -104,6 +104,7 @@ typedef struct { int reconnect_interval_ms; int circuit_breaker_ms; switch_time_t circuit_breaker_reset_time; + switch_bool_t enable_fallback_format_fields; switch_bool_t running; switch_memory_pool_t *pool; @@ -156,7 +157,8 @@ void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void /* producer */ void mod_amqp_producer_event_handler(switch_event_t* evt); -switch_status_t mod_amqp_producer_routing_key(char routingKey[MAX_AMQP_ROUTING_KEY_LENGTH],switch_event_t* evt, char* routingKeyEventHeaderNames[]); +switch_status_t mod_amqp_producer_routing_key(mod_amqp_producer_profile_t *profile, char routingKey[MAX_AMQP_ROUTING_KEY_LENGTH], + switch_event_t* evt, char* routingKeyEventHeaderNames[]); switch_status_t mod_amqp_producer_destroy(mod_amqp_producer_profile_t **profile); switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg); void * SWITCH_THREAD_FUNC mod_amqp_producer_thread(switch_thread_t *thread, void *data); diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c index 067bb57d7b..0108bdaa79 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -45,7 +45,8 @@ void mod_amqp_producer_msg_destroy(mod_amqp_message_t **msg) switch_safe_free(*msg); } -switch_status_t mod_amqp_producer_routing_key(char routingKey[MAX_AMQP_ROUTING_KEY_LENGTH], switch_event_t* evt, char* routingKeyEventHeaderNames[]) +switch_status_t mod_amqp_producer_routing_key(mod_amqp_producer_profile_t *profile, char routingKey[MAX_AMQP_ROUTING_KEY_LENGTH], + switch_event_t* evt, char* routingKeyEventHeaderNames[]) { int i = 0, idx = 0; @@ -54,16 +55,41 @@ switch_status_t mod_amqp_producer_routing_key(char routingKey[MAX_AMQP_ROUTING_K if (idx) { routingKey[idx++] = '.'; } - if (routingKeyEventHeaderNames[i][0] == '#') { - strncpy(routingKey + idx, routingKeyEventHeaderNames[i] + 1, MAX_AMQP_ROUTING_KEY_LENGTH - idx); - } else { - char *value = switch_event_get_header(evt, routingKeyEventHeaderNames[i]); - strncpy(routingKey + idx, value ? value : "", MAX_AMQP_ROUTING_KEY_LENGTH - idx); + if ( profile->enable_fallback_format_fields) { + int count = 0, x = 0; + char *argv[10]; - /* Replace dots with underscores so that the routing key does not get corrupted */ - switch_replace_char(routingKey + idx, '.', '_', 0); + count = switch_separate_string(routingKeyEventHeaderNames[i], '|', argv, (sizeof(argv) / sizeof(argv[0]))); + for( x = 0; x < count; x++) { + if (argv[x][0] == '#') { + strncpy(routingKey + idx, argv[x] + 1, MAX_AMQP_ROUTING_KEY_LENGTH - idx); + break; + } else { + char *value = switch_event_get_header(evt, argv[x]); + + if (!value) { + continue; + } + + strncpy(routingKey + idx, value, MAX_AMQP_ROUTING_KEY_LENGTH - idx); + + /* Replace dots with underscores so that the routing key does not get corrupted */ + switch_replace_char(routingKey + idx, '.', '_', 0); + } + } + idx += strlen(routingKey + idx); + } else { + if (routingKeyEventHeaderNames[i][0] == '#') { + strncpy(routingKey + idx, routingKeyEventHeaderNames[i] + 1, MAX_AMQP_ROUTING_KEY_LENGTH - idx); + } else { + char *value = switch_event_get_header(evt, routingKeyEventHeaderNames[i]); + strncpy(routingKey + idx, value ? value : "", MAX_AMQP_ROUTING_KEY_LENGTH - idx); + + /* Replace dots with underscores so that the routing key does not get corrupted */ + switch_replace_char(routingKey + idx, '.', '_', 0); + } + idx += strlen(routingKey + idx); } - idx += strlen(routingKey + idx); } } return SWITCH_STATUS_SUCCESS; @@ -97,7 +123,7 @@ void mod_amqp_producer_event_handler(switch_event_t* evt) switch_malloc(amqp_message, sizeof(mod_amqp_message_t)); switch_event_serialize_json(evt, &amqp_message->pjson); - mod_amqp_producer_routing_key(amqp_message->routing_key, evt, profile->format_fields); + mod_amqp_producer_routing_key(profile, amqp_message->routing_key, evt, profile->format_fields); /* Queue the message to be sent by the worker thread, errors are reported only once per circuit breaker interval */ if (switch_queue_trypush(profile->send_queue, amqp_message) != SWITCH_STATUS_SUCCESS) { @@ -221,6 +247,11 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) if ( interval && interval > 0 ) { profile->send_queue_size = interval; } + } else if (!strncmp(var, "enable_fallback_format_fields", 29)) { + int interval = atoi(val); + if ( interval && interval > 0 ) { + profile->enable_fallback_format_fields = 1; + } } else if (!strncmp(var, "exchange", 8)) { exchange = switch_core_strdup(profile->pool, "TAP.Events"); } else if (!strncmp(var, "format_fields", 13)) { From 1b322bd952c814c63c2c151f7ad62e74d45afa66 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 4 May 2015 11:23:33 -0400 Subject: [PATCH 73/97] FS-7425: #resolve dhparams might not be present, causing a seg. Make sure they are there before we apply them --- src/switch_rtp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 81f98585fc..0416d153d3 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3127,8 +3127,10 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_dtls(switch_rtp_t *rtp_session, d bio = BIO_new_file(dtls->pem, "r"); dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); BIO_free(bio); - SSL_CTX_set_tmp_dh(dtls->ssl_ctx, dh); - DH_free(dh); + if (dh) { + SSL_CTX_set_tmp_dh(dtls->ssl_ctx, dh); + DH_free(dh); + } SSL_CTX_set_mode(dtls->ssl_ctx, SSL_MODE_AUTO_RETRY); From 7382cecf8c30d6bb05f3fc7a41d86ecf95855262 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 4 May 2015 11:46:30 -0400 Subject: [PATCH 74/97] FS-7523: [mod_json_cdr] don't bind events before we configure the module --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index 098bd52a0e..5eacd6eacb 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -579,11 +579,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load) memset(&globals, 0, sizeof(globals)); - if (switch_event_bind_removable(modname, SWITCH_EVENT_TRAP, SWITCH_EVENT_SUBCLASS_ANY, event_handler, NULL, &globals.node) != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n"); - return SWITCH_STATUS_GENERR; - } - globals.log_http_and_disk = 0; globals.log_errors_to_disk = SWITCH_TRUE; globals.log_b = 1; @@ -726,6 +721,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load) set_json_cdr_log_dirs(); + if (switch_event_bind_removable(modname, SWITCH_EVENT_TRAP, SWITCH_EVENT_SUBCLASS_ANY, event_handler, NULL, &globals.node) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n"); + return SWITCH_STATUS_GENERR; + } + switch_xml_free(xml); return status; } From 2b79637036a618a000cf9fdffaa79a61844e71a0 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 4 May 2015 15:58:48 -0400 Subject: [PATCH 75/97] FS-7523: [mod_json_cdr] don't install state handlers before we configure the module --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index 5eacd6eacb..7e1383aa71 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -572,11 +572,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load) switch_xml_t cfg, xml, settings, param; switch_status_t status = SWITCH_STATUS_SUCCESS; - /* test global state handlers */ - switch_core_add_state_handler(&state_handlers); - - *module_interface = switch_loadable_module_create_module_interface(pool, modname); - memset(&globals, 0, sizeof(globals)); globals.log_http_and_disk = 0; @@ -726,6 +721,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load) return SWITCH_STATUS_GENERR; } + /* test global state handlers */ + switch_core_add_state_handler(&state_handlers); + + *module_interface = switch_loadable_module_create_module_interface(pool, modname); + switch_xml_free(xml); return status; } From 15d8821ede3393bf6c8cd062c4f07ab1a462e56f Mon Sep 17 00:00:00 2001 From: William King Date: Mon, 4 May 2015 21:36:15 -0700 Subject: [PATCH 76/97] FS-7060: On first startup, on a clean platform, make sure to create the amqp exchange. --- .../event_handlers/mod_amqp/mod_amqp_producer.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c index 0108bdaa79..1bb344f270 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -254,6 +254,8 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) } } else if (!strncmp(var, "exchange", 8)) { exchange = switch_core_strdup(profile->pool, "TAP.Events"); + } else if (!strncmp(var, "exchange_type", 13)) { + exchange_type = switch_core_strdup(profile->pool, "topic"); } else if (!strncmp(var, "format_fields", 13)) { int size = 0; if ((size = mod_amqp_count_chars(val, ',')) >= MAX_ROUTING_KEY_FORMAT_FIELDS) { @@ -311,6 +313,18 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] was unable to connect to any connection\n", profile->name); } + amqp_exchange_declare(profile->conn_active->state, 1, + amqp_cstring_bytes(profile->exchange), + amqp_cstring_bytes(profile->exchange_type), + 0, + 1, + amqp_empty_table); + + if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Declaring exchange")) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] failed to create exchange\n", profile->name); + goto err; + } + /* Create a bounded FIFO queue for sending messages */ if (switch_queue_create(&(profile->send_queue), profile->send_queue_size, profile->pool) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create send queue of size %d!\n", profile->send_queue_size); @@ -426,7 +440,7 @@ void * SWITCH_THREAD_FUNC mod_amqp_producer_thread(switch_thread_t *thread, void durable, amqp_empty_table); - if (mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Declaring exchange")) { + if (!mod_amqp_log_if_amqp_error(amqp_get_rpc_reply(profile->conn_active->state), "Declaring exchange")) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Amqp reconnect successful- connected\n"); continue; } From 359ff2ac70788594a321eac856c85011baed017d Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Tue, 5 May 2015 21:13:50 +0800 Subject: [PATCH 77/97] FAX now tolerates EOP and PPS messages being incorrectly echoed --- libs/spandsp/spandsp/fax-tests.xml | 110 +++ libs/spandsp/src/t30.c | 851 +++++++++++++++++++++--- libs/spandsp/tests/tsb85_extra_tests.sh | 2 +- 3 files changed, 874 insertions(+), 89 deletions(-) diff --git a/libs/spandsp/spandsp/fax-tests.xml b/libs/spandsp/spandsp/fax-tests.xml index 9a51464088..2f52468721 100644 --- a/libs/spandsp/spandsp/fax-tests.xml +++ b/libs/spandsp/spandsp/fax-tests.xml @@ -479,5 +479,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/spandsp/src/t30.c b/libs/spandsp/src/t30.c index fb8e80a1a1..3a31893e30 100644 --- a/libs/spandsp/src/t30.c +++ b/libs/spandsp/src/t30.c @@ -302,16 +302,18 @@ enum #define DEFAULT_TIMER_T2 7000 /*! Once HDLC flags begin, T2 is reset, and a 3s timer begins. This timer is unnamed in T.30. Here we - term it T2A. No tolerance is specified for this timer. T2A specifies the maximum time to wait for the - end of a frame, after the initial flag has been seen. */ -#define DEFAULT_TIMER_T2A 3000 + term it T2_FLAGGED. No tolerance is specified for this timer. T2_FLAGGED specifies the maximum + time to wait for the end of a frame, after the initial flag has been seen. */ +#define DEFAULT_TIMER_T2_FLAGGED 3000 /*! If the HDLC carrier falls during reception, we need to apply a minimum time before continuing. If we don't, there are circumstances where we could continue and reply before the incoming signals have really finished. E.g. if a bad DCS is received in a DCS-TCF sequence, we need wait for the TCF carrier to pass, before continuing. This timer is specified as 200ms, but no tolerance is specified. - It is unnamed in T.30. Here we term it T2B */ -#define DEFAULT_TIMER_T2B 200 + It is unnamed in T.30. Here we term it T2_DROPPED */ +#define DEFAULT_TIMER_T2_DROPPED 200 + +/*! Timer T2C is a fake timer state for internal use */ /*! Time-out T3 defines the amount of time a terminal will attempt to alert the local operator in response to a procedural interrupt. Failing to achieve operator intervention, the terminal will @@ -330,17 +332,19 @@ enum #define DEFAULT_TIMER_T4 3450 /*! Once HDLC flags begin, T4 is reset, and a 3s timer begins. This timer is unnamed in T.30. Here we - term it T4A. No tolerance is specified for this timer. T4A specifies the maximum time to wait for the - end of a frame, after the initial flag has been seen. Note that a different timer is used for the fast - HDLC in ECM mode, to provide time for physical paper handling. */ -#define DEFAULT_TIMER_T4A 3000 + term it T4_FLAGGED. No tolerance is specified for this timer. T4_FLAGGED specifies the maximum time + to wait for the end of a frame, after the initial flag has been seen. Note that a different timer + is used for the fast HDLC in ECM mode, to provide time for physical paper handling. */ +#define DEFAULT_TIMER_T4_FLAGGED 3000 /*! If the HDLC carrier falls during reception, we need to apply a minimum time before continuing. if we don't, there are circumstances where we could continue and reply before the incoming signals have - really finished. E.g. if a bad DCS is received in a DCS-TCF sequence, we need wait for the TCF + really finished. E.g. if a bad DCS is received in a DCS-TCF sequence, we need to wait for the TCF carrier to pass, before continuing. This timer is specified as 200ms, but no tolerance is specified. - It is unnamed in T.30. Here we term it T4B */ -#define DEFAULT_TIMER_T4B 200 + It is unnamed in T.30. Here we term it T4_DROPPED */ +#define DEFAULT_TIMER_T4_DROPPED 200 + +/*! Timer T4C is a fake timer state for internal use */ /*! Time-out T5 is defined for the optional T.4 error correction mode. Time-out T5 defines the amount of time waiting for clearance of the busy condition of the receiving terminal. T5 is 60+-5s and @@ -386,12 +390,12 @@ enum TIMER_IS_IDLE = 0, TIMER_IS_T2, TIMER_IS_T1A, - TIMER_IS_T2A, - TIMER_IS_T2B, + TIMER_IS_T2_FLAGGED, + TIMER_IS_T2_DROPPED, TIMER_IS_T2C, TIMER_IS_T4, - TIMER_IS_T4A, - TIMER_IS_T4B, + TIMER_IS_T4_FLAGGED, + TIMER_IS_T4_DROPPED, TIMER_IS_T4C }; @@ -439,11 +443,11 @@ static void set_min_scan_time(t30_state_t *s); static int send_cfr_sequence(t30_state_t *s, int start); static int build_dcs(t30_state_t *s); static void timer_t2_start(t30_state_t *s); -static void timer_t2a_start(t30_state_t *s); -static void timer_t2b_start(t30_state_t *s); +static void timer_t2_flagged_start(t30_state_t *s); +static void timer_t2_dropped_start(t30_state_t *s); static void timer_t4_start(t30_state_t *s); -static void timer_t4a_start(t30_state_t *s); -static void timer_t4b_start(t30_state_t *s); +static void timer_t4_flagged_start(t30_state_t *s); +static void timer_t4_dropped_start(t30_state_t *s); static void timer_t2_t4_stop(t30_state_t *s); /*! Test a specified bit within a DIS, DTC or DCS frame */ @@ -464,9 +468,12 @@ static int find_fallback_entry(int dcs_code) { if (fallback_sequence[i].dcs_code == dcs_code) break; + /*endif*/ } + /*endfor*/ if (fallback_sequence[i].bit_rate == 0) return -1; + /*endif*/ return i; } /*- End of function --------------------------------------------------------*/ @@ -477,13 +484,16 @@ static int step_fallback_entry(t30_state_t *s) { if ((fallback_sequence[s->current_fallback].which & s->current_permitted_modems)) break; + /*endif*/ } + /*endwhile*/ if (fallback_sequence[s->current_fallback].bit_rate == 0) { /* Reset the fallback sequence */ s->current_fallback = 0; return -1; } + /*endif*/ /* We need to update the minimum scan time, in case we are in non-ECM mode. */ set_min_scan_time(s); /* Now we need to rebuild the DCS message we will send. */ @@ -507,6 +517,7 @@ static int terminate_operation_in_progress(t30_state_t *s) s->operation_in_progress = OPERATION_IN_PROGRESS_POST_T4_RX; break; } + /*endswitch*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -518,6 +529,7 @@ static int tx_start_page(t30_state_t *s) terminate_operation_in_progress(s); return -1; } + /*endif*/ s->ecm_block = 0; s->error_correcting_mode_retries = 0; span_log(&s->logging, SPAN_LOG_FLOW, "Starting page %d of transfer\n", s->tx_page_number + 1); @@ -533,6 +545,7 @@ static int tx_end_page(t30_state_t *s) s->tx_page_number++; s->ecm_block = 0; } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -554,9 +567,11 @@ static int rx_start_page(t30_state_t *s) if (t4_rx_start_page(&s->t4.rx)) return -1; + /*endif*/ /* Clear the ECM buffer */ for (i = 0; i < 256; i++) s->ecm_len[i] = -1; + /*endfor*/ s->ecm_block = 0; s->ecm_frames = -1; s->ecm_frames_this_tx_burst = 0; @@ -572,6 +587,7 @@ static int rx_end_page(t30_state_t *s) s->rx_page_number++; s->ecm_block = 0; } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -636,6 +652,7 @@ static int copy_quality(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "Page quality is bad\n"); quality = T30_COPY_QUALITY_BAD; } + /*endif*/ return quality; } /*- End of function --------------------------------------------------------*/ @@ -653,6 +670,7 @@ static void report_tx_result(t30_state_t *s, int result) (result) ? "Success" : "Failure", stats.pages_transferred); } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -663,88 +681,104 @@ static void release_resources(t30_state_t *s) span_free(s->tx_info.nsf); s->tx_info.nsf = NULL; } + /*endif*/ s->tx_info.nsf_len = 0; if (s->tx_info.nsc) { span_free(s->tx_info.nsc); s->tx_info.nsc = NULL; } + /*endif*/ s->tx_info.nsc_len = 0; if (s->tx_info.nss) { span_free(s->tx_info.nss); s->tx_info.nss = NULL; } + /*endif*/ s->tx_info.nss_len = 0; if (s->tx_info.tsa) { span_free(s->tx_info.tsa); s->tx_info.tsa = NULL; } + /*endif*/ if (s->tx_info.ira) { span_free(s->tx_info.ira); s->tx_info.ira = NULL; } + /*endif*/ if (s->tx_info.cia) { span_free(s->tx_info.cia); s->tx_info.cia = NULL; } + /*endif*/ if (s->tx_info.isp) { span_free(s->tx_info.isp); s->tx_info.isp = NULL; } + /*endif*/ if (s->tx_info.csa) { span_free(s->tx_info.csa); s->tx_info.csa = NULL; } + /*endif*/ if (s->rx_info.nsf) { span_free(s->rx_info.nsf); s->rx_info.nsf = NULL; } + /*endif*/ s->rx_info.nsf_len = 0; if (s->rx_info.nsc) { span_free(s->rx_info.nsc); s->rx_info.nsc = NULL; } + /*endif*/ s->rx_info.nsc_len = 0; if (s->rx_info.nss) { span_free(s->rx_info.nss); s->rx_info.nss = NULL; } + /*endif*/ s->rx_info.nss_len = 0; if (s->rx_info.tsa) { span_free(s->rx_info.tsa); s->rx_info.tsa = NULL; } + /*endif*/ if (s->rx_info.ira) { span_free(s->rx_info.ira); s->rx_info.ira = NULL; } + /*endif*/ if (s->rx_info.cia) { span_free(s->rx_info.cia); s->rx_info.cia = NULL; } + /*endif*/ if (s->rx_info.isp) { span_free(s->rx_info.isp); s->rx_info.isp = NULL; } + /*endif*/ if (s->rx_info.csa) { span_free(s->rx_info.csa); s->rx_info.csa = NULL; } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -759,12 +793,14 @@ static uint8_t check_next_tx_step(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "More pages to come with the same format\n"); return (s->local_interrupt_pending) ? T30_PRI_MPS : T30_MPS; } + /*endif*/ if (res > 0) { span_log(&s->logging, SPAN_LOG_FLOW, "More pages to come with a different format\n"); s->tx_start_page = t4_tx_get_current_page_in_file(&s->t4.tx) + 1; return (s->local_interrupt_pending) ? T30_PRI_EOM : T30_EOM; } + /*endif*/ /* Call a user handler, if one is set, to check if another document is to be sent. If so, we send an EOM, rather than an EOP. Then we will renegotiate, and the new document will begin. */ @@ -772,13 +808,16 @@ static uint8_t check_next_tx_step(t30_state_t *s) more = s->document_handler(s->document_user_data, 0); else more = false; + /*endif*/ if (more) { span_log(&s->logging, SPAN_LOG_FLOW, "Another document to send\n"); //if (test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_MULTIPLE_SELECTIVE_POLLING_CAPABLE)) // return T30_EOS; + ///*endif*/ return (s->local_interrupt_pending) ? T30_PRI_EOM : T30_EOM; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "No more pages to send\n"); return (s->local_interrupt_pending) ? T30_PRI_EOP : T30_EOP; } @@ -798,6 +837,7 @@ static int get_partial_ecm_page(t30_state_t *s) page signal, which is marked as the final frame. */ for (i = 3; i < 32 + 3; i++) s->ecm_frame_map[i] = 0xFF; + /*endfor*/ for (i = 0; i < 256; i++) { s->ecm_len[i] = -1; @@ -811,6 +851,7 @@ static int get_partial_ecm_page(t30_state_t *s) len = s->document_get_handler(s->document_get_user_data, &s->ecm_data[i][4], s->octets_per_ecm_frame); else len = t4_tx_get(&s->t4.tx, &s->ecm_data[i][4], s->octets_per_ecm_frame); + /*endif*/ if (len < s->octets_per_ecm_frame) { /* The document is not big enough to fill the entire buffer */ @@ -820,13 +861,16 @@ static int get_partial_ecm_page(t30_state_t *s) memset(&s->ecm_data[i][4 + len], 0, s->octets_per_ecm_frame - len); s->ecm_len[i++] = (int16_t) (s->octets_per_ecm_frame + 4); } + /*endif*/ s->ecm_frames = i; span_log(&s->logging, SPAN_LOG_FLOW, "Partial document buffer contains %d frames (%d per frame)\n", i, s->octets_per_ecm_frame); s->ecm_at_page_end = true; return i; } + /*endif*/ s->ecm_len[i] = (int16_t) (4 + len); } + /*endfor*/ /* We filled the entire buffer */ s->ecm_frames = 256; span_log(&s->logging, SPAN_LOG_FLOW, "Partial page buffer full (%d per frame)\n", s->octets_per_ecm_frame); @@ -853,9 +897,12 @@ static int send_next_ecm_frame(t30_state_t *s) s->ecm_frames_this_tx_burst++; return 0; } + /*endif*/ } + /*endfor*/ s->ecm_current_tx_frame = s->ecm_frames; } + /*endif*/ if (s->ecm_current_tx_frame < s->ecm_frames + 3) { /* We have sent all the FCD frames. Send three RCP frames, as per @@ -874,6 +921,7 @@ static int send_next_ecm_frame(t30_state_t *s) s->short_train = true; return 0; } + /*endif*/ return -1; } /*- End of function --------------------------------------------------------*/ @@ -884,6 +932,7 @@ static void send_rr(t30_state_t *s) send_simple_frame(s, T30_RR); else send_dcn(s); + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -911,6 +960,7 @@ static void shut_down_hdlc_tx(t30_state_t *s) { if (s->send_hdlc_handler) s->send_hdlc_handler(s->send_hdlc_user_data, NULL, 0); + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -920,8 +970,10 @@ static void send_frame(t30_state_t *s, const uint8_t *msg, int len) if (s->real_time_frame_handler) s->real_time_frame_handler(s->real_time_frame_user_data, false, msg, len); + /*endif*/ if (s->send_hdlc_handler) s->send_hdlc_handler(s->send_hdlc_user_data, msg, len); + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -950,8 +1002,10 @@ static void send_20digit_msg_frame(t30_state_t *s, int cmd, char *msg) frame[p++] = (uint8_t) (cmd | s->dis_received); while (len > 0) frame[p++] = msg[--len]; + /*endwhile*/ while (p < 23) frame[p++] = ' '; + /*endwhile*/ send_frame(s, frame, 23); } /*- End of function --------------------------------------------------------*/ @@ -968,6 +1022,7 @@ static int send_nsf_frame(t30_state_t *s) send_frame(s, s->tx_info.nsf, s->tx_info.nsf_len + 3); return true; } + /*endif*/ return false; } /*- End of function --------------------------------------------------------*/ @@ -984,6 +1039,7 @@ static int send_nss_frame(t30_state_t *s) send_frame(s, s->tx_info.nss, s->tx_info.nss_len + 3); return true; } + /*endif*/ return false; } /*- End of function --------------------------------------------------------*/ @@ -1000,6 +1056,7 @@ static int send_nsc_frame(t30_state_t *s) send_frame(s, s->tx_info.nsc, s->tx_info.nsc_len + 3); return true; } + /*endif*/ return false; } /*- End of function --------------------------------------------------------*/ @@ -1013,6 +1070,7 @@ static int send_ident_frame(t30_state_t *s, uint8_t cmd) send_20digit_msg_frame(s, cmd, s->tx_info.ident); return true; } + /*endif*/ return false; } /*- End of function --------------------------------------------------------*/ @@ -1026,6 +1084,7 @@ static int send_psa_frame(t30_state_t *s) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_POLLED_SUBADDRESSING_CAPABLE); return true; } + /*endif*/ clr_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_POLLED_SUBADDRESSING_CAPABLE); return false; } @@ -1040,6 +1099,7 @@ static int send_sep_frame(t30_state_t *s) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_SELECTIVE_POLLING_CAPABLE); return true; } + /*endif*/ clr_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_SELECTIVE_POLLING_CAPABLE); return false; } @@ -1055,6 +1115,7 @@ static int send_sid_frame(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_SENDER_ID_TRANSMISSION); return true; } + /*endif*/ clr_ctrl_bit(s->dcs_frame, T30_DCS_BIT_SENDER_ID_TRANSMISSION); return false; } @@ -1070,6 +1131,7 @@ static int send_pwd_frame(t30_state_t *s) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_PASSWORD); return true; } + /*endif*/ clr_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_PASSWORD); return false; } @@ -1085,6 +1147,7 @@ static int send_sub_frame(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_SUBADDRESS_TRANSMISSION); return true; } + /*endif*/ clr_ctrl_bit(s->dcs_frame, T30_DCS_BIT_SUBADDRESS_TRANSMISSION); return false; } @@ -1097,6 +1160,7 @@ static int send_tsa_frame(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "Sending transmitting subscriber internet address '%s'\n", ""); return true; } + /*endif*/ return false; } /*- End of function --------------------------------------------------------*/ @@ -1109,6 +1173,7 @@ static int send_ira_frame(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INTERNET_ROUTING_ADDRESS_TRANSMISSION); return true; } + /*endif*/ clr_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INTERNET_ROUTING_ADDRESS_TRANSMISSION); return false; } @@ -1121,6 +1186,7 @@ static int send_cia_frame(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "Sending calling subscriber internet address '%s'\n", ""); return true; } + /*endif*/ return false; } /*- End of function --------------------------------------------------------*/ @@ -1133,6 +1199,7 @@ static int send_isp_frame(t30_state_t *s) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_INTERNET_SELECTIVE_POLLING_ADDRESS); return true; } + /*endif*/ clr_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_INTERNET_SELECTIVE_POLLING_ADDRESS); return false; } @@ -1146,6 +1213,7 @@ static int send_csa_frame(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "Sending called subscriber internet address '%s'\n", ""); return true; } + /*endif*/ #endif return false; } @@ -1162,7 +1230,7 @@ static int send_pps_frame(t30_state_t *s) frame[4] = (uint8_t) (s->tx_page_number & 0xFF); frame[5] = (uint8_t) (s->ecm_block & 0xFF); frame[6] = (uint8_t) ((s->ecm_frames_this_tx_burst == 0) ? 0 : (s->ecm_frames_this_tx_burst - 1)); - span_log(&s->logging, SPAN_LOG_FLOW, "Sending PPS + %s\n", t30_frametype(frame[3])); + span_log(&s->logging, SPAN_LOG_FLOW, "Sending PPS-%s\n", t30_frametype(frame[3])); send_frame(s, frame, 7); return frame[3] & 0xFE; } @@ -1182,13 +1250,16 @@ int t30_build_dis_or_dtc(t30_state_t *s) s->local_dis_dtc_frame[2] = (uint8_t) (T30_DIS | s->dis_received); for (i = 3; i < T30_MAX_DIS_DTC_DCS_LEN; i++) s->local_dis_dtc_frame[i] = 0x00; + /*endfor*/ /* Always say 256 octets per ECM frame preferred, as 64 is never used in the real world. */ if ((s->iaf & T30_IAF_MODE_T37)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T37); + /*endif*/ if ((s->iaf & T30_IAF_MODE_T38)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T38); + /*endif*/ /* No 3G mobile */ /* No V.8 */ /* 256 octets preferred - don't bother making this optional, as everything uses 256 */ @@ -1197,35 +1268,44 @@ int t30_build_dis_or_dtc(t30_state_t *s) /* With no modems set we are actually selecting V.27ter fallback at 2400bps */ if ((s->supported_modems & T30_SUPPORT_V27TER)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_MODEM_TYPE_2); + /*endif*/ if ((s->supported_modems & T30_SUPPORT_V29)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_MODEM_TYPE_1); + /*endif*/ /* V.17 is only valid when combined with V.29 and V.27ter, so if we enable V.17 we force the others too. */ if ((s->supported_modems & T30_SUPPORT_V17)) s->local_dis_dtc_frame[4] |= (DISBIT6 | DISBIT4 | DISBIT3); + /*endif*/ /* 215mm wide is always supported */ if ((s->supported_image_sizes & T4_SUPPORT_WIDTH_303MM)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_215MM_255MM_303MM_WIDTH_CAPABLE); else if ((s->supported_image_sizes & T4_SUPPORT_WIDTH_255MM)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_215MM_255MM_WIDTH_CAPABLE); + /*endif*/ /* A4 is always supported. */ if ((s->supported_image_sizes & T4_SUPPORT_LENGTH_UNLIMITED)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_UNLIMITED_LENGTH_CAPABLE); else if ((s->supported_image_sizes & T4_SUPPORT_LENGTH_B4)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_A4_B4_LENGTH_CAPABLE); + /*endif*/ if ((s->supported_image_sizes & T4_SUPPORT_LENGTH_US_LETTER)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_NORTH_AMERICAN_LETTER_CAPABLE); + /*endif*/ if ((s->supported_image_sizes & T4_SUPPORT_LENGTH_US_LEGAL)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_NORTH_AMERICAN_LEGAL_CAPABLE); + /*endif*/ /* No scan-line padding required, but some may be specified by the application. */ set_ctrl_bits(s->local_dis_dtc_frame, s->local_min_scan_time_code, T30_DIS_BIT_MIN_SCAN_LINE_TIME_CAPABILITY_1); if ((s->supported_compressions & T4_COMPRESSION_T4_2D)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_2D_CAPABLE); + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_NONE)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_UNCOMPRESSED_CAPABLE); + /*endif*/ if (s->ecm_allowed) { /* ECM allowed */ @@ -1235,6 +1315,7 @@ int t30_build_dis_or_dtc(t30_state_t *s) also offering the ECM option needed to support them. */ if ((s->supported_compressions & T4_COMPRESSION_T6)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T6_CAPABLE); + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_T85)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T85_CAPABLE); @@ -1242,7 +1323,9 @@ int t30_build_dis_or_dtc(t30_state_t *s) support here. */ if ((s->supported_compressions & T4_COMPRESSION_T85_L0)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T85_L0_CAPABLE); + /*endif*/ } + /*endif*/ //if ((s->supported_compressions & T4_COMPRESSION_T88)) //{ @@ -1250,14 +1333,17 @@ int t30_build_dis_or_dtc(t30_state_t *s) // set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T88_CAPABILITY_2); // set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T88_CAPABILITY_3); //} + ///*endif*/ if ((s->supported_compressions & (T4_COMPRESSION_COLOUR | T4_COMPRESSION_GRAYSCALE))) { if ((s->supported_compressions & T4_COMPRESSION_COLOUR)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_FULL_COLOUR_CAPABLE); + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_T42_T81)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T81_CAPABLE); + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_T43)) { /* Note 25 of table 2/T.30 */ @@ -1265,36 +1351,49 @@ int t30_build_dis_or_dtc(t30_state_t *s) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T43_CAPABLE); /* No plane interleave */ } + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_T45)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T45_CAPABLE); + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_SYCC_T81)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T81_CAPABLE); set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_SYCC_T81_CAPABLE); } + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_12BIT)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_12BIT_CAPABLE); + /*endif*/ if ((s->supported_compressions & T4_COMPRESSION_NO_SUBSAMPLING)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_NO_SUBSAMPLING); + /*endif*/ /* No custom illuminant */ /* No custom gamut range */ } + /*endif*/ } + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_FIELD_NOT_VALID)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_FNV_CAPABLE); + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_MULTIPLE_SELECTIVE_POLLING)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_MULTIPLE_SELECTIVE_POLLING_CAPABLE); + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_POLLED_SUB_ADDRESSING)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_POLLED_SUBADDRESSING_CAPABLE); + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_SELECTIVE_POLLING)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_SELECTIVE_POLLING_CAPABLE); + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_SUB_ADDRESSING)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_SUBADDRESSING_CAPABLE); + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_IDENTIFICATION)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_PASSWORD); + /*endif*/ /* No G.726 */ /* No extended voice coding */ @@ -1303,6 +1402,7 @@ int t30_build_dis_or_dtc(t30_state_t *s) /* Ready to transmit a data file (polling) */ if (s->tx_file[0]) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_READY_TO_TRANSMIT_DATA_FILE); + /*endif*/ /* No simple phase C BFT negotiations */ /* No extended BFT negotiations */ @@ -1332,59 +1432,80 @@ int t30_build_dis_or_dtc(t30_state_t *s) if ((s->supported_t30_features & T30_SUPPORT_INTERNET_SELECTIVE_POLLING_ADDRESS)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_INTERNET_SELECTIVE_POLLING_ADDRESS); + /*endif*/ if ((s->supported_t30_features & T30_SUPPORT_INTERNET_ROUTING_ADDRESS)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_INTERNET_ROUTING_ADDRESS); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_1200_1200)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_1200_1200_CAPABLE); if ((s->supported_colour_resolutions & T4_RESOLUTION_1200_1200)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_1200_1200_CAPABLE); + /*endif*/ } + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_600_1200)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_600_1200_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_600_600)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_600_600_CAPABLE); if ((s->supported_colour_resolutions & T4_RESOLUTION_600_600)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_600_600_CAPABLE); + /*endif*/ } + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_400_800)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_400_800_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_R16_SUPERFINE)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_400_400_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_400_400)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_400_400_CAPABLE); if ((s->supported_colour_resolutions & T4_RESOLUTION_400_400)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_300_300_400_400_CAPABLE); + /*endif*/ } + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_300_600)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_300_600_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_300_300)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_300_300_CAPABLE); if ((s->supported_colour_resolutions & T4_RESOLUTION_300_300)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_300_300_400_400_CAPABLE); + /*endif*/ } + /*endif*/ if ((s->supported_bilevel_resolutions & (T4_RESOLUTION_200_400 | T4_RESOLUTION_R8_SUPERFINE))) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_200_400_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_R8_FINE)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_200_200_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & T4_RESOLUTION_200_200)) { set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_200_200_CAPABLE); if ((s->supported_colour_resolutions & T4_RESOLUTION_200_200)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_FULL_COLOUR_CAPABLE); + /*endif*/ } + /*endif*/ /* Standard FAX resolution bi-level image support goes without saying */ if ((s->supported_colour_resolutions & T4_RESOLUTION_100_100)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_100_100_CAPABLE); + /*endif*/ if ((s->supported_bilevel_resolutions & (T4_RESOLUTION_R8_STANDARD | T4_RESOLUTION_R8_FINE | T4_RESOLUTION_R8_SUPERFINE | T4_RESOLUTION_R16_SUPERFINE))) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_METRIC_RESOLUTION_PREFERRED); + /*endif*/ if ((s->supported_bilevel_resolutions & (T4_RESOLUTION_200_100 | T4_RESOLUTION_200_200 | T4_RESOLUTION_200_400 | T4_RESOLUTION_300_300 | T4_RESOLUTION_300_600 | T4_RESOLUTION_400_400 | T4_RESOLUTION_400_800 | T4_RESOLUTION_600_600 | T4_RESOLUTION_600_1200 | T4_RESOLUTION_1200_1200))) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_INCH_RESOLUTION_PREFERRED); + /*endif*/ /* No double sided printing (alternate mode) */ /* No double sided printing (continuous mode) */ @@ -1395,9 +1516,11 @@ int t30_build_dis_or_dtc(t30_state_t *s) if ((s->iaf & T30_IAF_MODE_FLOW_CONTROL)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T38_FLOW_CONTROL_CAPABLE); + /*endif*/ /* No k > 4 */ if ((s->iaf & T30_IAF_MODE_CONTINUOUS_FLOW)) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_T38_FAX_CAPABLE); + /*endif*/ /* No T.88/T.89 profile */ s->local_dis_dtc_len = 19; return 0; @@ -1414,11 +1537,13 @@ static int set_dis_or_dtc(t30_state_t *s) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_READY_TO_RECEIVE_FAX_DOCUMENT); else clr_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_READY_TO_RECEIVE_FAX_DOCUMENT); + /*endif*/ /* If we have a file name to transmit, then we are ready to transmit (polling) */ if (s->tx_file[0]) set_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_READY_TO_TRANSMIT_FAX_DOCUMENT); else clr_ctrl_bit(s->local_dis_dtc_frame, T30_DIS_BIT_READY_TO_TRANSMIT_FAX_DOCUMENT); + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -1435,12 +1560,15 @@ static int prune_dis_dtc(t30_state_t *s) /* Check if there is some real message content here */ if (s->local_dis_dtc_frame[i]) break; + /*endif*/ } + /*endfor*/ s->local_dis_dtc_len = i + 1; /* Fill in any required extension bits */ s->local_dis_dtc_frame[i] &= ~DISBIT8; for (i--; i > 4; i--) s->local_dis_dtc_frame[i] |= DISBIT8; + /*endfor*/ t30_decode_dis_dtc_dcs(s, s->local_dis_dtc_frame, s->local_dis_dtc_len); return s->local_dis_dtc_len; } @@ -1466,6 +1594,7 @@ static int build_dcs(t30_state_t *s) s->dcs_frame[2] = (uint8_t) (T30_DCS | s->dis_received); for (i = 3; i < T30_MAX_DIS_DTC_DCS_LEN; i++) s->dcs_frame[i] = 0x00; + /*endfor*/ /* We have a file to send, so tell the far end to go into receive mode. */ set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_RECEIVE_FAX_DOCUMENT); @@ -1474,9 +1603,11 @@ static int build_dcs(t30_state_t *s) /* Check for T.37 simple mode. */ if ((s->iaf & T30_IAF_MODE_T37) && test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T37)) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_T37); + /*endif*/ /* Check for T.38 mode. */ if ((s->iaf & T30_IAF_MODE_T38) && test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T38)) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_T38); + /*endif*/ #endif /* Set to required modem rate */ @@ -1510,12 +1641,16 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_T81_MODE); if (image_type == T4_IMAGE_TYPE_COLOUR_8BIT || image_type == T4_IMAGE_TYPE_COLOUR_12BIT) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_FULL_COLOUR_MODE); + /*endif*/ if (image_type == T4_IMAGE_TYPE_GRAY_12BIT || image_type == T4_IMAGE_TYPE_COLOUR_12BIT) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_12BIT_COMPONENT); + /*endif*/ //if (???????? & T4_COMPRESSION_NO_SUBSAMPLING)) // set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_NO_SUBSAMPLING); + ///*endif*/ //if (???????? & T4_COMPRESSION_?????)) // set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_PREFERRED_HUFFMAN_TABLES); + ///*endif*/ set_ctrl_bits(s->dcs_frame, T30_MIN_SCAN_0MS, T30_DCS_BIT_MIN_SCAN_LINE_TIME_1); use_bilevel = false; break; @@ -1523,8 +1658,10 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_T43_MODE); if (image_type == T4_IMAGE_TYPE_COLOUR_8BIT || image_type == T4_IMAGE_TYPE_COLOUR_12BIT) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_FULL_COLOUR_MODE); + /*endif*/ if (image_type == T4_IMAGE_TYPE_GRAY_12BIT || image_type == T4_IMAGE_TYPE_COLOUR_12BIT) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_12BIT_COMPONENT); + /*endif*/ set_ctrl_bits(s->dcs_frame, T30_MIN_SCAN_0MS, T30_DCS_BIT_MIN_SCAN_LINE_TIME_1); use_bilevel = false; break; @@ -1542,6 +1679,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bits(s->dcs_frame, T30_MIN_SCAN_0MS, T30_DCS_BIT_MIN_SCAN_LINE_TIME_1); break; } + /*endswitch*/ /* Set the image width */ switch (s->line_width_code) @@ -1559,6 +1697,7 @@ static int build_dcs(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "Image width is A3 at %ddpm x %ddpm\n", s->x_resolution, s->y_resolution); break; } + /*endswitch*/ /* Set the image length */ /* If the other end supports unlimited length, then use that. Otherwise, if the other end supports @@ -1571,6 +1710,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_NORTH_AMERICAN_LETTER); else if ((s->mutual_image_sizes & T4_SUPPORT_LENGTH_US_LEGAL)) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_NORTH_AMERICAN_LEGAL); + /*endif*/ /* Set the Y resolution bits */ switch (s->current_page_resolution) @@ -1580,6 +1720,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); if (!use_bilevel) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_COLOUR_GRAY_1200_1200); + /*endif*/ break; case T4_RESOLUTION_600_1200: set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_600_1200); @@ -1590,6 +1731,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); if (!use_bilevel) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_COLOUR_GRAY_600_600); + /*endif*/ break; case T4_RESOLUTION_400_800: set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_400_800); @@ -1600,6 +1742,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); if (!use_bilevel) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_COLOUR_GRAY_300_300_400_400); + /*endif*/ break; case T4_RESOLUTION_300_600: set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_300_600); @@ -1610,6 +1753,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); if (!use_bilevel) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_COLOUR_GRAY_300_300_400_400); + /*endif*/ break; case T4_RESOLUTION_200_400: set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_200_400); @@ -1620,6 +1764,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); if (!use_bilevel) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_FULL_COLOUR_MODE); + /*endif*/ break; case T4_RESOLUTION_200_100: set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); @@ -1628,6 +1773,7 @@ static int build_dcs(t30_state_t *s) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_INCH_RESOLUTION); if (!use_bilevel) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_COLOUR_GRAY_100_100); + /*endif*/ break; case T4_RESOLUTION_R16_SUPERFINE: set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_400_400); @@ -1642,12 +1788,15 @@ static int build_dcs(t30_state_t *s) /* Nothing special to set */ break; } + /*endswitch*/ if (s->error_correcting_mode) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_ECM_MODE); + /*endif*/ if ((s->iaf & T30_IAF_MODE_FLOW_CONTROL) && test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T38_FLOW_CONTROL_CAPABLE)) set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_T38_FLOW_CONTROL_CAPABLE); + /*endif*/ if ((s->iaf & T30_IAF_MODE_CONTINUOUS_FLOW) && test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T38_FAX_CAPABLE)) { @@ -1658,6 +1807,7 @@ static int build_dcs(t30_state_t *s) clr_ctrl_bit(s->local_dis_dtc_frame, T30_DCS_BIT_MODEM_TYPE_4); set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_T38_FAX_MODE); } + /*endif*/ s->dcs_len = 19; return 0; } @@ -1675,12 +1825,15 @@ static int prune_dcs(t30_state_t *s) /* Check if there is some real message content here */ if (s->dcs_frame[i]) break; + /*endif*/ } + /*endfor*/ s->dcs_len = i + 1; /* Fill in any required extension bits */ s->local_dis_dtc_frame[i] &= ~DISBIT8; for (i-- ; i > 4; i--) s->dcs_frame[i] |= DISBIT8; + /*endfor*/ t30_decode_dis_dtc_dcs(s, s->dcs_frame, s->dcs_len); return s->dcs_len; } @@ -1694,17 +1847,21 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Short DIS/DTC frame\n"); return -1; } + /*endif*/ if (msg[2] == T30_DIS) s->dis_received = true; + /*endif*/ /* Make a local copy of the message, padded to the maximum possible length with zeros. This allows us to simply pick out the bits, without worrying about whether they were set from the remote side. */ if (len > T30_MAX_DIS_DTC_DCS_LEN) len = T30_MAX_DIS_DTC_DCS_LEN; + /*endif*/ memcpy(s->far_dis_dtc_frame, msg, len); if (len < T30_MAX_DIS_DTC_DCS_LEN) memset(s->far_dis_dtc_frame + len, 0, T30_MAX_DIS_DTC_DCS_LEN - len); + /*endif*/ s->error_correcting_mode = (s->ecm_allowed && test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_ECM_CAPABLE)); /* Always use 256 octets per ECM frame, whatever the other end says it is capable of */ @@ -1718,43 +1875,56 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) s->mutual_compressions &= (0xFF800000 | T4_COMPRESSION_NONE | T4_COMPRESSION_T4_1D | T4_COMPRESSION_T4_2D); if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_2D_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T4_2D; + /*endif*/ } else { /* Check the bi-level capabilities */ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_2D_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T4_2D; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T6_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T6; + /*endif*/ /* T.85 L0 capable without T.85 capable is an invalid combination, so let just zap both capabilities if the far end is not T.85 capable. */ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T85_CAPABLE)) s->mutual_compressions &= ~(T4_COMPRESSION_T85 | T4_COMPRESSION_T85_L0); + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T85_L0_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T85_L0; + /*endif*/ /* Check for full colour or only gray-scale from the multi-level codecs */ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_FULL_COLOUR_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_COLOUR; + /*endif*/ /* Check the colour capabilities */ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T81_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T42_T81; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_SYCC_T81_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_SYCC_T81; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T43_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T43; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_T45_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_T45; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_12BIT_CAPABLE)) s->mutual_compressions &= ~T4_COMPRESSION_12BIT; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_NO_SUBSAMPLING)) s->mutual_compressions &= ~T4_COMPRESSION_NO_SUBSAMPLING; + /*endif*/ /* bit74 custom illuminant */ /* bit75 custom gamut range */ } + /*endif*/ s->mutual_bilevel_resolutions = s->supported_bilevel_resolutions; s->mutual_colour_resolutions = s->supported_colour_resolutions; @@ -1767,9 +1937,12 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) { if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_1200_1200_CAPABLE)) s->mutual_colour_resolutions &= ~T4_RESOLUTION_1200_1200; + /*endif*/ } + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_600_1200_CAPABLE)) s->mutual_bilevel_resolutions &= ~T4_RESOLUTION_600_1200; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_600_600_CAPABLE)) { s->mutual_bilevel_resolutions &= ~T4_RESOLUTION_600_600; @@ -1779,9 +1952,12 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) { if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_600_600_CAPABLE)) s->mutual_colour_resolutions &= ~T4_RESOLUTION_600_600; + /*endif*/ } + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_400_800_CAPABLE)) s->mutual_bilevel_resolutions &= ~T4_RESOLUTION_400_800; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_400_400_CAPABLE)) { s->mutual_bilevel_resolutions &= ~(T4_RESOLUTION_400_400 | T4_RESOLUTION_R16_SUPERFINE); @@ -1791,9 +1967,12 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) { if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_300_300_400_400_CAPABLE)) s->mutual_colour_resolutions &= ~T4_RESOLUTION_400_400; + /*endif*/ } + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_300_600_CAPABLE)) s->mutual_bilevel_resolutions &= ~T4_RESOLUTION_300_600; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_300_300_CAPABLE)) { s->mutual_bilevel_resolutions &= ~T4_RESOLUTION_300_300; @@ -1803,19 +1982,25 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) { if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_300_300_400_400_CAPABLE)) s->mutual_colour_resolutions &= ~T4_RESOLUTION_300_300; + /*endif*/ } + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_200_400_CAPABLE)) s->mutual_bilevel_resolutions &= ~(T4_RESOLUTION_200_400 | T4_RESOLUTION_R8_SUPERFINE); + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_200_200_CAPABLE)) { s->mutual_bilevel_resolutions &= ~(T4_RESOLUTION_200_200 | T4_RESOLUTION_R8_FINE); s->mutual_colour_resolutions &= ~T4_RESOLUTION_200_200; } + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_INCH_RESOLUTION_PREFERRED)) s->mutual_bilevel_resolutions &= ~T4_RESOLUTION_200_100; + /*endif*/ /* Never suppress T4_RESOLUTION_R8_STANDARD */ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_COLOUR_GRAY_100_100_CAPABLE)) s->mutual_colour_resolutions &= ~T4_RESOLUTION_100_100; + /*endif*/ s->mutual_image_sizes = s->supported_image_sizes; /* 215mm wide is always supported */ @@ -1824,18 +2009,24 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) s->mutual_image_sizes &= ~T4_SUPPORT_WIDTH_303MM; if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_215MM_255MM_WIDTH_CAPABLE)) s->mutual_image_sizes &= ~T4_SUPPORT_WIDTH_255MM; + /*endif*/ } + /*endif*/ /* A4 is always supported. */ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_UNLIMITED_LENGTH_CAPABLE)) { s->mutual_image_sizes &= ~T4_SUPPORT_LENGTH_UNLIMITED; if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_A4_B4_LENGTH_CAPABLE)) s->mutual_image_sizes &= ~T4_SUPPORT_LENGTH_B4; + /*endif*/ } + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_NORTH_AMERICAN_LETTER_CAPABLE)) s->mutual_image_sizes &= ~T4_SUPPORT_LENGTH_US_LETTER; + /*endif*/ if (!test_ctrl_bit(s->far_dis_dtc_frame, T30_DIS_BIT_NORTH_AMERICAN_LEGAL_CAPABLE)) s->mutual_image_sizes &= ~T4_SUPPORT_LENGTH_US_LEGAL; + /*endif*/ switch (s->far_dis_dtc_frame[4] & (DISBIT6 | DISBIT5 | DISBIT4 | DISBIT3)) { @@ -1846,6 +2037,7 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) s->current_fallback = T30_V17_FALLBACK_START; break; } + /*endif*/ /* Fall through */ case (DISBIT4 | DISBIT3): if ((s->supported_modems & T30_SUPPORT_V29)) @@ -1854,6 +2046,7 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) s->current_fallback = T30_V29_FALLBACK_START; break; } + /*endif*/ /* Fall through */ case DISBIT4: s->current_permitted_modems = T30_SUPPORT_V27TER; @@ -1871,6 +2064,7 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) s->current_fallback = T30_V29_FALLBACK_START; break; } + /*endif*/ /* Fall through */ default: span_log(&s->logging, SPAN_LOG_FLOW, "Remote does not support a compatible modem\n"); @@ -1878,6 +2072,7 @@ static int analyze_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) t30_set_status(s, T30_ERR_INCOMPATIBLE); return -1; } + /*endswitch*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -1905,20 +2100,24 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Short DCS frame\n"); return -1; } + /*endif*/ /* Make an ASCII string format copy of the message, for logging in the received file. This string does not include the frame header octets. */ sprintf(s->rx_dcs_string, "%02X", bit_reverse8(msg[3])); for (i = 4; i < len; i++) sprintf(s->rx_dcs_string + 3*i - 10, " %02X", bit_reverse8(msg[i])); + /*endfor*/ /* Make a local copy of the message, padded to the maximum possible length with zeros. This allows us to simply pick out the bits, without worrying about whether they were set from the remote side. */ if (len > T30_MAX_DIS_DTC_DCS_LEN) len = T30_MAX_DIS_DTC_DCS_LEN; + /*endif*/ memcpy(dcs_frame, msg, len); if (len < T30_MAX_DIS_DTC_DCS_LEN) memset(dcs_frame + len, 0, T30_MAX_DIS_DTC_DCS_LEN - len); + /*endif*/ s->error_correcting_mode = (test_ctrl_bit(dcs_frame, T30_DCS_BIT_ECM_MODE) != 0); s->octets_per_ecm_frame = test_ctrl_bit(dcs_frame, T30_DCS_BIT_64_OCTET_ECM_FRAMES) ? 256 : 64; @@ -1945,7 +2144,9 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) { /* We are going to work in full colour mode */ } + /*endif*/ } + /*endif*/ if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_12BIT_COMPONENT)) { @@ -1953,17 +2154,21 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) { /* We are going to work in 12 bit mode */ } + /*endif*/ } + /*endif*/ if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_NO_SUBSAMPLING)) { //???? = T4_COMPRESSION_NO_SUBSAMPLING; } + /*endif*/ if (!test_ctrl_bit(dcs_frame, T30_DCS_BIT_PREFERRED_HUFFMAN_TABLES)) { //???? = T4_COMPRESSION_T42_T81_HUFFMAN; } + /*endif*/ if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_COLOUR_GRAY_1200_1200)) { @@ -1974,6 +2179,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_1200_1200; x = 5; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_COLOUR_GRAY_600_600)) { @@ -1984,6 +2190,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_600_600; x = 4; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_400_400)) { @@ -1994,6 +2201,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_400_400; x = 3; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_300_300)) { @@ -2004,6 +2212,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_300_300; x = 2; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_200_200)) { @@ -2014,6 +2223,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_200_200; x = 1; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_COLOUR_GRAY_100_100)) { @@ -2024,29 +2234,36 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_100_100; x = 0; } + /*endif*/ } + /*endif*/ /* Check which compression the far end has decided to use. */ if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T81_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T42_T81)) s->line_compression = T4_COMPRESSION_T42_T81; + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T43_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T43)) s->line_compression = T4_COMPRESSION_T43; + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T45_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T45)) s->line_compression = T4_COMPRESSION_T45; + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_SYCC_T81_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_SYCC_T81)) s->line_compression = T4_COMPRESSION_SYCC_T81; + /*endif*/ } + /*endif*/ } else { @@ -2060,6 +2277,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_1200_1200; x = 5; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_600_1200)) { @@ -2070,6 +2288,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_600_1200; x = 4; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_600_600)) { @@ -2080,6 +2299,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_600_600; x = 4; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_400_800)) { @@ -2090,6 +2310,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_400_800; x = 3; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_400_400)) { @@ -2102,6 +2323,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_400_400; x = 3; } + /*endif*/ } else { @@ -2112,7 +2334,9 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_R16_SUPERFINE; x = 3; } + /*endif*/ } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_300_600)) { @@ -2123,6 +2347,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_300_600; x = 2; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_300_300)) { @@ -2133,6 +2358,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_300_300; x = 2; } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_200_400)) { @@ -2145,6 +2371,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_200_400; x = 1; } + /*endif*/ } else { @@ -2155,7 +2382,9 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_R8_SUPERFINE; x = 1; } + /*endif*/ } + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_200_200)) { @@ -2168,6 +2397,7 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_200_200; x = 1; } + /*endif*/ } else { @@ -2178,7 +2408,9 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_R8_FINE; x = 1; } + /*endif*/ } + /*endif*/ } else { @@ -2196,7 +2428,9 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) s->current_page_resolution = T4_RESOLUTION_R8_STANDARD; x = 1; } + /*endif*/ } + /*endif*/ /* Check which compression the far end has decided to use. */ if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T88_MODE_1) @@ -2207,39 +2441,49 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) { if ((s->supported_compressions & T4_COMPRESSION_T88)) s->line_compression = T4_COMPRESSION_T88; + /*endif*/ } + /*endif*/ if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T85_L0_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T85_L0)) s->line_compression = T4_COMPRESSION_T85_L0; + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T85_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T85)) s->line_compression = T4_COMPRESSION_T85; + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_T6_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T6)) s->line_compression = T4_COMPRESSION_T6; + /*endif*/ } else if (test_ctrl_bit(dcs_frame, T30_DCS_BIT_2D_MODE)) { if ((s->supported_compressions & T4_COMPRESSION_T4_2D)) s->line_compression = T4_COMPRESSION_T4_2D; + /*endif*/ } else { if ((s->supported_compressions & T4_COMPRESSION_T4_1D)) s->line_compression = T4_COMPRESSION_T4_1D; + /*endif*/ } + /*endif*/ } + /*endif*/ if (s->line_compression == -1) { t30_set_status(s, T30_ERR_INCOMPATIBLE); return -1; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Far end selected compression %s (%d)\n", t4_compression_to_str(s->line_compression), s->line_compression); if (x < 0) @@ -2247,18 +2491,21 @@ static int analyze_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) t30_set_status(s, T30_ERR_NORESSUPPORT); return -1; } + /*endif*/ s->image_width = widths[x][dcs_frame[5] & (DISBIT2 | DISBIT1)]; /* We don't care that much about the image length control bits. Just accept what arrives */ if (!test_ctrl_bit(dcs_frame, T30_DCS_BIT_RECEIVE_FAX_DOCUMENT)) span_log(&s->logging, SPAN_LOG_PROTOCOL_WARNING, "Remote is not requesting receive in DCS\n"); + /*endif*/ if ((s->current_fallback = find_fallback_entry(dcs_frame[4] & (DISBIT6 | DISBIT5 | DISBIT4 | DISBIT3))) < 0) { span_log(&s->logging, SPAN_LOG_FLOW, "Remote asked for a modem standard we do not support\n"); return -1; } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -2274,10 +2521,7 @@ static void send_dcn(t30_state_t *s) static void return_to_phase_b(t30_state_t *s, int with_fallback) { /* This is what we do after things like T30_EOM is exchanged. */ - if (s->calling_party) - set_state(s, T30_STATE_T); - else - set_state(s, T30_STATE_R); + set_state(s, (s->calling_party) ? T30_STATE_T : T30_STATE_R); } /*- End of function --------------------------------------------------------*/ @@ -2291,6 +2535,7 @@ static int send_dis_or_dtc_sequence(t30_state_t *s, int start) set_state(s, T30_STATE_R); s->step = 0; } + /*endif*/ if (!s->dis_received) { /* DIS sequence */ @@ -2300,11 +2545,13 @@ static int send_dis_or_dtc_sequence(t30_state_t *s, int start) s->step++; if (send_nsf_frame(s)) break; + /*endif*/ /* Fall through */ case 1: s->step++; if (send_ident_frame(s, T30_CSI)) break; + /*endif*/ /* Fall through */ case 2: s->step++; @@ -2318,6 +2565,7 @@ static int send_dis_or_dtc_sequence(t30_state_t *s, int start) default: return -1; } + /*endswitch*/ } else { @@ -2328,36 +2576,43 @@ static int send_dis_or_dtc_sequence(t30_state_t *s, int start) s->step++; if (send_nsc_frame(s)) break; + /*endif*/ /* Fall through */ case 1: s->step++; if (send_ident_frame(s, T30_CIG)) break; + /*endif*/ /* Fall through */ case 2: s->step++; if (send_pwd_frame(s)) break; + /*endif*/ /* Fall through */ case 3: s->step++; if (send_sep_frame(s)) break; + /*endif*/ /* Fall through */ case 4: s->step++; if (send_psa_frame(s)) break; + /*endif*/ /* Fall through */ case 5: s->step++; if (send_cia_frame(s)) break; + /*endif*/ /* Fall through */ case 6: s->step++; if (send_isp_frame(s)) break; + /*endif*/ /* Fall through */ case 7: s->step++; @@ -2371,7 +2626,9 @@ static int send_dis_or_dtc_sequence(t30_state_t *s, int start) default: return -1; } + /*endswitch*/ } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -2385,37 +2642,44 @@ static int send_dcs_sequence(t30_state_t *s, int start) set_state(s, T30_STATE_D); s->step = 0; } + /*endif*/ switch (s->step) { case 0: s->step++; if (send_nss_frame(s)) break; + /*endif*/ /* Fall through */ case 1: s->step++; if (send_ident_frame(s, T30_TSI)) break; + /*endif*/ /* Fall through */ case 2: s->step++; if (send_sub_frame(s)) break; + /*endif*/ /* Fall through */ case 3: s->step++; if (send_sid_frame(s)) break; + /*endif*/ /* Fall through */ case 4: s->step++; if (send_tsa_frame(s)) break; + /*endif*/ /* Fall through */ case 5: s->step++; if (send_ira_frame(s)) break; + /*endif*/ /* Fall through */ case 6: s->step++; @@ -2429,6 +2693,7 @@ static int send_dcs_sequence(t30_state_t *s, int start) default: return -1; } + /*endswitch*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -2440,6 +2705,7 @@ static int send_cfr_sequence(t30_state_t *s, int start) FAXing. */ if (start) s->step = 0; + /*endif*/ switch (s->step) { case 0: @@ -2458,6 +2724,7 @@ static int send_cfr_sequence(t30_state_t *s, int start) default: return -1; } + /*endswitch*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -2473,6 +2740,7 @@ static void terminate_call(t30_state_t *s) s->timer_t5 = 0; if (s->phase_e_handler) s->phase_e_handler(s->phase_e_user_data, s->current_status); + /*endif*/ set_state(s, T30_STATE_CALL_FINISHED); set_phase(s, T30_PHASE_CALL_FINISHED); release_resources(s); @@ -2526,6 +2794,7 @@ static void set_min_scan_time(t30_state_t *s) min_bits_field = T30_MIN_SCAN_0MS; else min_bits_field = (s->far_dis_dtc_frame[5] >> 4) & 7; + /*endif*/ switch (s->y_resolution) { case T4_Y_RESOLUTION_SUPERFINE: @@ -2544,10 +2813,12 @@ static void set_min_scan_time(t30_state_t *s) s->min_scan_time_code = T30_MIN_SCAN_0MS; break; } + /*endswitch*/ if ((s->iaf & T30_IAF_MODE_NO_FILL_BITS)) min_row_bits = 0; else min_row_bits = (fallback_sequence[s->current_fallback].bit_rate*min_scan_times[s->min_scan_time_code])/1000; + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Minimum bits per row will be %d\n", min_row_bits); t4_tx_set_min_bits_per_row(&s->t4.tx, min_row_bits); } @@ -2563,6 +2834,7 @@ static int start_sending_document(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "No document to send\n"); return -1; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Start sending document\n"); if (t4_tx_init(&s->t4.tx, s->tx_file, s->tx_start_page, s->tx_stop_page) == NULL) { @@ -2570,12 +2842,14 @@ static int start_sending_document(t30_state_t *s) t30_set_status(s, T30_ERR_FILEERROR); return -1; } + /*endif*/ s->operation_in_progress = OPERATION_IN_PROGRESS_T4_TX; t4_tx_set_local_ident(&s->t4.tx, s->tx_info.ident); t4_tx_set_header_info(&s->t4.tx, s->header_info); if (s->use_own_tz) t4_tx_set_header_tz(&s->t4.tx, &s->tz); + /*endif*/ t4_tx_get_pages_in_file(&s->t4.tx); @@ -2604,8 +2878,10 @@ static int start_sending_document(t30_state_t *s) t30_set_status(s, T30_ERR_BADTIFF); break; } + /*endswitch*/ return -1; } + /*endif*/ s->line_image_type = t4_tx_get_tx_image_type(&s->t4.tx); s->line_compression = t4_tx_get_tx_compression(&s->t4.tx); s->image_width = t4_tx_get_tx_image_width(&s->t4.tx); @@ -2632,12 +2908,15 @@ static int start_sending_document(t30_state_t *s) t30_set_status(s, T30_ERR_BADTIFFHDR); return -1; } + /*endif*/ if (s->error_correcting_mode) { if (get_partial_ecm_page(s) == 0) span_log(&s->logging, SPAN_LOG_WARNING, "No image data to send\n"); + /*endif*/ } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -2660,6 +2939,7 @@ static int start_receiving_document(t30_state_t *s) span_log(&s->logging, SPAN_LOG_FLOW, "No document to receive\n"); return -1; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Start receiving document\n"); s->ecm_block = 0; send_dis_or_dtc_sequence(s, true); @@ -2672,6 +2952,7 @@ static void unexpected_non_final_frame(t30_state_t *s, const uint8_t *msg, int l span_log(&s->logging, SPAN_LOG_FLOW, "Unexpected %s frame in state %s\n", t30_frametype(msg[2]), state_names[s->state]); if (s->current_status == T30_ERR_OK) t30_set_status(s, T30_ERR_UNEXPECTED); + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -2680,6 +2961,7 @@ static void unexpected_final_frame(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Unexpected %s frame in state %s\n", t30_frametype(msg[2]), state_names[s->state]); if (s->current_status == T30_ERR_OK) t30_set_status(s, T30_ERR_UNEXPECTED); + /*endif*/ send_dcn(s); } /*- End of function --------------------------------------------------------*/ @@ -2689,6 +2971,7 @@ static void unexpected_frame_length(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Unexpected %s frame length - %d\n", t30_frametype(msg[0]), len); if (s->current_status == T30_ERR_OK) t30_set_status(s, T30_ERR_UNEXPECTED); + /*endif*/ send_dcn(s); } /*- End of function --------------------------------------------------------*/ @@ -2703,6 +2986,7 @@ static int process_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ if (s->phase_b_handler) { new_status = s->phase_b_handler(s->phase_b_user_data, msg[2]); @@ -2714,7 +2998,9 @@ static int process_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ } + /*endif*/ /* Try to send something */ if (s->tx_file[0]) { @@ -2726,17 +3012,20 @@ static int process_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ if (start_sending_document(s)) { send_dcn(s); return -1; } + /*endif*/ if (build_dcs(s)) { span_log(&s->logging, SPAN_LOG_FLOW, "The far end is incompatible\n", s->tx_file); send_dcn(s); return -1; } + /*endif*/ /* Start document transmission */ span_log(&s->logging, SPAN_LOG_FLOW, @@ -2748,6 +3037,7 @@ static int process_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) send_dcs_sequence(s, true); return 0; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "%s - nothing to send\n", t30_frametype(msg[2])); /* ... then try to receive something */ if (s->rx_file[0]) @@ -2760,21 +3050,25 @@ static int process_rx_dis_dtc(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ if (start_receiving_document(s)) { send_dcn(s); return -1; } + /*endif*/ if (set_dis_or_dtc(s)) { t30_set_status(s, T30_ERR_INCOMPATIBLE); send_dcn(s); return -1; } + /*endif*/ s->retries = 0; send_dis_or_dtc_sequence(s, true); return 0; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "%s - nothing to receive\n", t30_frametype(msg[2])); /* There is nothing to do, or nothing we are able to do. */ send_dcn(s); @@ -2791,6 +3085,7 @@ static int process_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ if (s->phase_b_handler) { @@ -2803,7 +3098,9 @@ static int process_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ } + /*endif*/ /* Start document reception */ span_log(&s->logging, SPAN_LOG_FLOW, @@ -2818,6 +3115,7 @@ static int process_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ if (s->operation_in_progress != OPERATION_IN_PROGRESS_T4_RX) { if (t4_rx_init(&s->t4.rx, s->rx_file, s->supported_output_compressions) == NULL) @@ -2827,8 +3125,10 @@ static int process_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); return -1; } + /*endif*/ s->operation_in_progress = OPERATION_IN_PROGRESS_T4_RX; } + /*endif*/ if (!(s->iaf & T30_IAF_MODE_NO_TCF)) { /* TCF is always sent with long training */ @@ -2837,6 +3137,7 @@ static int process_rx_dcs(t30_state_t *s, const uint8_t *msg, int len) queue_phase(s, T30_PHASE_C_NON_ECM_RX); timer_t2_start(s); } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -2850,6 +3151,7 @@ static int send_response_to_pps(t30_state_t *s) send_simple_frame(s, T30_MCF); return true; } + /*endif*/ /* We need to send the PPR frame we have created, to try to fill in the missing/bad data. */ set_state(s, T30_STATE_F_POST_RCP_PPR); s->ecm_frame_map[0] = ADDRESS_FIELD; @@ -2878,6 +3180,7 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Bad PPS message length %d.\n", len); return -1; } + /*endif*/ s->last_pps_fcf2 = msg[3] & 0xFE; /* The frames count is not well specified in T.30. In practice it seems it might be the @@ -2905,10 +3208,12 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) /* This is probably zero, erroneously rolled over to the maximum count */ frames = 0; } + /*endif*/ } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, - "Received PPS + %s - page %d, block %d, %d frames\n", + "Received PPS-%s - page %d, block %d, %d frames\n", t30_frametype(msg[3]), page, block, @@ -2938,6 +3243,7 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) /* Clear the ECM buffer */ for (i = 0; i < 256; i++) s->ecm_len[i] = -1; + /*endfor*/ s->ecm_frames = -1; queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_F_POST_RCP_MCF); @@ -2949,8 +3255,10 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) t30_set_status(s, T30_ERR_RX_ECMPHD); send_dcn(s); } + /*endif*/ return 0; } + /*endif*/ /* Build a bit map of which frames we now have stored OK */ first_bad_frame = 256; @@ -2983,24 +3291,33 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) expected_len = 64; first = false; } + /*endif*/ /* Check the length is consistent with the first frame */ if (s->ecm_len[frame_no] != expected_len) { span_log(&s->logging, SPAN_LOG_FLOW, "Bad length ECM frame - %d\n", s->ecm_len[frame_no]); s->ecm_len[frame_no] = -1; } + /*endif*/ } + /*endif*/ } + /*endif*/ if (s->ecm_len[frame_no] < 0) { s->ecm_frame_map[i + 3] |= (1 << j); if (frame_no < first_bad_frame) first_bad_frame = frame_no; + /*endif*/ if (frame_no < s->ecm_frames) s->error_correcting_mode_retries++; + /*endif*/ } + /*endif*/ } + /*endfor*/ } + /*endfor*/ s->rx_ecm_block_ok = (first_bad_frame >= s->ecm_frames); if (s->rx_ecm_block_ok) { @@ -3012,6 +3329,7 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) res = s->document_put_handler(s->document_put_user_data, s->ecm_data[i], s->ecm_len[i]); else res = t4_rx_put(&s->t4.rx, s->ecm_data[i], s->ecm_len[i]); + /*endif*/ if (res != T4_DECODE_MORE_DATA) { /* This is the end of the document */ @@ -3019,10 +3337,13 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Document ended with status %d\n", res); break; } + /*endif*/ } + /*endfor*/ /* Clear the ECM buffer */ for (i = 0; i < 256; i++) s->ecm_len[i] = -1; + /*endfor*/ s->ecm_block++; s->ecm_frames = -1; @@ -3038,10 +3359,13 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) report_rx_ecm_page_result(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, s->last_pps_fcf2); + /*endif*/ rx_start_page(s); break; } + /*endswitch*/ } + /*endif*/ switch (s->last_pps_fcf2) { @@ -3051,6 +3375,7 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_NULL: case T30_MPS: @@ -3076,13 +3401,17 @@ static int process_rx_pps(t30_state_t *s, const uint8_t *msg, int len) s->end_of_procedure_detected = true; break; } + /*endswitch*/ } + /*endif*/ } + /*endif*/ break; default: unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -3104,6 +3433,7 @@ static void process_rx_ppr(t30_state_t *s, const uint8_t *msg, int len) terminate_call(s); return; } + /*endif*/ s->retries = 0; /* Check which frames are OK, and mark them as OK. */ for (i = 0; i < 32; i++) @@ -3116,6 +3446,7 @@ static void process_rx_ppr(t30_state_t *s, const uint8_t *msg, int len) { if (s->ecm_len[frame_no] >= 0) s->ecm_progress++; + /*endif*/ s->ecm_len[frame_no] = -1; } else @@ -3125,14 +3456,19 @@ static void process_rx_ppr(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Frame %d to be resent\n", frame_no); s->error_correcting_mode_retries++; } + /*endif*/ #if 0 /* Diagnostic: See if the other end is complaining about something we didn't even send this time. */ if (s->ecm_len[frame_no] < 0) span_log(&s->logging, SPAN_LOG_FLOW, "PPR contains complaint about frame %d, which was not sent\n", frame_no); + /*endif*/ #endif } + /*endif*/ } + /*endfor*/ } + /*endfor*/ if (++s->ppr_count >= PPR_LIMIT_BEFORE_CTC_OR_EOR) { /* Continue to correct? */ @@ -3162,6 +3498,7 @@ static void process_rx_ppr(t30_state_t *s, const uint8_t *msg, int len) span_log(&s->logging, SPAN_LOG_FLOW, "Sending EOR + %s\n", t30_frametype(frame[3])); send_frame(s, frame, 4); } + /*endif*/ } else { @@ -3170,6 +3507,7 @@ static void process_rx_ppr(t30_state_t *s, const uint8_t *msg, int len) queue_phase(s, T30_PHASE_C_ECM_TX); send_first_ecm_frame(s); } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -3197,14 +3535,17 @@ static void process_rx_fcd(t30_state_t *s, const uint8_t *msg, int len) /* In case we are just after a CTC/CTR exchange, which kicked us back to long training */ s->short_train = true; } + /*endif*/ /* We have received something, so any missing carrier status is out of date */ if (s->current_status == T30_ERR_RX_NOCARRIER) t30_set_status(s, T30_ERR_OK); + /*endif*/ break; default: unexpected_non_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3221,6 +3562,7 @@ static void process_rx_rcp(t30_state_t *s, const uint8_t *msg, int len) /* We have received something, so any missing carrier status is out of date */ if (s->current_status == T30_ERR_RX_NOCARRIER) t30_set_status(s, T30_ERR_OK); + /*endif*/ break; case T30_STATE_F_POST_DOC_ECM: /* Just ignore this. It must be an extra RCP. Several are usually sent, to maximise the chance @@ -3231,6 +3573,7 @@ static void process_rx_rcp(t30_state_t *s, const uint8_t *msg, int len) unexpected_non_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3243,35 +3586,48 @@ static void process_rx_fnv(t30_state_t *s, const uint8_t *msg, int len) /* TODO: analyse the message, as per 5.3.6.2.13 */ if (!span_log_test(&s->logging, SPAN_LOG_FLOW)) return; + /*endif*/ log = &s->logging; if ((msg[3] & 0x01)) span_log(log, SPAN_LOG_FLOW, " Incorrect password (PWD).\n"); + /*endif*/ if ((msg[3] & 0x02)) span_log(log, SPAN_LOG_FLOW, " Selective polling reference (SEP) not known.\n"); + /*endif*/ if ((msg[3] & 0x04)) span_log(log, SPAN_LOG_FLOW, " Sub-address (SUB) not known.\n"); + /*endif*/ if ((msg[3] & 0x08)) span_log(log, SPAN_LOG_FLOW, " Sender identity (SID) not known.\n"); + /*endif*/ if ((msg[3] & 0x10)) span_log(log, SPAN_LOG_FLOW, " Secure fax error.\n"); + /*endif*/ if ((msg[3] & 0x20)) span_log(log, SPAN_LOG_FLOW, " Transmitting subscriber identity (TSI) not accepted.\n"); + /*endif*/ if ((msg[3] & 0x40)) span_log(log, SPAN_LOG_FLOW, " Polled sub-address (PSA) not known.\n"); + /*endif*/ if (len > 4 && (msg[3] & DISBIT8)) { if ((msg[4] & 0x01)) span_log(log, SPAN_LOG_FLOW, " BFT negotiations request not accepted.\n"); + /*endif*/ if ((msg[4] & 0x02)) span_log(log, SPAN_LOG_FLOW, " Internet routing address (IRA) not known.\n"); + /*endif*/ if ((msg[4] & 0x04)) span_log(log, SPAN_LOG_FLOW, " Internet selective polling address (ISP) not known.\n"); + /*endif*/ } + /*endif*/ if (len > 5) { span_log(log, SPAN_LOG_FLOW, " FNV sequence number %d.\n", msg[5]); } + /*endif*/ if (len > 6) { switch (msg[6]) @@ -3304,12 +3660,15 @@ static void process_rx_fnv(t30_state_t *s, const uint8_t *msg, int len) x = "???"; break; } + /*endswitch*/ span_log(log, SPAN_LOG_FLOW, " FNV diagnostic info type %s.\n", x); } + /*endif*/ if (len > 7) { span_log(log, SPAN_LOG_FLOW, " FNV length %d.\n", msg[7]); } + /*endif*/ /* We've decoded it, but we don't yet know how to deal with it, so treat it as unexpected */ unexpected_final_frame(s, msg, len); } @@ -3346,6 +3705,7 @@ static void process_state_answering(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3370,6 +3730,7 @@ static void process_state_b(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3394,6 +3755,7 @@ static void process_state_c(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3420,6 +3782,7 @@ static void process_state_d(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3446,6 +3809,7 @@ static void process_state_d_tcf(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3472,6 +3836,7 @@ static void process_state_d_post_tcf(t30_state_t *s, const uint8_t *msg, int len set_state(s, T30_STATE_I); queue_phase(s, T30_PHASE_C_NON_ECM_TX); } + /*endif*/ break; case T30_FTT: /* Trainability test failed. Try again. */ @@ -3485,6 +3850,7 @@ static void process_state_d_post_tcf(t30_state_t *s, const uint8_t *msg, int len send_dcn(s); break; } + /*endif*/ queue_phase(s, T30_PHASE_B_TX); send_dcs_sequence(s, true); break; @@ -3497,6 +3863,7 @@ static void process_state_d_post_tcf(t30_state_t *s, const uint8_t *msg, int len send_dcn(s); break; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Retry number %d\n", s->retries); queue_phase(s, T30_PHASE_B_TX); /* TODO: should we reassess the new DIS message, and possibly adjust the DCS we use? */ @@ -3517,6 +3884,7 @@ static void process_state_d_post_tcf(t30_state_t *s, const uint8_t *msg, int len unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3539,6 +3907,7 @@ static void process_state_f_tcf(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3565,6 +3934,7 @@ static void process_state_f_cfr(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3590,6 +3960,7 @@ static void process_state_f_ftt(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3615,6 +3986,7 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_MPS: if (s->image_carrier_attempted) @@ -3622,6 +3994,7 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int /* Treat this as a bad quality page. */ if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ s->next_rx_step = fcf; s->last_rx_page_result = T30_RTN; queue_phase(s, T30_PHASE_D_TX); @@ -3633,11 +4006,13 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int /* This appears to be a retry, because the far end didn't see our last response */ repeat_last_command(s); } + /*endif*/ break; case T30_PRI_EOM: if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_EOM: case T30_EOS: @@ -3646,6 +4021,7 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int /* Treat this as a bad quality page. */ if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ s->next_rx_step = fcf; s->last_rx_page_result = T30_RTN; /* Return to phase B */ @@ -3658,11 +4034,13 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int /* This appears to be a retry, because the far end didn't see our last response */ repeat_last_command(s); } + /*endif*/ break; case T30_PRI_EOP: if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_EOP: if (s->image_carrier_attempted) @@ -3670,6 +4048,7 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int /* Treat this as a bad quality page. */ if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ s->next_rx_step = fcf; s->last_rx_page_result = T30_RTN; queue_phase(s, T30_PHASE_D_TX); @@ -3681,6 +4060,7 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int /* This appears to be a retry, because the far end didn't see our last response */ repeat_last_command(s); } + /*endif*/ break; case T30_DCN: t30_set_status(s, T30_ERR_RX_DCNDATA); @@ -3698,6 +4078,7 @@ static void process_state_f_doc_non_ecm(t30_state_t *s, const uint8_t *msg, int unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3719,15 +4100,19 @@ static void assess_copy_quality(t30_state_t *s, uint8_t fcf) /* Some people want to keep even the bad pages */ if (s->keep_bad_pages) rx_end_page(s); + /*endif*/ break; } + /*endswitch*/ if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (fcf == T30_EOP) terminate_operation_in_progress(s); else rx_start_page(s); + /*endif*/ switch (quality) { @@ -3743,6 +4128,7 @@ static void assess_copy_quality(t30_state_t *s, uint8_t fcf) s->last_rx_page_result = T30_RTN; break; } + /*endswitch*/ set_state(s, T30_STATE_III_Q); send_simple_frame(s, s->last_rx_page_result); } @@ -3759,6 +4145,7 @@ static void process_state_f_post_doc_non_ecm(t30_state_t *s, const uint8_t *msg, if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_MPS: s->next_rx_step = fcf; @@ -3769,6 +4156,7 @@ static void process_state_f_post_doc_non_ecm(t30_state_t *s, const uint8_t *msg, if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_EOM: case T30_EOS: @@ -3781,6 +4169,7 @@ static void process_state_f_post_doc_non_ecm(t30_state_t *s, const uint8_t *msg, if (s->remote_interrupts_allowed) { } + /*endif*/ /* Fall through */ case T30_EOP: span_log(&s->logging, SPAN_LOG_FLOW, "End of procedure detected\n"); @@ -3809,6 +4198,7 @@ static void process_state_f_post_doc_non_ecm(t30_state_t *s, const uint8_t *msg, unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3838,6 +4228,7 @@ static void process_state_f_doc_and_post_doc_ecm(t30_state_t *s, const uint8_t * unexpected_frame_length(s, msg, len); break; } + /*endif*/ fcf2 = msg[3] & 0xFE; span_log(&s->logging, SPAN_LOG_FLOW, "Received EOR + %s\n", t30_frametype(msg[3])); switch (fcf2) @@ -3849,6 +4240,7 @@ static void process_state_f_doc_and_post_doc_ecm(t30_state_t *s, const uint8_t * { /* TODO: Alert operator */ } + /*endif*/ /* Fall through */ case T30_NULL: case T30_EOP: @@ -3865,6 +4257,7 @@ static void process_state_f_doc_and_post_doc_ecm(t30_state_t *s, const uint8_t * unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ break; case T30_PPS: process_rx_pps(s, msg, len); @@ -3875,7 +4268,9 @@ static void process_state_f_doc_and_post_doc_ecm(t30_state_t *s, const uint8_t * span_log(&s->logging, SPAN_LOG_FLOW, "Modem changed in CTC.\n"); if ((s->current_fallback = find_fallback_entry(msg[4] & (DISBIT6 | DISBIT5 | DISBIT4 | DISBIT3))) < 0) span_log(&s->logging, SPAN_LOG_FLOW, "Remote asked for a modem standard we do not support\n"); + /*endif*/ } + /*endif*/ s->image_carrier_attempted = false; /* T.30 says we change back to long training here, whether or not the far end changed the modem type. */ s->short_train = false; @@ -3901,6 +4296,7 @@ static void process_state_f_doc_and_post_doc_ecm(t30_state_t *s, const uint8_t * unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3925,6 +4321,7 @@ static void process_state_f_post_rcp_mcf(t30_state_t *s, const uint8_t *msg, int unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3946,6 +4343,7 @@ static void process_state_f_post_rcp_ppr(t30_state_t *s, const uint8_t *msg, int unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -3977,8 +4375,11 @@ static void process_state_f_post_rcp_rnr(t30_state_t *s, const uint8_t *msg, int s->end_of_procedure_detected = true; break; } + /*endswitch*/ } + /*endif*/ } + /*endif*/ break; case T30_CRP: repeat_last_command(s); @@ -3991,6 +4392,7 @@ static void process_state_f_post_rcp_rnr(t30_state_t *s, const uint8_t *msg, int unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4023,6 +4425,7 @@ static void process_state_r(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4052,6 +4455,7 @@ static void process_state_t(t30_state_t *s, const uint8_t *msg, int len) t30_set_status(s, T30_ERR_TX_NODIS); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4073,6 +4477,7 @@ static void process_state_i(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4094,6 +4499,7 @@ static void process_state_ii(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4113,7 +4519,9 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ case T30_MCF: switch (s->next_tx_step) @@ -4123,12 +4531,14 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ /* Transmit the next page */ if (tx_start_page(s)) { /* TODO: recover */ break; } + /*endif*/ set_state(s, T30_STATE_I); queue_phase(s, T30_PHASE_C_NON_ECM_TX); break; @@ -4138,6 +4548,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); report_tx_result(s, true); return_to_phase_b(s, false); @@ -4147,11 +4558,13 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); send_dcn(s); report_tx_result(s, true); break; } + /*endswitch*/ break; case T30_RTP: s->rtp_events++; @@ -4162,11 +4575,13 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (tx_start_page(s)) { /* TODO: recover */ break; } + /*endif*/ /* Send fresh training, and then the next page */ if (step_fallback_entry(s) < 0) { @@ -4175,6 +4590,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); break; } + /*endif*/ queue_phase(s, T30_PHASE_B_TX); restart_sending_document(s); break; @@ -4184,6 +4600,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ t4_tx_release(&s->t4.tx); /* TODO: should go back to T, and resend */ return_to_phase_b(s, true); @@ -4193,10 +4610,12 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ t4_tx_release(&s->t4.tx); send_dcn(s); break; } + /*endswitch*/ break; case T30_PIN: if (s->remote_interrupts_allowed) @@ -4207,7 +4626,9 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ case T30_RTN: s->rtn_events++; @@ -4218,6 +4639,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) s->retries = 0; if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (!s->retransmit_capable) { /* Send the next page, regardless of the problem with the current one. */ @@ -4226,7 +4648,9 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) /* TODO: recover */ break; } + /*endif*/ } + /*endif*/ /* Send fresh training */ if (step_fallback_entry(s) < 0) { @@ -4235,6 +4659,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); break; } + /*endif*/ queue_phase(s, T30_PHASE_B_TX); restart_sending_document(s); break; @@ -4244,6 +4669,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) s->retries = 0; if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (s->retransmit_capable) { /* Wait for DIS */ @@ -4252,12 +4678,14 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) { return_to_phase_b(s, true); } + /*endif*/ break; case T30_PRI_EOP: case T30_EOP: s->retries = 0; if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (s->retransmit_capable) { /* Send fresh training, and then repeat the last page */ @@ -4268,6 +4696,7 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) send_dcn(s); break; } + /*endif*/ queue_phase(s, T30_PHASE_B_TX); restart_sending_document(s); } @@ -4275,8 +4704,10 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) { send_dcn(s); } + /*endif*/ break; } + /*endswitch*/ break; case T30_DCN: switch (s->next_tx_step) @@ -4301,12 +4732,28 @@ static void process_state_ii_q(t30_state_t *s, const uint8_t *msg, int len) case T30_FNV: process_rx_fnv(s, msg, len); break; + case T30_MPS: + case T30_PRI_EOM: + case T30_EOM: + case T30_EOS: + case T30_PRI_EOP: + case T30_EOP: + if (fcf == s->next_tx_step) + { + /* It looks like we have received an echo of what we just sent */ + span_log(&s->logging, SPAN_LOG_FLOW, "Received an echo of our own %s\n", t30_frametype(fcf)); + timer_t4_start(s); + break; + } + /*endif*/ + /* Fall through */ default: /* We don't know what to do with this. */ t30_set_status(s, T30_ERR_TX_INVALRSP); unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4329,6 +4776,7 @@ static void process_state_iii_q(t30_state_t *s, const uint8_t *msg, int len) case T30_DIS: if (msg[2] == T30_DTC) process_rx_dis_dtc(s, msg, len); + /*endif*/ break; case T30_CRP: repeat_last_command(s); @@ -4339,6 +4787,7 @@ static void process_state_iii_q(t30_state_t *s, const uint8_t *msg, int len) case T30_DCN: if (s->last_rx_page_result == T30_RTN) t30_set_status(s, T30_ERR_RX_DCNNORTN); + /*endif*/ terminate_call(s); break; default: @@ -4346,6 +4795,7 @@ static void process_state_iii_q(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4367,6 +4817,7 @@ static void process_state_iv(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4400,17 +4851,20 @@ static void process_state_iv_pps_null(t30_state_t *s, const uint8_t *msg, int le tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (tx_start_page(s)) { /* TODO: recover */ break; } + /*endif*/ if (get_partial_ecm_page(s) > 0) { set_state(s, T30_STATE_IV); queue_phase(s, T30_PHASE_C_ECM_TX); send_first_ecm_frame(s); } + /*endif*/ break; case T30_PRI_EOM: case T30_EOM: @@ -4418,6 +4872,7 @@ static void process_state_iv_pps_null(t30_state_t *s, const uint8_t *msg, int le tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); report_tx_result(s, true); return_to_phase_b(s, false); @@ -4427,12 +4882,15 @@ static void process_state_iv_pps_null(t30_state_t *s, const uint8_t *msg, int le tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); send_dcn(s); report_tx_result(s, true); break; } + /*endswitch*/ } + /*endif*/ break; case T30_PPR: process_rx_ppr(s, msg, len); @@ -4440,6 +4898,7 @@ static void process_state_iv_pps_null(t30_state_t *s, const uint8_t *msg, int le case T30_RNR: if (s->timer_t5 == 0) s->timer_t5 = ms_to_samples(DEFAULT_TIMER_T5); + /*endif*/ queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_IV_PPS_RNR); send_rr(s); @@ -4454,12 +4913,23 @@ static void process_state_iv_pps_null(t30_state_t *s, const uint8_t *msg, int le case T30_FNV: process_rx_fnv(s, msg, len); break; + case T30_PPS: + if (msg[3] == s->next_tx_step) + { + /* It looks like we have received an echo of what we just sent */ + span_log(&s->logging, SPAN_LOG_FLOW, "Received an echo of our own PPS-%s\n", t30_frametype(msg[3])); + timer_t4_start(s); + break; + } + /*endif*/ + /* Fall through */ default: /* We don't know what to do with this. */ unexpected_final_frame(s, msg, len); t30_set_status(s, T30_ERR_TX_ECMPHD); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4479,7 +4949,9 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ case T30_MCF: s->retries = 0; @@ -4504,17 +4976,20 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (tx_start_page(s)) { /* TODO: recover */ break; } + /*endif*/ if (get_partial_ecm_page(s) > 0) { set_state(s, T30_STATE_IV); queue_phase(s, T30_PHASE_C_ECM_TX); send_first_ecm_frame(s); } + /*endif*/ break; case T30_PRI_EOM: case T30_EOM: @@ -4522,6 +4997,7 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); report_tx_result(s, true); return_to_phase_b(s, false); @@ -4531,16 +5007,20 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); send_dcn(s); report_tx_result(s, true); break; } + /*endswitch*/ } + /*endif*/ break; case T30_RNR: if (s->timer_t5 == 0) s->timer_t5 = ms_to_samples(DEFAULT_TIMER_T5); + /*endif*/ queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_IV_PPS_RNR); send_rr(s); @@ -4558,6 +5038,19 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) case T30_FNV: process_rx_fnv(s, msg, len); break; + case T30_PPS: + if (msg[3] == s->next_tx_step) + { + /* It looks like we have received an echo of what we just sent */ + span_log(&s->logging, SPAN_LOG_FLOW, "Received an echo of our own PPS-%s\n", t30_frametype(msg[3])); + timer_t4_start(s); + break; + } + /*endif*/ + /* We don't know what to do with this. */ + unexpected_final_frame(s, msg, len); + t30_set_status(s, T30_ERR_TX_ECMPHD); + break; case T30_PIN: if (s->remote_interrupts_allowed) { @@ -4567,7 +5060,9 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ default: /* We don't know what to do with this. */ @@ -4575,6 +5070,7 @@ static void process_state_iv_pps_q(t30_state_t *s, const uint8_t *msg, int len) t30_set_status(s, T30_ERR_TX_ECMPHD); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4594,7 +5090,9 @@ static void process_state_iv_pps_rnr(t30_state_t *s, const uint8_t *msg, int len s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ case T30_MCF: s->retries = 0; @@ -4619,17 +5117,20 @@ static void process_state_iv_pps_rnr(t30_state_t *s, const uint8_t *msg, int len tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ if (tx_start_page(s)) { /* TODO: recover */ break; } + /*endif*/ if (get_partial_ecm_page(s) > 0) { set_state(s, T30_STATE_IV); queue_phase(s, T30_PHASE_C_ECM_TX); send_first_ecm_frame(s); } + /*endif*/ break; case T30_PRI_EOM: case T30_EOM: @@ -4637,6 +5138,7 @@ static void process_state_iv_pps_rnr(t30_state_t *s, const uint8_t *msg, int len tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); report_tx_result(s, true); return_to_phase_b(s, false); @@ -4646,16 +5148,20 @@ static void process_state_iv_pps_rnr(t30_state_t *s, const uint8_t *msg, int len tx_end_page(s); if (s->phase_d_handler) s->phase_d_handler(s->phase_d_user_data, fcf); + /*endif*/ terminate_operation_in_progress(s); send_dcn(s); report_tx_result(s, true); break; } + /*endswitch*/ } + /*endif*/ break; case T30_RNR: if (s->timer_t5 == 0) s->timer_t5 = ms_to_samples(DEFAULT_TIMER_T5); + /*endif*/ queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_IV_PPS_RNR); send_rr(s); @@ -4670,6 +5176,18 @@ static void process_state_iv_pps_rnr(t30_state_t *s, const uint8_t *msg, int len case T30_FNV: process_rx_fnv(s, msg, len); break; + case T30_PPS: + if (msg[3] == s->next_tx_step) + { + /* It looks like we have received an echo of what we just sent */ + span_log(&s->logging, SPAN_LOG_FLOW, "Received an echo of our own PPS-%s\n", t30_frametype(msg[3])); + timer_t4_start(s); + break; + } + /*endif*/ + /* We don't know what to do with this. */ + unexpected_final_frame(s, msg, len); + break; case T30_PIN: if (s->remote_interrupts_allowed) { @@ -4679,13 +5197,16 @@ static void process_state_iv_pps_rnr(t30_state_t *s, const uint8_t *msg, int len s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ default: /* We don't know what to do with this. */ unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4716,6 +5237,7 @@ static void process_state_iv_ctc(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4729,6 +5251,7 @@ static void process_state_iv_eor(t30_state_t *s, const uint8_t *msg, int len) case T30_RNR: if (s->timer_t5 == 0) s->timer_t5 = ms_to_samples(DEFAULT_TIMER_T5); + /*endif*/ queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_IV_EOR_RNR); send_rr(s); @@ -4754,13 +5277,16 @@ static void process_state_iv_eor(t30_state_t *s, const uint8_t *msg, int len) s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ default: /* We don't know what to do with this. */ unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4774,6 +5300,7 @@ static void process_state_iv_eor_rnr(t30_state_t *s, const uint8_t *msg, int len case T30_RNR: if (s->timer_t5 == 0) s->timer_t5 = ms_to_samples(DEFAULT_TIMER_T5); + /*endif*/ queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_IV_EOR_RNR); send_rr(s); @@ -4803,13 +5330,16 @@ static void process_state_iv_eor_rnr(t30_state_t *s, const uint8_t *msg, int len s->phase_d_handler(s->phase_d_user_data, fcf); s->timer_t3 = ms_to_samples(DEFAULT_TIMER_T3); } + /*endif*/ } + /*endif*/ /* Fall through */ default: /* We don't know what to do with this. */ unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -4826,7 +5356,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) print_frame(s, "Rx: ", msg, len); if (s->real_time_frame_handler) s->real_time_frame_handler(s->real_time_frame_user_data, true, msg, len); - + /*endif*/ if ((msg[1] & 0x10) == 0) { /* This is not a final frame */ @@ -4840,17 +5370,19 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) { case TIMER_IS_T1A: case TIMER_IS_T2: - case TIMER_IS_T2A: - case TIMER_IS_T2B: - timer_t2a_start(s); + case TIMER_IS_T2_FLAGGED: + case TIMER_IS_T2_DROPPED: + timer_t2_flagged_start(s); break; case TIMER_IS_T4: - case TIMER_IS_T4A: - case TIMER_IS_T4B: - timer_t4a_start(s); + case TIMER_IS_T4_FLAGGED: + case TIMER_IS_T4_DROPPED: + timer_t4_flagged_start(s); break; } + /*endswitch*/ } + /*endif*/ /* The following handles all the message types we expect to get without a final frame tag. If we get one that T.30 says we should not expect in a particular context, its pretty harmless, so don't worry. */ @@ -4871,10 +5403,13 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) t35_decode(&msg[3], len - 3, &s->country, &s->vendor, &s->model); if (s->country) span_log(&s->logging, SPAN_LOG_FLOW, "The remote was made in '%s'\n", s->country); + /*endif*/ if (s->vendor) span_log(&s->logging, SPAN_LOG_FLOW, "The remote was made by '%s'\n", s->vendor); + /*endif*/ if (s->model) span_log(&s->logging, SPAN_LOG_FLOW, "The remote is a '%s'\n", s->model); + /*endif*/ s->rx_info.nsf_len = decode_nsf_nss_nsc(s, &s->rx_info.nsf, &msg[2], len - 2); } else @@ -4883,6 +5418,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) /* OK in (NSC) (CIG) DTC */ s->rx_info.nsc_len = decode_nsf_nss_nsc(s, &s->rx_info.nsc, &msg[2], len - 2); } + /*endif*/ break; case (T30_PWD & 0xFE): if (msg[2] == T30_PWD) @@ -4896,6 +5432,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) { unexpected_non_final_frame(s, msg, len); } + /*endif*/ break; case (T30_SEP & 0xFE): if (msg[2] == T30_SEP) @@ -4908,6 +5445,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) { unexpected_non_final_frame(s, msg, len); } + /*endif*/ break; case (T30_PSA & 0xFE): if (msg[2] == T30_PSA) @@ -4919,6 +5457,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) { unexpected_non_final_frame(s, msg, len); } + /*endif*/ break; case (T30_CIA & 0xFE): if (msg[2] == T30_CIA) @@ -4930,6 +5469,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) { unexpected_non_final_frame(s, msg, len); } + /*endif*/ break; case (T30_ISP & 0xFE): if (msg[2] == T30_ISP) @@ -4941,6 +5481,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) { unexpected_non_final_frame(s, msg, len); } + /*endif*/ break; case (T30_TSI & 0xFE): /* Transmitting subscriber identity */ @@ -4984,6 +5525,7 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) unexpected_non_final_frame(s, msg, len); break; } + /*endswitch*/ } else { @@ -5092,7 +5634,9 @@ static void process_rx_control_msg(t30_state_t *s, const uint8_t *msg, int len) unexpected_final_frame(s, msg, len); break; } + /*endswitch*/ } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -5108,7 +5652,9 @@ static void queue_phase(t30_state_t *s, int phase) phase */ if (s->send_hdlc_handler) s->send_hdlc_handler(s->send_hdlc_user_data, NULL, -1); + /*endif*/ } + /*endif*/ s->next_phase = phase; span_log(&s->logging, SPAN_LOG_FLOW, "Queuing phase %s\n", phase_names[s->next_phase]); } @@ -5117,6 +5663,7 @@ static void queue_phase(t30_state_t *s, int phase) /* We don't need to queue the new phase. We can change to it immediately. */ set_phase(s, phase); } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -5129,13 +5676,16 @@ static void set_phase(t30_state_t *s, int phase) phase */ if (s->send_hdlc_handler) s->send_hdlc_handler(s->send_hdlc_user_data, NULL, -1); + /*endif*/ } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Changing from phase %s to %s\n", phase_names[s->phase], phase_names[phase]); /* We may be killing a receiver before it has declared the end of the signal. Force the signal present indicator to off, because the receiver will never be able to. */ if (s->phase != T30_PHASE_A_CED && s->phase != T30_PHASE_A_CNG) s->rx_signal_present = false; + /*endif*/ s->rx_trained = false; s->rx_frame_received = false; s->phase = phase; @@ -5145,21 +5695,27 @@ static void set_phase(t30_state_t *s, int phase) case T30_PHASE_A_CED: if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_V21, 300, false, true); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_CED, 0, false, false); + /*endif*/ break; case T30_PHASE_A_CNG: if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_V21, 300, false, true); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_CNG, 0, false, false); + /*endif*/ break; case T30_PHASE_B_RX: case T30_PHASE_D_RX: if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_V21, 300, false, true); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_NONE, 0, false, false); + /*endif*/ break; case T30_PHASE_B_TX: case T30_PHASE_D_TX: @@ -5168,10 +5724,13 @@ static void set_phase(t30_state_t *s, int phase) s->timer_t0_t1 = ms_to_samples(DEFAULT_TIMER_T1); s->far_end_detected = true; } + /*endif*/ if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_NONE, 0, false, false); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_V21, 300, false, true); + /*endif*/ break; case T30_PHASE_C_NON_ECM_RX: if (s->set_rx_type_handler) @@ -5182,8 +5741,10 @@ static void set_phase(t30_state_t *s, int phase) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_NONE, 0, false, false); s->set_rx_type_handler(s->set_rx_type_user_data, fallback_sequence[s->current_fallback].modem_type, fallback_sequence[s->current_fallback].bit_rate, s->short_train, false); } + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_NONE, 0, false, false); + /*endif*/ break; case T30_PHASE_C_NON_ECM_TX: /* Pause before switching from anything to phase C */ @@ -5198,21 +5759,27 @@ static void set_phase(t30_state_t *s, int phase) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_NONE, 0, false, false); s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_NONE, 0, false, false); } + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, fallback_sequence[s->current_fallback].modem_type, fallback_sequence[s->current_fallback].bit_rate, s->short_train, false); + /*endif*/ break; case T30_PHASE_C_ECM_RX: if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, fallback_sequence[s->current_fallback].modem_type, fallback_sequence[s->current_fallback].bit_rate, s->short_train, true); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_NONE, 0, false, false); + /*endif*/ break; case T30_PHASE_C_ECM_TX: /* Pause before switching from anything to phase C */ if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_NONE, 0, false, false); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, fallback_sequence[s->current_fallback].modem_type, fallback_sequence[s->current_fallback].bit_rate, s->short_train, true); + /*endif*/ break; case T30_PHASE_E: /* Send a little silence before ending things, to ensure the buffers are flushed all they way @@ -5222,16 +5789,21 @@ static void set_phase(t30_state_t *s, int phase) s->tcf_most_zeros = 0; if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_NONE, 0, false, false); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_PAUSE, 0, FINAL_FLUSH_TIME, false); + /*endif*/ break; case T30_PHASE_CALL_FINISHED: if (s->set_rx_type_handler) s->set_rx_type_handler(s->set_rx_type_user_data, T30_MODEM_DONE, 0, false, false); + /*endif*/ if (s->set_tx_type_handler) s->set_tx_type_handler(s->set_tx_type_user_data, T30_MODEM_DONE, 0, false, false); + /*endif*/ break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -5242,6 +5814,7 @@ static void set_state(t30_state_t *s, int state) span_log(&s->logging, SPAN_LOG_FLOW, "Changing from state %s to %s\n", state_names[s->state], state_names[state]); s->state = state; } + /*endif*/ s->step = 0; } /*- End of function --------------------------------------------------------*/ @@ -5269,9 +5842,11 @@ static void repeat_last_command(t30_state_t *s) t30_set_status(s, T30_ERR_RETRYDCN); break; } + /*endswitch*/ send_dcn(s); return; } + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Retry number %d\n", s->retries); switch (s->state) { @@ -5336,6 +5911,7 @@ static void repeat_last_command(t30_state_t *s) state_names[s->state]); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -5347,7 +5923,7 @@ static void timer_t2_start(t30_state_t *s) } /*- End of function --------------------------------------------------------*/ -static void timer_t2a_start(t30_state_t *s) +static void timer_t2_flagged_start(t30_state_t *s) { /* T.30 Annex A says timeout T1 should be used in ECM phase C to time out the first frame after the flags start. This seems a strange reuse of the name T1 @@ -5360,18 +5936,19 @@ static void timer_t2a_start(t30_state_t *s) } else { - span_log(&s->logging, SPAN_LOG_FLOW, "Start T2A\n"); - s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T2A); - s->timer_t2_t4_is = TIMER_IS_T2A; + span_log(&s->logging, SPAN_LOG_FLOW, "Start T2-flagged\n"); + s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T2_FLAGGED); + s->timer_t2_t4_is = TIMER_IS_T2_FLAGGED; } + /*endif*/ } /*- End of function --------------------------------------------------------*/ -static void timer_t2b_start(t30_state_t *s) +static void timer_t2_dropped_start(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "Start T2B\n"); - s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T2B); - s->timer_t2_t4_is = TIMER_IS_T2B; + span_log(&s->logging, SPAN_LOG_FLOW, "Start T2-dropped\n"); + s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T2_DROPPED); + s->timer_t2_t4_is = TIMER_IS_T2_DROPPED; } /*- End of function --------------------------------------------------------*/ @@ -5383,19 +5960,19 @@ static void timer_t4_start(t30_state_t *s) } /*- End of function --------------------------------------------------------*/ -static void timer_t4a_start(t30_state_t *s) +static void timer_t4_flagged_start(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "Start T4A\n"); - s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T4A); - s->timer_t2_t4_is = TIMER_IS_T4A; + span_log(&s->logging, SPAN_LOG_FLOW, "Start T4-flagged\n"); + s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T4_FLAGGED); + s->timer_t2_t4_is = TIMER_IS_T4_FLAGGED; } /*- End of function --------------------------------------------------------*/ -static void timer_t4b_start(t30_state_t *s) +static void timer_t4_dropped_start(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "Start T4B\n"); - s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T4B); - s->timer_t2_t4_is = TIMER_IS_T4B; + span_log(&s->logging, SPAN_LOG_FLOW, "Start T4-dropped\n"); + s->timer_t2_t4 = ms_to_samples(DEFAULT_TIMER_T4_DROPPED); + s->timer_t2_t4_is = TIMER_IS_T4_DROPPED; } /*- End of function --------------------------------------------------------*/ @@ -5414,11 +5991,11 @@ static void timer_t2_t4_stop(t30_state_t *s) case TIMER_IS_T2: tag = "T2"; break; - case TIMER_IS_T2A: - tag = "T2A"; + case TIMER_IS_T2_FLAGGED: + tag = "T2-flagged"; break; - case TIMER_IS_T2B: - tag = "T2B"; + case TIMER_IS_T2_DROPPED: + tag = "T2-dropped"; break; case TIMER_IS_T2C: tag = "T2C"; @@ -5426,11 +6003,11 @@ static void timer_t2_t4_stop(t30_state_t *s) case TIMER_IS_T4: tag = "T4"; break; - case TIMER_IS_T4A: - tag = "T4A"; + case TIMER_IS_T4_FLAGGED: + tag = "T4-flagged"; break; - case TIMER_IS_T4B: - tag = "T4B"; + case TIMER_IS_T4_DROPPED: + tag = "T4-dropped"; break; case TIMER_IS_T4C: tag = "T4C"; @@ -5439,6 +6016,7 @@ static void timer_t2_t4_stop(t30_state_t *s) tag = "T2/T4"; break; } + /*endswitch*/ span_log(&s->logging, SPAN_LOG_FLOW, "Stop %s (%d remaining)\n", tag, s->timer_t2_t4); s->timer_t2_t4 = 0; s->timer_t2_t4_is = TIMER_IS_IDLE; @@ -5475,6 +6053,7 @@ static void timer_t1_expired(t30_state_t *s) send_dcn(s); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -5488,8 +6067,9 @@ static void timer_t1a_expired(t30_state_t *s) static void timer_t2_expired(t30_state_t *s) { - if (s->timer_t2_t4_is != TIMER_IS_T2B) + if (s->timer_t2_t4_is != TIMER_IS_T2_DROPPED) span_log(&s->logging, SPAN_LOG_FLOW, "T2 expired in phase %s, state %s\n", phase_names[s->phase], state_names[s->state]); + /*endif*/ switch (s->state) { case T30_STATE_III_Q: @@ -5509,6 +6089,7 @@ static void timer_t2_expired(t30_state_t *s) send_dis_or_dtc_sequence(s, true); return; } + /*endswitch*/ break; case T30_STATE_F_TCF: span_log(&s->logging, SPAN_LOG_FLOW, "No TCF data received\n"); @@ -5550,14 +6131,15 @@ static void timer_t2_expired(t30_state_t *s) case T30_STATE_F_FTT: break; } + /*endswitch*/ queue_phase(s, T30_PHASE_B_TX); start_receiving_document(s); } /*- End of function --------------------------------------------------------*/ -static void timer_t2a_expired(t30_state_t *s) +static void timer_t2_flagged_expired(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "T2A expired in phase %s, state %s. An HDLC frame lasted too long.\n", phase_names[s->phase], state_names[s->state]); + span_log(&s->logging, SPAN_LOG_FLOW, "T2-flagged expired in phase %s, state %s. An HDLC frame lasted too long.\n", phase_names[s->phase], state_names[s->state]); t30_set_status(s, T30_ERR_HDLC_CARRIER); /* T.30 says we should retry at this point, but we can't. We would need to wait for the far end to go quiet before sending. Experience says you only @@ -5570,9 +6152,9 @@ static void timer_t2a_expired(t30_state_t *s) } /*- End of function --------------------------------------------------------*/ -static void timer_t2b_expired(t30_state_t *s) +static void timer_t2_dropped_expired(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "T2B expired in phase %s, state %s. The line is now quiet.\n", phase_names[s->phase], state_names[s->state]); + span_log(&s->logging, SPAN_LOG_FLOW, "T2-dropped expired in phase %s, state %s. The line is now quiet.\n", phase_names[s->phase], state_names[s->state]); timer_t2_expired(s); } /*- End of function --------------------------------------------------------*/ @@ -5591,6 +6173,7 @@ static void timer_t4_expired(t30_state_t *s) within the T4 timeout period. */ if (s->timer_t2_t4_is == TIMER_IS_T4) span_log(&s->logging, SPAN_LOG_FLOW, "T4 expired in phase %s, state %s\n", phase_names[s->phase], state_names[s->state]); + /*endif*/ /* Of course, things might just be a little late, especially if there are T.38 links in the path. There is no point in simply timing out, and resending, if we are currently receiving something from the far end - its a half-duplex @@ -5602,17 +6185,17 @@ static void timer_t4_expired(t30_state_t *s) } /*- End of function --------------------------------------------------------*/ -static void timer_t4a_expired(t30_state_t *s) +static void timer_t4_flagged_expired(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "T4A expired in phase %s, state %s. An HDLC frame lasted too long.\n", phase_names[s->phase], state_names[s->state]); + span_log(&s->logging, SPAN_LOG_FLOW, "T4-flagged expired in phase %s, state %s. An HDLC frame lasted too long.\n", phase_names[s->phase], state_names[s->state]); t30_set_status(s, T30_ERR_HDLC_CARRIER); terminate_call(s); } /*- End of function --------------------------------------------------------*/ -static void timer_t4b_expired(t30_state_t *s) +static void timer_t4_dropped_expired(t30_state_t *s) { - span_log(&s->logging, SPAN_LOG_FLOW, "T4B expired in phase %s, state %s. The line is now quiet.\n", phase_names[s->phase], state_names[s->state]); + span_log(&s->logging, SPAN_LOG_FLOW, "T4-dropped expired in phase %s, state %s. The line is now quiet.\n", phase_names[s->phase], state_names[s->state]); timer_t4_expired(s); } /*- End of function --------------------------------------------------------*/ @@ -5633,20 +6216,24 @@ static void decode_20digit_msg(t30_state_t *s, char *msg, const uint8_t *pkt, in if (msg == NULL) msg = text; + /*endif*/ if (len > T30_MAX_IDENT_LEN + 1) { unexpected_frame_length(s, pkt, len); msg[0] = '\0'; return; } + /*endif*/ p = len; /* Strip trailing spaces */ while (p > 1 && pkt[p - 1] == ' ') p--; + /*endwhile*/ /* The string is actually backwards in the message */ k = 0; while (p > 1) msg[k++] = pkt[--p]; + /*endwhile*/ msg[k] = '\0'; span_log(&s->logging, SPAN_LOG_FLOW, "Remote gave %s as: \"%s\"\n", t30_frametype(pkt[0]), msg); } @@ -5659,12 +6246,14 @@ static void decode_url_msg(t30_state_t *s, char *msg, const uint8_t *pkt, int le /* TODO: decode properly, as per T.30 5.3.6.2.12 */ if (msg == NULL) msg = text; + /*endif*/ if (len < 3 || len > 77 + 3 || len != pkt[2] + 3) { unexpected_frame_length(s, pkt, len); msg[0] = '\0'; return; } + /*endif*/ /* First octet is the sequence number of the packet. Bit 7 = 1 for more follows, 0 for last packet in the sequence. Bits 6-0 = The sequence number, 0 to 0x7F @@ -5694,6 +6283,7 @@ static int decode_nsf_nss_nsc(t30_state_t *s, uint8_t *msg[], const uint8_t *pkt if ((t = span_alloc(len - 1)) == NULL) return 0; + /*endif*/ memcpy(t, &pkt[1], len - 1); *msg = t; return len - 1; @@ -5747,6 +6337,7 @@ static void t30_non_ecm_rx_status(void *user_data, int status) machines send a burst of all 1's before the all 0's. Tolerate this. */ if (s->tcf_current_zeros > s->tcf_most_zeros) s->tcf_most_zeros = s->tcf_current_zeros; + /*endif*/ span_log(&s->logging, SPAN_LOG_FLOW, "Trainability (TCF) test result - %d total bits. longest run of zeros was %d\n", s->tcf_test_bits, s->tcf_most_zeros); if (s->tcf_most_zeros < fallback_sequence[s->current_fallback].bit_rate) { @@ -5764,15 +6355,18 @@ static void t30_non_ecm_rx_status(void *user_data, int status) set_state(s, T30_STATE_F_CFR); send_cfr_sequence(s, true); } + /*endif*/ } + /*endif*/ break; case T30_STATE_F_POST_DOC_NON_ECM: /* Page ended cleanly */ + /* We have received something, so any missing carrier status is out of date */ if (s->current_status == T30_ERR_RX_NOCARRIER) t30_set_status(s, T30_ERR_OK); + /*endif*/ break; default: - /* We should be receiving a document right now, but it did not end cleanly. */ if (was_trained) { span_log(&s->logging, SPAN_LOG_WARNING, "Page did not end cleanly\n"); @@ -5781,23 +6375,29 @@ static void t30_non_ecm_rx_status(void *user_data, int status) set_state(s, T30_STATE_F_POST_DOC_NON_ECM); set_phase(s, T30_PHASE_D_RX); timer_t2_start(s); + /* We have received something, so any missing carrier status is out of date */ if (s->current_status == T30_ERR_RX_NOCARRIER) t30_set_status(s, T30_ERR_OK); + /*endif*/ } else { span_log(&s->logging, SPAN_LOG_WARNING, "Non-ECM carrier not found\n"); t30_set_status(s, T30_ERR_RX_NOCARRIER); } + /*endif*/ break; } + /*endswitch*/ if (s->next_phase != T30_PHASE_IDLE) set_phase(s, s->next_phase); + /*endif*/ break; default: span_log(&s->logging, SPAN_LOG_WARNING, "Unexpected non-ECM rx status - %d!\n", status); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -5811,6 +6411,7 @@ SPAN_DECLARE_NONSTD(void) t30_non_ecm_put_bit(void *user_data, int bit) t30_non_ecm_rx_status(user_data, bit); return; } + /*endif*/ s = (t30_state_t *) user_data; switch (s->state) { @@ -5821,12 +6422,14 @@ SPAN_DECLARE_NONSTD(void) t30_non_ecm_put_bit(void *user_data, int bit) { if (s->tcf_current_zeros > s->tcf_most_zeros) s->tcf_most_zeros = s->tcf_current_zeros; + /*endif*/ s->tcf_current_zeros = 0; } else { s->tcf_current_zeros++; } + /*endif*/ break; case T30_STATE_F_DOC_NON_ECM: /* Image transfer */ @@ -5835,12 +6438,15 @@ SPAN_DECLARE_NONSTD(void) t30_non_ecm_put_bit(void *user_data, int bit) /* This is the end of the image */ if (res != T4_DECODE_OK) span_log(&s->logging, SPAN_LOG_FLOW, "Page ended with status %d\n", res); + /*endif*/ set_state(s, T30_STATE_F_POST_DOC_NON_ECM); queue_phase(s, T30_PHASE_D_RX); timer_t2_start(s); } + /*endif*/ break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -5863,13 +6469,16 @@ SPAN_DECLARE(void) t30_non_ecm_put(void *user_data, const uint8_t buf[], int len { if (s->tcf_current_zeros > s->tcf_most_zeros) s->tcf_most_zeros = s->tcf_current_zeros; + /*endif*/ s->tcf_current_zeros = 0; } else { s->tcf_current_zeros += 8; } + /*endif*/ } + /*endfor*/ break; case T30_STATE_F_DOC_NON_ECM: /* Image transfer */ @@ -5878,12 +6487,15 @@ SPAN_DECLARE(void) t30_non_ecm_put(void *user_data, const uint8_t buf[], int len /* This is the end of the image */ if (res != T4_DECODE_OK) span_log(&s->logging, SPAN_LOG_FLOW, "Page ended with status %d\n", res); + /*endif*/ set_state(s, T30_STATE_F_POST_DOC_NON_ECM); queue_phase(s, T30_PHASE_D_RX); timer_t2_start(s); } + /*endif*/ break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -5903,6 +6515,7 @@ SPAN_DECLARE_NONSTD(int) t30_non_ecm_get_bit(void *user_data) /* Finished sending training test. */ bit = SIG_STATUS_END_OF_DATA; } + /*endif*/ break; case T30_STATE_I: /* Transferring real data. */ @@ -5918,6 +6531,7 @@ SPAN_DECLARE_NONSTD(int) t30_non_ecm_get_bit(void *user_data) bit = SIG_STATUS_END_OF_DATA; break; } + /*endswitch*/ return bit; } /*- End of function --------------------------------------------------------*/ @@ -5937,7 +6551,9 @@ SPAN_DECLARE(int) t30_non_ecm_get(void *user_data, uint8_t buf[], int max_len) buf[len] = 0; if ((s->tcf_test_bits -= 8) < 0) break; + /*endif*/ } + /*endfor*/ break; case T30_STATE_I: /* Transferring real data. */ @@ -5953,6 +6569,7 @@ SPAN_DECLARE(int) t30_non_ecm_get(void *user_data, uint8_t buf[], int max_len) len = -1; break; } + /*endswitch*/ return len; } /*- End of function --------------------------------------------------------*/ @@ -5980,15 +6597,16 @@ static void t30_hdlc_rx_status(void *user_data, int status) s->rx_signal_present = true; switch (s->timer_t2_t4_is) { - case TIMER_IS_T2B: + case TIMER_IS_T2_DROPPED: timer_t2_t4_stop(s); s->timer_t2_t4_is = TIMER_IS_T2C; break; - case TIMER_IS_T4B: + case TIMER_IS_T4_DROPPED: timer_t2_t4_stop(s); s->timer_t2_t4_is = TIMER_IS_T4C; break; } + /*endswitch*/ break; case SIG_STATUS_CARRIER_DOWN: was_trained = s->rx_trained; @@ -6012,6 +6630,7 @@ static void t30_hdlc_rx_status(void *user_data, int status) /* We at least trained, so any missing carrier status is out of date */ if (s->current_status == T30_ERR_RX_NOCARRIER) t30_set_status(s, T30_ERR_OK); + /*endif*/ } else { @@ -6019,7 +6638,9 @@ static void t30_hdlc_rx_status(void *user_data, int status) span_log(&s->logging, SPAN_LOG_WARNING, "ECM carrier not found\n"); t30_set_status(s, T30_ERR_RX_NOCARRIER); } + /*endif*/ } + /*endif*/ if (s->next_phase != T30_PHASE_IDLE) { /* The appropriate timer for the next phase should already be in progress */ @@ -6030,16 +6651,18 @@ static void t30_hdlc_rx_status(void *user_data, int status) switch (s->timer_t2_t4_is) { case TIMER_IS_T1A: - case TIMER_IS_T2A: + case TIMER_IS_T2_FLAGGED: case TIMER_IS_T2C: - timer_t2b_start(s); + timer_t2_dropped_start(s); break; - case TIMER_IS_T4A: + case TIMER_IS_T4_FLAGGED: case TIMER_IS_T4C: - timer_t4b_start(s); + timer_t4_dropped_start(s); break; } + /*endswitch*/ } + /*endif*/ break; case SIG_STATUS_FRAMING_OK: if (!s->far_end_detected && s->timer_t0_t1 > 0) @@ -6048,24 +6671,28 @@ static void t30_hdlc_rx_status(void *user_data, int status) s->far_end_detected = true; if (s->phase == T30_PHASE_A_CED || s->phase == T30_PHASE_A_CNG) set_phase(s, T30_PHASE_B_RX); + /*endif*/ } - /* 5.4.3.1 Timer T2 is reset if flag is received. Timer T2A must be started. */ - /* Unstated, but implied, is that timer T4 and T4A are handled the same way. */ + /*endif*/ + /* 5.4.3.1 Timer T2 is reset if flag is received. Timer T2_FLAGGED must be started. */ + /* Unstated, but implied, is that timer T4 and T4_FLAGGED are handled the same way. */ if (s->timer_t2_t4 > 0) { switch(s->timer_t2_t4_is) { case TIMER_IS_T1A: case TIMER_IS_T2: - case TIMER_IS_T2A: - timer_t2a_start(s); + case TIMER_IS_T2_FLAGGED: + timer_t2_flagged_start(s); break; case TIMER_IS_T4: - case TIMER_IS_T4A: - timer_t4a_start(s); + case TIMER_IS_T4_FLAGGED: + timer_t4_flagged_start(s); break; } + /*endswitch*/ } + /*endif*/ break; case SIG_STATUS_ABORT: /* Just ignore these */ @@ -6074,6 +6701,7 @@ static void t30_hdlc_rx_status(void *user_data, int status) span_log(&s->logging, SPAN_LOG_FLOW, "Unexpected HDLC special length - %d!\n", status); break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -6086,6 +6714,7 @@ SPAN_DECLARE_NONSTD(void) t30_hdlc_accept(void *user_data, const uint8_t *msg, i t30_hdlc_rx_status(user_data, len); return; } + /*endif*/ s = (t30_state_t *) user_data; /* The spec. says a command or response is not valid if: @@ -6111,18 +6740,23 @@ SPAN_DECLARE_NONSTD(void) t30_hdlc_accept(void *user_data, const uint8_t *msg, i queue_phase(s, T30_PHASE_B_TX); else queue_phase(s, T30_PHASE_D_TX); + /*endif*/ send_simple_frame(s, T30_CRP); } else { /* Cancel the command or response timer (if one is running) */ span_log(&s->logging, SPAN_LOG_FLOW, "Bad CRC and timer is %d\n", s->timer_t2_t4_is); - if (s->timer_t2_t4_is == TIMER_IS_T2A) + if (s->timer_t2_t4_is == TIMER_IS_T2_FLAGGED) timer_t2_t4_stop(s); + /*endif*/ } + /*endif*/ } + /*endif*/ return; } + /*endif*/ if (len < 3) { @@ -6131,6 +6765,7 @@ SPAN_DECLARE_NONSTD(void) t30_hdlc_accept(void *user_data, const uint8_t *msg, i timer_t2_t4_stop(s); return; } + /*endif*/ if (msg[0] != ADDRESS_FIELD || !(msg[1] == CONTROL_FIELD_NON_FINAL_FRAME || msg[1] == CONTROL_FIELD_FINAL_FRAME)) @@ -6140,6 +6775,7 @@ SPAN_DECLARE_NONSTD(void) t30_hdlc_accept(void *user_data, const uint8_t *msg, i timer_t2_t4_stop(s); return; } + /*endif*/ s->rx_frame_received = true; /* Cancel the command or response timer (if one is running) */ timer_t2_t4_stop(s); @@ -6174,6 +6810,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_phase(s, T30_PHASE_B_RX); timer_t4_start(s); } + /*endif*/ break; case T30_STATE_F_CFR: if (send_cfr_sequence(s, false)) @@ -6190,9 +6827,11 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_state(s, T30_STATE_F_DOC_NON_ECM); queue_phase(s, T30_PHASE_C_NON_ECM_RX); } + /*endif*/ timer_t2_start(s); s->next_rx_step = T30_MPS; } + /*endif*/ break; case T30_STATE_F_FTT: if (s->step == 0) @@ -6205,6 +6844,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_phase(s, T30_PHASE_B_RX); timer_t2_start(s); } + /*endif*/ break; case T30_STATE_F_DOC_NON_ECM: case T30_STATE_III_Q: @@ -6233,6 +6873,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_state(s, T30_STATE_F_DOC_NON_ECM); queue_phase(s, T30_PHASE_C_NON_ECM_RX); } + /*endif*/ timer_t2_start(s); break; case T30_PRI_EOM: @@ -6253,7 +6894,9 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) terminate_call(s); break; } + /*endswitch*/ } + /*endif*/ break; case T30_STATE_II_Q: case T30_STATE_IV_PPS_NULL: @@ -6275,6 +6918,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_phase(s, T30_PHASE_D_RX); timer_t4_start(s); } + /*endif*/ break; case T30_STATE_B: /* We have now allowed time for the last message to flush through @@ -6293,6 +6937,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) end the call. */ start_final_pause(s); } + /*endif*/ break; case T30_STATE_D: if (send_dcs_sequence(s, false)) @@ -6312,6 +6957,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_state(s, T30_STATE_I); queue_phase(s, T30_PHASE_C_NON_ECM_TX); } + /*endif*/ } else { @@ -6321,7 +6967,9 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_state(s, T30_STATE_D_TCF); set_phase(s, T30_PHASE_C_NON_ECM_TX); } + /*endif*/ } + /*endif*/ break; case T30_STATE_D_TCF: /* Finished sending training test. Listen for the response. */ @@ -6346,6 +6994,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) shut_down_hdlc_tx(s); s->step++; } + /*endif*/ } else { @@ -6353,11 +7002,14 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) set_phase(s, T30_PHASE_D_TX); if (s->ecm_at_page_end) s->next_tx_step = check_next_tx_step(s); + /*endif*/ if (send_pps_frame(s) == T30_NULL) set_state(s, T30_STATE_IV_PPS_NULL); else set_state(s, T30_STATE_IV_PPS_Q); + /*endif*/ } + /*endif*/ break; case T30_STATE_F_DOC_ECM: /* This should be the end of a CTR being sent. */ @@ -6372,6 +7024,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) queue_phase(s, T30_PHASE_C_ECM_RX); timer_t2_start(s); } + /*endif*/ break; case T30_STATE_CALL_FINISHED: /* Just ignore anything that happens now. We might get here if a premature @@ -6381,6 +7034,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) span_log(&s->logging, SPAN_LOG_FLOW, "Bad state for send complete in t30_front_end_status - %s\n", state_names[s->state]); break; } + /*endswitch*/ break; case T30_FRONT_END_RECEIVE_COMPLETE: span_log(&s->logging, SPAN_LOG_FLOW, "Receive complete in phase %s, state %s\n", phase_names[s->phase], state_names[s->state]); @@ -6396,6 +7050,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) t30_hdlc_rx_status(s, SIG_STATUS_CARRIER_DOWN); break; } + /*endswitch*/ break; case T30_FRONT_END_SIGNAL_PRESENT: span_log(&s->logging, SPAN_LOG_FLOW, "A signal is present\n"); @@ -6424,6 +7079,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) s->rx_signal_present = true; break; } + /*endswitch*/ break; case T30_FRONT_END_SIGNAL_ABSENT: span_log(&s->logging, SPAN_LOG_FLOW, "No signal is present\n"); @@ -6438,6 +7094,7 @@ SPAN_DECLARE(void) t30_front_end_status(void *user_data, int status) /* TODO: Should we do anything here? */ break; } + /*endswitch*/ } /*- End of function --------------------------------------------------------*/ @@ -6454,8 +7111,11 @@ SPAN_DECLARE(void) t30_timer_update(t30_state_t *s, int samples) timer_t1_expired(s); else timer_t0_expired(s); + /*endif*/ } + /*endif*/ } + /*endif*/ if (s->timer_t3 > 0) { if ((s->timer_t3 -= samples) <= 0) @@ -6463,7 +7123,9 @@ SPAN_DECLARE(void) t30_timer_update(t30_state_t *s, int samples) s->timer_t3 = 0; timer_t3_expired(s); } + /*endif*/ } + /*endif*/ if (s->timer_t2_t4 > 0) { if ((s->timer_t2_t4 -= samples) <= 0) @@ -6481,24 +7143,27 @@ SPAN_DECLARE(void) t30_timer_update(t30_state_t *s, int samples) case TIMER_IS_T2: timer_t2_expired(s); break; - case TIMER_IS_T2A: - timer_t2a_expired(s); + case TIMER_IS_T2_FLAGGED: + timer_t2_flagged_expired(s); break; - case TIMER_IS_T2B: - timer_t2b_expired(s); + case TIMER_IS_T2_DROPPED: + timer_t2_dropped_expired(s); break; case TIMER_IS_T4: timer_t4_expired(s); break; - case TIMER_IS_T4A: - timer_t4a_expired(s); + case TIMER_IS_T4_FLAGGED: + timer_t4_flagged_expired(s); break; - case TIMER_IS_T4B: - timer_t4b_expired(s); + case TIMER_IS_T4_DROPPED: + timer_t4_dropped_expired(s); break; } + /*endswitch*/ } + /*endif*/ } + /*endif*/ if (s->timer_t5 > 0) { if ((s->timer_t5 -= samples) <= 0) @@ -6506,7 +7171,9 @@ SPAN_DECLARE(void) t30_timer_update(t30_state_t *s, int samples) s->timer_t5 = 0; timer_t5_expired(s); } + /*endif*/ } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -6536,10 +7203,13 @@ SPAN_DECLARE(void) t30_terminate(t30_state_t *s) /* The call terminated prematurely. */ t30_set_status(s, T30_ERR_CALLDROPPED); } + /*endif*/ break; } + /*endswitch*/ terminate_call(s); } + /*endif*/ } /*- End of function --------------------------------------------------------*/ @@ -6564,6 +7234,7 @@ SPAN_DECLARE(void) t30_get_transfer_statistics(t30_state_t *s, t30_stats_t *t) memset(&stats, 0, sizeof(stats)); break; } + /*endswitch*/ t->pages_tx = s->tx_page_number; t->pages_rx = s->rx_page_number; t->pages_in_file = stats.pages_in_file; @@ -6598,6 +7269,7 @@ SPAN_DECLARE(void) t30_local_interrupt_request(t30_state_t *s, int state) /* TODO: */ send_simple_frame(s, (state) ? T30_PIP : T30_PIN); } + /*endif*/ s->local_interrupt_pending = state; } /*- End of function --------------------------------------------------------*/ @@ -6645,6 +7317,7 @@ SPAN_DECLARE(int) t30_restart(t30_state_t *s, bool calling_party) set_state(s, T30_STATE_ANSWERING); set_phase(s, T30_PHASE_A_CED); } + /*endif*/ return 0; } /*- End of function --------------------------------------------------------*/ @@ -6662,7 +7335,9 @@ SPAN_DECLARE(t30_state_t *) t30_init(t30_state_t *s, { if ((s = (t30_state_t *) span_alloc(sizeof(*s))) == NULL) return NULL; + /*endif*/ } + /*endif*/ memset(s, 0, sizeof(*s)); s->set_rx_type_handler = set_rx_type_handler; s->set_rx_type_user_data = set_rx_type_user_data; diff --git a/libs/spandsp/tests/tsb85_extra_tests.sh b/libs/spandsp/tests/tsb85_extra_tests.sh index 8e401d41ad..d7a3b08d40 100755 --- a/libs/spandsp/tests/tsb85_extra_tests.sh +++ b/libs/spandsp/tests/tsb85_extra_tests.sh @@ -28,7 +28,7 @@ run_tsb85_test() fi } -for TEST in PPS-MPS-lost-PPS V17-12000-V29-9600 Phase-D-collision Modem-change-at-CTC ECM-DCN-clipped Non-ECM-DCN-clipped +for TEST in PPS-MPS-lost-PPS V17-12000-V29-9600 Phase-D-collision Modem-change-at-CTC ECM-DCN-clipped Non-ECM-DCN-clipped Tx-EOP-echo Tx-PPS-echo do run_tsb85_test done From ccbef9e0c7e31c410ce08b5276c3e2e5a2f69883 Mon Sep 17 00:00:00 2001 From: doancea Date: Mon, 11 May 2015 16:48:49 +0200 Subject: [PATCH 78/97] opus@8000h : with this change there RTP timestamps will be incremented with 960 (20 ms ptime) - per RFC , and the frame size will be 160 samples. --- src/mod/codecs/mod_opus/mod_opus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 346f254a50..21dc569c6b 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -547,7 +547,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) } - samples = 80; + samples = 480; bytes = 160; mss = 10000; rate = 8000; @@ -599,7 +599,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) switch_opus_destroy); /* deinitalize a codec handle using this implementation */ bytes += 160; - samples += 80; + samples += 480; mss += 10000; } From 8ce7f24b4141e1ceffecd38ee78dae2c51a27696 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 11 May 2015 16:47:02 -0500 Subject: [PATCH 79/97] FS-7529 --resolve --- src/switch_core_codec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/switch_core_codec.c b/src/switch_core_codec.c index 23a16781a9..01211e736d 100644 --- a/src/switch_core_codec.c +++ b/src/switch_core_codec.c @@ -619,13 +619,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_reset(switch_codec_t *codec) SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool) { + uint32_t codec_rate; switch_assert(codec != NULL); switch_assert(new_codec != NULL); - - return switch_core_codec_init(new_codec, + codec_rate = !strcasecmp(codec->implementation->iananame, "g722") + ? codec->implementation->samples_per_second : codec->implementation->actual_samples_per_second; + + return switch_core_codec_init(new_codec, codec->implementation->iananame, codec->fmtp_in, - codec->implementation->actual_samples_per_second, + codec_rate, codec->implementation->microseconds_per_packet / 1000, codec->implementation->number_of_channels, codec->flags, From dbc550a26dd8643c238205f63133dc0d87d1ea14 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 11 May 2015 19:46:27 -0500 Subject: [PATCH 80/97] FS-7184: add buffer overflow check in udptl_rx_packet --- src/mod/applications/mod_spandsp/udptl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/applications/mod_spandsp/udptl.c b/src/mod/applications/mod_spandsp/udptl.c index d1e21d648d..874c30b686 100644 --- a/src/mod/applications/mod_spandsp/udptl.c +++ b/src/mod/applications/mod_spandsp/udptl.c @@ -223,6 +223,9 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len) if ((stat = decode_length(buf, len, &ptr, &count)) < 0) return -1; for (i = 0; i < count; i++) { + if (total_count + i >= 16) { + return -1; + } if (decode_open_type(buf, len, &ptr, &bufs[total_count + i], &lengths[total_count + i]) != 0) return -1; } From b156cbd604fbb879d9d987c0581bab2e7dbe6dfb Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Tue, 12 May 2015 12:00:04 +0800 Subject: [PATCH 81/97] A slightly mroe elegant an commented fix for the potential overflow issue in udptl.c --- src/mod/applications/mod_spandsp/udptl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_spandsp/udptl.c b/src/mod/applications/mod_spandsp/udptl.c index 874c30b686..6644a6ed74 100644 --- a/src/mod/applications/mod_spandsp/udptl.c +++ b/src/mod/applications/mod_spandsp/udptl.c @@ -222,10 +222,12 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len) do { if ((stat = decode_length(buf, len, &ptr, &count)) < 0) return -1; + if ((total_count + count) >= 16) { + /* There is too much stuff here to be real, and it would overflow the bufs array + if we continue */ + return -1; + } for (i = 0; i < count; i++) { - if (total_count + i >= 16) { - return -1; - } if (decode_open_type(buf, len, &ptr, &bufs[total_count + i], &lengths[total_count + i]) != 0) return -1; } From 35a75a6a82664d011f81ad8ac6a447f17fe31e9e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 11 May 2015 23:37:03 -0500 Subject: [PATCH 82/97] fix clang build not seeing some libc prototypes throwing build warnings --- libs/spandsp/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index 305c75a533..412caa203f 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -464,6 +464,13 @@ intel) fi COMP_VENDOR_LDFLAGS= ;; +clang*) + COMP_VENDOR_CFLAGS="-D_XOPEN_SOURCE=700 -std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" + if test x"$ac_cv_gcc_unused_but_set_variable" = xyes ; then + COMP_VENDOR_CFLAGS="-Wunused-but-set-variable $COMP_VENDOR_CFLAGS" + fi + COMP_VENDOR_LDFLAGS= + ;; *) COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" if test x"$ac_cv_gcc_unused_but_set_variable" = xyes ; then From bc3fa1b9b57eb32326c4805194b68089396be195 Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Tue, 12 May 2015 13:11:50 +0800 Subject: [PATCH 83/97] Eliminated a spandsp warning frmo clang --- libs/spandsp/src/modem_connect_tones.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/spandsp/src/modem_connect_tones.c b/libs/spandsp/src/modem_connect_tones.c index 9c030ad0ed..98262a1cad 100644 --- a/libs/spandsp/src/modem_connect_tones.c +++ b/libs/spandsp/src/modem_connect_tones.c @@ -526,7 +526,7 @@ SPAN_DECLARE_NONSTD(int) modem_connect_tones_rx(modem_connect_tones_rx_state_t * filtered = 0.001599787f*(v1 - s->z15hz_2); s->z15hz_2 = s->z15hz_1; s->z15hz_1 = v1; - s->am_level += abs(lfastrintf(filtered)) - (s->am_level >> 8); + s->am_level += abs((int) lfastrintf(filtered)) - (s->am_level >> 8); //printf("%9.1f %10.4f %9d %9d\n", famp, filtered, s->am_level, s->channel_level); /* A Cauer notch at 2100Hz, spread just wide enough to meet our detection bandwidth criteria. */ From 9eb887af478eb7615cfbb1f43055e5c1b73ee9ef Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 12 May 2015 00:36:45 -0500 Subject: [PATCH 84/97] fix clang build on wheezy and other platforms that have aligned_alloc in libc but not in headers --- libs/spandsp/configure.ac | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index 412caa203f..43265fb2a2 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -37,6 +37,27 @@ m4_include(m4/ax_c99_features.m4) m4_include(m4/ax_check_export_capability.m4) m4_include(m4/ax_check_arm_neon.m4) +AC_DEFUN([AC_FUNC_ALIGNED_ALLOC],[ +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -Werror" + AC_CACHE_CHECK([checking for aligned_alloc], + [ac_cv_func_aligned_alloc], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([ + #define _ISOC11_SOURCE + #include + ], + [ + aligned_alloc(0,0); + ])], + [ac_cv_func_aligned_alloc=yes], + [ac_cv_func_aligned_alloc=no])]) + + if test "x${ac_cv_func_aligned_alloc}" = "xyes" ; then + AC_DEFINE([HAVE_ALIGNED_ALLOC], [1], [Define to 1 if you have the aligned_alloc() function.]) + fi +CFLAGS="$saved_CFLAGS" +]) + AC_CONFIG_SRCDIR([src/tone_generate.c]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_MACRO_DIR([m4]) @@ -174,7 +195,7 @@ fi AX_C99_FLEXIBLE_ARRAY -AC_CHECK_FUNCS([aligned_alloc]) +AC_FUNC_ALIGNED_ALLOC AC_CHECK_FUNCS([memalign]) AC_CHECK_FUNCS([posix_memalign]) AC_CHECK_FUNCS([memmove]) From 346f6cb6af6e0d3ff13a6948ac22e024911e7952 Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 13 May 2015 15:56:18 -0700 Subject: [PATCH 85/97] FS-7552 #resolve --- src/mod/event_handlers/mod_amqp/mod_amqp.c | 4 ++-- src/mod/event_handlers/mod_amqp/mod_amqp_producer.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.c b/src/mod/event_handlers/mod_amqp/mod_amqp.c index dfb32f0a28..a481064975 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp.c @@ -88,12 +88,12 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_amqp_shutdown) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Mod starting shutting down\n"); switch_event_unbind_callback(mod_amqp_producer_event_handler); - for (hi = switch_core_hash_first(globals.producer_hash); hi; hi = switch_core_hash_next(&hi)) { + while ((hi = switch_core_hash_first(globals.producer_hash))) { switch_core_hash_this(hi, NULL, NULL, (void **)&producer); mod_amqp_producer_destroy(&producer); } - for (hi = switch_core_hash_first(globals.command_hash); hi; hi = switch_core_hash_next(&hi)) { + while ((hi = switch_core_hash_first(globals.command_hash))) { switch_core_hash_this(hi, NULL, NULL, (void **)&command); mod_amqp_command_destroy(&command); } diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c index 1bb344f270..dd649495d7 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -311,6 +311,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) if ( mod_amqp_connection_open(profile->conn_root, &(profile->conn_active), profile->name, profile->custom_attr) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] was unable to connect to any connection\n", profile->name); + goto err; } amqp_exchange_declare(profile->conn_active->state, 1, From 64c7fee8ca4cbb8c9eb679dae2a7b7b42944b9b3 Mon Sep 17 00:00:00 2001 From: Luis Azedo Date: Wed, 22 Apr 2015 20:11:12 +0100 Subject: [PATCH 86/97] conditionally allow intercept of replaced call-id when processing replaces header without this change one leg calls inhaled could not be picked because there is no bridge_uuid. FS-7463 #resolve --- src/mod/endpoints/mod_sofia/sofia.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 78d8484bda..7c8c31ff6e 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -9885,11 +9885,13 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia "%sanswer,sofia_sla:%s", codec_str, b_private->uuid); } } else { - char* pickup = NULL; - if(sip->sip_replaces->rq_url->url_params && sip->sip_replaces->rp_call_id) { - pickup = switch_find_parameter(sip->sip_replaces->rq_url->url_params,"pickup", switch_core_session_get_pool(session)); + char *aleg = NULL; + + if (sip->sip_replaces && sip->sip_replaces->rp_params && sip->sip_replaces->rp_call_id) { + aleg = switch_find_parameter(sip->sip_replaces->rp_params, "a-leg", switch_core_session_get_pool(session)); } - if(pickup) { + + if (aleg) { switch_channel_mark_hold(b_channel, SWITCH_FALSE); tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", sip->sip_replaces->rp_call_id); } else if (!zstr(bridge_uuid)) { From 9fc8772aefdd8d8fcb55478fa8b18829ace93a2e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 14 May 2015 13:55:32 -0400 Subject: [PATCH 87/97] FS-7463: revert commits c2c04632f35c b33563138b09 and 6bf74877b5f0. Future pull requests should be verified that they compile before submitting. --- src/mod/endpoints/mod_sofia/sofia.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 7c8c31ff6e..78a0b58646 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -9885,16 +9885,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia "%sanswer,sofia_sla:%s", codec_str, b_private->uuid); } } else { - char *aleg = NULL; - - if (sip->sip_replaces && sip->sip_replaces->rp_params && sip->sip_replaces->rp_call_id) { - aleg = switch_find_parameter(sip->sip_replaces->rp_params, "a-leg", switch_core_session_get_pool(session)); - } - - if (aleg) { - switch_channel_mark_hold(b_channel, SWITCH_FALSE); - tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", sip->sip_replaces->rp_call_id); - } else if (!zstr(bridge_uuid)) { + if (!zstr(bridge_uuid)) { switch_channel_mark_hold(b_channel, SWITCH_FALSE); tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", bridge_uuid); } else { From 13513439ba4d8106b7c36b02cf41d02fbe2aa346 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 14 May 2015 17:19:42 -0400 Subject: [PATCH 88/97] FS-7557 mod_mongo add limit backend - still testing --- .../conf/autoload_configs/mongo.conf.xml | 12 +- src/mod/applications/mod_mongo/mod_mongo.c | 524 +++++++++++++++++- 2 files changed, 506 insertions(+), 30 deletions(-) diff --git a/src/mod/applications/mod_mongo/conf/autoload_configs/mongo.conf.xml b/src/mod/applications/mod_mongo/conf/autoload_configs/mongo.conf.xml index 57f9f6566f..041432a232 100644 --- a/src/mod/applications/mod_mongo/conf/autoload_configs/mongo.conf.xml +++ b/src/mod/applications/mod_mongo/conf/autoload_configs/mongo.conf.xml @@ -1,11 +1,17 @@ - - - + + + + + + + +